duview build added
[projects.git] / eibd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bcusdk 0.0.5.
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
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='bcusdk'
569 PACKAGE_TARNAME='bcusdk'
570 PACKAGE_VERSION='0.0.5'
571 PACKAGE_STRING='bcusdk 0.0.5'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 #  include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #  include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 BUILD_JAVA_FALSE
616 BUILD_JAVA_TRUE
617 JAVAC
618 JAR
619 INDENT
620 HAVE_SOURCE_INFO_FALSE
621 HAVE_SOURCE_INFO_TRUE
622 HAVE_USB_FALSE
623 HAVE_USB_TRUE
624 HAVE_EIBNETIPTUNNEL_FALSE
625 HAVE_EIBNETIPTUNNEL_TRUE
626 HAVE_EIBNETIP_FALSE
627 HAVE_EIBNETIP_TRUE
628 HAVE_TPUARTs_FALSE
629 HAVE_TPUARTs_TRUE
630 HAVE_PEI16s_FALSE
631 HAVE_PEI16s_TRUE
632 HAVE_TPUART_FALSE
633 HAVE_TPUART_TRUE
634 HAVE_PEI16_FALSE
635 HAVE_PEI16_TRUE
636 HAVE_FT12_FALSE
637 HAVE_FT12_TRUE
638 TGCC
639 TRANLIB
640 TAR
641 TLD
642 TAS
643 XML_LIBS
644 XML_CPPFLAGS
645 XML2_CONFIG
646 HAVE_ONLYEIBD_FALSE
647 HAVE_ONLYEIBD_TRUE
648 LINUX_API_FALSE
649 LINUX_API_TRUE
650 PTH_LIBS
651 PTH_LDFLAGS
652 PTH_CFLAGS
653 PTH_CPPFLAGS
654 LIBS_FOR_BUILD
655 CPPFLAGS_FOR_BUILD
656 LDFLAGS_FOR_BUILD
657 CFLAGS_FOR_BUILD
658 EXEEXT_FOR_BUILD
659 CPP_FOR_BUILD
660 CC_FOR_BUILD
661 CXXCPP
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 MANIFEST_TOOL
668 ac_ct_AR
669 AR
670 DLLTOOL
671 OBJDUMP
672 LN_S
673 NM
674 ac_ct_DUMPBIN
675 DUMPBIN
676 LD
677 FGREP
678 SED
679 LIBTOOL
680 RANLIB
681 am__fastdepCCAS_FALSE
682 am__fastdepCCAS_TRUE
683 CCASDEPMODE
684 CCASFLAGS
685 CCAS
686 LEXLIB
687 LEX_OUTPUT_ROOT
688 LEX
689 YFLAGS
690 YACC
691 EGREP
692 GREP
693 CPP
694 am__fastdepCXX_FALSE
695 am__fastdepCXX_TRUE
696 CXXDEPMODE
697 ac_ct_CXX
698 CXXFLAGS
699 CXX
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
729 AWK
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_dependency_tracking
789 enable_shared
790 enable_static
791 with_pic
792 enable_fast_install
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 with_pth
797 with_pth_test
798 enable_onlyeibd
799 with_xml_prefix
800 with_xml_exec_prefix
801 enable_xmltest
802 enable_ft12
803 enable_pei16
804 enable_tpuart
805 enable_pei16s
806 enable_tpuarts
807 enable_eibnetip
808 enable_eibnetiptunnel
809 enable_usb
810 enable_eibnetipserver
811 enable_groupcache
812 enable_java
813 with_libstdc
814 '
815       ac_precious_vars='build_alias
816 host_alias
817 target_alias
818 CC
819 CFLAGS
820 LDFLAGS
821 LIBS
822 CPPFLAGS
823 CXX
824 CXXFLAGS
825 CCC
826 CPP
827 YACC
828 YFLAGS
829 CCAS
830 CCASFLAGS
831 CXXCPP
832 CC_FOR_BUILD
833 CPP_FOR_BUILD
834 CFLAGS_FOR_BUILD
835 LDFLAGS_FOR_BUILD
836 CPPFLAGS_FOR_BUILD
837 LIBS_FOR_BUILD'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892   # If the previous option needs an argument, assign it.
893   if test -n "$ac_prev"; then
894     eval $ac_prev=\$ac_option
895     ac_prev=
896     continue
897   fi
898
899   case $ac_option in
900   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901   *=)   ac_optarg= ;;
902   *)    ac_optarg=yes ;;
903   esac
904
905   # Accept the important Cygnus configure options, so we can diagnose typos.
906
907   case $ac_dashdash$ac_option in
908   --)
909     ac_dashdash=yes ;;
910
911   -bindir | --bindir | --bindi | --bind | --bin | --bi)
912     ac_prev=bindir ;;
913   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914     bindir=$ac_optarg ;;
915
916   -build | --build | --buil | --bui | --bu)
917     ac_prev=build_alias ;;
918   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919     build_alias=$ac_optarg ;;
920
921   -cache-file | --cache-file | --cache-fil | --cache-fi \
922   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923     ac_prev=cache_file ;;
924   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926     cache_file=$ac_optarg ;;
927
928   --config-cache | -C)
929     cache_file=config.cache ;;
930
931   -datadir | --datadir | --datadi | --datad)
932     ac_prev=datadir ;;
933   -datadir=* | --datadir=* | --datadi=* | --datad=*)
934     datadir=$ac_optarg ;;
935
936   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937   | --dataroo | --dataro | --datar)
938     ac_prev=datarootdir ;;
939   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941     datarootdir=$ac_optarg ;;
942
943   -disable-* | --disable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       as_fn_error $? "invalid feature name: $ac_useropt"
948     ac_useropt_orig=$ac_useropt
949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950     case $ac_user_opts in
951       *"
952 "enable_$ac_useropt"
953 "*) ;;
954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955          ac_unrecognized_sep=', ';;
956     esac
957     eval enable_$ac_useropt=no ;;
958
959   -docdir | --docdir | --docdi | --doc | --do)
960     ac_prev=docdir ;;
961   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962     docdir=$ac_optarg ;;
963
964   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965     ac_prev=dvidir ;;
966   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967     dvidir=$ac_optarg ;;
968
969   -enable-* | --enable-*)
970     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973       as_fn_error $? "invalid feature name: $ac_useropt"
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=\$ac_optarg ;;
984
985   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987   | --exec | --exe | --ex)
988     ac_prev=exec_prefix ;;
989   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991   | --exec=* | --exe=* | --ex=*)
992     exec_prefix=$ac_optarg ;;
993
994   -gas | --gas | --ga | --g)
995     # Obsolete; use --with-gas.
996     with_gas=yes ;;
997
998   -help | --help | --hel | --he | -h)
999     ac_init_help=long ;;
1000   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001     ac_init_help=recursive ;;
1002   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003     ac_init_help=short ;;
1004
1005   -host | --host | --hos | --ho)
1006     ac_prev=host_alias ;;
1007   -host=* | --host=* | --hos=* | --ho=*)
1008     host_alias=$ac_optarg ;;
1009
1010   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011     ac_prev=htmldir ;;
1012   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013   | --ht=*)
1014     htmldir=$ac_optarg ;;
1015
1016   -includedir | --includedir | --includedi | --included | --include \
1017   | --includ | --inclu | --incl | --inc)
1018     ac_prev=includedir ;;
1019   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020   | --includ=* | --inclu=* | --incl=* | --inc=*)
1021     includedir=$ac_optarg ;;
1022
1023   -infodir | --infodir | --infodi | --infod | --info | --inf)
1024     ac_prev=infodir ;;
1025   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026     infodir=$ac_optarg ;;
1027
1028   -libdir | --libdir | --libdi | --libd)
1029     ac_prev=libdir ;;
1030   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031     libdir=$ac_optarg ;;
1032
1033   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034   | --libexe | --libex | --libe)
1035     ac_prev=libexecdir ;;
1036   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037   | --libexe=* | --libex=* | --libe=*)
1038     libexecdir=$ac_optarg ;;
1039
1040   -localedir | --localedir | --localedi | --localed | --locale)
1041     ac_prev=localedir ;;
1042   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043     localedir=$ac_optarg ;;
1044
1045   -localstatedir | --localstatedir | --localstatedi | --localstated \
1046   | --localstate | --localstat | --localsta | --localst | --locals)
1047     ac_prev=localstatedir ;;
1048   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050     localstatedir=$ac_optarg ;;
1051
1052   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053     ac_prev=mandir ;;
1054   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055     mandir=$ac_optarg ;;
1056
1057   -nfp | --nfp | --nf)
1058     # Obsolete; use --without-fp.
1059     with_fp=no ;;
1060
1061   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062   | --no-cr | --no-c | -n)
1063     no_create=yes ;;
1064
1065   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067     no_recursion=yes ;;
1068
1069   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071   | --oldin | --oldi | --old | --ol | --o)
1072     ac_prev=oldincludedir ;;
1073   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076     oldincludedir=$ac_optarg ;;
1077
1078   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079     ac_prev=prefix ;;
1080   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081     prefix=$ac_optarg ;;
1082
1083   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084   | --program-pre | --program-pr | --program-p)
1085     ac_prev=program_prefix ;;
1086   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088     program_prefix=$ac_optarg ;;
1089
1090   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091   | --program-suf | --program-su | --program-s)
1092     ac_prev=program_suffix ;;
1093   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095     program_suffix=$ac_optarg ;;
1096
1097   -program-transform-name | --program-transform-name \
1098   | --program-transform-nam | --program-transform-na \
1099   | --program-transform-n | --program-transform- \
1100   | --program-transform | --program-transfor \
1101   | --program-transfo | --program-transf \
1102   | --program-trans | --program-tran \
1103   | --progr-tra | --program-tr | --program-t)
1104     ac_prev=program_transform_name ;;
1105   -program-transform-name=* | --program-transform-name=* \
1106   | --program-transform-nam=* | --program-transform-na=* \
1107   | --program-transform-n=* | --program-transform-=* \
1108   | --program-transform=* | --program-transfor=* \
1109   | --program-transfo=* | --program-transf=* \
1110   | --program-trans=* | --program-tran=* \
1111   | --progr-tra=* | --program-tr=* | --program-t=*)
1112     program_transform_name=$ac_optarg ;;
1113
1114   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115     ac_prev=pdfdir ;;
1116   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117     pdfdir=$ac_optarg ;;
1118
1119   -psdir | --psdir | --psdi | --psd | --ps)
1120     ac_prev=psdir ;;
1121   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122     psdir=$ac_optarg ;;
1123
1124   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125   | -silent | --silent | --silen | --sile | --sil)
1126     silent=yes ;;
1127
1128   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129     ac_prev=sbindir ;;
1130   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131   | --sbi=* | --sb=*)
1132     sbindir=$ac_optarg ;;
1133
1134   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136   | --sharedst | --shareds | --shared | --share | --shar \
1137   | --sha | --sh)
1138     ac_prev=sharedstatedir ;;
1139   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142   | --sha=* | --sh=*)
1143     sharedstatedir=$ac_optarg ;;
1144
1145   -site | --site | --sit)
1146     ac_prev=site ;;
1147   -site=* | --site=* | --sit=*)
1148     site=$ac_optarg ;;
1149
1150   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151     ac_prev=srcdir ;;
1152   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153     srcdir=$ac_optarg ;;
1154
1155   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156   | --syscon | --sysco | --sysc | --sys | --sy)
1157     ac_prev=sysconfdir ;;
1158   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160     sysconfdir=$ac_optarg ;;
1161
1162   -target | --target | --targe | --targ | --tar | --ta | --t)
1163     ac_prev=target_alias ;;
1164   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165     target_alias=$ac_optarg ;;
1166
1167   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168     verbose=yes ;;
1169
1170   -version | --version | --versio | --versi | --vers | -V)
1171     ac_init_version=: ;;
1172
1173   -with-* | --with-*)
1174     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177       as_fn_error $? "invalid package name: $ac_useropt"
1178     ac_useropt_orig=$ac_useropt
1179     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180     case $ac_user_opts in
1181       *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185          ac_unrecognized_sep=', ';;
1186     esac
1187     eval with_$ac_useropt=\$ac_optarg ;;
1188
1189   -without-* | --without-*)
1190     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193       as_fn_error $? "invalid package name: $ac_useropt"
1194     ac_useropt_orig=$ac_useropt
1195     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196     case $ac_user_opts in
1197       *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201          ac_unrecognized_sep=', ';;
1202     esac
1203     eval with_$ac_useropt=no ;;
1204
1205   --x)
1206     # Obsolete; use --with-x.
1207     with_x=yes ;;
1208
1209   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210   | --x-incl | --x-inc | --x-in | --x-i)
1211     ac_prev=x_includes ;;
1212   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214     x_includes=$ac_optarg ;;
1215
1216   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218     ac_prev=x_libraries ;;
1219   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221     x_libraries=$ac_optarg ;;
1222
1223   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225     ;;
1226
1227   *=*)
1228     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229     # Reject names that are not valid shell variable names.
1230     case $ac_envvar in #(
1231       '' | [0-9]* | *[!_$as_cr_alnum]* )
1232       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233     esac
1234     eval $ac_envvar=\$ac_optarg
1235     export $ac_envvar ;;
1236
1237   *)
1238     # FIXME: should be removed in autoconf 3.0.
1239     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243     ;;
1244
1245   esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250   as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254   case $enable_option_checking in
1255     no) ;;
1256     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258   esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263                 datadir sysconfdir sharedstatedir localstatedir includedir \
1264                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265                 libdir localedir mandir
1266 do
1267   eval ac_val=\$$ac_var
1268   # Remove trailing slashes.
1269   case $ac_val in
1270     */ )
1271       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272       eval $ac_var=\$ac_val;;
1273   esac
1274   # Be sure to have absolute directory names.
1275   case $ac_val in
1276     [\\/$]* | ?:[\\/]* )  continue;;
1277     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278   esac
1279   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291   if test "x$build_alias" = x; then
1292     cross_compiling=maybe
1293     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1294     If a cross compiler is detected then cross compile mode will be used" >&2
1295   elif test "x$build_alias" != "x$host_alias"; then
1296     cross_compiling=yes
1297   fi
1298 fi
1299
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303 test "$silent" = yes && exec 6>/dev/null
1304
1305
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309   as_fn_error $? "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311   as_fn_error $? "pwd does not report name of working directory"
1312
1313
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316   ac_srcdir_defaulted=yes
1317   # Try the directory containing this script, then the parent directory.
1318   ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320          X"$as_myself" : 'X\(//\)[^/]' \| \
1321          X"$as_myself" : 'X\(//\)$' \| \
1322          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)[^/].*/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\/\)$/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\).*/{
1337             s//\1/
1338             q
1339           }
1340           s/.*/./; q'`
1341   srcdir=$ac_confdir
1342   if test ! -r "$srcdir/$ac_unique_file"; then
1343     srcdir=..
1344   fi
1345 else
1346   ac_srcdir_defaulted=no
1347 fi
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355         pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358   srcdir=.
1359 fi
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_env_${ac_var}_value=\$${ac_var}
1369   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1372
1373 #
1374 # Report the --help message.
1375 #
1376 if test "$ac_init_help" = "long"; then
1377   # Omit some internal or obsolete options to make the list less imposing.
1378   # This message is too long to be a string in the A/UX 3.1 sh.
1379   cat <<_ACEOF
1380 \`configure' configures bcusdk 0.0.5 to adapt to many kinds of systems.
1381
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE.  See below for descriptions of some of the useful variables.
1386
1387 Defaults for the options are specified in brackets.
1388
1389 Configuration:
1390   -h, --help              display this help and exit
1391       --help=short        display options specific to this package
1392       --help=recursive    display the short help of all the included packages
1393   -V, --version           display version information and exit
1394   -q, --quiet, --silent   do not print \`checking ...' messages
1395       --cache-file=FILE   cache test results in FILE [disabled]
1396   -C, --config-cache      alias for \`--cache-file=config.cache'
1397   -n, --no-create         do not create output files
1398       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1399
1400 Installation directories:
1401   --prefix=PREFIX         install architecture-independent files in PREFIX
1402                           [$ac_default_prefix]
1403   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1404                           [PREFIX]
1405
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1410
1411 For better control, use the options below.
1412
1413 Fine tuning of the installation directories:
1414   --bindir=DIR            user executables [EPREFIX/bin]
1415   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1416   --libexecdir=DIR        program executables [EPREFIX/libexec]
1417   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1418   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1419   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1420   --libdir=DIR            object code libraries [EPREFIX/lib]
1421   --includedir=DIR        C header files [PREFIX/include]
1422   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1423   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1424   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1425   --infodir=DIR           info documentation [DATAROOTDIR/info]
1426   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1427   --mandir=DIR            man documentation [DATAROOTDIR/man]
1428   --docdir=DIR            documentation root [DATAROOTDIR/doc/bcusdk]
1429   --htmldir=DIR           html documentation [DOCDIR]
1430   --dvidir=DIR            dvi documentation [DOCDIR]
1431   --pdfdir=DIR            pdf documentation [DOCDIR]
1432   --psdir=DIR             ps documentation [DOCDIR]
1433 _ACEOF
1434
1435   cat <<\_ACEOF
1436
1437 Program names:
1438   --program-prefix=PREFIX            prepend PREFIX to installed program names
1439   --program-suffix=SUFFIX            append SUFFIX to installed program names
1440   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1441
1442 System types:
1443   --build=BUILD     configure for building on BUILD [guessed]
1444   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449   case $ac_init_help in
1450      short | recursive ) echo "Configuration of bcusdk 0.0.5:";;
1451    esac
1452   cat <<\_ACEOF
1453
1454 Optional Features:
1455   --disable-option-checking  ignore unrecognized --enable/--with options
1456   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1457   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1458   --disable-dependency-tracking  speeds up one-time build
1459   --enable-dependency-tracking   do not reject slow dependency extractors
1460   --enable-shared[=PKGS]  build shared libraries [default=yes]
1461   --enable-static[=PKGS]  build static libraries [default=yes]
1462   --enable-fast-install[=PKGS]
1463                           optimize for fast installation [default=yes]
1464   --disable-libtool-lock  avoid locking (might break parallel builds)
1465   --enable-onlyeibd             build only eibd (requires no libxml and m68hc05-gnu)
1466   --disable-xmltest       Do not try to compile and run a test LIBXML program
1467   --enable-ft12         enable FT1.2 backend
1468   --enable-pei16        enable BCU1 kernel driver backend
1469   --enable-tpuart       enable TPUART kernel driver backend (deprecated)
1470   --enable-pei16s       enable BCU1 user driver backend (very experimental)
1471   --enable-tpuarts      enable TPUART user driver backend
1472   --enable-eibnetip     enable EIBnet/IP routing backend
1473   --enable-eibnetiptunnel       enable EIBnet/IP tunneling backend
1474   --enable-usb                  enable USB backend
1475   --enable-eibnetipserver       enable EIBnet/IP server frontend
1476   --enable-groupcache           enable Group Cache (default: yes)
1477   --enable-java         build java client library
1478
1479 Optional Packages:
1480   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482   --with-pic              try to use only PIC/non-PIC objects [default=use
1483                           both]
1484   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1485   --with-sysroot=DIR Search for dependent libraries within DIR
1486                         (or the compiler's sysroot if not specified).
1487   --with-pth=ARG        Build with pthsem Library  (default=yes)
1488   --with-pth-test         Perform pthsem Sanity Test (default=yes)
1489   --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
1490   --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1491   --without-libstdc     don't use function from libstdc++
1492
1493 Some influential environment variables:
1494   CC          C compiler command
1495   CFLAGS      C compiler flags
1496   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1497               nonstandard directory <lib dir>
1498   LIBS        libraries to pass to the linker, e.g. -l<library>
1499   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1500               you have headers in a nonstandard directory <include dir>
1501   CXX         C++ compiler command
1502   CXXFLAGS    C++ compiler flags
1503   CPP         C preprocessor
1504   YACC        The `Yet Another Compiler Compiler' implementation to use.
1505               Defaults to the first program found out of: `bison -y', `byacc',
1506               `yacc'.
1507   YFLAGS      The list of arguments that will be passed by default to $YACC.
1508               This script will default YFLAGS to the empty string to avoid a
1509               default value of `-d' given by some make applications.
1510   CCAS        assembler compiler command (defaults to CC)
1511   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1512   CXXCPP      C++ preprocessor
1513   CC_FOR_BUILD
1514               build system C compiler
1515   CPP_FOR_BUILD
1516               build system C preprocessor
1517   CFLAGS_FOR_BUILD
1518               build system C compiler flags
1519   LDFLAGS_FOR_BUILD
1520               build system C linker flags
1521   CPPFLAGS_FOR_BUILD
1522               build system preprocessor flags
1523   LIBS_FOR_BUILD
1524               build system LIBS variable
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 Report bugs to the package provider.
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535   # If there are subdirs, report their specific --help.
1536   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537     test -d "$ac_dir" ||
1538       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539       continue
1540     ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546   # A ".." for each directory in $ac_dir_suffix.
1547   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548   case $ac_top_builddir_sub in
1549   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551   esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559   .)  # We are building in place.
1560     ac_srcdir=.
1561     ac_top_srcdir=$ac_top_builddir_sub
1562     ac_abs_top_srcdir=$ac_pwd ;;
1563   [\\/]* | ?:[\\/]* )  # Absolute name.
1564     ac_srcdir=$srcdir$ac_dir_suffix;
1565     ac_top_srcdir=$srcdir
1566     ac_abs_top_srcdir=$srcdir ;;
1567   *) # Relative name.
1568     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569     ac_top_srcdir=$ac_top_build_prefix$srcdir
1570     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574     cd "$ac_dir" || { ac_status=$?; continue; }
1575     # Check for guested configure.
1576     if test -f "$ac_srcdir/configure.gnu"; then
1577       echo &&
1578       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579     elif test -f "$ac_srcdir/configure"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure" --help=recursive
1582     else
1583       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584     fi || ac_status=$?
1585     cd "$ac_pwd" || { ac_status=$?; break; }
1586   done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591   cat <<\_ACEOF
1592 bcusdk configure 0.0.5
1593 generated by GNU Autoconf 2.68
1594
1595 Copyright (C) 2010 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599   exit
1600 fi
1601
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1605
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1610 {
1611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612   rm -f conftest.$ac_objext
1613   if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_compile") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } && {
1629          test -z "$ac_c_werror_flag" ||
1630          test ! -s conftest.err
1631        } && test -s conftest.$ac_objext; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637         ac_retval=1
1638 fi
1639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640   as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_compile
1643
1644 # ac_fn_cxx_try_compile LINENO
1645 # ----------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_cxx_try_compile ()
1648 {
1649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650   rm -f conftest.$ac_objext
1651   if { { ac_try="$ac_compile"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_compile") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } && {
1667          test -z "$ac_cxx_werror_flag" ||
1668          test ! -s conftest.err
1669        } && test -s conftest.$ac_objext; then :
1670   ac_retval=0
1671 else
1672   $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675         ac_retval=1
1676 fi
1677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678   as_fn_set_status $ac_retval
1679
1680 } # ac_fn_cxx_try_compile
1681
1682 # ac_fn_c_try_cpp LINENO
1683 # ----------------------
1684 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_cpp ()
1686 {
1687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688   if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 case "(($ac_try" in
1690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691   *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696   ac_status=$?
1697   if test -s conftest.err; then
1698     grep -v '^ *+' conftest.err >conftest.er1
1699     cat conftest.er1 >&5
1700     mv -f conftest.er1 conftest.err
1701   fi
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; } > conftest.i && {
1704          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705          test ! -s conftest.err
1706        }; then :
1707   ac_retval=0
1708 else
1709   $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712     ac_retval=1
1713 fi
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_cpp
1718
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1724 {
1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726   if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733   (eval "$ac_link") 2>&5
1734   ac_status=$?
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737   { { case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_try") 2>&5
1744   ac_status=$?
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; }; }; then :
1747   ac_retval=0
1748 else
1749   $as_echo "$as_me: program exited with status $ac_status" >&5
1750        $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753        ac_retval=$ac_status
1754 fi
1755   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_run
1760
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_link ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   rm -f conftest.$ac_objext conftest$ac_exeext
1768   if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771   *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775   (eval "$ac_link") 2>conftest.err
1776   ac_status=$?
1777   if test -s conftest.err; then
1778     grep -v '^ *+' conftest.err >conftest.er1
1779     cat conftest.er1 >&5
1780     mv -f conftest.er1 conftest.err
1781   fi
1782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783   test $ac_status = 0; } && {
1784          test -z "$ac_c_werror_flag" ||
1785          test ! -s conftest.err
1786        } && test -s conftest$ac_exeext && {
1787          test "$cross_compiling" = yes ||
1788          $as_test_x conftest$ac_exeext
1789        }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795         ac_retval=1
1796 fi
1797   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799   # interfere with the next link command; also delete a directory that is
1800   # left behind by Apple's compiler.  We do this before executing the actions.
1801   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803   as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_link
1806
1807 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists and can be compiled using the include files in
1810 # INCLUDES, setting the cache variable VAR accordingly.
1811 ac_fn_c_check_header_compile ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817   $as_echo_n "(cached) " >&6
1818 else
1819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 $4
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825   eval "$3=yes"
1826 else
1827   eval "$3=no"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_header_compile
1837
1838 # ac_fn_c_check_func LINENO FUNC VAR
1839 # ----------------------------------
1840 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1841 ac_fn_c_check_func ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847   $as_echo_n "(cached) " >&6
1848 else
1849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h.  */
1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1853 #define $2 innocuous_$2
1854
1855 /* System header to define __stub macros and hopefully few prototypes,
1856     which can conflict with char $2 (); below.
1857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1858     <limits.h> exists even on freestanding compilers.  */
1859
1860 #ifdef __STDC__
1861 # include <limits.h>
1862 #else
1863 # include <assert.h>
1864 #endif
1865
1866 #undef $2
1867
1868 /* Override any GCC internal prototype to avoid an error.
1869    Use char because int might match the return type of a GCC
1870    builtin and then its argument prototype would still apply.  */
1871 #ifdef __cplusplus
1872 extern "C"
1873 #endif
1874 char $2 ();
1875 /* The GNU C library defines this for functions which it implements
1876     to always fail with ENOSYS.  Some functions are actually named
1877     something starting with __ and the normal name is an alias.  */
1878 #if defined __stub_$2 || defined __stub___$2
1879 choke me
1880 #endif
1881
1882 int
1883 main ()
1884 {
1885 return $2 ();
1886   ;
1887   return 0;
1888 }
1889 _ACEOF
1890 if ac_fn_c_try_link "$LINENO"; then :
1891   eval "$3=yes"
1892 else
1893   eval "$3=no"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext \
1896     conftest$ac_exeext conftest.$ac_ext
1897 fi
1898 eval ac_res=\$$3
1899                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_check_func
1904
1905 # ac_fn_cxx_try_cpp LINENO
1906 # ------------------------
1907 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_cpp ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   if { { ac_try="$ac_cpp conftest.$ac_ext"
1912 case "(($ac_try" in
1913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914   *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1919   ac_status=$?
1920   if test -s conftest.err; then
1921     grep -v '^ *+' conftest.err >conftest.er1
1922     cat conftest.er1 >&5
1923     mv -f conftest.er1 conftest.err
1924   fi
1925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926   test $ac_status = 0; } > conftest.i && {
1927          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1928          test ! -s conftest.err
1929        }; then :
1930   ac_retval=0
1931 else
1932   $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935     ac_retval=1
1936 fi
1937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938   as_fn_set_status $ac_retval
1939
1940 } # ac_fn_cxx_try_cpp
1941
1942 # ac_fn_cxx_try_link LINENO
1943 # -------------------------
1944 # Try to link conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_cxx_try_link ()
1946 {
1947   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948   rm -f conftest.$ac_objext conftest$ac_exeext
1949   if { { ac_try="$ac_link"
1950 case "(($ac_try" in
1951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952   *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956   (eval "$ac_link") 2>conftest.err
1957   ac_status=$?
1958   if test -s conftest.err; then
1959     grep -v '^ *+' conftest.err >conftest.er1
1960     cat conftest.er1 >&5
1961     mv -f conftest.er1 conftest.err
1962   fi
1963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964   test $ac_status = 0; } && {
1965          test -z "$ac_cxx_werror_flag" ||
1966          test ! -s conftest.err
1967        } && test -s conftest$ac_exeext && {
1968          test "$cross_compiling" = yes ||
1969          $as_test_x conftest$ac_exeext
1970        }; then :
1971   ac_retval=0
1972 else
1973   $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1975
1976         ac_retval=1
1977 fi
1978   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1979   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1980   # interfere with the next link command; also delete a directory that is
1981   # left behind by Apple's compiler.  We do this before executing the actions.
1982   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1983   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984   as_fn_set_status $ac_retval
1985
1986 } # ac_fn_cxx_try_link
1987
1988 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1989 # -------------------------------------------------------
1990 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1991 # the include files in INCLUDES and setting the cache variable VAR
1992 # accordingly.
1993 ac_fn_c_check_header_mongrel ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   if eval \${$3+:} false; then :
1997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000   $as_echo_n "(cached) " >&6
2001 fi
2002 eval ac_res=\$$3
2003                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 else
2006   # Is the header compilable?
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2008 $as_echo_n "checking $2 usability... " >&6; }
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h.  */
2011 $4
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015   ac_header_compiler=yes
2016 else
2017   ac_header_compiler=no
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2021 $as_echo "$ac_header_compiler" >&6; }
2022
2023 # Is the header present?
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2025 $as_echo_n "checking $2 presence... " >&6; }
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 #include <$2>
2029 _ACEOF
2030 if ac_fn_c_try_cpp "$LINENO"; then :
2031   ac_header_preproc=yes
2032 else
2033   ac_header_preproc=no
2034 fi
2035 rm -f conftest.err conftest.i conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2037 $as_echo "$ac_header_preproc" >&6; }
2038
2039 # So?  What about this header?
2040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2041   yes:no: )
2042     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2043 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2044     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046     ;;
2047   no:yes:* )
2048     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2049 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2051 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2052     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2053 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2054     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2055 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2056     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2057 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2058     ;;
2059 esac
2060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063   $as_echo_n "(cached) " >&6
2064 else
2065   eval "$3=\$ac_header_compiler"
2066 fi
2067 eval ac_res=\$$3
2068                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 fi
2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072
2073 } # ac_fn_c_check_header_mongrel
2074
2075 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2076 # ----------------------------------------------
2077 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2078 ac_fn_c_check_header_preproc ()
2079 {
2080   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084   $as_echo_n "(cached) " >&6
2085 else
2086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h.  */
2088 #include <$2>
2089 _ACEOF
2090 if ac_fn_c_try_cpp "$LINENO"; then :
2091   eval "$3=yes"
2092 else
2093   eval "$3=no"
2094 fi
2095 rm -f conftest.err conftest.i conftest.$ac_ext
2096 fi
2097 eval ac_res=\$$3
2098                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
2102 } # ac_fn_c_check_header_preproc
2103
2104 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2105 # ---------------------------------------------
2106 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2107 # accordingly.
2108 ac_fn_c_check_decl ()
2109 {
2110   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111   as_decl_name=`echo $2|sed 's/ *(.*//'`
2112   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2114 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2115 if eval \${$3+:} false; then :
2116   $as_echo_n "(cached) " >&6
2117 else
2118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h.  */
2120 $4
2121 int
2122 main ()
2123 {
2124 #ifndef $as_decl_name
2125 #ifdef __cplusplus
2126   (void) $as_decl_use;
2127 #else
2128   (void) $as_decl_name;
2129 #endif
2130 #endif
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137   eval "$3=yes"
2138 else
2139   eval "$3=no"
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 fi
2143 eval ac_res=\$$3
2144                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147
2148 } # ac_fn_c_check_decl
2149
2150 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2151 # ----------------------------------------------------
2152 # Tries to find if the field MEMBER exists in type AGGR, after including
2153 # INCLUDES, setting cache variable VAR accordingly.
2154 ac_fn_c_check_member ()
2155 {
2156   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2158 $as_echo_n "checking for $2.$3... " >&6; }
2159 if eval \${$4+:} false; then :
2160   $as_echo_n "(cached) " >&6
2161 else
2162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $5
2165 int
2166 main ()
2167 {
2168 static $2 ac_aggr;
2169 if (ac_aggr.$3)
2170 return 0;
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176   eval "$4=yes"
2177 else
2178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h.  */
2180 $5
2181 int
2182 main ()
2183 {
2184 static $2 ac_aggr;
2185 if (sizeof ac_aggr.$3)
2186 return 0;
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192   eval "$4=yes"
2193 else
2194   eval "$4=no"
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 fi
2200 eval ac_res=\$$4
2201                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202 $as_echo "$ac_res" >&6; }
2203   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204
2205 } # ac_fn_c_check_member
2206 cat >config.log <<_ACEOF
2207 This file contains any messages produced by compilers while
2208 running configure, to aid debugging if configure makes a mistake.
2209
2210 It was created by bcusdk $as_me 0.0.5, which was
2211 generated by GNU Autoconf 2.68.  Invocation command line was
2212
2213   $ $0 $@
2214
2215 _ACEOF
2216 exec 5>>config.log
2217 {
2218 cat <<_ASUNAME
2219 ## --------- ##
2220 ## Platform. ##
2221 ## --------- ##
2222
2223 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2224 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2225 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2226 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2227 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2228
2229 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2230 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2231
2232 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2233 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2234 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2235 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2236 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2237 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2238 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2239
2240 _ASUNAME
2241
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245   IFS=$as_save_IFS
2246   test -z "$as_dir" && as_dir=.
2247     $as_echo "PATH: $as_dir"
2248   done
2249 IFS=$as_save_IFS
2250
2251 } >&5
2252
2253 cat >&5 <<_ACEOF
2254
2255
2256 ## ----------- ##
2257 ## Core tests. ##
2258 ## ----------- ##
2259
2260 _ACEOF
2261
2262
2263 # Keep a trace of the command line.
2264 # Strip out --no-create and --no-recursion so they do not pile up.
2265 # Strip out --silent because we don't want to record it for future runs.
2266 # Also quote any args containing shell meta-characters.
2267 # Make two passes to allow for proper duplicate-argument suppression.
2268 ac_configure_args=
2269 ac_configure_args0=
2270 ac_configure_args1=
2271 ac_must_keep_next=false
2272 for ac_pass in 1 2
2273 do
2274   for ac_arg
2275   do
2276     case $ac_arg in
2277     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2278     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2279     | -silent | --silent | --silen | --sile | --sil)
2280       continue ;;
2281     *\'*)
2282       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2283     esac
2284     case $ac_pass in
2285     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2286     2)
2287       as_fn_append ac_configure_args1 " '$ac_arg'"
2288       if test $ac_must_keep_next = true; then
2289         ac_must_keep_next=false # Got value, back to normal.
2290       else
2291         case $ac_arg in
2292           *=* | --config-cache | -C | -disable-* | --disable-* \
2293           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2294           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2295           | -with-* | --with-* | -without-* | --without-* | --x)
2296             case "$ac_configure_args0 " in
2297               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2298             esac
2299             ;;
2300           -* ) ac_must_keep_next=true ;;
2301         esac
2302       fi
2303       as_fn_append ac_configure_args " '$ac_arg'"
2304       ;;
2305     esac
2306   done
2307 done
2308 { ac_configure_args0=; unset ac_configure_args0;}
2309 { ac_configure_args1=; unset ac_configure_args1;}
2310
2311 # When interrupted or exit'd, cleanup temporary files, and complete
2312 # config.log.  We remove comments because anyway the quotes in there
2313 # would cause problems or look ugly.
2314 # WARNING: Use '\'' to represent an apostrophe within the trap.
2315 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2316 trap 'exit_status=$?
2317   # Save into config.log some information that might help in debugging.
2318   {
2319     echo
2320
2321     $as_echo "## ---------------- ##
2322 ## Cache variables. ##
2323 ## ---------------- ##"
2324     echo
2325     # The following way of writing the cache mishandles newlines in values,
2326 (
2327   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2328     eval ac_val=\$$ac_var
2329     case $ac_val in #(
2330     *${as_nl}*)
2331       case $ac_var in #(
2332       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2333 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2334       esac
2335       case $ac_var in #(
2336       _ | IFS | as_nl) ;; #(
2337       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2338       *) { eval $ac_var=; unset $ac_var;} ;;
2339       esac ;;
2340     esac
2341   done
2342   (set) 2>&1 |
2343     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2344     *${as_nl}ac_space=\ *)
2345       sed -n \
2346         "s/'\''/'\''\\\\'\'''\''/g;
2347           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2348       ;; #(
2349     *)
2350       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2351       ;;
2352     esac |
2353     sort
2354 )
2355     echo
2356
2357     $as_echo "## ----------------- ##
2358 ## Output variables. ##
2359 ## ----------------- ##"
2360     echo
2361     for ac_var in $ac_subst_vars
2362     do
2363       eval ac_val=\$$ac_var
2364       case $ac_val in
2365       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366       esac
2367       $as_echo "$ac_var='\''$ac_val'\''"
2368     done | sort
2369     echo
2370
2371     if test -n "$ac_subst_files"; then
2372       $as_echo "## ------------------- ##
2373 ## File substitutions. ##
2374 ## ------------------- ##"
2375       echo
2376       for ac_var in $ac_subst_files
2377       do
2378         eval ac_val=\$$ac_var
2379         case $ac_val in
2380         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381         esac
2382         $as_echo "$ac_var='\''$ac_val'\''"
2383       done | sort
2384       echo
2385     fi
2386
2387     if test -s confdefs.h; then
2388       $as_echo "## ----------- ##
2389 ## confdefs.h. ##
2390 ## ----------- ##"
2391       echo
2392       cat confdefs.h
2393       echo
2394     fi
2395     test "$ac_signal" != 0 &&
2396       $as_echo "$as_me: caught signal $ac_signal"
2397     $as_echo "$as_me: exit $exit_status"
2398   } >&5
2399   rm -f core *.core core.conftest.* &&
2400     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2401     exit $exit_status
2402 ' 0
2403 for ac_signal in 1 2 13 15; do
2404   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2405 done
2406 ac_signal=0
2407
2408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2409 rm -f -r conftest* confdefs.h
2410
2411 $as_echo "/* confdefs.h */" > confdefs.h
2412
2413 # Predefined preprocessor variables.
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_NAME "$PACKAGE_NAME"
2417 _ACEOF
2418
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2421 _ACEOF
2422
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2425 _ACEOF
2426
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_STRING "$PACKAGE_STRING"
2429 _ACEOF
2430
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2433 _ACEOF
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_URL "$PACKAGE_URL"
2437 _ACEOF
2438
2439
2440 # Let the site file select an alternate cache file if it wants to.
2441 # Prefer an explicitly selected file to automatically selected ones.
2442 ac_site_file1=NONE
2443 ac_site_file2=NONE
2444 if test -n "$CONFIG_SITE"; then
2445   # We do not want a PATH search for config.site.
2446   case $CONFIG_SITE in #((
2447     -*)  ac_site_file1=./$CONFIG_SITE;;
2448     */*) ac_site_file1=$CONFIG_SITE;;
2449     *)   ac_site_file1=./$CONFIG_SITE;;
2450   esac
2451 elif test "x$prefix" != xNONE; then
2452   ac_site_file1=$prefix/share/config.site
2453   ac_site_file2=$prefix/etc/config.site
2454 else
2455   ac_site_file1=$ac_default_prefix/share/config.site
2456   ac_site_file2=$ac_default_prefix/etc/config.site
2457 fi
2458 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2459 do
2460   test "x$ac_site_file" = xNONE && continue
2461   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2462     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2463 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2464     sed 's/^/| /' "$ac_site_file" >&5
2465     . "$ac_site_file" \
2466       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468 as_fn_error $? "failed to load site script $ac_site_file
2469 See \`config.log' for more details" "$LINENO" 5; }
2470   fi
2471 done
2472
2473 if test -r "$cache_file"; then
2474   # Some versions of bash will fail to source /dev/null (special files
2475   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2476   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2477     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2478 $as_echo "$as_me: loading cache $cache_file" >&6;}
2479     case $cache_file in
2480       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2481       *)                      . "./$cache_file";;
2482     esac
2483   fi
2484 else
2485   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2486 $as_echo "$as_me: creating cache $cache_file" >&6;}
2487   >$cache_file
2488 fi
2489
2490 # Check that the precious variables saved in the cache have kept the same
2491 # value.
2492 ac_cache_corrupted=false
2493 for ac_var in $ac_precious_vars; do
2494   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2495   eval ac_new_set=\$ac_env_${ac_var}_set
2496   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2497   eval ac_new_val=\$ac_env_${ac_var}_value
2498   case $ac_old_set,$ac_new_set in
2499     set,)
2500       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2501 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2502       ac_cache_corrupted=: ;;
2503     ,set)
2504       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2505 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2506       ac_cache_corrupted=: ;;
2507     ,);;
2508     *)
2509       if test "x$ac_old_val" != "x$ac_new_val"; then
2510         # differences in whitespace do not lead to failure.
2511         ac_old_val_w=`echo x $ac_old_val`
2512         ac_new_val_w=`echo x $ac_new_val`
2513         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2514           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2515 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2516           ac_cache_corrupted=:
2517         else
2518           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2519 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2520           eval $ac_var=\$ac_old_val
2521         fi
2522         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2523 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2524         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2525 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2526       fi;;
2527   esac
2528   # Pass precious variables to config.status.
2529   if test "$ac_new_set" = set; then
2530     case $ac_new_val in
2531     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2532     *) ac_arg=$ac_var=$ac_new_val ;;
2533     esac
2534     case " $ac_configure_args " in
2535       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2536       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2537     esac
2538   fi
2539 done
2540 if $ac_cache_corrupted; then
2541   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2544 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2545   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2546 fi
2547 ## -------------------- ##
2548 ## Main body of script. ##
2549 ## -------------------- ##
2550
2551 ac_ext=c
2552 ac_cpp='$CPP $CPPFLAGS'
2553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556
2557
2558 am__api_version='1.11'
2559
2560 ac_aux_dir=
2561 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2562   if test -f "$ac_dir/install-sh"; then
2563     ac_aux_dir=$ac_dir
2564     ac_install_sh="$ac_aux_dir/install-sh -c"
2565     break
2566   elif test -f "$ac_dir/install.sh"; then
2567     ac_aux_dir=$ac_dir
2568     ac_install_sh="$ac_aux_dir/install.sh -c"
2569     break
2570   elif test -f "$ac_dir/shtool"; then
2571     ac_aux_dir=$ac_dir
2572     ac_install_sh="$ac_aux_dir/shtool install -c"
2573     break
2574   fi
2575 done
2576 if test -z "$ac_aux_dir"; then
2577   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2578 fi
2579
2580 # These three variables are undocumented and unsupported,
2581 # and are intended to be withdrawn in a future Autoconf release.
2582 # They can cause serious problems if a builder's source tree is in a directory
2583 # whose full name contains unusual characters.
2584 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2585 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2586 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2587
2588
2589 # Find a good install program.  We prefer a C program (faster),
2590 # so one script is as good as another.  But avoid the broken or
2591 # incompatible versions:
2592 # SysV /etc/install, /usr/sbin/install
2593 # SunOS /usr/etc/install
2594 # IRIX /sbin/install
2595 # AIX /bin/install
2596 # AmigaOS /C/install, which installs bootblocks on floppy discs
2597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2600 # OS/2's system install, which has a completely different semantic
2601 # ./install, which can be erroneously created by make from ./install.sh.
2602 # Reject install programs that cannot install multiple files.
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2604 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2605 if test -z "$INSTALL"; then
2606 if ${ac_cv_path_install+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614     # Account for people who put trailing slashes in PATH elements.
2615 case $as_dir/ in #((
2616   ./ | .// | /[cC]/* | \
2617   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2618   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2619   /usr/ucb/* ) ;;
2620   *)
2621     # OSF1 and SCO ODT 3.0 have their own names for install.
2622     # Don't use installbsd from OSF since it installs stuff as root
2623     # by default.
2624     for ac_prog in ginstall scoinst install; do
2625       for ac_exec_ext in '' $ac_executable_extensions; do
2626         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2627           if test $ac_prog = install &&
2628             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2629             # AIX install.  It has an incompatible calling convention.
2630             :
2631           elif test $ac_prog = install &&
2632             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2633             # program-specific install script used by HP pwplus--don't use.
2634             :
2635           else
2636             rm -rf conftest.one conftest.two conftest.dir
2637             echo one > conftest.one
2638             echo two > conftest.two
2639             mkdir conftest.dir
2640             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2641               test -s conftest.one && test -s conftest.two &&
2642               test -s conftest.dir/conftest.one &&
2643               test -s conftest.dir/conftest.two
2644             then
2645               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2646               break 3
2647             fi
2648           fi
2649         fi
2650       done
2651     done
2652     ;;
2653 esac
2654
2655   done
2656 IFS=$as_save_IFS
2657
2658 rm -rf conftest.one conftest.two conftest.dir
2659
2660 fi
2661   if test "${ac_cv_path_install+set}" = set; then
2662     INSTALL=$ac_cv_path_install
2663   else
2664     # As a last resort, use the slow shell script.  Don't cache a
2665     # value for INSTALL within a source directory, because that will
2666     # break other packages using the cache if that directory is
2667     # removed, or if the value is a relative name.
2668     INSTALL=$ac_install_sh
2669   fi
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2672 $as_echo "$INSTALL" >&6; }
2673
2674 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2675 # It thinks the first close brace ends the variable substitution.
2676 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2677
2678 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2679
2680 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2681
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2683 $as_echo_n "checking whether build environment is sane... " >&6; }
2684 # Just in case
2685 sleep 1
2686 echo timestamp > conftest.file
2687 # Reject unsafe characters in $srcdir or the absolute working directory
2688 # name.  Accept space and tab only in the latter.
2689 am_lf='
2690 '
2691 case `pwd` in
2692   *[\\\"\#\$\&\'\`$am_lf]*)
2693     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2694 esac
2695 case $srcdir in
2696   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2697     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2698 esac
2699
2700 # Do `set' in a subshell so we don't clobber the current shell's
2701 # arguments.  Must try -L first in case configure is actually a
2702 # symlink; some systems play weird games with the mod time of symlinks
2703 # (eg FreeBSD returns the mod time of the symlink's containing
2704 # directory).
2705 if (
2706    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2707    if test "$*" = "X"; then
2708       # -L didn't work.
2709       set X `ls -t "$srcdir/configure" conftest.file`
2710    fi
2711    rm -f conftest.file
2712    if test "$*" != "X $srcdir/configure conftest.file" \
2713       && test "$*" != "X conftest.file $srcdir/configure"; then
2714
2715       # If neither matched, then we have a broken ls.  This can happen
2716       # if, for instance, CONFIG_SHELL is bash and it inherits a
2717       # broken ls alias from the environment.  This has actually
2718       # happened.  Such a system could not be considered "sane".
2719       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2720 alias in your environment" "$LINENO" 5
2721    fi
2722
2723    test "$2" = conftest.file
2724    )
2725 then
2726    # Ok.
2727    :
2728 else
2729    as_fn_error $? "newly created file is older than distributed files!
2730 Check your system clock" "$LINENO" 5
2731 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2733 $as_echo "yes" >&6; }
2734 test "$program_prefix" != NONE &&
2735   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2736 # Use a double $ so make ignores it.
2737 test "$program_suffix" != NONE &&
2738   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2739 # Double any \ or $.
2740 # By default was `s,x,x', remove it if useless.
2741 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2742 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2743
2744 # expand $ac_aux_dir to an absolute path
2745 am_aux_dir=`cd $ac_aux_dir && pwd`
2746
2747 if test x"${MISSING+set}" != xset; then
2748   case $am_aux_dir in
2749   *\ * | *\     *)
2750     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2751   *)
2752     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2753   esac
2754 fi
2755 # Use eval to expand $SHELL
2756 if eval "$MISSING --run true"; then
2757   am_missing_run="$MISSING --run "
2758 else
2759   am_missing_run=
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2761 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2762 fi
2763
2764 if test x"${install_sh}" != xset; then
2765   case $am_aux_dir in
2766   *\ * | *\     *)
2767     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2768   *)
2769     install_sh="\${SHELL} $am_aux_dir/install-sh"
2770   esac
2771 fi
2772
2773 # Installed binaries are usually stripped using `strip' when the user
2774 # run `make install-strip'.  However `strip' might not be the right
2775 # tool to use in cross-compilation environments, therefore Automake
2776 # will honor the `STRIP' environment variable to overrule this program.
2777 if test "$cross_compiling" != no; then
2778   if test -n "$ac_tool_prefix"; then
2779   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}strip; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if ${ac_cv_prog_STRIP+:} false; then :
2784   $as_echo_n "(cached) " >&6
2785 else
2786   if test -n "$STRIP"; then
2787   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794     for ac_exec_ext in '' $ac_executable_extensions; do
2795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801   done
2802 IFS=$as_save_IFS
2803
2804 fi
2805 fi
2806 STRIP=$ac_cv_prog_STRIP
2807 if test -n "$STRIP"; then
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2809 $as_echo "$STRIP" >&6; }
2810 else
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2813 fi
2814
2815
2816 fi
2817 if test -z "$ac_cv_prog_STRIP"; then
2818   ac_ct_STRIP=$STRIP
2819   # Extract the first word of "strip", so it can be a program name with args.
2820 set dummy strip; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2824   $as_echo_n "(cached) " >&6
2825 else
2826   if test -n "$ac_ct_STRIP"; then
2827   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834     for ac_exec_ext in '' $ac_executable_extensions; do
2835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836     ac_cv_prog_ac_ct_STRIP="strip"
2837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841   done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2847 if test -n "$ac_ct_STRIP"; then
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2849 $as_echo "$ac_ct_STRIP" >&6; }
2850 else
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853 fi
2854
2855   if test "x$ac_ct_STRIP" = x; then
2856     STRIP=":"
2857   else
2858     case $cross_compiling:$ac_tool_warned in
2859 yes:)
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864     STRIP=$ac_ct_STRIP
2865   fi
2866 else
2867   STRIP="$ac_cv_prog_STRIP"
2868 fi
2869
2870 fi
2871 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2872
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2874 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2875 if test -z "$MKDIR_P"; then
2876   if ${ac_cv_path_mkdir+:} false; then :
2877   $as_echo_n "(cached) " >&6
2878 else
2879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884     for ac_prog in mkdir gmkdir; do
2885          for ac_exec_ext in '' $ac_executable_extensions; do
2886            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2887            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2888              'mkdir (GNU coreutils) '* | \
2889              'mkdir (coreutils) '* | \
2890              'mkdir (fileutils) '4.1*)
2891                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2892                break 3;;
2893            esac
2894          done
2895        done
2896   done
2897 IFS=$as_save_IFS
2898
2899 fi
2900
2901   test -d ./--version && rmdir ./--version
2902   if test "${ac_cv_path_mkdir+set}" = set; then
2903     MKDIR_P="$ac_cv_path_mkdir -p"
2904   else
2905     # As a last resort, use the slow shell script.  Don't cache a
2906     # value for MKDIR_P within a source directory, because that will
2907     # break other packages using the cache if that directory is
2908     # removed, or if the value is a relative name.
2909     MKDIR_P="$ac_install_sh -d"
2910   fi
2911 fi
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2913 $as_echo "$MKDIR_P" >&6; }
2914
2915 mkdir_p="$MKDIR_P"
2916 case $mkdir_p in
2917   [\\/$]* | ?:[\\/]*) ;;
2918   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2919 esac
2920
2921 for ac_prog in gawk mawk nawk awk
2922 do
2923   # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_AWK+:} false; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   if test -n "$AWK"; then
2931   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936   IFS=$as_save_IFS
2937   test -z "$as_dir" && as_dir=.
2938     for ac_exec_ext in '' $ac_executable_extensions; do
2939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940     ac_cv_prog_AWK="$ac_prog"
2941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942     break 2
2943   fi
2944 done
2945   done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 AWK=$ac_cv_prog_AWK
2951 if test -n "$AWK"; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2953 $as_echo "$AWK" >&6; }
2954 else
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959
2960   test -n "$AWK" && break
2961 done
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2964 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2965 set x ${MAKE-make}
2966 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2967 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970   cat >conftest.make <<\_ACEOF
2971 SHELL = /bin/sh
2972 all:
2973         @echo '@@@%%%=$(MAKE)=@@@%%%'
2974 _ACEOF
2975 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2976 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2977   *@@@%%%=?*=@@@%%%*)
2978     eval ac_cv_prog_make_${ac_make}_set=yes;;
2979   *)
2980     eval ac_cv_prog_make_${ac_make}_set=no;;
2981 esac
2982 rm -f conftest.make
2983 fi
2984 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2986 $as_echo "yes" >&6; }
2987   SET_MAKE=
2988 else
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991   SET_MAKE="MAKE=${MAKE-make}"
2992 fi
2993
2994 rm -rf .tst 2>/dev/null
2995 mkdir .tst 2>/dev/null
2996 if test -d .tst; then
2997   am__leading_dot=.
2998 else
2999   am__leading_dot=_
3000 fi
3001 rmdir .tst 2>/dev/null
3002
3003 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3004   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3005   # is not polluted with repeated "-I."
3006   am__isrc=' -I$(srcdir)'
3007   # test to see if srcdir already configured
3008   if test -f $srcdir/config.status; then
3009     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3010   fi
3011 fi
3012
3013 # test whether we have cygpath
3014 if test -z "$CYGPATH_W"; then
3015   if (cygpath --version) >/dev/null 2>/dev/null; then
3016     CYGPATH_W='cygpath -w'
3017   else
3018     CYGPATH_W=echo
3019   fi
3020 fi
3021
3022
3023 # Define the identity of the package.
3024  PACKAGE='bcusdk'
3025  VERSION='0.0.5'
3026
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE "$PACKAGE"
3030 _ACEOF
3031
3032
3033 cat >>confdefs.h <<_ACEOF
3034 #define VERSION "$VERSION"
3035 _ACEOF
3036
3037 # Some tools Automake needs.
3038
3039 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3040
3041
3042 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3043
3044
3045 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3046
3047
3048 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3049
3050
3051 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3052
3053 # We need awk for the "check" target.  The system "awk" is bad on
3054 # some platforms.
3055 # Always define AMTAR for backward compatibility.
3056
3057 AMTAR=${AMTAR-"${am_missing_run}tar"}
3058
3059 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3060
3061
3062
3063
3064
3065
3066 # Make sure we can run config.sub.
3067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3068   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3069
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3071 $as_echo_n "checking build system type... " >&6; }
3072 if ${ac_cv_build+:} false; then :
3073   $as_echo_n "(cached) " >&6
3074 else
3075   ac_build_alias=$build_alias
3076 test "x$ac_build_alias" = x &&
3077   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3078 test "x$ac_build_alias" = x &&
3079   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3081   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3082
3083 fi
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3085 $as_echo "$ac_cv_build" >&6; }
3086 case $ac_cv_build in
3087 *-*-*) ;;
3088 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3089 esac
3090 build=$ac_cv_build
3091 ac_save_IFS=$IFS; IFS='-'
3092 set x $ac_cv_build
3093 shift
3094 build_cpu=$1
3095 build_vendor=$2
3096 shift; shift
3097 # Remember, the first character of IFS is used to create $*,
3098 # except with old shells:
3099 build_os=$*
3100 IFS=$ac_save_IFS
3101 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3102
3103
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3105 $as_echo_n "checking host system type... " >&6; }
3106 if ${ac_cv_host+:} false; then :
3107   $as_echo_n "(cached) " >&6
3108 else
3109   if test "x$host_alias" = x; then
3110   ac_cv_host=$ac_cv_build
3111 else
3112   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3113     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3114 fi
3115
3116 fi
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3118 $as_echo "$ac_cv_host" >&6; }
3119 case $ac_cv_host in
3120 *-*-*) ;;
3121 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3122 esac
3123 host=$ac_cv_host
3124 ac_save_IFS=$IFS; IFS='-'
3125 set x $ac_cv_host
3126 shift
3127 host_cpu=$1
3128 host_vendor=$2
3129 shift; shift
3130 # Remember, the first character of IFS is used to create $*,
3131 # except with old shells:
3132 host_os=$*
3133 IFS=$ac_save_IFS
3134 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3135
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 if test -n "$ac_tool_prefix"; then
3143   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3144 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if ${ac_cv_prog_CC+:} false; then :
3148   $as_echo_n "(cached) " >&6
3149 else
3150   if test -n "$CC"; then
3151   ac_cv_prog_CC="$CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156   IFS=$as_save_IFS
3157   test -z "$as_dir" && as_dir=.
3158     for ac_exec_ext in '' $ac_executable_extensions; do
3159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162     break 2
3163   fi
3164 done
3165   done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 CC=$ac_cv_prog_CC
3171 if test -n "$CC"; then
3172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173 $as_echo "$CC" >&6; }
3174 else
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179
3180 fi
3181 if test -z "$ac_cv_prog_CC"; then
3182   ac_ct_CC=$CC
3183   # Extract the first word of "gcc", so it can be a program name with args.
3184 set dummy gcc; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3188   $as_echo_n "(cached) " >&6
3189 else
3190   if test -n "$ac_ct_CC"; then
3191   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198     for ac_exec_ext in '' $ac_executable_extensions; do
3199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200     ac_cv_prog_ac_ct_CC="gcc"
3201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202     break 2
3203   fi
3204 done
3205   done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211 if test -n "$ac_ct_CC"; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3213 $as_echo "$ac_ct_CC" >&6; }
3214 else
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219   if test "x$ac_ct_CC" = x; then
3220     CC=""
3221   else
3222     case $cross_compiling:$ac_tool_warned in
3223 yes:)
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3226 ac_tool_warned=yes ;;
3227 esac
3228     CC=$ac_ct_CC
3229   fi
3230 else
3231   CC="$ac_cv_prog_CC"
3232 fi
3233
3234 if test -z "$CC"; then
3235           if test -n "$ac_tool_prefix"; then
3236     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3237 set dummy ${ac_tool_prefix}cc; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_CC+:} false; then :
3241   $as_echo_n "(cached) " >&6
3242 else
3243   if test -n "$CC"; then
3244   ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251     for ac_exec_ext in '' $ac_executable_extensions; do
3252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253     ac_cv_prog_CC="${ac_tool_prefix}cc"
3254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255     break 2
3256   fi
3257 done
3258   done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273   fi
3274 fi
3275 if test -z "$CC"; then
3276   # Extract the first word of "cc", so it can be a program name with args.
3277 set dummy cc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_CC+:} false; then :
3281   $as_echo_n "(cached) " >&6
3282 else
3283   if test -n "$CC"; then
3284   ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286   ac_prog_rejected=no
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292     for ac_exec_ext in '' $ac_executable_extensions; do
3293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3295        ac_prog_rejected=yes
3296        continue
3297      fi
3298     ac_cv_prog_CC="cc"
3299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300     break 2
3301   fi
3302 done
3303   done
3304 IFS=$as_save_IFS
3305
3306 if test $ac_prog_rejected = yes; then
3307   # We found a bogon in the path, so make sure we never use it.
3308   set dummy $ac_cv_prog_CC
3309   shift
3310   if test $# != 0; then
3311     # We chose a different compiler from the bogus one.
3312     # However, it has the same basename, so the bogon will be chosen
3313     # first if we set CC to just the basename; use the full file name.
3314     shift
3315     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3316   fi
3317 fi
3318 fi
3319 fi
3320 CC=$ac_cv_prog_CC
3321 if test -n "$CC"; then
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323 $as_echo "$CC" >&6; }
3324 else
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 fi
3328
3329
3330 fi
3331 if test -z "$CC"; then
3332   if test -n "$ac_tool_prefix"; then
3333   for ac_prog in cl.exe
3334   do
3335     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_CC+:} false; then :
3340   $as_echo_n "(cached) " >&6
3341 else
3342   if test -n "$CC"; then
3343   ac_cv_prog_CC="$CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350     for ac_exec_ext in '' $ac_executable_extensions; do
3351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357   done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3366 else
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372     test -n "$CC" && break
3373   done
3374 fi
3375 if test -z "$CC"; then
3376   ac_ct_CC=$CC
3377   for ac_prog in cl.exe
3378 do
3379   # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy $ac_prog; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3384   $as_echo_n "(cached) " >&6
3385 else
3386   if test -n "$ac_ct_CC"; then
3387   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392   IFS=$as_save_IFS
3393   test -z "$as_dir" && as_dir=.
3394     for ac_exec_ext in '' $ac_executable_extensions; do
3395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396     ac_cv_prog_ac_ct_CC="$ac_prog"
3397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401   done
3402 IFS=$as_save_IFS
3403
3404 fi
3405 fi
3406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3407 if test -n "$ac_ct_CC"; then
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3409 $as_echo "$ac_ct_CC" >&6; }
3410 else
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 fi
3414
3415
3416   test -n "$ac_ct_CC" && break
3417 done
3418
3419   if test "x$ac_ct_CC" = x; then
3420     CC=""
3421   else
3422     case $cross_compiling:$ac_tool_warned in
3423 yes:)
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned=yes ;;
3427 esac
3428     CC=$ac_ct_CC
3429   fi
3430 fi
3431
3432 fi
3433
3434
3435 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "no acceptable C compiler found in \$PATH
3438 See \`config.log' for more details" "$LINENO" 5; }
3439
3440 # Provide some information about the compiler.
3441 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3442 set X $ac_compile
3443 ac_compiler=$2
3444 for ac_option in --version -v -V -qversion; do
3445   { { ac_try="$ac_compiler $ac_option >&5"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3453   ac_status=$?
3454   if test -s conftest.err; then
3455     sed '10a\
3456 ... rest of stderr output deleted ...
3457          10q' conftest.err >conftest.er1
3458     cat conftest.er1 >&5
3459   fi
3460   rm -f conftest.er1 conftest.err
3461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462   test $ac_status = 0; }
3463 done
3464
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h.  */
3467
3468 int
3469 main ()
3470 {
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 ac_clean_files_save=$ac_clean_files
3477 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3478 # Try to create an executable without -o first, disregard a.out.
3479 # It will help us diagnose broken compilers, and finding out an intuition
3480 # of exeext.
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3482 $as_echo_n "checking whether the C compiler works... " >&6; }
3483 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3484
3485 # The possible output files:
3486 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3487
3488 ac_rmfiles=
3489 for ac_file in $ac_files
3490 do
3491   case $ac_file in
3492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3493     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3494   esac
3495 done
3496 rm -f $ac_rmfiles
3497
3498 if { { ac_try="$ac_link_default"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505   (eval "$ac_link_default") 2>&5
3506   ac_status=$?
3507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508   test $ac_status = 0; }; then :
3509   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3510 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3511 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3512 # so that the user can short-circuit this test for compilers unknown to
3513 # Autoconf.
3514 for ac_file in $ac_files ''
3515 do
3516   test -f "$ac_file" || continue
3517   case $ac_file in
3518     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3519         ;;
3520     [ab].out )
3521         # We found the default executable, but exeext='' is most
3522         # certainly right.
3523         break;;
3524     *.* )
3525         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3526         then :; else
3527            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3528         fi
3529         # We set ac_cv_exeext here because the later test for it is not
3530         # safe: cross compilers may not add the suffix if given an `-o'
3531         # argument, so we may need to know it at that point already.
3532         # Even if this section looks crufty: it has the advantage of
3533         # actually working.
3534         break;;
3535     * )
3536         break;;
3537   esac
3538 done
3539 test "$ac_cv_exeext" = no && ac_cv_exeext=
3540
3541 else
3542   ac_file=''
3543 fi
3544 if test -z "$ac_file"; then :
3545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 $as_echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error 77 "C compiler cannot create executables
3553 See \`config.log' for more details" "$LINENO" 5; }
3554 else
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556 $as_echo "yes" >&6; }
3557 fi
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3559 $as_echo_n "checking for C compiler default output file name... " >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3561 $as_echo "$ac_file" >&6; }
3562 ac_exeext=$ac_cv_exeext
3563
3564 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3565 ac_clean_files=$ac_clean_files_save
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3567 $as_echo_n "checking for suffix of executables... " >&6; }
3568 if { { ac_try="$ac_link"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575   (eval "$ac_link") 2>&5
3576   ac_status=$?
3577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578   test $ac_status = 0; }; then :
3579   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3580 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3581 # work properly (i.e., refer to `conftest.exe'), while it won't with
3582 # `rm'.
3583 for ac_file in conftest.exe conftest conftest.*; do
3584   test -f "$ac_file" || continue
3585   case $ac_file in
3586     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3587     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588           break;;
3589     * ) break;;
3590   esac
3591 done
3592 else
3593   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3596 See \`config.log' for more details" "$LINENO" 5; }
3597 fi
3598 rm -f conftest conftest$ac_cv_exeext
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3600 $as_echo "$ac_cv_exeext" >&6; }
3601
3602 rm -f conftest.$ac_ext
3603 EXEEXT=$ac_cv_exeext
3604 ac_exeext=$EXEEXT
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607 #include <stdio.h>
3608 int
3609 main ()
3610 {
3611 FILE *f = fopen ("conftest.out", "w");
3612  return ferror (f) || fclose (f) != 0;
3613
3614   ;
3615   return 0;
3616 }
3617 _ACEOF
3618 ac_clean_files="$ac_clean_files conftest.out"
3619 # Check that the compiler produces executables we can run.  If not, either
3620 # the compiler is broken, or we cross compile.
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3622 $as_echo_n "checking whether we are cross compiling... " >&6; }
3623 if test "$cross_compiling" != yes; then
3624   { { ac_try="$ac_link"
3625 case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631   (eval "$ac_link") 2>&5
3632   ac_status=$?
3633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634   test $ac_status = 0; }
3635   if { ac_try='./conftest$ac_cv_exeext'
3636   { { case "(($ac_try" in
3637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638   *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642   (eval "$ac_try") 2>&5
3643   ac_status=$?
3644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645   test $ac_status = 0; }; }; then
3646     cross_compiling=no
3647   else
3648     if test "$cross_compiling" = maybe; then
3649         cross_compiling=yes
3650     else
3651         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error $? "cannot run C compiled programs.
3654 If you meant to cross compile, use \`--host'.
3655 See \`config.log' for more details" "$LINENO" 5; }
3656     fi
3657   fi
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3660 $as_echo "$cross_compiling" >&6; }
3661
3662 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3663 ac_clean_files=$ac_clean_files_save
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3665 $as_echo_n "checking for suffix of object files... " >&6; }
3666 if ${ac_cv_objext+:} false; then :
3667   $as_echo_n "(cached) " >&6
3668 else
3669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h.  */
3671
3672 int
3673 main ()
3674 {
3675
3676   ;
3677   return 0;
3678 }
3679 _ACEOF
3680 rm -f conftest.o conftest.obj
3681 if { { ac_try="$ac_compile"
3682 case "(($ac_try" in
3683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684   *) ac_try_echo=$ac_try;;
3685 esac
3686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687 $as_echo "$ac_try_echo"; } >&5
3688   (eval "$ac_compile") 2>&5
3689   ac_status=$?
3690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691   test $ac_status = 0; }; then :
3692   for ac_file in conftest.o conftest.obj conftest.*; do
3693   test -f "$ac_file" || continue;
3694   case $ac_file in
3695     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3696     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3697        break;;
3698   esac
3699 done
3700 else
3701   $as_echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3703
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $? "cannot compute suffix of object files: cannot compile
3707 See \`config.log' for more details" "$LINENO" 5; }
3708 fi
3709 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3710 fi
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3712 $as_echo "$ac_cv_objext" >&6; }
3713 OBJEXT=$ac_cv_objext
3714 ac_objext=$OBJEXT
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3716 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3717 if ${ac_cv_c_compiler_gnu+:} false; then :
3718   $as_echo_n "(cached) " >&6
3719 else
3720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h.  */
3722
3723 int
3724 main ()
3725 {
3726 #ifndef __GNUC__
3727        choke me
3728 #endif
3729
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735   ac_compiler_gnu=yes
3736 else
3737   ac_compiler_gnu=no
3738 fi
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3741
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3744 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3745 if test $ac_compiler_gnu = yes; then
3746   GCC=yes
3747 else
3748   GCC=
3749 fi
3750 ac_test_CFLAGS=${CFLAGS+set}
3751 ac_save_CFLAGS=$CFLAGS
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3753 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3754 if ${ac_cv_prog_cc_g+:} false; then :
3755   $as_echo_n "(cached) " >&6
3756 else
3757   ac_save_c_werror_flag=$ac_c_werror_flag
3758    ac_c_werror_flag=yes
3759    ac_cv_prog_cc_g=no
3760    CFLAGS="-g"
3761    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763
3764 int
3765 main ()
3766 {
3767
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773   ac_cv_prog_cc_g=yes
3774 else
3775   CFLAGS=""
3776       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778
3779 int
3780 main ()
3781 {
3782
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788
3789 else
3790   ac_c_werror_flag=$ac_save_c_werror_flag
3791          CFLAGS="-g"
3792          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h.  */
3794
3795 int
3796 main ()
3797 {
3798
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 if ac_fn_c_try_compile "$LINENO"; then :
3804   ac_cv_prog_cc_g=yes
3805 fi
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 fi
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811    ac_c_werror_flag=$ac_save_c_werror_flag
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3814 $as_echo "$ac_cv_prog_cc_g" >&6; }
3815 if test "$ac_test_CFLAGS" = set; then
3816   CFLAGS=$ac_save_CFLAGS
3817 elif test $ac_cv_prog_cc_g = yes; then
3818   if test "$GCC" = yes; then
3819     CFLAGS="-g -O2"
3820   else
3821     CFLAGS="-g"
3822   fi
3823 else
3824   if test "$GCC" = yes; then
3825     CFLAGS="-O2"
3826   else
3827     CFLAGS=
3828   fi
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3831 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3832 if ${ac_cv_prog_cc_c89+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   ac_cv_prog_cc_c89=no
3836 ac_save_CC=$CC
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h.  */
3839 #include <stdarg.h>
3840 #include <stdio.h>
3841 #include <sys/types.h>
3842 #include <sys/stat.h>
3843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3844 struct buf { int x; };
3845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3846 static char *e (p, i)
3847      char **p;
3848      int i;
3849 {
3850   return p[i];
3851 }
3852 static char *f (char * (*g) (char **, int), char **p, ...)
3853 {
3854   char *s;
3855   va_list v;
3856   va_start (v,p);
3857   s = g (p, va_arg (v,int));
3858   va_end (v);
3859   return s;
3860 }
3861
3862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3863    function prototypes and stuff, but not '\xHH' hex character constants.
3864    These don't provoke an error unfortunately, instead are silently treated
3865    as 'x'.  The following induces an error, until -std is added to get
3866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3867    array size at least.  It's necessary to write '\x00'==0 to get something
3868    that's true only with -std.  */
3869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870
3871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3872    inside strings and character constants.  */
3873 #define FOO(x) 'x'
3874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3875
3876 int test (int i, double x);
3877 struct s1 {int (*f) (int a);};
3878 struct s2 {int (*f) (double a);};
3879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 int argc;
3881 char **argv;
3882 int
3883 main ()
3884 {
3885 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3891         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3892 do
3893   CC="$ac_save_CC $ac_arg"
3894   if ac_fn_c_try_compile "$LINENO"; then :
3895   ac_cv_prog_cc_c89=$ac_arg
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext
3898   test "x$ac_cv_prog_cc_c89" != "xno" && break
3899 done
3900 rm -f conftest.$ac_ext
3901 CC=$ac_save_CC
3902
3903 fi
3904 # AC_CACHE_VAL
3905 case "x$ac_cv_prog_cc_c89" in
3906   x)
3907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3908 $as_echo "none needed" >&6; } ;;
3909   xno)
3910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3911 $as_echo "unsupported" >&6; } ;;
3912   *)
3913     CC="$CC $ac_cv_prog_cc_c89"
3914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3916 esac
3917 if test "x$ac_cv_prog_cc_c89" != xno; then :
3918
3919 fi
3920
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926 DEPDIR="${am__leading_dot}deps"
3927
3928 ac_config_commands="$ac_config_commands depfiles"
3929
3930
3931 am_make=${MAKE-make}
3932 cat > confinc << 'END'
3933 am__doit:
3934         @echo this is the am__doit target
3935 .PHONY: am__doit
3936 END
3937 # If we don't find an include directive, just comment out the code.
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3939 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3940 am__include="#"
3941 am__quote=
3942 _am_result=none
3943 # First try GNU make style include.
3944 echo "include confinc" > confmf
3945 # Ignore all kinds of additional output from `make'.
3946 case `$am_make -s -f confmf 2> /dev/null` in #(
3947 *the\ am__doit\ target*)
3948   am__include=include
3949   am__quote=
3950   _am_result=GNU
3951   ;;
3952 esac
3953 # Now try BSD make style include.
3954 if test "$am__include" = "#"; then
3955    echo '.include "confinc"' > confmf
3956    case `$am_make -s -f confmf 2> /dev/null` in #(
3957    *the\ am__doit\ target*)
3958      am__include=.include
3959      am__quote="\""
3960      _am_result=BSD
3961      ;;
3962    esac
3963 fi
3964
3965
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3967 $as_echo "$_am_result" >&6; }
3968 rm -f confinc confmf
3969
3970 # Check whether --enable-dependency-tracking was given.
3971 if test "${enable_dependency_tracking+set}" = set; then :
3972   enableval=$enable_dependency_tracking;
3973 fi
3974
3975 if test "x$enable_dependency_tracking" != xno; then
3976   am_depcomp="$ac_aux_dir/depcomp"
3977   AMDEPBACKSLASH='\'
3978 fi
3979  if test "x$enable_dependency_tracking" != xno; then
3980   AMDEP_TRUE=
3981   AMDEP_FALSE='#'
3982 else
3983   AMDEP_TRUE='#'
3984   AMDEP_FALSE=
3985 fi
3986
3987
3988
3989 depcc="$CC"   am_compiler_list=
3990
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3992 $as_echo_n "checking dependency style of $depcc... " >&6; }
3993 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3997   # We make a subdir and do the tests there.  Otherwise we can end up
3998   # making bogus files that we don't know about and never remove.  For
3999   # instance it was reported that on HP-UX the gcc test will end up
4000   # making a dummy file named `D' -- because `-MD' means `put the output
4001   # in D'.
4002   mkdir conftest.dir
4003   # Copy depcomp to subdir because otherwise we won't find it if we're
4004   # using a relative directory.
4005   cp "$am_depcomp" conftest.dir
4006   cd conftest.dir
4007   # We will build objects and dependencies in a subdirectory because
4008   # it helps to detect inapplicable dependency modes.  For instance
4009   # both Tru64's cc and ICC support -MD to output dependencies as a
4010   # side effect of compilation, but ICC will put the dependencies in
4011   # the current directory while Tru64 will put them in the object
4012   # directory.
4013   mkdir sub
4014
4015   am_cv_CC_dependencies_compiler_type=none
4016   if test "$am_compiler_list" = ""; then
4017      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4018   fi
4019   am__universal=false
4020   case " $depcc " in #(
4021      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4022      esac
4023
4024   for depmode in $am_compiler_list; do
4025     # Setup a source with many dependencies, because some compilers
4026     # like to wrap large dependency lists on column 80 (with \), and
4027     # we should not choose a depcomp mode which is confused by this.
4028     #
4029     # We need to recreate these files for each test, as the compiler may
4030     # overwrite some of them when testing with obscure command lines.
4031     # This happens at least with the AIX C compiler.
4032     : > sub/conftest.c
4033     for i in 1 2 3 4 5 6; do
4034       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4035       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4036       # Solaris 8's {/usr,}/bin/sh.
4037       touch sub/conftst$i.h
4038     done
4039     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4040
4041     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4042     # mode.  It turns out that the SunPro C++ compiler does not properly
4043     # handle `-M -o', and we need to detect this.  Also, some Intel
4044     # versions had trouble with output in subdirs
4045     am__obj=sub/conftest.${OBJEXT-o}
4046     am__minus_obj="-o $am__obj"
4047     case $depmode in
4048     gcc)
4049       # This depmode causes a compiler race in universal mode.
4050       test "$am__universal" = false || continue
4051       ;;
4052     nosideeffect)
4053       # after this tag, mechanisms are not by side-effect, so they'll
4054       # only be used when explicitly requested
4055       if test "x$enable_dependency_tracking" = xyes; then
4056         continue
4057       else
4058         break
4059       fi
4060       ;;
4061     msvisualcpp | msvcmsys)
4062       # This compiler won't grok `-c -o', but also, the minuso test has
4063       # not run yet.  These depmodes are late enough in the game, and
4064       # so weak that their functioning should not be impacted.
4065       am__obj=conftest.${OBJEXT-o}
4066       am__minus_obj=
4067       ;;
4068     none) break ;;
4069     esac
4070     if depmode=$depmode \
4071        source=sub/conftest.c object=$am__obj \
4072        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4073        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4074          >/dev/null 2>conftest.err &&
4075        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4076        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4077        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4078        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4079       # icc doesn't choke on unknown options, it will just issue warnings
4080       # or remarks (even with -Werror).  So we grep stderr for any message
4081       # that says an option was ignored or not supported.
4082       # When given -MP, icc 7.0 and 7.1 complain thusly:
4083       #   icc: Command line warning: ignoring option '-M'; no argument required
4084       # The diagnosis changed in icc 8.0:
4085       #   icc: Command line remark: option '-MP' not supported
4086       if (grep 'ignoring option' conftest.err ||
4087           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4088         am_cv_CC_dependencies_compiler_type=$depmode
4089         break
4090       fi
4091     fi
4092   done
4093
4094   cd ..
4095   rm -rf conftest.dir
4096 else
4097   am_cv_CC_dependencies_compiler_type=none
4098 fi
4099
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4102 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4103 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4104
4105  if
4106   test "x$enable_dependency_tracking" != xno \
4107   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4108   am__fastdepCC_TRUE=
4109   am__fastdepCC_FALSE='#'
4110 else
4111   am__fastdepCC_TRUE='#'
4112   am__fastdepCC_FALSE=
4113 fi
4114
4115
4116 ac_ext=cpp
4117 ac_cpp='$CXXCPP $CPPFLAGS'
4118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4121 if test -z "$CXX"; then
4122   if test -n "$CCC"; then
4123     CXX=$CCC
4124   else
4125     if test -n "$ac_tool_prefix"; then
4126   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4127   do
4128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_CXX+:} false; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   if test -n "$CXX"; then
4136   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 fi
4154 fi
4155 CXX=$ac_cv_prog_CXX
4156 if test -n "$CXX"; then
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4158 $as_echo "$CXX" >&6; }
4159 else
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162 fi
4163
4164
4165     test -n "$CXX" && break
4166   done
4167 fi
4168 if test -z "$CXX"; then
4169   ac_ct_CXX=$CXX
4170   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4171 do
4172   # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4177   $as_echo_n "(cached) " >&6
4178 else
4179   if test -n "$ac_ct_CXX"; then
4180   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185   IFS=$as_save_IFS
4186   test -z "$as_dir" && as_dir=.
4187     for ac_exec_ext in '' $ac_executable_extensions; do
4188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189     ac_cv_prog_ac_ct_CXX="$ac_prog"
4190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191     break 2
4192   fi
4193 done
4194   done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4200 if test -n "$ac_ct_CXX"; then
4201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4202 $as_echo "$ac_ct_CXX" >&6; }
4203 else
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208
4209   test -n "$ac_ct_CXX" && break
4210 done
4211
4212   if test "x$ac_ct_CXX" = x; then
4213     CXX="g++"
4214   else
4215     case $cross_compiling:$ac_tool_warned in
4216 yes:)
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4219 ac_tool_warned=yes ;;
4220 esac
4221     CXX=$ac_ct_CXX
4222   fi
4223 fi
4224
4225   fi
4226 fi
4227 # Provide some information about the compiler.
4228 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4229 set X $ac_compile
4230 ac_compiler=$2
4231 for ac_option in --version -v -V -qversion; do
4232   { { ac_try="$ac_compiler $ac_option >&5"
4233 case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 $as_echo "$ac_try_echo"; } >&5
4239   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4240   ac_status=$?
4241   if test -s conftest.err; then
4242     sed '10a\
4243 ... rest of stderr output deleted ...
4244          10q' conftest.err >conftest.er1
4245     cat conftest.er1 >&5
4246   fi
4247   rm -f conftest.er1 conftest.err
4248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4249   test $ac_status = 0; }
4250 done
4251
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4253 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4254 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h.  */
4259
4260 int
4261 main ()
4262 {
4263 #ifndef __GNUC__
4264        choke me
4265 #endif
4266
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 if ac_fn_cxx_try_compile "$LINENO"; then :
4272   ac_compiler_gnu=yes
4273 else
4274   ac_compiler_gnu=no
4275 fi
4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4278
4279 fi
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4281 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4282 if test $ac_compiler_gnu = yes; then
4283   GXX=yes
4284 else
4285   GXX=
4286 fi
4287 ac_test_CXXFLAGS=${CXXFLAGS+set}
4288 ac_save_CXXFLAGS=$CXXFLAGS
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4290 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4291 if ${ac_cv_prog_cxx_g+:} false; then :
4292   $as_echo_n "(cached) " >&6
4293 else
4294   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4295    ac_cxx_werror_flag=yes
4296    ac_cv_prog_cxx_g=no
4297    CXXFLAGS="-g"
4298    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h.  */
4300
4301 int
4302 main ()
4303 {
4304
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_cxx_try_compile "$LINENO"; then :
4310   ac_cv_prog_cxx_g=yes
4311 else
4312   CXXFLAGS=""
4313       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h.  */
4315
4316 int
4317 main ()
4318 {
4319
4320   ;
4321   return 0;
4322 }
4323 _ACEOF
4324 if ac_fn_cxx_try_compile "$LINENO"; then :
4325
4326 else
4327   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4328          CXXFLAGS="-g"
4329          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h.  */
4331
4332 int
4333 main ()
4334 {
4335
4336   ;
4337   return 0;
4338 }
4339 _ACEOF
4340 if ac_fn_cxx_try_compile "$LINENO"; then :
4341   ac_cv_prog_cxx_g=yes
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 fi
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 fi
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4351 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4352 if test "$ac_test_CXXFLAGS" = set; then
4353   CXXFLAGS=$ac_save_CXXFLAGS
4354 elif test $ac_cv_prog_cxx_g = yes; then
4355   if test "$GXX" = yes; then
4356     CXXFLAGS="-g -O2"
4357   else
4358     CXXFLAGS="-g"
4359   fi
4360 else
4361   if test "$GXX" = yes; then
4362     CXXFLAGS="-O2"
4363   else
4364     CXXFLAGS=
4365   fi
4366 fi
4367 ac_ext=c
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372
4373 depcc="$CXX"  am_compiler_list=
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4376 $as_echo_n "checking dependency style of $depcc... " >&6; }
4377 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4378   $as_echo_n "(cached) " >&6
4379 else
4380   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4381   # We make a subdir and do the tests there.  Otherwise we can end up
4382   # making bogus files that we don't know about and never remove.  For
4383   # instance it was reported that on HP-UX the gcc test will end up
4384   # making a dummy file named `D' -- because `-MD' means `put the output
4385   # in D'.
4386   mkdir conftest.dir
4387   # Copy depcomp to subdir because otherwise we won't find it if we're
4388   # using a relative directory.
4389   cp "$am_depcomp" conftest.dir
4390   cd conftest.dir
4391   # We will build objects and dependencies in a subdirectory because
4392   # it helps to detect inapplicable dependency modes.  For instance
4393   # both Tru64's cc and ICC support -MD to output dependencies as a
4394   # side effect of compilation, but ICC will put the dependencies in
4395   # the current directory while Tru64 will put them in the object
4396   # directory.
4397   mkdir sub
4398
4399   am_cv_CXX_dependencies_compiler_type=none
4400   if test "$am_compiler_list" = ""; then
4401      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4402   fi
4403   am__universal=false
4404   case " $depcc " in #(
4405      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4406      esac
4407
4408   for depmode in $am_compiler_list; do
4409     # Setup a source with many dependencies, because some compilers
4410     # like to wrap large dependency lists on column 80 (with \), and
4411     # we should not choose a depcomp mode which is confused by this.
4412     #
4413     # We need to recreate these files for each test, as the compiler may
4414     # overwrite some of them when testing with obscure command lines.
4415     # This happens at least with the AIX C compiler.
4416     : > sub/conftest.c
4417     for i in 1 2 3 4 5 6; do
4418       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4419       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4420       # Solaris 8's {/usr,}/bin/sh.
4421       touch sub/conftst$i.h
4422     done
4423     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4424
4425     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4426     # mode.  It turns out that the SunPro C++ compiler does not properly
4427     # handle `-M -o', and we need to detect this.  Also, some Intel
4428     # versions had trouble with output in subdirs
4429     am__obj=sub/conftest.${OBJEXT-o}
4430     am__minus_obj="-o $am__obj"
4431     case $depmode in
4432     gcc)
4433       # This depmode causes a compiler race in universal mode.
4434       test "$am__universal" = false || continue
4435       ;;
4436     nosideeffect)
4437       # after this tag, mechanisms are not by side-effect, so they'll
4438       # only be used when explicitly requested
4439       if test "x$enable_dependency_tracking" = xyes; then
4440         continue
4441       else
4442         break
4443       fi
4444       ;;
4445     msvisualcpp | msvcmsys)
4446       # This compiler won't grok `-c -o', but also, the minuso test has
4447       # not run yet.  These depmodes are late enough in the game, and
4448       # so weak that their functioning should not be impacted.
4449       am__obj=conftest.${OBJEXT-o}
4450       am__minus_obj=
4451       ;;
4452     none) break ;;
4453     esac
4454     if depmode=$depmode \
4455        source=sub/conftest.c object=$am__obj \
4456        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4457        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4458          >/dev/null 2>conftest.err &&
4459        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4460        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4461        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4462        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4463       # icc doesn't choke on unknown options, it will just issue warnings
4464       # or remarks (even with -Werror).  So we grep stderr for any message
4465       # that says an option was ignored or not supported.
4466       # When given -MP, icc 7.0 and 7.1 complain thusly:
4467       #   icc: Command line warning: ignoring option '-M'; no argument required
4468       # The diagnosis changed in icc 8.0:
4469       #   icc: Command line remark: option '-MP' not supported
4470       if (grep 'ignoring option' conftest.err ||
4471           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4472         am_cv_CXX_dependencies_compiler_type=$depmode
4473         break
4474       fi
4475     fi
4476   done
4477
4478   cd ..
4479   rm -rf conftest.dir
4480 else
4481   am_cv_CXX_dependencies_compiler_type=none
4482 fi
4483
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4486 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4487 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4488
4489  if
4490   test "x$enable_dependency_tracking" != xno \
4491   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4492   am__fastdepCXX_TRUE=
4493   am__fastdepCXX_FALSE='#'
4494 else
4495   am__fastdepCXX_TRUE='#'
4496   am__fastdepCXX_FALSE=
4497 fi
4498
4499
4500
4501 ac_ext=c
4502 ac_cpp='$CPP $CPPFLAGS'
4503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4507 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4508 # On Suns, sometimes $CPP names a directory.
4509 if test -n "$CPP" && test -d "$CPP"; then
4510   CPP=
4511 fi
4512 if test -z "$CPP"; then
4513   if ${ac_cv_prog_CPP+:} false; then :
4514   $as_echo_n "(cached) " >&6
4515 else
4516       # Double quotes because CPP needs to be expanded
4517     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4518     do
4519       ac_preproc_ok=false
4520 for ac_c_preproc_warn_flag in '' yes
4521 do
4522   # Use a header file that comes with gcc, so configuring glibc
4523   # with a fresh cross-compiler works.
4524   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4525   # <limits.h> exists even on freestanding compilers.
4526   # On the NeXT, cc -E runs the code through the compiler's parser,
4527   # not just through cpp. "Syntax error" is here to catch this case.
4528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h.  */
4530 #ifdef __STDC__
4531 # include <limits.h>
4532 #else
4533 # include <assert.h>
4534 #endif
4535                      Syntax error
4536 _ACEOF
4537 if ac_fn_c_try_cpp "$LINENO"; then :
4538
4539 else
4540   # Broken: fails on valid input.
4541 continue
4542 fi
4543 rm -f conftest.err conftest.i conftest.$ac_ext
4544
4545   # OK, works on sane cases.  Now check whether nonexistent headers
4546   # can be detected and how.
4547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h.  */
4549 #include <ac_nonexistent.h>
4550 _ACEOF
4551 if ac_fn_c_try_cpp "$LINENO"; then :
4552   # Broken: success on invalid input.
4553 continue
4554 else
4555   # Passes both tests.
4556 ac_preproc_ok=:
4557 break
4558 fi
4559 rm -f conftest.err conftest.i conftest.$ac_ext
4560
4561 done
4562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4563 rm -f conftest.i conftest.err conftest.$ac_ext
4564 if $ac_preproc_ok; then :
4565   break
4566 fi
4567
4568     done
4569     ac_cv_prog_CPP=$CPP
4570
4571 fi
4572   CPP=$ac_cv_prog_CPP
4573 else
4574   ac_cv_prog_CPP=$CPP
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4577 $as_echo "$CPP" >&6; }
4578 ac_preproc_ok=false
4579 for ac_c_preproc_warn_flag in '' yes
4580 do
4581   # Use a header file that comes with gcc, so configuring glibc
4582   # with a fresh cross-compiler works.
4583   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4584   # <limits.h> exists even on freestanding compilers.
4585   # On the NeXT, cc -E runs the code through the compiler's parser,
4586   # not just through cpp. "Syntax error" is here to catch this case.
4587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h.  */
4589 #ifdef __STDC__
4590 # include <limits.h>
4591 #else
4592 # include <assert.h>
4593 #endif
4594                      Syntax error
4595 _ACEOF
4596 if ac_fn_c_try_cpp "$LINENO"; then :
4597
4598 else
4599   # Broken: fails on valid input.
4600 continue
4601 fi
4602 rm -f conftest.err conftest.i conftest.$ac_ext
4603
4604   # OK, works on sane cases.  Now check whether nonexistent headers
4605   # can be detected and how.
4606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h.  */
4608 #include <ac_nonexistent.h>
4609 _ACEOF
4610 if ac_fn_c_try_cpp "$LINENO"; then :
4611   # Broken: success on invalid input.
4612 continue
4613 else
4614   # Passes both tests.
4615 ac_preproc_ok=:
4616 break
4617 fi
4618 rm -f conftest.err conftest.i conftest.$ac_ext
4619
4620 done
4621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4622 rm -f conftest.i conftest.err conftest.$ac_ext
4623 if $ac_preproc_ok; then :
4624
4625 else
4626   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4628 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4629 See \`config.log' for more details" "$LINENO" 5; }
4630 fi
4631
4632 ac_ext=c
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4640 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4641 if ${ac_cv_path_GREP+:} false; then :
4642   $as_echo_n "(cached) " >&6
4643 else
4644   if test -z "$GREP"; then
4645   ac_path_GREP_found=false
4646   # Loop through the user's path and test for each of PROGNAME-LIST
4647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652     for ac_prog in grep ggrep; do
4653     for ac_exec_ext in '' $ac_executable_extensions; do
4654       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4655       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4656 # Check for GNU ac_path_GREP and select it if it is found.
4657   # Check for GNU $ac_path_GREP
4658 case `"$ac_path_GREP" --version 2>&1` in
4659 *GNU*)
4660   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4661 *)
4662   ac_count=0
4663   $as_echo_n 0123456789 >"conftest.in"
4664   while :
4665   do
4666     cat "conftest.in" "conftest.in" >"conftest.tmp"
4667     mv "conftest.tmp" "conftest.in"
4668     cp "conftest.in" "conftest.nl"
4669     $as_echo 'GREP' >> "conftest.nl"
4670     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4671     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4672     as_fn_arith $ac_count + 1 && ac_count=$as_val
4673     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4674       # Best one so far, save it but keep looking for a better one
4675       ac_cv_path_GREP="$ac_path_GREP"
4676       ac_path_GREP_max=$ac_count
4677     fi
4678     # 10*(2^10) chars as input seems more than enough
4679     test $ac_count -gt 10 && break
4680   done
4681   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4682 esac
4683
4684       $ac_path_GREP_found && break 3
4685     done
4686   done
4687   done
4688 IFS=$as_save_IFS
4689   if test -z "$ac_cv_path_GREP"; then
4690     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4691   fi
4692 else
4693   ac_cv_path_GREP=$GREP
4694 fi
4695
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4698 $as_echo "$ac_cv_path_GREP" >&6; }
4699  GREP="$ac_cv_path_GREP"
4700
4701
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4703 $as_echo_n "checking for egrep... " >&6; }
4704 if ${ac_cv_path_EGREP+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4708    then ac_cv_path_EGREP="$GREP -E"
4709    else
4710      if test -z "$EGREP"; then
4711   ac_path_EGREP_found=false
4712   # Loop through the user's path and test for each of PROGNAME-LIST
4713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718     for ac_prog in egrep; do
4719     for ac_exec_ext in '' $ac_executable_extensions; do
4720       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4721       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4722 # Check for GNU ac_path_EGREP and select it if it is found.
4723   # Check for GNU $ac_path_EGREP
4724 case `"$ac_path_EGREP" --version 2>&1` in
4725 *GNU*)
4726   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4727 *)
4728   ac_count=0
4729   $as_echo_n 0123456789 >"conftest.in"
4730   while :
4731   do
4732     cat "conftest.in" "conftest.in" >"conftest.tmp"
4733     mv "conftest.tmp" "conftest.in"
4734     cp "conftest.in" "conftest.nl"
4735     $as_echo 'EGREP' >> "conftest.nl"
4736     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4737     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4738     as_fn_arith $ac_count + 1 && ac_count=$as_val
4739     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4740       # Best one so far, save it but keep looking for a better one
4741       ac_cv_path_EGREP="$ac_path_EGREP"
4742       ac_path_EGREP_max=$ac_count
4743     fi
4744     # 10*(2^10) chars as input seems more than enough
4745     test $ac_count -gt 10 && break
4746   done
4747   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4748 esac
4749
4750       $ac_path_EGREP_found && break 3
4751     done
4752   done
4753   done
4754 IFS=$as_save_IFS
4755   if test -z "$ac_cv_path_EGREP"; then
4756     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4757   fi
4758 else
4759   ac_cv_path_EGREP=$EGREP
4760 fi
4761
4762    fi
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4765 $as_echo "$ac_cv_path_EGREP" >&6; }
4766  EGREP="$ac_cv_path_EGREP"
4767
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4770 $as_echo_n "checking for ANSI C header files... " >&6; }
4771 if ${ac_cv_header_stdc+:} false; then :
4772   $as_echo_n "(cached) " >&6
4773 else
4774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h.  */
4776 #include <stdlib.h>
4777 #include <stdarg.h>
4778 #include <string.h>
4779 #include <float.h>
4780
4781 int
4782 main ()
4783 {
4784
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790   ac_cv_header_stdc=yes
4791 else
4792   ac_cv_header_stdc=no
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795
4796 if test $ac_cv_header_stdc = yes; then
4797   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h.  */
4800 #include <string.h>
4801
4802 _ACEOF
4803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4804   $EGREP "memchr" >/dev/null 2>&1; then :
4805
4806 else
4807   ac_cv_header_stdc=no
4808 fi
4809 rm -f conftest*
4810
4811 fi
4812
4813 if test $ac_cv_header_stdc = yes; then
4814   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h.  */
4817 #include <stdlib.h>
4818
4819 _ACEOF
4820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4821   $EGREP "free" >/dev/null 2>&1; then :
4822
4823 else
4824   ac_cv_header_stdc=no
4825 fi
4826 rm -f conftest*
4827
4828 fi
4829
4830 if test $ac_cv_header_stdc = yes; then
4831   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4832   if test "$cross_compiling" = yes; then :
4833   :
4834 else
4835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h.  */
4837 #include <ctype.h>
4838 #include <stdlib.h>
4839 #if ((' ' & 0x0FF) == 0x020)
4840 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4841 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4842 #else
4843 # define ISLOWER(c) \
4844                    (('a' <= (c) && (c) <= 'i') \
4845                      || ('j' <= (c) && (c) <= 'r') \
4846                      || ('s' <= (c) && (c) <= 'z'))
4847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4848 #endif
4849
4850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4851 int
4852 main ()
4853 {
4854   int i;
4855   for (i = 0; i < 256; i++)
4856     if (XOR (islower (i), ISLOWER (i))
4857         || toupper (i) != TOUPPER (i))
4858       return 2;
4859   return 0;
4860 }
4861 _ACEOF
4862 if ac_fn_c_try_run "$LINENO"; then :
4863
4864 else
4865   ac_cv_header_stdc=no
4866 fi
4867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4868   conftest.$ac_objext conftest.beam conftest.$ac_ext
4869 fi
4870
4871 fi
4872 fi
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4874 $as_echo "$ac_cv_header_stdc" >&6; }
4875 if test $ac_cv_header_stdc = yes; then
4876
4877 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4878
4879 fi
4880
4881 for ac_prog in 'bison -y' byacc
4882 do
4883   # Extract the first word of "$ac_prog", so it can be a program name with args.
4884 set dummy $ac_prog; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if ${ac_cv_prog_YACC+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   if test -n "$YACC"; then
4891   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896   IFS=$as_save_IFS
4897   test -z "$as_dir" && as_dir=.
4898     for ac_exec_ext in '' $ac_executable_extensions; do
4899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900     ac_cv_prog_YACC="$ac_prog"
4901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902     break 2
4903   fi
4904 done
4905   done
4906 IFS=$as_save_IFS
4907
4908 fi
4909 fi
4910 YACC=$ac_cv_prog_YACC
4911 if test -n "$YACC"; then
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4913 $as_echo "$YACC" >&6; }
4914 else
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4917 fi
4918
4919
4920   test -n "$YACC" && break
4921 done
4922 test -n "$YACC" || YACC="yacc"
4923
4924 for ac_prog in flex lex
4925 do
4926   # Extract the first word of "$ac_prog", so it can be a program name with args.
4927 set dummy $ac_prog; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_LEX+:} false; then :
4931   $as_echo_n "(cached) " >&6
4932 else
4933   if test -n "$LEX"; then
4934   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941     for ac_exec_ext in '' $ac_executable_extensions; do
4942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943     ac_cv_prog_LEX="$ac_prog"
4944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948   done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 LEX=$ac_cv_prog_LEX
4954 if test -n "$LEX"; then
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4956 $as_echo "$LEX" >&6; }
4957 else
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962
4963   test -n "$LEX" && break
4964 done
4965 test -n "$LEX" || LEX=":"
4966
4967 if test "x$LEX" != "x:"; then
4968   cat >conftest.l <<_ACEOF
4969 %%
4970 a { ECHO; }
4971 b { REJECT; }
4972 c { yymore (); }
4973 d { yyless (1); }
4974 e { yyless (input () != 0); }
4975 f { unput (yytext[0]); }
4976 . { BEGIN INITIAL; }
4977 %%
4978 #ifdef YYTEXT_POINTER
4979 extern char *yytext;
4980 #endif
4981 int
4982 main (void)
4983 {
4984   return ! yylex () + ! yywrap ();
4985 }
4986 _ACEOF
4987 { { ac_try="$LEX conftest.l"
4988 case "(($ac_try" in
4989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990   *) ac_try_echo=$ac_try;;
4991 esac
4992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4993 $as_echo "$ac_try_echo"; } >&5
4994   (eval "$LEX conftest.l") 2>&5
4995   ac_status=$?
4996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4997   test $ac_status = 0; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4999 $as_echo_n "checking lex output file root... " >&6; }
5000 if ${ac_cv_prog_lex_root+:} false; then :
5001   $as_echo_n "(cached) " >&6
5002 else
5003
5004 if test -f lex.yy.c; then
5005   ac_cv_prog_lex_root=lex.yy
5006 elif test -f lexyy.c; then
5007   ac_cv_prog_lex_root=lexyy
5008 else
5009   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5010 fi
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5013 $as_echo "$ac_cv_prog_lex_root" >&6; }
5014 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5015
5016 if test -z "${LEXLIB+set}"; then
5017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5018 $as_echo_n "checking lex library... " >&6; }
5019 if ${ac_cv_lib_lex+:} false; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022
5023     ac_save_LIBS=$LIBS
5024     ac_cv_lib_lex='none needed'
5025     for ac_lib in '' -lfl -ll; do
5026       LIBS="$ac_lib $ac_save_LIBS"
5027       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h.  */
5029 `cat $LEX_OUTPUT_ROOT.c`
5030 _ACEOF
5031 if ac_fn_c_try_link "$LINENO"; then :
5032   ac_cv_lib_lex=$ac_lib
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext \
5035     conftest$ac_exeext conftest.$ac_ext
5036       test "$ac_cv_lib_lex" != 'none needed' && break
5037     done
5038     LIBS=$ac_save_LIBS
5039
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5042 $as_echo "$ac_cv_lib_lex" >&6; }
5043   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5044 fi
5045
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5048 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5049 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5050   $as_echo_n "(cached) " >&6
5051 else
5052   # POSIX says lex can declare yytext either as a pointer or an array; the
5053 # default is implementation-dependent.  Figure out which it is, since
5054 # not all implementations provide the %pointer and %array declarations.
5055 ac_cv_prog_lex_yytext_pointer=no
5056 ac_save_LIBS=$LIBS
5057 LIBS="$LEXLIB $ac_save_LIBS"
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h.  */
5060
5061   #define YYTEXT_POINTER 1
5062 `cat $LEX_OUTPUT_ROOT.c`
5063 _ACEOF
5064 if ac_fn_c_try_link "$LINENO"; then :
5065   ac_cv_prog_lex_yytext_pointer=yes
5066 fi
5067 rm -f core conftest.err conftest.$ac_objext \
5068     conftest$ac_exeext conftest.$ac_ext
5069 LIBS=$ac_save_LIBS
5070
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5073 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5074 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5075
5076 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5077
5078 fi
5079 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5080
5081 fi
5082 # By default we simply use the C compiler to build assembly code.
5083
5084 test "${CCAS+set}" = set || CCAS=$CC
5085 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5086
5087
5088
5089 depcc="$CCAS"   am_compiler_list=
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5092 $as_echo_n "checking dependency style of $depcc... " >&6; }
5093 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5097   # We make a subdir and do the tests there.  Otherwise we can end up
5098   # making bogus files that we don't know about and never remove.  For
5099   # instance it was reported that on HP-UX the gcc test will end up
5100   # making a dummy file named `D' -- because `-MD' means `put the output
5101   # in D'.
5102   mkdir conftest.dir
5103   # Copy depcomp to subdir because otherwise we won't find it if we're
5104   # using a relative directory.
5105   cp "$am_depcomp" conftest.dir
5106   cd conftest.dir
5107   # We will build objects and dependencies in a subdirectory because
5108   # it helps to detect inapplicable dependency modes.  For instance
5109   # both Tru64's cc and ICC support -MD to output dependencies as a
5110   # side effect of compilation, but ICC will put the dependencies in
5111   # the current directory while Tru64 will put them in the object
5112   # directory.
5113   mkdir sub
5114
5115   am_cv_CCAS_dependencies_compiler_type=none
5116   if test "$am_compiler_list" = ""; then
5117      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5118   fi
5119   am__universal=false
5120
5121
5122   for depmode in $am_compiler_list; do
5123     # Setup a source with many dependencies, because some compilers
5124     # like to wrap large dependency lists on column 80 (with \), and
5125     # we should not choose a depcomp mode which is confused by this.
5126     #
5127     # We need to recreate these files for each test, as the compiler may
5128     # overwrite some of them when testing with obscure command lines.
5129     # This happens at least with the AIX C compiler.
5130     : > sub/conftest.c
5131     for i in 1 2 3 4 5 6; do
5132       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5133       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5134       # Solaris 8's {/usr,}/bin/sh.
5135       touch sub/conftst$i.h
5136     done
5137     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5138
5139     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5140     # mode.  It turns out that the SunPro C++ compiler does not properly
5141     # handle `-M -o', and we need to detect this.  Also, some Intel
5142     # versions had trouble with output in subdirs
5143     am__obj=sub/conftest.${OBJEXT-o}
5144     am__minus_obj="-o $am__obj"
5145     case $depmode in
5146     gcc)
5147       # This depmode causes a compiler race in universal mode.
5148       test "$am__universal" = false || continue
5149       ;;
5150     nosideeffect)
5151       # after this tag, mechanisms are not by side-effect, so they'll
5152       # only be used when explicitly requested
5153       if test "x$enable_dependency_tracking" = xyes; then
5154         continue
5155       else
5156         break
5157       fi
5158       ;;
5159     msvisualcpp | msvcmsys)
5160       # This compiler won't grok `-c -o', but also, the minuso test has
5161       # not run yet.  These depmodes are late enough in the game, and
5162       # so weak that their functioning should not be impacted.
5163       am__obj=conftest.${OBJEXT-o}
5164       am__minus_obj=
5165       ;;
5166     none) break ;;
5167     esac
5168     if depmode=$depmode \
5169        source=sub/conftest.c object=$am__obj \
5170        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5171        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5172          >/dev/null 2>conftest.err &&
5173        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5174        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5175        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5176        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5177       # icc doesn't choke on unknown options, it will just issue warnings
5178       # or remarks (even with -Werror).  So we grep stderr for any message
5179       # that says an option was ignored or not supported.
5180       # When given -MP, icc 7.0 and 7.1 complain thusly:
5181       #   icc: Command line warning: ignoring option '-M'; no argument required
5182       # The diagnosis changed in icc 8.0:
5183       #   icc: Command line remark: option '-MP' not supported
5184       if (grep 'ignoring option' conftest.err ||
5185           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5186         am_cv_CCAS_dependencies_compiler_type=$depmode
5187         break
5188       fi
5189     fi
5190   done
5191
5192   cd ..
5193   rm -rf conftest.dir
5194 else
5195   am_cv_CCAS_dependencies_compiler_type=none
5196 fi
5197
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5200 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5201 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5202
5203  if
5204   test "x$enable_dependency_tracking" != xno \
5205   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5206   am__fastdepCCAS_TRUE=
5207   am__fastdepCCAS_FALSE='#'
5208 else
5209   am__fastdepCCAS_TRUE='#'
5210   am__fastdepCCAS_FALSE=
5211 fi
5212
5213
5214 if test -n "$ac_tool_prefix"; then
5215   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5216 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_RANLIB+:} false; then :
5220   $as_echo_n "(cached) " >&6
5221 else
5222   if test -n "$RANLIB"; then
5223   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230     for ac_exec_ext in '' $ac_executable_extensions; do
5231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234     break 2
5235   fi
5236 done
5237   done
5238 IFS=$as_save_IFS
5239
5240 fi
5241 fi
5242 RANLIB=$ac_cv_prog_RANLIB
5243 if test -n "$RANLIB"; then
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5245 $as_echo "$RANLIB" >&6; }
5246 else
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 fi
5250
5251
5252 fi
5253 if test -z "$ac_cv_prog_RANLIB"; then
5254   ac_ct_RANLIB=$RANLIB
5255   # Extract the first word of "ranlib", so it can be a program name with args.
5256 set dummy ranlib; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5260   $as_echo_n "(cached) " >&6
5261 else
5262   if test -n "$ac_ct_RANLIB"; then
5263   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268   IFS=$as_save_IFS
5269   test -z "$as_dir" && as_dir=.
5270     for ac_exec_ext in '' $ac_executable_extensions; do
5271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272     ac_cv_prog_ac_ct_RANLIB="ranlib"
5273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274     break 2
5275   fi
5276 done
5277   done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5283 if test -n "$ac_ct_RANLIB"; then
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5285 $as_echo "$ac_ct_RANLIB" >&6; }
5286 else
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291   if test "x$ac_ct_RANLIB" = x; then
5292     RANLIB=":"
5293   else
5294     case $cross_compiling:$ac_tool_warned in
5295 yes:)
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5298 ac_tool_warned=yes ;;
5299 esac
5300     RANLIB=$ac_ct_RANLIB
5301   fi
5302 else
5303   RANLIB="$ac_cv_prog_RANLIB"
5304 fi
5305
5306 case `pwd` in
5307   *\ * | *\     *)
5308     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5309 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5310 esac
5311
5312
5313
5314 macro_version='2.4'
5315 macro_revision='1.3293'
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329 ltmain="$ac_aux_dir/ltmain.sh"
5330
5331 # Backslashify metacharacters that are still active within
5332 # double-quoted strings.
5333 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5334
5335 # Same as above, but do not quote variable references.
5336 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5337
5338 # Sed substitution to delay expansion of an escaped shell variable in a
5339 # double_quote_subst'ed string.
5340 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5341
5342 # Sed substitution to delay expansion of an escaped single quote.
5343 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5344
5345 # Sed substitution to avoid accidental globbing in evaled expressions
5346 no_glob_subst='s/\*/\\\*/g'
5347
5348 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5349 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5350 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5353 $as_echo_n "checking how to print strings... " >&6; }
5354 # Test print first, because it will be a builtin if present.
5355 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5356    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5357   ECHO='print -r --'
5358 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5359   ECHO='printf %s\n'
5360 else
5361   # Use this function as a fallback that always works.
5362   func_fallback_echo ()
5363   {
5364     eval 'cat <<_LTECHO_EOF
5365 $1
5366 _LTECHO_EOF'
5367   }
5368   ECHO='func_fallback_echo'
5369 fi
5370
5371 # func_echo_all arg...
5372 # Invoke $ECHO with all args, space-separated.
5373 func_echo_all ()
5374 {
5375     $ECHO ""
5376 }
5377
5378 case "$ECHO" in
5379   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5380 $as_echo "printf" >&6; } ;;
5381   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5382 $as_echo "print -r" >&6; } ;;
5383   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5384 $as_echo "cat" >&6; } ;;
5385 esac
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5401 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5402 if ${ac_cv_path_SED+:} false; then :
5403   $as_echo_n "(cached) " >&6
5404 else
5405             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5406      for ac_i in 1 2 3 4 5 6 7; do
5407        ac_script="$ac_script$as_nl$ac_script"
5408      done
5409      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5410      { ac_script=; unset ac_script;}
5411      if test -z "$SED"; then
5412   ac_path_SED_found=false
5413   # Loop through the user's path and test for each of PROGNAME-LIST
5414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419     for ac_prog in sed gsed; do
5420     for ac_exec_ext in '' $ac_executable_extensions; do
5421       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5422       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5423 # Check for GNU ac_path_SED and select it if it is found.
5424   # Check for GNU $ac_path_SED
5425 case `"$ac_path_SED" --version 2>&1` in
5426 *GNU*)
5427   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5428 *)
5429   ac_count=0
5430   $as_echo_n 0123456789 >"conftest.in"
5431   while :
5432   do
5433     cat "conftest.in" "conftest.in" >"conftest.tmp"
5434     mv "conftest.tmp" "conftest.in"
5435     cp "conftest.in" "conftest.nl"
5436     $as_echo '' >> "conftest.nl"
5437     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5438     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5439     as_fn_arith $ac_count + 1 && ac_count=$as_val
5440     if test $ac_count -gt ${ac_path_SED_max-0}; then
5441       # Best one so far, save it but keep looking for a better one
5442       ac_cv_path_SED="$ac_path_SED"
5443       ac_path_SED_max=$ac_count
5444     fi
5445     # 10*(2^10) chars as input seems more than enough
5446     test $ac_count -gt 10 && break
5447   done
5448   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5449 esac
5450
5451       $ac_path_SED_found && break 3
5452     done
5453   done
5454   done
5455 IFS=$as_save_IFS
5456   if test -z "$ac_cv_path_SED"; then
5457     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5458   fi
5459 else
5460   ac_cv_path_SED=$SED
5461 fi
5462
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5465 $as_echo "$ac_cv_path_SED" >&6; }
5466  SED="$ac_cv_path_SED"
5467   rm -f conftest.sed
5468
5469 test -z "$SED" && SED=sed
5470 Xsed="$SED -e 1s/^X//"
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5483 $as_echo_n "checking for fgrep... " >&6; }
5484 if ${ac_cv_path_FGREP+:} false; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5488    then ac_cv_path_FGREP="$GREP -F"
5489    else
5490      if test -z "$FGREP"; then
5491   ac_path_FGREP_found=false
5492   # Loop through the user's path and test for each of PROGNAME-LIST
5493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498     for ac_prog in fgrep; do
5499     for ac_exec_ext in '' $ac_executable_extensions; do
5500       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5501       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5502 # Check for GNU ac_path_FGREP and select it if it is found.
5503   # Check for GNU $ac_path_FGREP
5504 case `"$ac_path_FGREP" --version 2>&1` in
5505 *GNU*)
5506   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5507 *)
5508   ac_count=0
5509   $as_echo_n 0123456789 >"conftest.in"
5510   while :
5511   do
5512     cat "conftest.in" "conftest.in" >"conftest.tmp"
5513     mv "conftest.tmp" "conftest.in"
5514     cp "conftest.in" "conftest.nl"
5515     $as_echo 'FGREP' >> "conftest.nl"
5516     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5517     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5518     as_fn_arith $ac_count + 1 && ac_count=$as_val
5519     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5520       # Best one so far, save it but keep looking for a better one
5521       ac_cv_path_FGREP="$ac_path_FGREP"
5522       ac_path_FGREP_max=$ac_count
5523     fi
5524     # 10*(2^10) chars as input seems more than enough
5525     test $ac_count -gt 10 && break
5526   done
5527   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5528 esac
5529
5530       $ac_path_FGREP_found && break 3
5531     done
5532   done
5533   done
5534 IFS=$as_save_IFS
5535   if test -z "$ac_cv_path_FGREP"; then
5536     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5537   fi
5538 else
5539   ac_cv_path_FGREP=$FGREP
5540 fi
5541
5542    fi
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5545 $as_echo "$ac_cv_path_FGREP" >&6; }
5546  FGREP="$ac_cv_path_FGREP"
5547
5548
5549 test -z "$GREP" && GREP=grep
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 # Check whether --with-gnu-ld was given.
5570 if test "${with_gnu_ld+set}" = set; then :
5571   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5572 else
5573   with_gnu_ld=no
5574 fi
5575
5576 ac_prog=ld
5577 if test "$GCC" = yes; then
5578   # Check if gcc -print-prog-name=ld gives a path.
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5580 $as_echo_n "checking for ld used by $CC... " >&6; }
5581   case $host in
5582   *-*-mingw*)
5583     # gcc leaves a trailing carriage return which upsets mingw
5584     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5585   *)
5586     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5587   esac
5588   case $ac_prog in
5589     # Accept absolute paths.
5590     [\\/]* | ?:[\\/]*)
5591       re_direlt='/[^/][^/]*/\.\./'
5592       # Canonicalize the pathname of ld
5593       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5594       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5595         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5596       done
5597       test -z "$LD" && LD="$ac_prog"
5598       ;;
5599   "")
5600     # If it fails, then pretend we aren't using GCC.
5601     ac_prog=ld
5602     ;;
5603   *)
5604     # If it is relative, then search for the first ld in PATH.
5605     with_gnu_ld=unknown
5606     ;;
5607   esac
5608 elif test "$with_gnu_ld" = yes; then
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5610 $as_echo_n "checking for GNU ld... " >&6; }
5611 else
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5613 $as_echo_n "checking for non-GNU ld... " >&6; }
5614 fi
5615 if ${lt_cv_path_LD+:} false; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   if test -z "$LD"; then
5619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5620   for ac_dir in $PATH; do
5621     IFS="$lt_save_ifs"
5622     test -z "$ac_dir" && ac_dir=.
5623     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5624       lt_cv_path_LD="$ac_dir/$ac_prog"
5625       # Check to see if the program is GNU ld.  I'd rather use --version,
5626       # but apparently some variants of GNU ld only accept -v.
5627       # Break only if it was the GNU/non-GNU ld that we prefer.
5628       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5629       *GNU* | *'with BFD'*)
5630         test "$with_gnu_ld" != no && break
5631         ;;
5632       *)
5633         test "$with_gnu_ld" != yes && break
5634         ;;
5635       esac
5636     fi
5637   done
5638   IFS="$lt_save_ifs"
5639 else
5640   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5641 fi
5642 fi
5643
5644 LD="$lt_cv_path_LD"
5645 if test -n "$LD"; then
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5647 $as_echo "$LD" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5655 if ${lt_cv_prog_gnu_ld+:} false; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5659 case `$LD -v 2>&1 </dev/null` in
5660 *GNU* | *'with BFD'*)
5661   lt_cv_prog_gnu_ld=yes
5662   ;;
5663 *)
5664   lt_cv_prog_gnu_ld=no
5665   ;;
5666 esac
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5669 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5670 with_gnu_ld=$lt_cv_prog_gnu_ld
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5681 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5682 if ${lt_cv_path_NM+:} false; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   if test -n "$NM"; then
5686   # Let the user override the test.
5687   lt_cv_path_NM="$NM"
5688 else
5689   lt_nm_to_check="${ac_tool_prefix}nm"
5690   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5691     lt_nm_to_check="$lt_nm_to_check nm"
5692   fi
5693   for lt_tmp_nm in $lt_nm_to_check; do
5694     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5695     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5696       IFS="$lt_save_ifs"
5697       test -z "$ac_dir" && ac_dir=.
5698       tmp_nm="$ac_dir/$lt_tmp_nm"
5699       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5700         # Check to see if the nm accepts a BSD-compat flag.
5701         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5702         #   nm: unknown option "B" ignored
5703         # Tru64's nm complains that /dev/null is an invalid object file
5704         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5705         */dev/null* | *'Invalid file or object type'*)
5706           lt_cv_path_NM="$tmp_nm -B"
5707           break
5708           ;;
5709         *)
5710           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5711           */dev/null*)
5712             lt_cv_path_NM="$tmp_nm -p"
5713             break
5714             ;;
5715           *)
5716             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5717             continue # so that we can try to find one that supports BSD flags
5718             ;;
5719           esac
5720           ;;
5721         esac
5722       fi
5723     done
5724     IFS="$lt_save_ifs"
5725   done
5726   : ${lt_cv_path_NM=no}
5727 fi
5728 fi
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5730 $as_echo "$lt_cv_path_NM" >&6; }
5731 if test "$lt_cv_path_NM" != "no"; then
5732   NM="$lt_cv_path_NM"
5733 else
5734   # Didn't find any BSD compatible name lister, look for dumpbin.
5735   if test -n "$DUMPBIN"; then :
5736     # Let the user override the test.
5737   else
5738     if test -n "$ac_tool_prefix"; then
5739   for ac_prog in dumpbin "link -dump"
5740   do
5741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_DUMPBIN+:} false; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   if test -n "$DUMPBIN"; then
5749   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763   done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 DUMPBIN=$ac_cv_prog_DUMPBIN
5769 if test -n "$DUMPBIN"; then
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5771 $as_echo "$DUMPBIN" >&6; }
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777
5778     test -n "$DUMPBIN" && break
5779   done
5780 fi
5781 if test -z "$DUMPBIN"; then
5782   ac_ct_DUMPBIN=$DUMPBIN
5783   for ac_prog in dumpbin "link -dump"
5784 do
5785   # Extract the first word of "$ac_prog", so it can be a program name with args.
5786 set dummy $ac_prog; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792   if test -n "$ac_ct_DUMPBIN"; then
5793   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798   IFS=$as_save_IFS
5799   test -z "$as_dir" && as_dir=.
5800     for ac_exec_ext in '' $ac_executable_extensions; do
5801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804     break 2
5805   fi
5806 done
5807   done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5813 if test -n "$ac_ct_DUMPBIN"; then
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5815 $as_echo "$ac_ct_DUMPBIN" >&6; }
5816 else
5817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821
5822   test -n "$ac_ct_DUMPBIN" && break
5823 done
5824
5825   if test "x$ac_ct_DUMPBIN" = x; then
5826     DUMPBIN=":"
5827   else
5828     case $cross_compiling:$ac_tool_warned in
5829 yes:)
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832 ac_tool_warned=yes ;;
5833 esac
5834     DUMPBIN=$ac_ct_DUMPBIN
5835   fi
5836 fi
5837
5838     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5839     *COFF*)
5840       DUMPBIN="$DUMPBIN -symbols"
5841       ;;
5842     *)
5843       DUMPBIN=:
5844       ;;
5845     esac
5846   fi
5847
5848   if test "$DUMPBIN" != ":"; then
5849     NM="$DUMPBIN"
5850   fi
5851 fi
5852 test -z "$NM" && NM=nm
5853
5854
5855
5856
5857
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5860 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5861 if ${lt_cv_nm_interface+:} false; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   lt_cv_nm_interface="BSD nm"
5865   echo "int some_variable = 0;" > conftest.$ac_ext
5866   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5867   (eval "$ac_compile" 2>conftest.err)
5868   cat conftest.err >&5
5869   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5870   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5871   cat conftest.err >&5
5872   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5873   cat conftest.out >&5
5874   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5875     lt_cv_nm_interface="MS dumpbin"
5876   fi
5877   rm -f conftest*
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5880 $as_echo "$lt_cv_nm_interface" >&6; }
5881
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5883 $as_echo_n "checking whether ln -s works... " >&6; }
5884 LN_S=$as_ln_s
5885 if test "$LN_S" = "ln -s"; then
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5887 $as_echo "yes" >&6; }
5888 else
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5890 $as_echo "no, using $LN_S" >&6; }
5891 fi
5892
5893 # find the maximum length of command line arguments
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5895 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5896 if ${lt_cv_sys_max_cmd_len+:} false; then :
5897   $as_echo_n "(cached) " >&6
5898 else
5899     i=0
5900   teststring="ABCD"
5901
5902   case $build_os in
5903   msdosdjgpp*)
5904     # On DJGPP, this test can blow up pretty badly due to problems in libc
5905     # (any single argument exceeding 2000 bytes causes a buffer overrun
5906     # during glob expansion).  Even if it were fixed, the result of this
5907     # check would be larger than it should be.
5908     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5909     ;;
5910
5911   gnu*)
5912     # Under GNU Hurd, this test is not required because there is
5913     # no limit to the length of command line arguments.
5914     # Libtool will interpret -1 as no limit whatsoever
5915     lt_cv_sys_max_cmd_len=-1;
5916     ;;
5917
5918   cygwin* | mingw* | cegcc*)
5919     # On Win9x/ME, this test blows up -- it succeeds, but takes
5920     # about 5 minutes as the teststring grows exponentially.
5921     # Worse, since 9x/ME are not pre-emptively multitasking,
5922     # you end up with a "frozen" computer, even though with patience
5923     # the test eventually succeeds (with a max line length of 256k).
5924     # Instead, let's just punt: use the minimum linelength reported by
5925     # all of the supported platforms: 8192 (on NT/2K/XP).
5926     lt_cv_sys_max_cmd_len=8192;
5927     ;;
5928
5929   mint*)
5930     # On MiNT this can take a long time and run out of memory.
5931     lt_cv_sys_max_cmd_len=8192;
5932     ;;
5933
5934   amigaos*)
5935     # On AmigaOS with pdksh, this test takes hours, literally.
5936     # So we just punt and use a minimum line length of 8192.
5937     lt_cv_sys_max_cmd_len=8192;
5938     ;;
5939
5940   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5941     # This has been around since 386BSD, at least.  Likely further.
5942     if test -x /sbin/sysctl; then
5943       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5944     elif test -x /usr/sbin/sysctl; then
5945       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5946     else
5947       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5948     fi
5949     # And add a safety zone
5950     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5951     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5952     ;;
5953
5954   interix*)
5955     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5956     lt_cv_sys_max_cmd_len=196608
5957     ;;
5958
5959   osf*)
5960     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5961     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5962     # nice to cause kernel panics so lets avoid the loop below.
5963     # First set a reasonable default.
5964     lt_cv_sys_max_cmd_len=16384
5965     #
5966     if test -x /sbin/sysconfig; then
5967       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5968         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5969       esac
5970     fi
5971     ;;
5972   sco3.2v5*)
5973     lt_cv_sys_max_cmd_len=102400
5974     ;;
5975   sysv5* | sco5v6* | sysv4.2uw2*)
5976     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5977     if test -n "$kargmax"; then
5978       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5979     else
5980       lt_cv_sys_max_cmd_len=32768
5981     fi
5982     ;;
5983   *)
5984     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5985     if test -n "$lt_cv_sys_max_cmd_len"; then
5986       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5987       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5988     else
5989       # Make teststring a little bigger before we do anything with it.
5990       # a 1K string should be a reasonable start.
5991       for i in 1 2 3 4 5 6 7 8 ; do
5992         teststring=$teststring$teststring
5993       done
5994       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5995       # If test is not a shell built-in, we'll probably end up computing a
5996       # maximum length that is only half of the actual maximum length, but
5997       # we can't tell.
5998       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5999                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6000               test $i != 17 # 1/2 MB should be enough
6001       do
6002         i=`expr $i + 1`
6003         teststring=$teststring$teststring
6004       done
6005       # Only check the string length outside the loop.
6006       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6007       teststring=
6008       # Add a significant safety factor because C++ compilers can tack on
6009       # massive amounts of additional arguments before passing them to the
6010       # linker.  It appears as though 1/2 is a usable value.
6011       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6012     fi
6013     ;;
6014   esac
6015
6016 fi
6017
6018 if test -n $lt_cv_sys_max_cmd_len ; then
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6020 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6021 else
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6023 $as_echo "none" >&6; }
6024 fi
6025 max_cmd_len=$lt_cv_sys_max_cmd_len
6026
6027
6028
6029
6030
6031
6032 : ${CP="cp -f"}
6033 : ${MV="mv -f"}
6034 : ${RM="rm -f"}
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6037 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6038 # Try some XSI features
6039 xsi_shell=no
6040 ( _lt_dummy="a/b/c"
6041   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6042       = c,a/b,b/c, \
6043     && eval 'test $(( 1 + 1 )) -eq 2 \
6044     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6045   && xsi_shell=yes
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6047 $as_echo "$xsi_shell" >&6; }
6048
6049
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6051 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6052 lt_shell_append=no
6053 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6054     >/dev/null 2>&1 \
6055   && lt_shell_append=yes
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6057 $as_echo "$lt_shell_append" >&6; }
6058
6059
6060 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6061   lt_unset=unset
6062 else
6063   lt_unset=false
6064 fi
6065
6066
6067
6068
6069
6070 # test EBCDIC or ASCII
6071 case `echo X|tr X '\101'` in
6072  A) # ASCII based system
6073     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6074   lt_SP2NL='tr \040 \012'
6075   lt_NL2SP='tr \015\012 \040\040'
6076   ;;
6077  *) # EBCDIC based system
6078   lt_SP2NL='tr \100 \n'
6079   lt_NL2SP='tr \r\n \100\100'
6080   ;;
6081 esac
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6092 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6093 if ${lt_cv_to_host_file_cmd+:} false; then :
6094   $as_echo_n "(cached) " >&6
6095 else
6096   case $host in
6097   *-*-mingw* )
6098     case $build in
6099       *-*-mingw* ) # actually msys
6100         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6101         ;;
6102       *-*-cygwin* )
6103         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6104         ;;
6105       * ) # otherwise, assume *nix
6106         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6107         ;;
6108     esac
6109     ;;
6110   *-*-cygwin* )
6111     case $build in
6112       *-*-mingw* ) # actually msys
6113         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6114         ;;
6115       *-*-cygwin* )
6116         lt_cv_to_host_file_cmd=func_convert_file_noop
6117         ;;
6118       * ) # otherwise, assume *nix
6119         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6120         ;;
6121     esac
6122     ;;
6123   * ) # unhandled hosts (and "normal" native builds)
6124     lt_cv_to_host_file_cmd=func_convert_file_noop
6125     ;;
6126 esac
6127
6128 fi
6129
6130 to_host_file_cmd=$lt_cv_to_host_file_cmd
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6132 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6133
6134
6135
6136
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6139 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6140 if ${lt_cv_to_tool_file_cmd+:} false; then :
6141   $as_echo_n "(cached) " >&6
6142 else
6143   #assume ordinary cross tools, or native build.
6144 lt_cv_to_tool_file_cmd=func_convert_file_noop
6145 case $host in
6146   *-*-mingw* )
6147     case $build in
6148       *-*-mingw* ) # actually msys
6149         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6150         ;;
6151     esac
6152     ;;
6153 esac
6154
6155 fi
6156
6157 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6159 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6160
6161
6162
6163
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6166 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6167 if ${lt_cv_ld_reload_flag+:} false; then :
6168   $as_echo_n "(cached) " >&6
6169 else
6170   lt_cv_ld_reload_flag='-r'
6171 fi
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6173 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6174 reload_flag=$lt_cv_ld_reload_flag
6175 case $reload_flag in
6176 "" | " "*) ;;
6177 *) reload_flag=" $reload_flag" ;;
6178 esac
6179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6180 case $host_os in
6181   cygwin* | mingw* | pw32* | cegcc*)
6182     if test "$GCC" != yes; then
6183       reload_cmds=false
6184     fi
6185     ;;
6186   darwin*)
6187     if test "$GCC" = yes; then
6188       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6189     else
6190       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191     fi
6192     ;;
6193 esac
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 if test -n "$ac_tool_prefix"; then
6204   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if ${ac_cv_prog_OBJDUMP+:} false; then :
6209   $as_echo_n "(cached) " >&6
6210 else
6211   if test -n "$OBJDUMP"; then
6212   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217   IFS=$as_save_IFS
6218   test -z "$as_dir" && as_dir=.
6219     for ac_exec_ext in '' $ac_executable_extensions; do
6220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223     break 2
6224   fi
6225 done
6226   done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 OBJDUMP=$ac_cv_prog_OBJDUMP
6232 if test -n "$OBJDUMP"; then
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6234 $as_echo "$OBJDUMP" >&6; }
6235 else
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239
6240
6241 fi
6242 if test -z "$ac_cv_prog_OBJDUMP"; then
6243   ac_ct_OBJDUMP=$OBJDUMP
6244   # Extract the first word of "objdump", so it can be a program name with args.
6245 set dummy objdump; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   if test -n "$ac_ct_OBJDUMP"; then
6252   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259     for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266   done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6272 if test -n "$ac_ct_OBJDUMP"; then
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6274 $as_echo "$ac_ct_OBJDUMP" >&6; }
6275 else
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280   if test "x$ac_ct_OBJDUMP" = x; then
6281     OBJDUMP="false"
6282   else
6283     case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289     OBJDUMP=$ac_ct_OBJDUMP
6290   fi
6291 else
6292   OBJDUMP="$ac_cv_prog_OBJDUMP"
6293 fi
6294
6295 test -z "$OBJDUMP" && OBJDUMP=objdump
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6306 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6307 if ${lt_cv_deplibs_check_method+:} false; then :
6308   $as_echo_n "(cached) " >&6
6309 else
6310   lt_cv_file_magic_cmd='$MAGIC_CMD'
6311 lt_cv_file_magic_test_file=
6312 lt_cv_deplibs_check_method='unknown'
6313 # Need to set the preceding variable on all platforms that support
6314 # interlibrary dependencies.
6315 # 'none' -- dependencies not supported.
6316 # `unknown' -- same as none, but documents that we really don't know.
6317 # 'pass_all' -- all dependencies passed with no checks.
6318 # 'test_compile' -- check by making test program.
6319 # 'file_magic [[regex]]' -- check by looking for files in library path
6320 # which responds to the $file_magic_cmd with a given extended regex.
6321 # If you have `file' or equivalent on your system and you're not sure
6322 # whether `pass_all' will *always* work, you probably want this one.
6323
6324 case $host_os in
6325 aix[4-9]*)
6326   lt_cv_deplibs_check_method=pass_all
6327   ;;
6328
6329 beos*)
6330   lt_cv_deplibs_check_method=pass_all
6331   ;;
6332
6333 bsdi[45]*)
6334   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6335   lt_cv_file_magic_cmd='/usr/bin/file -L'
6336   lt_cv_file_magic_test_file=/shlib/libc.so
6337   ;;
6338
6339 cygwin*)
6340   # func_win32_libid is a shell function defined in ltmain.sh
6341   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6342   lt_cv_file_magic_cmd='func_win32_libid'
6343   ;;
6344
6345 mingw* | pw32*)
6346   # Base MSYS/MinGW do not provide the 'file' command needed by
6347   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6348   # unless we find 'file', for example because we are cross-compiling.
6349   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6350   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6351     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6352     lt_cv_file_magic_cmd='func_win32_libid'
6353   else
6354     # Keep this pattern in sync with the one in func_win32_libid.
6355     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6356     lt_cv_file_magic_cmd='$OBJDUMP -f'
6357   fi
6358   ;;
6359
6360 cegcc*)
6361   # use the weaker test based on 'objdump'. See mingw*.
6362   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6363   lt_cv_file_magic_cmd='$OBJDUMP -f'
6364   ;;
6365
6366 darwin* | rhapsody*)
6367   lt_cv_deplibs_check_method=pass_all
6368   ;;
6369
6370 freebsd* | dragonfly*)
6371   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6372     case $host_cpu in
6373     i*86 )
6374       # Not sure whether the presence of OpenBSD here was a mistake.
6375       # Let's accept both of them until this is cleared up.
6376       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6377       lt_cv_file_magic_cmd=/usr/bin/file
6378       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6379       ;;
6380     esac
6381   else
6382     lt_cv_deplibs_check_method=pass_all
6383   fi
6384   ;;
6385
6386 gnu*)
6387   lt_cv_deplibs_check_method=pass_all
6388   ;;
6389
6390 haiku*)
6391   lt_cv_deplibs_check_method=pass_all
6392   ;;
6393
6394 hpux10.20* | hpux11*)
6395   lt_cv_file_magic_cmd=/usr/bin/file
6396   case $host_cpu in
6397   ia64*)
6398     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6399     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6400     ;;
6401   hppa*64*)
6402     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6403     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6404     ;;
6405   *)
6406     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6407     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6408     ;;
6409   esac
6410   ;;
6411
6412 interix[3-9]*)
6413   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6414   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6415   ;;
6416
6417 irix5* | irix6* | nonstopux*)
6418   case $LD in
6419   *-32|*"-32 ") libmagic=32-bit;;
6420   *-n32|*"-n32 ") libmagic=N32;;
6421   *-64|*"-64 ") libmagic=64-bit;;
6422   *) libmagic=never-match;;
6423   esac
6424   lt_cv_deplibs_check_method=pass_all
6425   ;;
6426
6427 # This must be Linux ELF.
6428 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6429   lt_cv_deplibs_check_method=pass_all
6430   ;;
6431
6432 netbsd*)
6433   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6434     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6435   else
6436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6437   fi
6438   ;;
6439
6440 newos6*)
6441   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6442   lt_cv_file_magic_cmd=/usr/bin/file
6443   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6444   ;;
6445
6446 *nto* | *qnx*)
6447   lt_cv_deplibs_check_method=pass_all
6448   ;;
6449
6450 openbsd*)
6451   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6452     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6453   else
6454     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6455   fi
6456   ;;
6457
6458 osf3* | osf4* | osf5*)
6459   lt_cv_deplibs_check_method=pass_all
6460   ;;
6461
6462 rdos*)
6463   lt_cv_deplibs_check_method=pass_all
6464   ;;
6465
6466 solaris*)
6467   lt_cv_deplibs_check_method=pass_all
6468   ;;
6469
6470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6471   lt_cv_deplibs_check_method=pass_all
6472   ;;
6473
6474 sysv4 | sysv4.3*)
6475   case $host_vendor in
6476   motorola)
6477     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]'
6478     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6479     ;;
6480   ncr)
6481     lt_cv_deplibs_check_method=pass_all
6482     ;;
6483   sequent)
6484     lt_cv_file_magic_cmd='/bin/file'
6485     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6486     ;;
6487   sni)
6488     lt_cv_file_magic_cmd='/bin/file'
6489     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6490     lt_cv_file_magic_test_file=/lib/libc.so
6491     ;;
6492   siemens)
6493     lt_cv_deplibs_check_method=pass_all
6494     ;;
6495   pc)
6496     lt_cv_deplibs_check_method=pass_all
6497     ;;
6498   esac
6499   ;;
6500
6501 tpf*)
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504 esac
6505
6506 fi
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6508 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6509
6510 file_magic_glob=
6511 want_nocaseglob=no
6512 if test "$build" = "$host"; then
6513   case $host_os in
6514   mingw* | pw32*)
6515     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6516       want_nocaseglob=yes
6517     else
6518       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6519     fi
6520     ;;
6521   esac
6522 fi
6523
6524 file_magic_cmd=$lt_cv_file_magic_cmd
6525 deplibs_check_method=$lt_cv_deplibs_check_method
6526 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549 if test -n "$ac_tool_prefix"; then
6550   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_DLLTOOL+:} false; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   if test -n "$DLLTOOL"; then
6558   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565     for ac_exec_ext in '' $ac_executable_extensions; do
6566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572   done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 DLLTOOL=$ac_cv_prog_DLLTOOL
6578 if test -n "$DLLTOOL"; then
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6580 $as_echo "$DLLTOOL" >&6; }
6581 else
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586
6587 fi
6588 if test -z "$ac_cv_prog_DLLTOOL"; then
6589   ac_ct_DLLTOOL=$DLLTOOL
6590   # Extract the first word of "dlltool", so it can be a program name with args.
6591 set dummy dlltool; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   if test -n "$ac_ct_DLLTOOL"; then
6598   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605     for ac_exec_ext in '' $ac_executable_extensions; do
6606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612   done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6618 if test -n "$ac_ct_DLLTOOL"; then
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6620 $as_echo "$ac_ct_DLLTOOL" >&6; }
6621 else
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625
6626   if test "x$ac_ct_DLLTOOL" = x; then
6627     DLLTOOL="false"
6628   else
6629     case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633 ac_tool_warned=yes ;;
6634 esac
6635     DLLTOOL=$ac_ct_DLLTOOL
6636   fi
6637 else
6638   DLLTOOL="$ac_cv_prog_DLLTOOL"
6639 fi
6640
6641 test -z "$DLLTOOL" && DLLTOOL=dlltool
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6653 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6654 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   lt_cv_sharedlib_from_linklib_cmd='unknown'
6658
6659 case $host_os in
6660 cygwin* | mingw* | pw32* | cegcc*)
6661   # two different shell functions defined in ltmain.sh
6662   # decide which to use based on capabilities of $DLLTOOL
6663   case `$DLLTOOL --help 2>&1` in
6664   *--identify-strict*)
6665     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6666     ;;
6667   *)
6668     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6669     ;;
6670   esac
6671   ;;
6672 *)
6673   # fallback: assume linklib IS sharedlib
6674   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6675   ;;
6676 esac
6677
6678 fi
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6680 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6681 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6682 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6683
6684
6685
6686
6687
6688
6689
6690 if test -n "$ac_tool_prefix"; then
6691   for ac_prog in ar
6692   do
6693     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_AR+:} false; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   if test -n "$AR"; then
6701   ac_cv_prog_AR="$AR" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708     for ac_exec_ext in '' $ac_executable_extensions; do
6709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715   done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 AR=$ac_cv_prog_AR
6721 if test -n "$AR"; then
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6723 $as_echo "$AR" >&6; }
6724 else
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729
6730     test -n "$AR" && break
6731   done
6732 fi
6733 if test -z "$AR"; then
6734   ac_ct_AR=$AR
6735   for ac_prog in ar
6736 do
6737   # Extract the first word of "$ac_prog", so it can be a program name with args.
6738 set dummy $ac_prog; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6742   $as_echo_n "(cached) " >&6
6743 else
6744   if test -n "$ac_ct_AR"; then
6745   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750   IFS=$as_save_IFS
6751   test -z "$as_dir" && as_dir=.
6752     for ac_exec_ext in '' $ac_executable_extensions; do
6753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754     ac_cv_prog_ac_ct_AR="$ac_prog"
6755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756     break 2
6757   fi
6758 done
6759   done
6760 IFS=$as_save_IFS
6761
6762 fi
6763 fi
6764 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6765 if test -n "$ac_ct_AR"; then
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6767 $as_echo "$ac_ct_AR" >&6; }
6768 else
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6771 fi
6772
6773
6774   test -n "$ac_ct_AR" && break
6775 done
6776
6777   if test "x$ac_ct_AR" = x; then
6778     AR="false"
6779   else
6780     case $cross_compiling:$ac_tool_warned in
6781 yes:)
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784 ac_tool_warned=yes ;;
6785 esac
6786     AR=$ac_ct_AR
6787   fi
6788 fi
6789
6790 : ${AR=ar}
6791 : ${AR_FLAGS=cru}
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6804 $as_echo_n "checking for archiver @FILE support... " >&6; }
6805 if ${lt_cv_ar_at_file+:} false; then :
6806   $as_echo_n "(cached) " >&6
6807 else
6808   lt_cv_ar_at_file=no
6809    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h.  */
6811
6812 int
6813 main ()
6814 {
6815
6816   ;
6817   return 0;
6818 }
6819 _ACEOF
6820 if ac_fn_c_try_compile "$LINENO"; then :
6821   echo conftest.$ac_objext > conftest.lst
6822       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6823       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6824   (eval $lt_ar_try) 2>&5
6825   ac_status=$?
6826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6827   test $ac_status = 0; }
6828       if test "$ac_status" -eq 0; then
6829         # Ensure the archiver fails upon bogus file names.
6830         rm -f conftest.$ac_objext libconftest.a
6831         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6832   (eval $lt_ar_try) 2>&5
6833   ac_status=$?
6834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835   test $ac_status = 0; }
6836         if test "$ac_status" -ne 0; then
6837           lt_cv_ar_at_file=@
6838         fi
6839       fi
6840       rm -f conftest.* libconftest.a
6841
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844
6845 fi
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6847 $as_echo "$lt_cv_ar_at_file" >&6; }
6848
6849 if test "x$lt_cv_ar_at_file" = xno; then
6850   archiver_list_spec=
6851 else
6852   archiver_list_spec=$lt_cv_ar_at_file
6853 fi
6854
6855
6856
6857
6858
6859
6860
6861 if test -n "$ac_tool_prefix"; then
6862   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6863 set dummy ${ac_tool_prefix}strip; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_STRIP+:} false; then :
6867   $as_echo_n "(cached) " >&6
6868 else
6869   if test -n "$STRIP"; then
6870   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877     for ac_exec_ext in '' $ac_executable_extensions; do
6878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884   done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 STRIP=$ac_cv_prog_STRIP
6890 if test -n "$STRIP"; then
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6892 $as_echo "$STRIP" >&6; }
6893 else
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898
6899 fi
6900 if test -z "$ac_cv_prog_STRIP"; then
6901   ac_ct_STRIP=$STRIP
6902   # Extract the first word of "strip", so it can be a program name with args.
6903 set dummy strip; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   if test -n "$ac_ct_STRIP"; then
6910   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917     for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_prog_ac_ct_STRIP="strip"
6920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924   done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6930 if test -n "$ac_ct_STRIP"; then
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6932 $as_echo "$ac_ct_STRIP" >&6; }
6933 else
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938   if test "x$ac_ct_STRIP" = x; then
6939     STRIP=":"
6940   else
6941     case $cross_compiling:$ac_tool_warned in
6942 yes:)
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6945 ac_tool_warned=yes ;;
6946 esac
6947     STRIP=$ac_ct_STRIP
6948   fi
6949 else
6950   STRIP="$ac_cv_prog_STRIP"
6951 fi
6952
6953 test -z "$STRIP" && STRIP=:
6954
6955
6956
6957
6958
6959
6960 if test -n "$ac_tool_prefix"; then
6961   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_prog_RANLIB+:} false; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   if test -n "$RANLIB"; then
6969   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974   IFS=$as_save_IFS
6975   test -z "$as_dir" && as_dir=.
6976     for ac_exec_ext in '' $ac_executable_extensions; do
6977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980     break 2
6981   fi
6982 done
6983   done
6984 IFS=$as_save_IFS
6985
6986 fi
6987 fi
6988 RANLIB=$ac_cv_prog_RANLIB
6989 if test -n "$RANLIB"; then
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6991 $as_echo "$RANLIB" >&6; }
6992 else
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6995 fi
6996
6997
6998 fi
6999 if test -z "$ac_cv_prog_RANLIB"; then
7000   ac_ct_RANLIB=$RANLIB
7001   # Extract the first word of "ranlib", so it can be a program name with args.
7002 set dummy ranlib; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   if test -n "$ac_ct_RANLIB"; then
7009   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016     for ac_exec_ext in '' $ac_executable_extensions; do
7017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018     ac_cv_prog_ac_ct_RANLIB="ranlib"
7019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023   done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7029 if test -n "$ac_ct_RANLIB"; then
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7031 $as_echo "$ac_ct_RANLIB" >&6; }
7032 else
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037   if test "x$ac_ct_RANLIB" = x; then
7038     RANLIB=":"
7039   else
7040     case $cross_compiling:$ac_tool_warned in
7041 yes:)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7045 esac
7046     RANLIB=$ac_ct_RANLIB
7047   fi
7048 else
7049   RANLIB="$ac_cv_prog_RANLIB"
7050 fi
7051
7052 test -z "$RANLIB" && RANLIB=:
7053
7054
7055
7056
7057
7058
7059 # Determine commands to create old-style static archives.
7060 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7061 old_postinstall_cmds='chmod 644 $oldlib'
7062 old_postuninstall_cmds=
7063
7064 if test -n "$RANLIB"; then
7065   case $host_os in
7066   openbsd*)
7067     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7068     ;;
7069   *)
7070     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7071     ;;
7072   esac
7073   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7074 fi
7075
7076 case $host_os in
7077   darwin*)
7078     lock_old_archive_extraction=yes ;;
7079   *)
7080     lock_old_archive_extraction=no ;;
7081 esac
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 # If no C compiler was specified, use CC.
7122 LTCC=${LTCC-"$CC"}
7123
7124 # If no C compiler flags were specified, use CFLAGS.
7125 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7126
7127 # Allow CC to be a program name with arguments.
7128 compiler=$CC
7129
7130
7131 # Check for command to grab the raw symbol name followed by C symbol from nm.
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7133 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7134 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7135   $as_echo_n "(cached) " >&6
7136 else
7137
7138 # These are sane defaults that work on at least a few old systems.
7139 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7140
7141 # Character class describing NM global symbol codes.
7142 symcode='[BCDEGRST]'
7143
7144 # Regexp to match symbols that can be accessed directly from C.
7145 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7146
7147 # Define system-specific variables.
7148 case $host_os in
7149 aix*)
7150   symcode='[BCDT]'
7151   ;;
7152 cygwin* | mingw* | pw32* | cegcc*)
7153   symcode='[ABCDGISTW]'
7154   ;;
7155 hpux*)
7156   if test "$host_cpu" = ia64; then
7157     symcode='[ABCDEGRST]'
7158   fi
7159   ;;
7160 irix* | nonstopux*)
7161   symcode='[BCDEGRST]'
7162   ;;
7163 osf*)
7164   symcode='[BCDEGQRST]'
7165   ;;
7166 solaris*)
7167   symcode='[BDRT]'
7168   ;;
7169 sco3.2v5*)
7170   symcode='[DT]'
7171   ;;
7172 sysv4.2uw2*)
7173   symcode='[DT]'
7174   ;;
7175 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7176   symcode='[ABDT]'
7177   ;;
7178 sysv4)
7179   symcode='[DFNSTU]'
7180   ;;
7181 esac
7182
7183 # If we're using GNU nm, then use its standard symbol codes.
7184 case `$NM -V 2>&1` in
7185 *GNU* | *'with BFD'*)
7186   symcode='[ABCDGIRSTW]' ;;
7187 esac
7188
7189 # Transform an extracted symbol line into a proper C declaration.
7190 # Some systems (esp. on ia64) link data and code symbols differently,
7191 # so use this general approach.
7192 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7193
7194 # Transform an extracted symbol line into symbol name and symbol address
7195 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7196 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7197
7198 # Handle CRLF in mingw tool chain
7199 opt_cr=
7200 case $build_os in
7201 mingw*)
7202   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7203   ;;
7204 esac
7205
7206 # Try without a prefix underscore, then with it.
7207 for ac_symprfx in "" "_"; do
7208
7209   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7210   symxfrm="\\1 $ac_symprfx\\2 \\2"
7211
7212   # Write the raw and C identifiers.
7213   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7214     # Fake it for dumpbin and say T for any non-static function
7215     # and D for any global variable.
7216     # Also find C++ and __fastcall symbols from MSVC++,
7217     # which start with @ or ?.
7218     lt_cv_sys_global_symbol_pipe="$AWK '"\
7219 "     {last_section=section; section=\$ 3};"\
7220 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7221 "     \$ 0!~/External *\|/{next};"\
7222 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7223 "     {if(hide[section]) next};"\
7224 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7225 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7226 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7227 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7228 "     ' prfx=^$ac_symprfx"
7229   else
7230     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7231   fi
7232   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7233
7234   # Check to see that the pipe works correctly.
7235   pipe_works=no
7236
7237   rm -f conftest*
7238   cat > conftest.$ac_ext <<_LT_EOF
7239 #ifdef __cplusplus
7240 extern "C" {
7241 #endif
7242 char nm_test_var;
7243 void nm_test_func(void);
7244 void nm_test_func(void){}
7245 #ifdef __cplusplus
7246 }
7247 #endif
7248 int main(){nm_test_var='a';nm_test_func();return(0);}
7249 _LT_EOF
7250
7251   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252   (eval $ac_compile) 2>&5
7253   ac_status=$?
7254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255   test $ac_status = 0; }; then
7256     # Now try to grab the symbols.
7257     nlist=conftest.nm
7258     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7259   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7260   ac_status=$?
7261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262   test $ac_status = 0; } && test -s "$nlist"; then
7263       # Try sorting and uniquifying the output.
7264       if sort "$nlist" | uniq > "$nlist"T; then
7265         mv -f "$nlist"T "$nlist"
7266       else
7267         rm -f "$nlist"T
7268       fi
7269
7270       # Make sure that we snagged all the symbols we need.
7271       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7272         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7273           cat <<_LT_EOF > conftest.$ac_ext
7274 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7275 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7276 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7277    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7278 # define LT_DLSYM_CONST
7279 #elif defined(__osf__)
7280 /* This system does not cope well with relocations in const data.  */
7281 # define LT_DLSYM_CONST
7282 #else
7283 # define LT_DLSYM_CONST const
7284 #endif
7285
7286 #ifdef __cplusplus
7287 extern "C" {
7288 #endif
7289
7290 _LT_EOF
7291           # Now generate the symbol file.
7292           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7293
7294           cat <<_LT_EOF >> conftest.$ac_ext
7295
7296 /* The mapping between symbol names and symbols.  */
7297 LT_DLSYM_CONST struct {
7298   const char *name;
7299   void       *address;
7300 }
7301 lt__PROGRAM__LTX_preloaded_symbols[] =
7302 {
7303   { "@PROGRAM@", (void *) 0 },
7304 _LT_EOF
7305           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7306           cat <<\_LT_EOF >> conftest.$ac_ext
7307   {0, (void *) 0}
7308 };
7309
7310 /* This works around a problem in FreeBSD linker */
7311 #ifdef FREEBSD_WORKAROUND
7312 static const void *lt_preloaded_setup() {
7313   return lt__PROGRAM__LTX_preloaded_symbols;
7314 }
7315 #endif
7316
7317 #ifdef __cplusplus
7318 }
7319 #endif
7320 _LT_EOF
7321           # Now try linking the two files.
7322           mv conftest.$ac_objext conftstm.$ac_objext
7323           lt_globsym_save_LIBS=$LIBS
7324           lt_globsym_save_CFLAGS=$CFLAGS
7325           LIBS="conftstm.$ac_objext"
7326           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7327           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7328   (eval $ac_link) 2>&5
7329   ac_status=$?
7330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7332             pipe_works=yes
7333           fi
7334           LIBS=$lt_globsym_save_LIBS
7335           CFLAGS=$lt_globsym_save_CFLAGS
7336         else
7337           echo "cannot find nm_test_func in $nlist" >&5
7338         fi
7339       else
7340         echo "cannot find nm_test_var in $nlist" >&5
7341       fi
7342     else
7343       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7344     fi
7345   else
7346     echo "$progname: failed program was:" >&5
7347     cat conftest.$ac_ext >&5
7348   fi
7349   rm -rf conftest* conftst*
7350
7351   # Do not use the global_symbol_pipe unless it works.
7352   if test "$pipe_works" = yes; then
7353     break
7354   else
7355     lt_cv_sys_global_symbol_pipe=
7356   fi
7357 done
7358
7359 fi
7360
7361 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7362   lt_cv_sys_global_symbol_to_cdecl=
7363 fi
7364 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7366 $as_echo "failed" >&6; }
7367 else
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7369 $as_echo "ok" >&6; }
7370 fi
7371
7372 # Response file support.
7373 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7374   nm_file_list_spec='@'
7375 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7376   nm_file_list_spec='@'
7377 fi
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7406 $as_echo_n "checking for sysroot... " >&6; }
7407
7408 # Check whether --with-sysroot was given.
7409 if test "${with_sysroot+set}" = set; then :
7410   withval=$with_sysroot;
7411 else
7412   with_sysroot=no
7413 fi
7414
7415
7416 lt_sysroot=
7417 case ${with_sysroot} in #(
7418  yes)
7419    if test "$GCC" = yes; then
7420      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7421    fi
7422    ;; #(
7423  /*)
7424    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7425    ;; #(
7426  no|'')
7427    ;; #(
7428  *)
7429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7430 $as_echo "${with_sysroot}" >&6; }
7431    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7432    ;;
7433 esac
7434
7435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7436 $as_echo "${lt_sysroot:-no}" >&6; }
7437
7438
7439
7440
7441
7442 # Check whether --enable-libtool-lock was given.
7443 if test "${enable_libtool_lock+set}" = set; then :
7444   enableval=$enable_libtool_lock;
7445 fi
7446
7447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7448
7449 # Some flags need to be propagated to the compiler or linker for good
7450 # libtool support.
7451 case $host in
7452 ia64-*-hpux*)
7453   # Find out which ABI we are using.
7454   echo 'int i;' > conftest.$ac_ext
7455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7456   (eval $ac_compile) 2>&5
7457   ac_status=$?
7458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459   test $ac_status = 0; }; then
7460     case `/usr/bin/file conftest.$ac_objext` in
7461       *ELF-32*)
7462         HPUX_IA64_MODE="32"
7463         ;;
7464       *ELF-64*)
7465         HPUX_IA64_MODE="64"
7466         ;;
7467     esac
7468   fi
7469   rm -rf conftest*
7470   ;;
7471 *-*-irix6*)
7472   # Find out which ABI we are using.
7473   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7474   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7475   (eval $ac_compile) 2>&5
7476   ac_status=$?
7477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7478   test $ac_status = 0; }; then
7479     if test "$lt_cv_prog_gnu_ld" = yes; then
7480       case `/usr/bin/file conftest.$ac_objext` in
7481         *32-bit*)
7482           LD="${LD-ld} -melf32bsmip"
7483           ;;
7484         *N32*)
7485           LD="${LD-ld} -melf32bmipn32"
7486           ;;
7487         *64-bit*)
7488           LD="${LD-ld} -melf64bmip"
7489         ;;
7490       esac
7491     else
7492       case `/usr/bin/file conftest.$ac_objext` in
7493         *32-bit*)
7494           LD="${LD-ld} -32"
7495           ;;
7496         *N32*)
7497           LD="${LD-ld} -n32"
7498           ;;
7499         *64-bit*)
7500           LD="${LD-ld} -64"
7501           ;;
7502       esac
7503     fi
7504   fi
7505   rm -rf conftest*
7506   ;;
7507
7508 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7509 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7510   # Find out which ABI we are using.
7511   echo 'int i;' > conftest.$ac_ext
7512   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7513   (eval $ac_compile) 2>&5
7514   ac_status=$?
7515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516   test $ac_status = 0; }; then
7517     case `/usr/bin/file conftest.o` in
7518       *32-bit*)
7519         case $host in
7520           x86_64-*kfreebsd*-gnu)
7521             LD="${LD-ld} -m elf_i386_fbsd"
7522             ;;
7523           x86_64-*linux*)
7524             LD="${LD-ld} -m elf_i386"
7525             ;;
7526           ppc64-*linux*|powerpc64-*linux*)
7527             LD="${LD-ld} -m elf32ppclinux"
7528             ;;
7529           s390x-*linux*)
7530             LD="${LD-ld} -m elf_s390"
7531             ;;
7532           sparc64-*linux*)
7533             LD="${LD-ld} -m elf32_sparc"
7534             ;;
7535         esac
7536         ;;
7537       *64-bit*)
7538         case $host in
7539           x86_64-*kfreebsd*-gnu)
7540             LD="${LD-ld} -m elf_x86_64_fbsd"
7541             ;;
7542           x86_64-*linux*)
7543             LD="${LD-ld} -m elf_x86_64"
7544             ;;
7545           ppc*-*linux*|powerpc*-*linux*)
7546             LD="${LD-ld} -m elf64ppc"
7547             ;;
7548           s390*-*linux*|s390*-*tpf*)
7549             LD="${LD-ld} -m elf64_s390"
7550             ;;
7551           sparc*-*linux*)
7552             LD="${LD-ld} -m elf64_sparc"
7553             ;;
7554         esac
7555         ;;
7556     esac
7557   fi
7558   rm -rf conftest*
7559   ;;
7560
7561 *-*-sco3.2v5*)
7562   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7563   SAVE_CFLAGS="$CFLAGS"
7564   CFLAGS="$CFLAGS -belf"
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7566 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7567 if ${lt_cv_cc_needs_belf+:} false; then :
7568   $as_echo_n "(cached) " >&6
7569 else
7570   ac_ext=c
7571 ac_cpp='$CPP $CPPFLAGS'
7572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7575
7576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h.  */
7578
7579 int
7580 main ()
7581 {
7582
7583   ;
7584   return 0;
7585 }
7586 _ACEOF
7587 if ac_fn_c_try_link "$LINENO"; then :
7588   lt_cv_cc_needs_belf=yes
7589 else
7590   lt_cv_cc_needs_belf=no
7591 fi
7592 rm -f core conftest.err conftest.$ac_objext \
7593     conftest$ac_exeext conftest.$ac_ext
7594      ac_ext=c
7595 ac_cpp='$CPP $CPPFLAGS'
7596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599
7600 fi
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7602 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7603   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7604     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7605     CFLAGS="$SAVE_CFLAGS"
7606   fi
7607   ;;
7608 sparc*-*solaris*)
7609   # Find out which ABI we are using.
7610   echo 'int i;' > conftest.$ac_ext
7611   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7612   (eval $ac_compile) 2>&5
7613   ac_status=$?
7614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7615   test $ac_status = 0; }; then
7616     case `/usr/bin/file conftest.o` in
7617     *64-bit*)
7618       case $lt_cv_prog_gnu_ld in
7619       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7620       *)
7621         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7622           LD="${LD-ld} -64"
7623         fi
7624         ;;
7625       esac
7626       ;;
7627     esac
7628   fi
7629   rm -rf conftest*
7630   ;;
7631 esac
7632
7633 need_locks="$enable_libtool_lock"
7634
7635 if test -n "$ac_tool_prefix"; then
7636   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7637 set dummy ${ac_tool_prefix}mt; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7641   $as_echo_n "(cached) " >&6
7642 else
7643   if test -n "$MANIFEST_TOOL"; then
7644   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651     for ac_exec_ext in '' $ac_executable_extensions; do
7652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658   done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7664 if test -n "$MANIFEST_TOOL"; then
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7666 $as_echo "$MANIFEST_TOOL" >&6; }
7667 else
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671
7672
7673 fi
7674 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7675   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7676   # Extract the first word of "mt", so it can be a program name with args.
7677 set dummy mt; ac_word=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7681   $as_echo_n "(cached) " >&6
7682 else
7683   if test -n "$ac_ct_MANIFEST_TOOL"; then
7684   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7685 else
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691     for ac_exec_ext in '' $ac_executable_extensions; do
7692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7693     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695     break 2
7696   fi
7697 done
7698   done
7699 IFS=$as_save_IFS
7700
7701 fi
7702 fi
7703 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7704 if test -n "$ac_ct_MANIFEST_TOOL"; then
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7706 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7707 else
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7710 fi
7711
7712   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7713     MANIFEST_TOOL=":"
7714   else
7715     case $cross_compiling:$ac_tool_warned in
7716 yes:)
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719 ac_tool_warned=yes ;;
7720 esac
7721     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7722   fi
7723 else
7724   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7725 fi
7726
7727 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7729 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7730 if ${lt_cv_path_mainfest_tool+:} false; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   lt_cv_path_mainfest_tool=no
7734   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7735   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7736   cat conftest.err >&5
7737   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7738     lt_cv_path_mainfest_tool=yes
7739   fi
7740   rm -f conftest*
7741 fi
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7743 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7744 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7745   MANIFEST_TOOL=:
7746 fi
7747
7748
7749
7750
7751
7752
7753   case $host_os in
7754     rhapsody* | darwin*)
7755     if test -n "$ac_tool_prefix"; then
7756   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7757 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7761   $as_echo_n "(cached) " >&6
7762 else
7763   if test -n "$DSYMUTIL"; then
7764   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769   IFS=$as_save_IFS
7770   test -z "$as_dir" && as_dir=.
7771     for ac_exec_ext in '' $ac_executable_extensions; do
7772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775     break 2
7776   fi
7777 done
7778   done
7779 IFS=$as_save_IFS
7780
7781 fi
7782 fi
7783 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7784 if test -n "$DSYMUTIL"; then
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7786 $as_echo "$DSYMUTIL" >&6; }
7787 else
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7790 fi
7791
7792
7793 fi
7794 if test -z "$ac_cv_prog_DSYMUTIL"; then
7795   ac_ct_DSYMUTIL=$DSYMUTIL
7796   # Extract the first word of "dsymutil", so it can be a program name with args.
7797 set dummy dsymutil; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   if test -n "$ac_ct_DSYMUTIL"; then
7804   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811     for ac_exec_ext in '' $ac_executable_extensions; do
7812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818   done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7824 if test -n "$ac_ct_DSYMUTIL"; then
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7826 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7827 else
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 fi
7831
7832   if test "x$ac_ct_DSYMUTIL" = x; then
7833     DSYMUTIL=":"
7834   else
7835     case $cross_compiling:$ac_tool_warned in
7836 yes:)
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7839 ac_tool_warned=yes ;;
7840 esac
7841     DSYMUTIL=$ac_ct_DSYMUTIL
7842   fi
7843 else
7844   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7845 fi
7846
7847     if test -n "$ac_tool_prefix"; then
7848   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7849 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if ${ac_cv_prog_NMEDIT+:} false; then :
7853   $as_echo_n "(cached) " >&6
7854 else
7855   if test -n "$NMEDIT"; then
7856   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861   IFS=$as_save_IFS
7862   test -z "$as_dir" && as_dir=.
7863     for ac_exec_ext in '' $ac_executable_extensions; do
7864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7865     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870   done
7871 IFS=$as_save_IFS
7872
7873 fi
7874 fi
7875 NMEDIT=$ac_cv_prog_NMEDIT
7876 if test -n "$NMEDIT"; then
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7878 $as_echo "$NMEDIT" >&6; }
7879 else
7880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7882 fi
7883
7884
7885 fi
7886 if test -z "$ac_cv_prog_NMEDIT"; then
7887   ac_ct_NMEDIT=$NMEDIT
7888   # Extract the first word of "nmedit", so it can be a program name with args.
7889 set dummy nmedit; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7893   $as_echo_n "(cached) " >&6
7894 else
7895   if test -n "$ac_ct_NMEDIT"; then
7896   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903     for ac_exec_ext in '' $ac_executable_extensions; do
7904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907     break 2
7908   fi
7909 done
7910   done
7911 IFS=$as_save_IFS
7912
7913 fi
7914 fi
7915 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7916 if test -n "$ac_ct_NMEDIT"; then
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7918 $as_echo "$ac_ct_NMEDIT" >&6; }
7919 else
7920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7922 fi
7923
7924   if test "x$ac_ct_NMEDIT" = x; then
7925     NMEDIT=":"
7926   else
7927     case $cross_compiling:$ac_tool_warned in
7928 yes:)
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7931 ac_tool_warned=yes ;;
7932 esac
7933     NMEDIT=$ac_ct_NMEDIT
7934   fi
7935 else
7936   NMEDIT="$ac_cv_prog_NMEDIT"
7937 fi
7938
7939     if test -n "$ac_tool_prefix"; then
7940   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7941 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_LIPO+:} false; then :
7945   $as_echo_n "(cached) " >&6
7946 else
7947   if test -n "$LIPO"; then
7948   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953   IFS=$as_save_IFS
7954   test -z "$as_dir" && as_dir=.
7955     for ac_exec_ext in '' $ac_executable_extensions; do
7956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7957     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959     break 2
7960   fi
7961 done
7962   done
7963 IFS=$as_save_IFS
7964
7965 fi
7966 fi
7967 LIPO=$ac_cv_prog_LIPO
7968 if test -n "$LIPO"; then
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7970 $as_echo "$LIPO" >&6; }
7971 else
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7974 fi
7975
7976
7977 fi
7978 if test -z "$ac_cv_prog_LIPO"; then
7979   ac_ct_LIPO=$LIPO
7980   # Extract the first word of "lipo", so it can be a program name with args.
7981 set dummy lipo; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   if test -n "$ac_ct_LIPO"; then
7988   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993   IFS=$as_save_IFS
7994   test -z "$as_dir" && as_dir=.
7995     for ac_exec_ext in '' $ac_executable_extensions; do
7996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997     ac_cv_prog_ac_ct_LIPO="lipo"
7998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999     break 2
8000   fi
8001 done
8002   done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8008 if test -n "$ac_ct_LIPO"; then
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8010 $as_echo "$ac_ct_LIPO" >&6; }
8011 else
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016   if test "x$ac_ct_LIPO" = x; then
8017     LIPO=":"
8018   else
8019     case $cross_compiling:$ac_tool_warned in
8020 yes:)
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023 ac_tool_warned=yes ;;
8024 esac
8025     LIPO=$ac_ct_LIPO
8026   fi
8027 else
8028   LIPO="$ac_cv_prog_LIPO"
8029 fi
8030
8031     if test -n "$ac_tool_prefix"; then
8032   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8033 set dummy ${ac_tool_prefix}otool; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_OTOOL+:} false; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   if test -n "$OTOOL"; then
8040   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047     for ac_exec_ext in '' $ac_executable_extensions; do
8048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054   done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 OTOOL=$ac_cv_prog_OTOOL
8060 if test -n "$OTOOL"; then
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8062 $as_echo "$OTOOL" >&6; }
8063 else
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068
8069 fi
8070 if test -z "$ac_cv_prog_OTOOL"; then
8071   ac_ct_OTOOL=$OTOOL
8072   # Extract the first word of "otool", so it can be a program name with args.
8073 set dummy otool; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8077   $as_echo_n "(cached) " >&6
8078 else
8079   if test -n "$ac_ct_OTOOL"; then
8080   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085   IFS=$as_save_IFS
8086   test -z "$as_dir" && as_dir=.
8087     for ac_exec_ext in '' $ac_executable_extensions; do
8088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089     ac_cv_prog_ac_ct_OTOOL="otool"
8090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091     break 2
8092   fi
8093 done
8094   done
8095 IFS=$as_save_IFS
8096
8097 fi
8098 fi
8099 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8100 if test -n "$ac_ct_OTOOL"; then
8101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8102 $as_echo "$ac_ct_OTOOL" >&6; }
8103 else
8104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8106 fi
8107
8108   if test "x$ac_ct_OTOOL" = x; then
8109     OTOOL=":"
8110   else
8111     case $cross_compiling:$ac_tool_warned in
8112 yes:)
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8115 ac_tool_warned=yes ;;
8116 esac
8117     OTOOL=$ac_ct_OTOOL
8118   fi
8119 else
8120   OTOOL="$ac_cv_prog_OTOOL"
8121 fi
8122
8123     if test -n "$ac_tool_prefix"; then
8124   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8125 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_OTOOL64+:} false; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   if test -n "$OTOOL64"; then
8132   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137   IFS=$as_save_IFS
8138   test -z "$as_dir" && as_dir=.
8139     for ac_exec_ext in '' $ac_executable_extensions; do
8140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143     break 2
8144   fi
8145 done
8146   done
8147 IFS=$as_save_IFS
8148
8149 fi
8150 fi
8151 OTOOL64=$ac_cv_prog_OTOOL64
8152 if test -n "$OTOOL64"; then
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8154 $as_echo "$OTOOL64" >&6; }
8155 else
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160
8161 fi
8162 if test -z "$ac_cv_prog_OTOOL64"; then
8163   ac_ct_OTOOL64=$OTOOL64
8164   # Extract the first word of "otool64", so it can be a program name with args.
8165 set dummy otool64; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171   if test -n "$ac_ct_OTOOL64"; then
8172   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177   IFS=$as_save_IFS
8178   test -z "$as_dir" && as_dir=.
8179     for ac_exec_ext in '' $ac_executable_extensions; do
8180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181     ac_cv_prog_ac_ct_OTOOL64="otool64"
8182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183     break 2
8184   fi
8185 done
8186   done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8192 if test -n "$ac_ct_OTOOL64"; then
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8194 $as_echo "$ac_ct_OTOOL64" >&6; }
8195 else
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199
8200   if test "x$ac_ct_OTOOL64" = x; then
8201     OTOOL64=":"
8202   else
8203     case $cross_compiling:$ac_tool_warned in
8204 yes:)
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8207 ac_tool_warned=yes ;;
8208 esac
8209     OTOOL64=$ac_ct_OTOOL64
8210   fi
8211 else
8212   OTOOL64="$ac_cv_prog_OTOOL64"
8213 fi
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8242 $as_echo_n "checking for -single_module linker flag... " >&6; }
8243 if ${lt_cv_apple_cc_single_mod+:} false; then :
8244   $as_echo_n "(cached) " >&6
8245 else
8246   lt_cv_apple_cc_single_mod=no
8247       if test -z "${LT_MULTI_MODULE}"; then
8248         # By default we will add the -single_module flag. You can override
8249         # by either setting the environment variable LT_MULTI_MODULE
8250         # non-empty at configure time, or by adding -multi_module to the
8251         # link flags.
8252         rm -rf libconftest.dylib*
8253         echo "int foo(void){return 1;}" > conftest.c
8254         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8255 -dynamiclib -Wl,-single_module conftest.c" >&5
8256         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8257           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8258         _lt_result=$?
8259         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8260           lt_cv_apple_cc_single_mod=yes
8261         else
8262           cat conftest.err >&5
8263         fi
8264         rm -rf libconftest.dylib*
8265         rm -f conftest.*
8266       fi
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8269 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8271 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8272 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8273   $as_echo_n "(cached) " >&6
8274 else
8275   lt_cv_ld_exported_symbols_list=no
8276       save_LDFLAGS=$LDFLAGS
8277       echo "_main" > conftest.sym
8278       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8279       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h.  */
8281
8282 int
8283 main ()
8284 {
8285
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 if ac_fn_c_try_link "$LINENO"; then :
8291   lt_cv_ld_exported_symbols_list=yes
8292 else
8293   lt_cv_ld_exported_symbols_list=no
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext \
8296     conftest$ac_exeext conftest.$ac_ext
8297         LDFLAGS="$save_LDFLAGS"
8298
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8301 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8303 $as_echo_n "checking for -force_load linker flag... " >&6; }
8304 if ${lt_cv_ld_force_load+:} false; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   lt_cv_ld_force_load=no
8308       cat > conftest.c << _LT_EOF
8309 int forced_loaded() { return 2;}
8310 _LT_EOF
8311       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8312       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8313       echo "$AR cru libconftest.a conftest.o" >&5
8314       $AR cru libconftest.a conftest.o 2>&5
8315       echo "$RANLIB libconftest.a" >&5
8316       $RANLIB libconftest.a 2>&5
8317       cat > conftest.c << _LT_EOF
8318 int main() { return 0;}
8319 _LT_EOF
8320       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8321       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8322       _lt_result=$?
8323       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8324         lt_cv_ld_force_load=yes
8325       else
8326         cat conftest.err >&5
8327       fi
8328         rm -f conftest.err libconftest.a conftest conftest.c
8329         rm -rf conftest.dSYM
8330
8331 fi
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8333 $as_echo "$lt_cv_ld_force_load" >&6; }
8334     case $host_os in
8335     rhapsody* | darwin1.[012])
8336       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8337     darwin1.*)
8338       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8339     darwin*) # darwin 5.x on
8340       # if running on 10.5 or later, the deployment target defaults
8341       # to the OS version, if on x86, and 10.4, the deployment
8342       # target defaults to 10.4. Don't you love it?
8343       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8344         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8345           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8346         10.[012]*)
8347           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8348         10.*)
8349           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8350       esac
8351     ;;
8352   esac
8353     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8354       _lt_dar_single_mod='$single_module'
8355     fi
8356     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8357       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8358     else
8359       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8360     fi
8361     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8362       _lt_dsymutil='~$DSYMUTIL $lib || :'
8363     else
8364       _lt_dsymutil=
8365     fi
8366     ;;
8367   esac
8368
8369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8371                   inttypes.h stdint.h unistd.h
8372 do :
8373   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8374 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8375 "
8376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8377   cat >>confdefs.h <<_ACEOF
8378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8379 _ACEOF
8380
8381 fi
8382
8383 done
8384
8385
8386 for ac_header in dlfcn.h
8387 do :
8388   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8389 "
8390 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8391   cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DLFCN_H 1
8393 _ACEOF
8394
8395 fi
8396
8397 done
8398
8399
8400
8401
8402 func_stripname_cnf ()
8403 {
8404   case ${2} in
8405   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8406   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8407   esac
8408 } # func_stripname_cnf
8409
8410
8411
8412
8413
8414 # Set options
8415
8416
8417
8418         enable_dlopen=no
8419
8420
8421   enable_win32_dll=no
8422
8423
8424             # Check whether --enable-shared was given.
8425 if test "${enable_shared+set}" = set; then :
8426   enableval=$enable_shared; p=${PACKAGE-default}
8427     case $enableval in
8428     yes) enable_shared=yes ;;
8429     no) enable_shared=no ;;
8430     *)
8431       enable_shared=no
8432       # Look at the argument we got.  We use all the common list separators.
8433       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8434       for pkg in $enableval; do
8435         IFS="$lt_save_ifs"
8436         if test "X$pkg" = "X$p"; then
8437           enable_shared=yes
8438         fi
8439       done
8440       IFS="$lt_save_ifs"
8441       ;;
8442     esac
8443 else
8444   enable_shared=yes
8445 fi
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455   # Check whether --enable-static was given.
8456 if test "${enable_static+set}" = set; then :
8457   enableval=$enable_static; p=${PACKAGE-default}
8458     case $enableval in
8459     yes) enable_static=yes ;;
8460     no) enable_static=no ;;
8461     *)
8462      enable_static=no
8463       # Look at the argument we got.  We use all the common list separators.
8464       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8465       for pkg in $enableval; do
8466         IFS="$lt_save_ifs"
8467         if test "X$pkg" = "X$p"; then
8468           enable_static=yes
8469         fi
8470       done
8471       IFS="$lt_save_ifs"
8472       ;;
8473     esac
8474 else
8475   enable_static=yes
8476 fi
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487 # Check whether --with-pic was given.
8488 if test "${with_pic+set}" = set; then :
8489   withval=$with_pic; pic_mode="$withval"
8490 else
8491   pic_mode=default
8492 fi
8493
8494
8495 test -z "$pic_mode" && pic_mode=default
8496
8497
8498
8499
8500
8501
8502
8503   # Check whether --enable-fast-install was given.
8504 if test "${enable_fast_install+set}" = set; then :
8505   enableval=$enable_fast_install; p=${PACKAGE-default}
8506     case $enableval in
8507     yes) enable_fast_install=yes ;;
8508     no) enable_fast_install=no ;;
8509     *)
8510       enable_fast_install=no
8511       # Look at the argument we got.  We use all the common list separators.
8512       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8513       for pkg in $enableval; do
8514         IFS="$lt_save_ifs"
8515         if test "X$pkg" = "X$p"; then
8516           enable_fast_install=yes
8517         fi
8518       done
8519       IFS="$lt_save_ifs"
8520       ;;
8521     esac
8522 else
8523   enable_fast_install=yes
8524 fi
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536 # This can be used to rebuild libtool when needed
8537 LIBTOOL_DEPS="$ltmain"
8538
8539 # Always use our own libtool.
8540 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567 test -z "$LN_S" && LN_S="ln -s"
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582 if test -n "${ZSH_VERSION+set}" ; then
8583    setopt NO_GLOB_SUBST
8584 fi
8585
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8587 $as_echo_n "checking for objdir... " >&6; }
8588 if ${lt_cv_objdir+:} false; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   rm -f .libs 2>/dev/null
8592 mkdir .libs 2>/dev/null
8593 if test -d .libs; then
8594   lt_cv_objdir=.libs
8595 else
8596   # MS-DOS does not allow filenames that begin with a dot.
8597   lt_cv_objdir=_libs
8598 fi
8599 rmdir .libs 2>/dev/null
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8602 $as_echo "$lt_cv_objdir" >&6; }
8603 objdir=$lt_cv_objdir
8604
8605
8606
8607
8608
8609 cat >>confdefs.h <<_ACEOF
8610 #define LT_OBJDIR "$lt_cv_objdir/"
8611 _ACEOF
8612
8613
8614
8615
8616 case $host_os in
8617 aix3*)
8618   # AIX sometimes has problems with the GCC collect2 program.  For some
8619   # reason, if we set the COLLECT_NAMES environment variable, the problems
8620   # vanish in a puff of smoke.
8621   if test "X${COLLECT_NAMES+set}" != Xset; then
8622     COLLECT_NAMES=
8623     export COLLECT_NAMES
8624   fi
8625   ;;
8626 esac
8627
8628 # Global variables:
8629 ofile=libtool
8630 can_build_shared=yes
8631
8632 # All known linkers require a `.a' archive for static linking (except MSVC,
8633 # which needs '.lib').
8634 libext=a
8635
8636 with_gnu_ld="$lt_cv_prog_gnu_ld"
8637
8638 old_CC="$CC"
8639 old_CFLAGS="$CFLAGS"
8640
8641 # Set sane defaults for various variables
8642 test -z "$CC" && CC=cc
8643 test -z "$LTCC" && LTCC=$CC
8644 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8645 test -z "$LD" && LD=ld
8646 test -z "$ac_objext" && ac_objext=o
8647
8648 for cc_temp in $compiler""; do
8649   case $cc_temp in
8650     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8651     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8652     \-*) ;;
8653     *) break;;
8654   esac
8655 done
8656 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8657
8658
8659 # Only perform the check for file, if the check method requires it
8660 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8661 case $deplibs_check_method in
8662 file_magic*)
8663   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8665 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8666 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8667   $as_echo_n "(cached) " >&6
8668 else
8669   case $MAGIC_CMD in
8670 [\\/*] |  ?:[\\/]*)
8671   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8672   ;;
8673 *)
8674   lt_save_MAGIC_CMD="$MAGIC_CMD"
8675   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8676   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8677   for ac_dir in $ac_dummy; do
8678     IFS="$lt_save_ifs"
8679     test -z "$ac_dir" && ac_dir=.
8680     if test -f $ac_dir/${ac_tool_prefix}file; then
8681       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8682       if test -n "$file_magic_test_file"; then
8683         case $deplibs_check_method in
8684         "file_magic "*)
8685           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8686           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8687           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8688             $EGREP "$file_magic_regex" > /dev/null; then
8689             :
8690           else
8691             cat <<_LT_EOF 1>&2
8692
8693 *** Warning: the command libtool uses to detect shared libraries,
8694 *** $file_magic_cmd, produces output that libtool cannot recognize.
8695 *** The result is that libtool may fail to recognize shared libraries
8696 *** as such.  This will affect the creation of libtool libraries that
8697 *** depend on shared libraries, but programs linked with such libtool
8698 *** libraries will work regardless of this problem.  Nevertheless, you
8699 *** may want to report the problem to your system manager and/or to
8700 *** bug-libtool@gnu.org
8701
8702 _LT_EOF
8703           fi ;;
8704         esac
8705       fi
8706       break
8707     fi
8708   done
8709   IFS="$lt_save_ifs"
8710   MAGIC_CMD="$lt_save_MAGIC_CMD"
8711   ;;
8712 esac
8713 fi
8714
8715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8716 if test -n "$MAGIC_CMD"; then
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8718 $as_echo "$MAGIC_CMD" >&6; }
8719 else
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723
8724
8725
8726
8727
8728 if test -z "$lt_cv_path_MAGIC_CMD"; then
8729   if test -n "$ac_tool_prefix"; then
8730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8731 $as_echo_n "checking for file... " >&6; }
8732 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8733   $as_echo_n "(cached) " >&6
8734 else
8735   case $MAGIC_CMD in
8736 [\\/*] |  ?:[\\/]*)
8737   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8738   ;;
8739 *)
8740   lt_save_MAGIC_CMD="$MAGIC_CMD"
8741   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8742   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8743   for ac_dir in $ac_dummy; do
8744     IFS="$lt_save_ifs"
8745     test -z "$ac_dir" && ac_dir=.
8746     if test -f $ac_dir/file; then
8747       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8748       if test -n "$file_magic_test_file"; then
8749         case $deplibs_check_method in
8750         "file_magic "*)
8751           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8752           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8753           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8754             $EGREP "$file_magic_regex" > /dev/null; then
8755             :
8756           else
8757             cat <<_LT_EOF 1>&2
8758
8759 *** Warning: the command libtool uses to detect shared libraries,
8760 *** $file_magic_cmd, produces output that libtool cannot recognize.
8761 *** The result is that libtool may fail to recognize shared libraries
8762 *** as such.  This will affect the creation of libtool libraries that
8763 *** depend on shared libraries, but programs linked with such libtool
8764 *** libraries will work regardless of this problem.  Nevertheless, you
8765 *** may want to report the problem to your system manager and/or to
8766 *** bug-libtool@gnu.org
8767
8768 _LT_EOF
8769           fi ;;
8770         esac
8771       fi
8772       break
8773     fi
8774   done
8775   IFS="$lt_save_ifs"
8776   MAGIC_CMD="$lt_save_MAGIC_CMD"
8777   ;;
8778 esac
8779 fi
8780
8781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8782 if test -n "$MAGIC_CMD"; then
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8784 $as_echo "$MAGIC_CMD" >&6; }
8785 else
8786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8788 fi
8789
8790
8791   else
8792     MAGIC_CMD=:
8793   fi
8794 fi
8795
8796   fi
8797   ;;
8798 esac
8799
8800 # Use C for the default configuration in the libtool script
8801
8802 lt_save_CC="$CC"
8803 ac_ext=c
8804 ac_cpp='$CPP $CPPFLAGS'
8805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8808
8809
8810 # Source file extension for C test sources.
8811 ac_ext=c
8812
8813 # Object file extension for compiled C test sources.
8814 objext=o
8815 objext=$objext
8816
8817 # Code to be used in simple compile tests
8818 lt_simple_compile_test_code="int some_variable = 0;"
8819
8820 # Code to be used in simple link tests
8821 lt_simple_link_test_code='int main(){return(0);}'
8822
8823
8824
8825
8826
8827
8828
8829 # If no C compiler was specified, use CC.
8830 LTCC=${LTCC-"$CC"}
8831
8832 # If no C compiler flags were specified, use CFLAGS.
8833 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8834
8835 # Allow CC to be a program name with arguments.
8836 compiler=$CC
8837
8838 # Save the default compiler, since it gets overwritten when the other
8839 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8840 compiler_DEFAULT=$CC
8841
8842 # save warnings/boilerplate of simple test code
8843 ac_outfile=conftest.$ac_objext
8844 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8845 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8846 _lt_compiler_boilerplate=`cat conftest.err`
8847 $RM conftest*
8848
8849 ac_outfile=conftest.$ac_objext
8850 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8851 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8852 _lt_linker_boilerplate=`cat conftest.err`
8853 $RM -r conftest*
8854
8855
8856 ## CAVEAT EMPTOR:
8857 ## There is no encapsulation within the following macros, do not change
8858 ## the running order or otherwise move them around unless you know exactly
8859 ## what you are doing...
8860 if test -n "$compiler"; then
8861
8862 lt_prog_compiler_no_builtin_flag=
8863
8864 if test "$GCC" = yes; then
8865   case $cc_basename in
8866   nvcc*)
8867     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8868   *)
8869     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8870   esac
8871
8872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8873 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8874 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8875   $as_echo_n "(cached) " >&6
8876 else
8877   lt_cv_prog_compiler_rtti_exceptions=no
8878    ac_outfile=conftest.$ac_objext
8879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8880    lt_compiler_flag="-fno-rtti -fno-exceptions"
8881    # Insert the option either (1) after the last *FLAGS variable, or
8882    # (2) before a word containing "conftest.", or (3) at the end.
8883    # Note that $ac_compile itself does not contain backslashes and begins
8884    # with a dollar sign (not a hyphen), so the echo should work correctly.
8885    # The option is referenced via a variable to avoid confusing sed.
8886    lt_compile=`echo "$ac_compile" | $SED \
8887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8889    -e 's:$: $lt_compiler_flag:'`
8890    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8891    (eval "$lt_compile" 2>conftest.err)
8892    ac_status=$?
8893    cat conftest.err >&5
8894    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895    if (exit $ac_status) && test -s "$ac_outfile"; then
8896      # The compiler can only warn and ignore the option if not recognized
8897      # So say no if there are warnings other than the usual output.
8898      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8899      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8900      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8901        lt_cv_prog_compiler_rtti_exceptions=yes
8902      fi
8903    fi
8904    $RM conftest*
8905
8906 fi
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8908 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8909
8910 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8911     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8912 else
8913     :
8914 fi
8915
8916 fi
8917
8918
8919
8920
8921
8922
8923   lt_prog_compiler_wl=
8924 lt_prog_compiler_pic=
8925 lt_prog_compiler_static=
8926
8927
8928   if test "$GCC" = yes; then
8929     lt_prog_compiler_wl='-Wl,'
8930     lt_prog_compiler_static='-static'
8931
8932     case $host_os in
8933       aix*)
8934       # All AIX code is PIC.
8935       if test "$host_cpu" = ia64; then
8936         # AIX 5 now supports IA64 processor
8937         lt_prog_compiler_static='-Bstatic'
8938       fi
8939       ;;
8940
8941     amigaos*)
8942       case $host_cpu in
8943       powerpc)
8944             # see comment about AmigaOS4 .so support
8945             lt_prog_compiler_pic='-fPIC'
8946         ;;
8947       m68k)
8948             # FIXME: we need at least 68020 code to build shared libraries, but
8949             # adding the `-m68020' flag to GCC prevents building anything better,
8950             # like `-m68040'.
8951             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8952         ;;
8953       esac
8954       ;;
8955
8956     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8957       # PIC is the default for these OSes.
8958       ;;
8959
8960     mingw* | cygwin* | pw32* | os2* | cegcc*)
8961       # This hack is so that the source file can tell whether it is being
8962       # built for inclusion in a dll (and should export symbols for example).
8963       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8964       # (--disable-auto-import) libraries
8965       lt_prog_compiler_pic='-DDLL_EXPORT'
8966       ;;
8967
8968     darwin* | rhapsody*)
8969       # PIC is the default on this platform
8970       # Common symbols not allowed in MH_DYLIB files
8971       lt_prog_compiler_pic='-fno-common'
8972       ;;
8973
8974     haiku*)
8975       # PIC is the default for Haiku.
8976       # The "-static" flag exists, but is broken.
8977       lt_prog_compiler_static=
8978       ;;
8979
8980     hpux*)
8981       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8982       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8983       # sets the default TLS model and affects inlining.
8984       case $host_cpu in
8985       hppa*64*)
8986         # +Z the default
8987         ;;
8988       *)
8989         lt_prog_compiler_pic='-fPIC'
8990         ;;
8991       esac
8992       ;;
8993
8994     interix[3-9]*)
8995       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8996       # Instead, we relocate shared libraries at runtime.
8997       ;;
8998
8999     msdosdjgpp*)
9000       # Just because we use GCC doesn't mean we suddenly get shared libraries
9001       # on systems that don't support them.
9002       lt_prog_compiler_can_build_shared=no
9003       enable_shared=no
9004       ;;
9005
9006     *nto* | *qnx*)
9007       # QNX uses GNU C++, but need to define -shared option too, otherwise
9008       # it will coredump.
9009       lt_prog_compiler_pic='-fPIC -shared'
9010       ;;
9011
9012     sysv4*MP*)
9013       if test -d /usr/nec; then
9014         lt_prog_compiler_pic=-Kconform_pic
9015       fi
9016       ;;
9017
9018     *)
9019       lt_prog_compiler_pic='-fPIC'
9020       ;;
9021     esac
9022
9023     case $cc_basename in
9024     nvcc*) # Cuda Compiler Driver 2.2
9025       lt_prog_compiler_wl='-Xlinker '
9026       lt_prog_compiler_pic='-Xcompiler -fPIC'
9027       ;;
9028     esac
9029   else
9030     # PORTME Check for flag to pass linker flags through the system compiler.
9031     case $host_os in
9032     aix*)
9033       lt_prog_compiler_wl='-Wl,'
9034       if test "$host_cpu" = ia64; then
9035         # AIX 5 now supports IA64 processor
9036         lt_prog_compiler_static='-Bstatic'
9037       else
9038         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9039       fi
9040       ;;
9041
9042     mingw* | cygwin* | pw32* | os2* | cegcc*)
9043       # This hack is so that the source file can tell whether it is being
9044       # built for inclusion in a dll (and should export symbols for example).
9045       lt_prog_compiler_pic='-DDLL_EXPORT'
9046       ;;
9047
9048     hpux9* | hpux10* | hpux11*)
9049       lt_prog_compiler_wl='-Wl,'
9050       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9051       # not for PA HP-UX.
9052       case $host_cpu in
9053       hppa*64*|ia64*)
9054         # +Z the default
9055         ;;
9056       *)
9057         lt_prog_compiler_pic='+Z'
9058         ;;
9059       esac
9060       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9061       lt_prog_compiler_static='${wl}-a ${wl}archive'
9062       ;;
9063
9064     irix5* | irix6* | nonstopux*)
9065       lt_prog_compiler_wl='-Wl,'
9066       # PIC (with -KPIC) is the default.
9067       lt_prog_compiler_static='-non_shared'
9068       ;;
9069
9070     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9071       case $cc_basename in
9072       # old Intel for x86_64 which still supported -KPIC.
9073       ecc*)
9074         lt_prog_compiler_wl='-Wl,'
9075         lt_prog_compiler_pic='-KPIC'
9076         lt_prog_compiler_static='-static'
9077         ;;
9078       # icc used to be incompatible with GCC.
9079       # ICC 10 doesn't accept -KPIC any more.
9080       icc* | ifort*)
9081         lt_prog_compiler_wl='-Wl,'
9082         lt_prog_compiler_pic='-fPIC'
9083         lt_prog_compiler_static='-static'
9084         ;;
9085       # Lahey Fortran 8.1.
9086       lf95*)
9087         lt_prog_compiler_wl='-Wl,'
9088         lt_prog_compiler_pic='--shared'
9089         lt_prog_compiler_static='--static'
9090         ;;
9091       nagfor*)
9092         # NAG Fortran compiler
9093         lt_prog_compiler_wl='-Wl,-Wl,,'
9094         lt_prog_compiler_pic='-PIC'
9095         lt_prog_compiler_static='-Bstatic'
9096         ;;
9097       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9098         # Portland Group compilers (*not* the Pentium gcc compiler,
9099         # which looks to be a dead project)
9100         lt_prog_compiler_wl='-Wl,'
9101         lt_prog_compiler_pic='-fpic'
9102         lt_prog_compiler_static='-Bstatic'
9103         ;;
9104       ccc*)
9105         lt_prog_compiler_wl='-Wl,'
9106         # All Alpha code is PIC.
9107         lt_prog_compiler_static='-non_shared'
9108         ;;
9109       xl* | bgxl* | bgf* | mpixl*)
9110         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9111         lt_prog_compiler_wl='-Wl,'
9112         lt_prog_compiler_pic='-qpic'
9113         lt_prog_compiler_static='-qstaticlink'
9114         ;;
9115       *)
9116         case `$CC -V 2>&1 | sed 5q` in
9117         *Sun\ F* | *Sun*Fortran*)
9118           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9119           lt_prog_compiler_pic='-KPIC'
9120           lt_prog_compiler_static='-Bstatic'
9121           lt_prog_compiler_wl=''
9122           ;;
9123         *Sun\ C*)
9124           # Sun C 5.9
9125           lt_prog_compiler_pic='-KPIC'
9126           lt_prog_compiler_static='-Bstatic'
9127           lt_prog_compiler_wl='-Wl,'
9128           ;;
9129         esac
9130         ;;
9131       esac
9132       ;;
9133
9134     newsos6)
9135       lt_prog_compiler_pic='-KPIC'
9136       lt_prog_compiler_static='-Bstatic'
9137       ;;
9138
9139     *nto* | *qnx*)
9140       # QNX uses GNU C++, but need to define -shared option too, otherwise
9141       # it will coredump.
9142       lt_prog_compiler_pic='-fPIC -shared'
9143       ;;
9144
9145     osf3* | osf4* | osf5*)
9146       lt_prog_compiler_wl='-Wl,'
9147       # All OSF/1 code is PIC.
9148       lt_prog_compiler_static='-non_shared'
9149       ;;
9150
9151     rdos*)
9152       lt_prog_compiler_static='-non_shared'
9153       ;;
9154
9155     solaris*)
9156       lt_prog_compiler_pic='-KPIC'
9157       lt_prog_compiler_static='-Bstatic'
9158       case $cc_basename in
9159       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9160         lt_prog_compiler_wl='-Qoption ld ';;
9161       *)
9162         lt_prog_compiler_wl='-Wl,';;
9163       esac
9164       ;;
9165
9166     sunos4*)
9167       lt_prog_compiler_wl='-Qoption ld '
9168       lt_prog_compiler_pic='-PIC'
9169       lt_prog_compiler_static='-Bstatic'
9170       ;;
9171
9172     sysv4 | sysv4.2uw2* | sysv4.3*)
9173       lt_prog_compiler_wl='-Wl,'
9174       lt_prog_compiler_pic='-KPIC'
9175       lt_prog_compiler_static='-Bstatic'
9176       ;;
9177
9178     sysv4*MP*)
9179       if test -d /usr/nec ;then
9180         lt_prog_compiler_pic='-Kconform_pic'
9181         lt_prog_compiler_static='-Bstatic'
9182       fi
9183       ;;
9184
9185     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9186       lt_prog_compiler_wl='-Wl,'
9187       lt_prog_compiler_pic='-KPIC'
9188       lt_prog_compiler_static='-Bstatic'
9189       ;;
9190
9191     unicos*)
9192       lt_prog_compiler_wl='-Wl,'
9193       lt_prog_compiler_can_build_shared=no
9194       ;;
9195
9196     uts4*)
9197       lt_prog_compiler_pic='-pic'
9198       lt_prog_compiler_static='-Bstatic'
9199       ;;
9200
9201     *)
9202       lt_prog_compiler_can_build_shared=no
9203       ;;
9204     esac
9205   fi
9206
9207 case $host_os in
9208   # For platforms which do not support PIC, -DPIC is meaningless:
9209   *djgpp*)
9210     lt_prog_compiler_pic=
9211     ;;
9212   *)
9213     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9214     ;;
9215 esac
9216
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9218 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9219 if ${lt_cv_prog_compiler_pic+:} false; then :
9220   $as_echo_n "(cached) " >&6
9221 else
9222   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9223 fi
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9225 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9226 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9227
9228 #
9229 # Check to make sure the PIC flag actually works.
9230 #
9231 if test -n "$lt_prog_compiler_pic"; then
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9233 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9234 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9235   $as_echo_n "(cached) " >&6
9236 else
9237   lt_cv_prog_compiler_pic_works=no
9238    ac_outfile=conftest.$ac_objext
9239    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9240    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9241    # Insert the option either (1) after the last *FLAGS variable, or
9242    # (2) before a word containing "conftest.", or (3) at the end.
9243    # Note that $ac_compile itself does not contain backslashes and begins
9244    # with a dollar sign (not a hyphen), so the echo should work correctly.
9245    # The option is referenced via a variable to avoid confusing sed.
9246    lt_compile=`echo "$ac_compile" | $SED \
9247    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9249    -e 's:$: $lt_compiler_flag:'`
9250    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9251    (eval "$lt_compile" 2>conftest.err)
9252    ac_status=$?
9253    cat conftest.err >&5
9254    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255    if (exit $ac_status) && test -s "$ac_outfile"; then
9256      # The compiler can only warn and ignore the option if not recognized
9257      # So say no if there are warnings other than the usual output.
9258      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9259      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9260      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9261        lt_cv_prog_compiler_pic_works=yes
9262      fi
9263    fi
9264    $RM conftest*
9265
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9268 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9269
9270 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9271     case $lt_prog_compiler_pic in
9272      "" | " "*) ;;
9273      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9274      esac
9275 else
9276     lt_prog_compiler_pic=
9277      lt_prog_compiler_can_build_shared=no
9278 fi
9279
9280 fi
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292 #
9293 # Check to make sure the static flag actually works.
9294 #
9295 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9297 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9298 if ${lt_cv_prog_compiler_static_works+:} false; then :
9299   $as_echo_n "(cached) " >&6
9300 else
9301   lt_cv_prog_compiler_static_works=no
9302    save_LDFLAGS="$LDFLAGS"
9303    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9304    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9305    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9306      # The linker can only warn and ignore the option if not recognized
9307      # So say no if there are warnings
9308      if test -s conftest.err; then
9309        # Append any errors to the config.log.
9310        cat conftest.err 1>&5
9311        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9312        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9313        if diff conftest.exp conftest.er2 >/dev/null; then
9314          lt_cv_prog_compiler_static_works=yes
9315        fi
9316      else
9317        lt_cv_prog_compiler_static_works=yes
9318      fi
9319    fi
9320    $RM -r conftest*
9321    LDFLAGS="$save_LDFLAGS"
9322
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9325 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9326
9327 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9328     :
9329 else
9330     lt_prog_compiler_static=
9331 fi
9332
9333
9334
9335
9336
9337
9338
9339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9341 if ${lt_cv_prog_compiler_c_o+:} false; then :
9342   $as_echo_n "(cached) " >&6
9343 else
9344   lt_cv_prog_compiler_c_o=no
9345    $RM -r conftest 2>/dev/null
9346    mkdir conftest
9347    cd conftest
9348    mkdir out
9349    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9350
9351    lt_compiler_flag="-o out/conftest2.$ac_objext"
9352    # Insert the option either (1) after the last *FLAGS variable, or
9353    # (2) before a word containing "conftest.", or (3) at the end.
9354    # Note that $ac_compile itself does not contain backslashes and begins
9355    # with a dollar sign (not a hyphen), so the echo should work correctly.
9356    lt_compile=`echo "$ac_compile" | $SED \
9357    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9359    -e 's:$: $lt_compiler_flag:'`
9360    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9361    (eval "$lt_compile" 2>out/conftest.err)
9362    ac_status=$?
9363    cat out/conftest.err >&5
9364    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9366    then
9367      # The compiler can only warn and ignore the option if not recognized
9368      # So say no if there are warnings
9369      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9370      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9371      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9372        lt_cv_prog_compiler_c_o=yes
9373      fi
9374    fi
9375    chmod u+w . 2>&5
9376    $RM conftest*
9377    # SGI C++ compiler will create directory out/ii_files/ for
9378    # template instantiation
9379    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9380    $RM out/* && rmdir out
9381    cd ..
9382    $RM -r conftest
9383    $RM conftest*
9384
9385 fi
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9387 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9388
9389
9390
9391
9392
9393
9394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9395 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9396 if ${lt_cv_prog_compiler_c_o+:} false; then :
9397   $as_echo_n "(cached) " >&6
9398 else
9399   lt_cv_prog_compiler_c_o=no
9400    $RM -r conftest 2>/dev/null
9401    mkdir conftest
9402    cd conftest
9403    mkdir out
9404    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9405
9406    lt_compiler_flag="-o out/conftest2.$ac_objext"
9407    # Insert the option either (1) after the last *FLAGS variable, or
9408    # (2) before a word containing "conftest.", or (3) at the end.
9409    # Note that $ac_compile itself does not contain backslashes and begins
9410    # with a dollar sign (not a hyphen), so the echo should work correctly.
9411    lt_compile=`echo "$ac_compile" | $SED \
9412    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9413    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9414    -e 's:$: $lt_compiler_flag:'`
9415    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9416    (eval "$lt_compile" 2>out/conftest.err)
9417    ac_status=$?
9418    cat out/conftest.err >&5
9419    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9421    then
9422      # The compiler can only warn and ignore the option if not recognized
9423      # So say no if there are warnings
9424      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9425      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9426      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9427        lt_cv_prog_compiler_c_o=yes
9428      fi
9429    fi
9430    chmod u+w . 2>&5
9431    $RM conftest*
9432    # SGI C++ compiler will create directory out/ii_files/ for
9433    # template instantiation
9434    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9435    $RM out/* && rmdir out
9436    cd ..
9437    $RM -r conftest
9438    $RM conftest*
9439
9440 fi
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9442 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9443
9444
9445
9446
9447 hard_links="nottested"
9448 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9449   # do not overwrite the value of need_locks provided by the user
9450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9451 $as_echo_n "checking if we can lock with hard links... " >&6; }
9452   hard_links=yes
9453   $RM conftest*
9454   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9455   touch conftest.a
9456   ln conftest.a conftest.b 2>&5 || hard_links=no
9457   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9459 $as_echo "$hard_links" >&6; }
9460   if test "$hard_links" = no; then
9461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9462 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9463     need_locks=warn
9464   fi
9465 else
9466   need_locks=no
9467 fi
9468
9469
9470
9471
9472
9473
9474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9475 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9476
9477   runpath_var=
9478   allow_undefined_flag=
9479   always_export_symbols=no
9480   archive_cmds=
9481   archive_expsym_cmds=
9482   compiler_needs_object=no
9483   enable_shared_with_static_runtimes=no
9484   export_dynamic_flag_spec=
9485   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9486   hardcode_automatic=no
9487   hardcode_direct=no
9488   hardcode_direct_absolute=no
9489   hardcode_libdir_flag_spec=
9490   hardcode_libdir_flag_spec_ld=
9491   hardcode_libdir_separator=
9492   hardcode_minus_L=no
9493   hardcode_shlibpath_var=unsupported
9494   inherit_rpath=no
9495   link_all_deplibs=unknown
9496   module_cmds=
9497   module_expsym_cmds=
9498   old_archive_from_new_cmds=
9499   old_archive_from_expsyms_cmds=
9500   thread_safe_flag_spec=
9501   whole_archive_flag_spec=
9502   # include_expsyms should be a list of space-separated symbols to be *always*
9503   # included in the symbol list
9504   include_expsyms=
9505   # exclude_expsyms can be an extended regexp of symbols to exclude
9506   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9507   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9508   # as well as any symbol that contains `d'.
9509   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9510   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9511   # platforms (ab)use it in PIC code, but their linkers get confused if
9512   # the symbol is explicitly referenced.  Since portable code cannot
9513   # rely on this symbol name, it's probably fine to never include it in
9514   # preloaded symbol tables.
9515   # Exclude shared library initialization/finalization symbols.
9516   extract_expsyms_cmds=
9517
9518   case $host_os in
9519   cygwin* | mingw* | pw32* | cegcc*)
9520     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9521     # When not using gcc, we currently assume that we are using
9522     # Microsoft Visual C++.
9523     if test "$GCC" != yes; then
9524       with_gnu_ld=no
9525     fi
9526     ;;
9527   interix*)
9528     # we just hope/assume this is gcc and not c89 (= MSVC++)
9529     with_gnu_ld=yes
9530     ;;
9531   openbsd*)
9532     with_gnu_ld=no
9533     ;;
9534   esac
9535
9536   ld_shlibs=yes
9537
9538   # On some targets, GNU ld is compatible enough with the native linker
9539   # that we're better off using the native interface for both.
9540   lt_use_gnu_ld_interface=no
9541   if test "$with_gnu_ld" = yes; then
9542     case $host_os in
9543       aix*)
9544         # The AIX port of GNU ld has always aspired to compatibility
9545         # with the native linker.  However, as the warning in the GNU ld
9546         # block says, versions before 2.19.5* couldn't really create working
9547         # shared libraries, regardless of the interface used.
9548         case `$LD -v 2>&1` in
9549           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9550           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9551           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9552           *)
9553             lt_use_gnu_ld_interface=yes
9554             ;;
9555         esac
9556         ;;
9557       *)
9558         lt_use_gnu_ld_interface=yes
9559         ;;
9560     esac
9561   fi
9562
9563   if test "$lt_use_gnu_ld_interface" = yes; then
9564     # If archive_cmds runs LD, not CC, wlarc should be empty
9565     wlarc='${wl}'
9566
9567     # Set some defaults for GNU ld with shared library support. These
9568     # are reset later if shared libraries are not supported. Putting them
9569     # here allows them to be overridden if necessary.
9570     runpath_var=LD_RUN_PATH
9571     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572     export_dynamic_flag_spec='${wl}--export-dynamic'
9573     # ancient GNU ld didn't support --whole-archive et. al.
9574     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9575       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9576     else
9577       whole_archive_flag_spec=
9578     fi
9579     supports_anon_versioning=no
9580     case `$LD -v 2>&1` in
9581       *GNU\ gold*) supports_anon_versioning=yes ;;
9582       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9583       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9584       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9585       *\ 2.11.*) ;; # other 2.11 versions
9586       *) supports_anon_versioning=yes ;;
9587     esac
9588
9589     # See if GNU ld supports shared libraries.
9590     case $host_os in
9591     aix[3-9]*)
9592       # On AIX/PPC, the GNU linker is very broken
9593       if test "$host_cpu" != ia64; then
9594         ld_shlibs=no
9595         cat <<_LT_EOF 1>&2
9596
9597 *** Warning: the GNU linker, at least up to release 2.19, is reported
9598 *** to be unable to reliably create shared libraries on AIX.
9599 *** Therefore, libtool is disabling shared libraries support.  If you
9600 *** really care for shared libraries, you may want to install binutils
9601 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9602 *** You will then need to restart the configuration process.
9603
9604 _LT_EOF
9605       fi
9606       ;;
9607
9608     amigaos*)
9609       case $host_cpu in
9610       powerpc)
9611             # see comment about AmigaOS4 .so support
9612             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9613             archive_expsym_cmds=''
9614         ;;
9615       m68k)
9616             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)'
9617             hardcode_libdir_flag_spec='-L$libdir'
9618             hardcode_minus_L=yes
9619         ;;
9620       esac
9621       ;;
9622
9623     beos*)
9624       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9625         allow_undefined_flag=unsupported
9626         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9627         # support --undefined.  This deserves some investigation.  FIXME
9628         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9629       else
9630         ld_shlibs=no
9631       fi
9632       ;;
9633
9634     cygwin* | mingw* | pw32* | cegcc*)
9635       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9636       # as there is no search path for DLLs.
9637       hardcode_libdir_flag_spec='-L$libdir'
9638       export_dynamic_flag_spec='${wl}--export-all-symbols'
9639       allow_undefined_flag=unsupported
9640       always_export_symbols=no
9641       enable_shared_with_static_runtimes=yes
9642       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9643       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9644
9645       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9646         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9647         # If the export-symbols file already is a .def file (1st line
9648         # is EXPORTS), use it as is; otherwise, prepend...
9649         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9650           cp $export_symbols $output_objdir/$soname.def;
9651         else
9652           echo EXPORTS > $output_objdir/$soname.def;
9653           cat $export_symbols >> $output_objdir/$soname.def;
9654         fi~
9655         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9656       else
9657         ld_shlibs=no
9658       fi
9659       ;;
9660
9661     haiku*)
9662       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663       link_all_deplibs=yes
9664       ;;
9665
9666     interix[3-9]*)
9667       hardcode_direct=no
9668       hardcode_shlibpath_var=no
9669       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9670       export_dynamic_flag_spec='${wl}-E'
9671       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9672       # Instead, shared libraries are loaded at an image base (0x10000000 by
9673       # default) and relocated if they conflict, which is a slow very memory
9674       # consuming and fragmenting process.  To avoid this, we pick a random,
9675       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9676       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9677       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9678       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'
9679       ;;
9680
9681     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9682       tmp_diet=no
9683       if test "$host_os" = linux-dietlibc; then
9684         case $cc_basename in
9685           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9686         esac
9687       fi
9688       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9689          && test "$tmp_diet" = no
9690       then
9691         tmp_addflag=' $pic_flag'
9692         tmp_sharedflag='-shared'
9693         case $cc_basename,$host_cpu in
9694         pgcc*)                          # Portland Group C compiler
9695           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9696           tmp_addflag=' $pic_flag'
9697           ;;
9698         pgf77* | pgf90* | pgf95* | pgfortran*)
9699                                         # Portland Group f77 and f90 compilers
9700           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9701           tmp_addflag=' $pic_flag -Mnomain' ;;
9702         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9703           tmp_addflag=' -i_dynamic' ;;
9704         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9705           tmp_addflag=' -i_dynamic -nofor_main' ;;
9706         ifc* | ifort*)                  # Intel Fortran compiler
9707           tmp_addflag=' -nofor_main' ;;
9708         lf95*)                          # Lahey Fortran 8.1
9709           whole_archive_flag_spec=
9710           tmp_sharedflag='--shared' ;;
9711         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9712           tmp_sharedflag='-qmkshrobj'
9713           tmp_addflag= ;;
9714         nvcc*)  # Cuda Compiler Driver 2.2
9715           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9716           compiler_needs_object=yes
9717           ;;
9718         esac
9719         case `$CC -V 2>&1 | sed 5q` in
9720         *Sun\ C*)                       # Sun C 5.9
9721           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9722           compiler_needs_object=yes
9723           tmp_sharedflag='-G' ;;
9724         *Sun\ F*)                       # Sun Fortran 8.3
9725           tmp_sharedflag='-G' ;;
9726         esac
9727         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728
9729         if test "x$supports_anon_versioning" = xyes; then
9730           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9731             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9732             echo "local: *; };" >> $output_objdir/$libname.ver~
9733             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9734         fi
9735
9736         case $cc_basename in
9737         xlf* | bgf* | bgxlf* | mpixlf*)
9738           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9739           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9740           hardcode_libdir_flag_spec=
9741           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9742           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9743           if test "x$supports_anon_versioning" = xyes; then
9744             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9745               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9746               echo "local: *; };" >> $output_objdir/$libname.ver~
9747               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9748           fi
9749           ;;
9750         esac
9751       else
9752         ld_shlibs=no
9753       fi
9754       ;;
9755
9756     netbsd*)
9757       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9758         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9759         wlarc=
9760       else
9761         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9763       fi
9764       ;;
9765
9766     solaris*)
9767       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9768         ld_shlibs=no
9769         cat <<_LT_EOF 1>&2
9770
9771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9772 *** create shared libraries on Solaris systems.  Therefore, libtool
9773 *** is disabling shared libraries support.  We urge you to upgrade GNU
9774 *** binutils to release 2.9.1 or newer.  Another option is to modify
9775 *** your PATH or compiler configuration so that the native linker is
9776 *** used, and then restart.
9777
9778 _LT_EOF
9779       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9780         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9782       else
9783         ld_shlibs=no
9784       fi
9785       ;;
9786
9787     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9788       case `$LD -v 2>&1` in
9789         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9790         ld_shlibs=no
9791         cat <<_LT_EOF 1>&2
9792
9793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9794 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9795 *** is disabling shared libraries support.  We urge you to upgrade GNU
9796 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9797 *** your PATH or compiler configuration so that the native linker is
9798 *** used, and then restart.
9799
9800 _LT_EOF
9801         ;;
9802         *)
9803           # For security reasons, it is highly recommended that you always
9804           # use absolute paths for naming shared libraries, and exclude the
9805           # DT_RUNPATH tag from executables and libraries.  But doing so
9806           # requires that you compile everything twice, which is a pain.
9807           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9808             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9809             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9810             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9811           else
9812             ld_shlibs=no
9813           fi
9814         ;;
9815       esac
9816       ;;
9817
9818     sunos4*)
9819       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9820       wlarc=
9821       hardcode_direct=yes
9822       hardcode_shlibpath_var=no
9823       ;;
9824
9825     *)
9826       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9827         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9828         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9829       else
9830         ld_shlibs=no
9831       fi
9832       ;;
9833     esac
9834
9835     if test "$ld_shlibs" = no; then
9836       runpath_var=
9837       hardcode_libdir_flag_spec=
9838       export_dynamic_flag_spec=
9839       whole_archive_flag_spec=
9840     fi
9841   else
9842     # PORTME fill in a description of your system's linker (not GNU ld)
9843     case $host_os in
9844     aix3*)
9845       allow_undefined_flag=unsupported
9846       always_export_symbols=yes
9847       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'
9848       # Note: this linker hardcodes the directories in LIBPATH if there
9849       # are no directories specified by -L.
9850       hardcode_minus_L=yes
9851       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9852         # Neither direct hardcoding nor static linking is supported with a
9853         # broken collect2.
9854         hardcode_direct=unsupported
9855       fi
9856       ;;
9857
9858     aix[4-9]*)
9859       if test "$host_cpu" = ia64; then
9860         # On IA64, the linker does run time linking by default, so we don't
9861         # have to do anything special.
9862         aix_use_runtimelinking=no
9863         exp_sym_flag='-Bexport'
9864         no_entry_flag=""
9865       else
9866         # If we're using GNU nm, then we don't want the "-C" option.
9867         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9868         # Also, AIX nm treats weak defined symbols like other global
9869         # defined symbols, whereas GNU nm marks them as "W".
9870         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9871           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9872         else
9873           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'
9874         fi
9875         aix_use_runtimelinking=no
9876
9877         # Test if we are trying to use run time linking or normal
9878         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9879         # need to do runtime linking.
9880         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9881           for ld_flag in $LDFLAGS; do
9882           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9883             aix_use_runtimelinking=yes
9884             break
9885           fi
9886           done
9887           ;;
9888         esac
9889
9890         exp_sym_flag='-bexport'
9891         no_entry_flag='-bnoentry'
9892       fi
9893
9894       # When large executables or shared objects are built, AIX ld can
9895       # have problems creating the table of contents.  If linking a library
9896       # or program results in "error TOC overflow" add -mminimal-toc to
9897       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9898       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9899
9900       archive_cmds=''
9901       hardcode_direct=yes
9902       hardcode_direct_absolute=yes
9903       hardcode_libdir_separator=':'
9904       link_all_deplibs=yes
9905       file_list_spec='${wl}-f,'
9906
9907       if test "$GCC" = yes; then
9908         case $host_os in aix4.[012]|aix4.[012].*)
9909         # We only want to do this on AIX 4.2 and lower, the check
9910         # below for broken collect2 doesn't work under 4.3+
9911           collect2name=`${CC} -print-prog-name=collect2`
9912           if test -f "$collect2name" &&
9913            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9914           then
9915           # We have reworked collect2
9916           :
9917           else
9918           # We have old collect2
9919           hardcode_direct=unsupported
9920           # It fails to find uninstalled libraries when the uninstalled
9921           # path is not listed in the libpath.  Setting hardcode_minus_L
9922           # to unsupported forces relinking
9923           hardcode_minus_L=yes
9924           hardcode_libdir_flag_spec='-L$libdir'
9925           hardcode_libdir_separator=
9926           fi
9927           ;;
9928         esac
9929         shared_flag='-shared'
9930         if test "$aix_use_runtimelinking" = yes; then
9931           shared_flag="$shared_flag "'${wl}-G'
9932         fi
9933       else
9934         # not using gcc
9935         if test "$host_cpu" = ia64; then
9936         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9937         # chokes on -Wl,-G. The following line is correct:
9938           shared_flag='-G'
9939         else
9940           if test "$aix_use_runtimelinking" = yes; then
9941             shared_flag='${wl}-G'
9942           else
9943             shared_flag='${wl}-bM:SRE'
9944           fi
9945         fi
9946       fi
9947
9948       export_dynamic_flag_spec='${wl}-bexpall'
9949       # It seems that -bexpall does not export symbols beginning with
9950       # underscore (_), so it is better to generate a list of symbols to export.
9951       always_export_symbols=yes
9952       if test "$aix_use_runtimelinking" = yes; then
9953         # Warning - without using the other runtime loading flags (-brtl),
9954         # -berok will link without error, but may produce a broken library.
9955         allow_undefined_flag='-berok'
9956         # Determine the default libpath from the value encoded in an
9957         # empty executable.
9958         if test "${lt_cv_aix_libpath+set}" = set; then
9959   aix_libpath=$lt_cv_aix_libpath
9960 else
9961   if ${lt_cv_aix_libpath_+:} false; then :
9962   $as_echo_n "(cached) " >&6
9963 else
9964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h.  */
9966
9967 int
9968 main ()
9969 {
9970
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 if ac_fn_c_try_link "$LINENO"; then :
9976
9977   lt_aix_libpath_sed='
9978       /Import File Strings/,/^$/ {
9979           /^0/ {
9980               s/^0  *\([^ ]*\) *$/\1/
9981               p
9982           }
9983       }'
9984   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9985   # Check for a 64-bit object if we didn't find anything.
9986   if test -z "$lt_cv_aix_libpath_"; then
9987     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9988   fi
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext \
9991     conftest$ac_exeext conftest.$ac_ext
9992   if test -z "$lt_cv_aix_libpath_"; then
9993     lt_cv_aix_libpath_="/usr/lib:/lib"
9994   fi
9995
9996 fi
9997
9998   aix_libpath=$lt_cv_aix_libpath_
9999 fi
10000
10001         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10002         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10003       else
10004         if test "$host_cpu" = ia64; then
10005           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10006           allow_undefined_flag="-z nodefs"
10007           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"
10008         else
10009          # Determine the default libpath from the value encoded in an
10010          # empty executable.
10011          if test "${lt_cv_aix_libpath+set}" = set; then
10012   aix_libpath=$lt_cv_aix_libpath
10013 else
10014   if ${lt_cv_aix_libpath_+:} false; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h.  */
10019
10020 int
10021 main ()
10022 {
10023
10024   ;
10025   return 0;
10026 }
10027 _ACEOF
10028 if ac_fn_c_try_link "$LINENO"; then :
10029
10030   lt_aix_libpath_sed='
10031       /Import File Strings/,/^$/ {
10032           /^0/ {
10033               s/^0  *\([^ ]*\) *$/\1/
10034               p
10035           }
10036       }'
10037   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10038   # Check for a 64-bit object if we didn't find anything.
10039   if test -z "$lt_cv_aix_libpath_"; then
10040     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10041   fi
10042 fi
10043 rm -f core conftest.err conftest.$ac_objext \
10044     conftest$ac_exeext conftest.$ac_ext
10045   if test -z "$lt_cv_aix_libpath_"; then
10046     lt_cv_aix_libpath_="/usr/lib:/lib"
10047   fi
10048
10049 fi
10050
10051   aix_libpath=$lt_cv_aix_libpath_
10052 fi
10053
10054          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10055           # Warning - without using the other run time loading flags,
10056           # -berok will link without error, but may produce a broken library.
10057           no_undefined_flag=' ${wl}-bernotok'
10058           allow_undefined_flag=' ${wl}-berok'
10059           if test "$with_gnu_ld" = yes; then
10060             # We only use this code for GNU lds that support --whole-archive.
10061             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10062           else
10063             # Exported symbols can be pulled into shared objects from archives
10064             whole_archive_flag_spec='$convenience'
10065           fi
10066           archive_cmds_need_lc=yes
10067           # This is similar to how AIX traditionally builds its shared libraries.
10068           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'
10069         fi
10070       fi
10071       ;;
10072
10073     amigaos*)
10074       case $host_cpu in
10075       powerpc)
10076             # see comment about AmigaOS4 .so support
10077             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10078             archive_expsym_cmds=''
10079         ;;
10080       m68k)
10081             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)'
10082             hardcode_libdir_flag_spec='-L$libdir'
10083             hardcode_minus_L=yes
10084         ;;
10085       esac
10086       ;;
10087
10088     bsdi[45]*)
10089       export_dynamic_flag_spec=-rdynamic
10090       ;;
10091
10092     cygwin* | mingw* | pw32* | cegcc*)
10093       # When not using gcc, we currently assume that we are using
10094       # Microsoft Visual C++.
10095       # hardcode_libdir_flag_spec is actually meaningless, as there is
10096       # no search path for DLLs.
10097       case $cc_basename in
10098       cl*)
10099         # Native MSVC
10100         hardcode_libdir_flag_spec=' '
10101         allow_undefined_flag=unsupported
10102         always_export_symbols=yes
10103         file_list_spec='@'
10104         # Tell ltmain to make .lib files, not .a files.
10105         libext=lib
10106         # Tell ltmain to make .dll files, not .so files.
10107         shrext_cmds=".dll"
10108         # FIXME: Setting linknames here is a bad hack.
10109         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10110         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10111             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10112           else
10113             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10114           fi~
10115           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10116           linknames='
10117         # The linker will not automatically build a static lib if we build a DLL.
10118         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10119         enable_shared_with_static_runtimes=yes
10120         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10121         # Don't use ranlib
10122         old_postinstall_cmds='chmod 644 $oldlib'
10123         postlink_cmds='lt_outputfile="@OUTPUT@"~
10124           lt_tool_outputfile="@TOOL_OUTPUT@"~
10125           case $lt_outputfile in
10126             *.exe|*.EXE) ;;
10127             *)
10128               lt_outputfile="$lt_outputfile.exe"
10129               lt_tool_outputfile="$lt_tool_outputfile.exe"
10130               ;;
10131           esac~
10132           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10133             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10134             $RM "$lt_outputfile.manifest";
10135           fi'
10136         ;;
10137       *)
10138         # Assume MSVC wrapper
10139         hardcode_libdir_flag_spec=' '
10140         allow_undefined_flag=unsupported
10141         # Tell ltmain to make .lib files, not .a files.
10142         libext=lib
10143         # Tell ltmain to make .dll files, not .so files.
10144         shrext_cmds=".dll"
10145         # FIXME: Setting linknames here is a bad hack.
10146         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10147         # The linker will automatically build a .lib file if we build a DLL.
10148         old_archive_from_new_cmds='true'
10149         # FIXME: Should let the user specify the lib program.
10150         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10151         enable_shared_with_static_runtimes=yes
10152         ;;
10153       esac
10154       ;;
10155
10156     darwin* | rhapsody*)
10157
10158
10159   archive_cmds_need_lc=no
10160   hardcode_direct=no
10161   hardcode_automatic=yes
10162   hardcode_shlibpath_var=unsupported
10163   if test "$lt_cv_ld_force_load" = "yes"; then
10164     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10165   else
10166     whole_archive_flag_spec=''
10167   fi
10168   link_all_deplibs=yes
10169   allow_undefined_flag="$_lt_dar_allow_undefined"
10170   case $cc_basename in
10171      ifort*) _lt_dar_can_shared=yes ;;
10172      *) _lt_dar_can_shared=$GCC ;;
10173   esac
10174   if test "$_lt_dar_can_shared" = "yes"; then
10175     output_verbose_link_cmd=func_echo_all
10176     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10177     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10178     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10179     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10180
10181   else
10182   ld_shlibs=no
10183   fi
10184
10185       ;;
10186
10187     dgux*)
10188       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189       hardcode_libdir_flag_spec='-L$libdir'
10190       hardcode_shlibpath_var=no
10191       ;;
10192
10193     freebsd1*)
10194       ld_shlibs=no
10195       ;;
10196
10197     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10198     # support.  Future versions do this automatically, but an explicit c++rt0.o
10199     # does not break anything, and helps significantly (at the cost of a little
10200     # extra space).
10201     freebsd2.2*)
10202       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10203       hardcode_libdir_flag_spec='-R$libdir'
10204       hardcode_direct=yes
10205       hardcode_shlibpath_var=no
10206       ;;
10207
10208     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10209     freebsd2*)
10210       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10211       hardcode_direct=yes
10212       hardcode_minus_L=yes
10213       hardcode_shlibpath_var=no
10214       ;;
10215
10216     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10217     freebsd* | dragonfly*)
10218       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10219       hardcode_libdir_flag_spec='-R$libdir'
10220       hardcode_direct=yes
10221       hardcode_shlibpath_var=no
10222       ;;
10223
10224     hpux9*)
10225       if test "$GCC" = yes; then
10226         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10227       else
10228         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'
10229       fi
10230       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10231       hardcode_libdir_separator=:
10232       hardcode_direct=yes
10233
10234       # hardcode_minus_L: Not really in the search PATH,
10235       # but as the default location of the library.
10236       hardcode_minus_L=yes
10237       export_dynamic_flag_spec='${wl}-E'
10238       ;;
10239
10240     hpux10*)
10241       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10242         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10243       else
10244         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10245       fi
10246       if test "$with_gnu_ld" = no; then
10247         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10248         hardcode_libdir_flag_spec_ld='+b $libdir'
10249         hardcode_libdir_separator=:
10250         hardcode_direct=yes
10251         hardcode_direct_absolute=yes
10252         export_dynamic_flag_spec='${wl}-E'
10253         # hardcode_minus_L: Not really in the search PATH,
10254         # but as the default location of the library.
10255         hardcode_minus_L=yes
10256       fi
10257       ;;
10258
10259     hpux11*)
10260       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10261         case $host_cpu in
10262         hppa*64*)
10263           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10264           ;;
10265         ia64*)
10266           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10267           ;;
10268         *)
10269           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10270           ;;
10271         esac
10272       else
10273         case $host_cpu in
10274         hppa*64*)
10275           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10276           ;;
10277         ia64*)
10278           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10279           ;;
10280         *)
10281
10282           # Older versions of the 11.00 compiler do not understand -b yet
10283           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10284           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10285 $as_echo_n "checking if $CC understands -b... " >&6; }
10286 if ${lt_cv_prog_compiler__b+:} false; then :
10287   $as_echo_n "(cached) " >&6
10288 else
10289   lt_cv_prog_compiler__b=no
10290    save_LDFLAGS="$LDFLAGS"
10291    LDFLAGS="$LDFLAGS -b"
10292    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10293    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10294      # The linker can only warn and ignore the option if not recognized
10295      # So say no if there are warnings
10296      if test -s conftest.err; then
10297        # Append any errors to the config.log.
10298        cat conftest.err 1>&5
10299        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10300        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10301        if diff conftest.exp conftest.er2 >/dev/null; then
10302          lt_cv_prog_compiler__b=yes
10303        fi
10304      else
10305        lt_cv_prog_compiler__b=yes
10306      fi
10307    fi
10308    $RM -r conftest*
10309    LDFLAGS="$save_LDFLAGS"
10310
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10313 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10314
10315 if test x"$lt_cv_prog_compiler__b" = xyes; then
10316     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10317 else
10318     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10319 fi
10320
10321           ;;
10322         esac
10323       fi
10324       if test "$with_gnu_ld" = no; then
10325         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10326         hardcode_libdir_separator=:
10327
10328         case $host_cpu in
10329         hppa*64*|ia64*)
10330           hardcode_direct=no
10331           hardcode_shlibpath_var=no
10332           ;;
10333         *)
10334           hardcode_direct=yes
10335           hardcode_direct_absolute=yes
10336           export_dynamic_flag_spec='${wl}-E'
10337
10338           # hardcode_minus_L: Not really in the search PATH,
10339           # but as the default location of the library.
10340           hardcode_minus_L=yes
10341           ;;
10342         esac
10343       fi
10344       ;;
10345
10346     irix5* | irix6* | nonstopux*)
10347       if test "$GCC" = yes; then
10348         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10349         # Try to use the -exported_symbol ld option, if it does not
10350         # work, assume that -exports_file does not work either and
10351         # implicitly export all symbols.
10352         # This should be the same for all languages, so no per-tag cache variable.
10353         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10354 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10355 if ${lt_cv_irix_exported_symbol+:} false; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   save_LDFLAGS="$LDFLAGS"
10359            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10360            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h.  */
10362 int foo (void) { return 0; }
10363 _ACEOF
10364 if ac_fn_c_try_link "$LINENO"; then :
10365   lt_cv_irix_exported_symbol=yes
10366 else
10367   lt_cv_irix_exported_symbol=no
10368 fi
10369 rm -f core conftest.err conftest.$ac_objext \
10370     conftest$ac_exeext conftest.$ac_ext
10371            LDFLAGS="$save_LDFLAGS"
10372 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10374 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10375         if test "$lt_cv_irix_exported_symbol" = yes; then
10376           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10377         fi
10378       else
10379         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10380         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10381       fi
10382       archive_cmds_need_lc='no'
10383       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10384       hardcode_libdir_separator=:
10385       inherit_rpath=yes
10386       link_all_deplibs=yes
10387       ;;
10388
10389     netbsd*)
10390       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10391         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10392       else
10393         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10394       fi
10395       hardcode_libdir_flag_spec='-R$libdir'
10396       hardcode_direct=yes
10397       hardcode_shlibpath_var=no
10398       ;;
10399
10400     newsos6)
10401       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10402       hardcode_direct=yes
10403       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404       hardcode_libdir_separator=:
10405       hardcode_shlibpath_var=no
10406       ;;
10407
10408     *nto* | *qnx*)
10409       ;;
10410
10411     openbsd*)
10412       if test -f /usr/libexec/ld.so; then
10413         hardcode_direct=yes
10414         hardcode_shlibpath_var=no
10415         hardcode_direct_absolute=yes
10416         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10417           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10418           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10419           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10420           export_dynamic_flag_spec='${wl}-E'
10421         else
10422           case $host_os in
10423            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10424              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10425              hardcode_libdir_flag_spec='-R$libdir'
10426              ;;
10427            *)
10428              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10429              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10430              ;;
10431           esac
10432         fi
10433       else
10434         ld_shlibs=no
10435       fi
10436       ;;
10437
10438     os2*)
10439       hardcode_libdir_flag_spec='-L$libdir'
10440       hardcode_minus_L=yes
10441       allow_undefined_flag=unsupported
10442       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'
10443       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10444       ;;
10445
10446     osf3*)
10447       if test "$GCC" = yes; then
10448         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10449         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10450       else
10451         allow_undefined_flag=' -expect_unresolved \*'
10452         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10453       fi
10454       archive_cmds_need_lc='no'
10455       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10456       hardcode_libdir_separator=:
10457       ;;
10458
10459     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10460       if test "$GCC" = yes; then
10461         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10462         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10463         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10464       else
10465         allow_undefined_flag=' -expect_unresolved \*'
10466         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10467         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10468         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10469
10470         # Both c and cxx compiler support -rpath directly
10471         hardcode_libdir_flag_spec='-rpath $libdir'
10472       fi
10473       archive_cmds_need_lc='no'
10474       hardcode_libdir_separator=:
10475       ;;
10476
10477     solaris*)
10478       no_undefined_flag=' -z defs'
10479       if test "$GCC" = yes; then
10480         wlarc='${wl}'
10481         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10482         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10483           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10484       else
10485         case `$CC -V 2>&1` in
10486         *"Compilers 5.0"*)
10487           wlarc=''
10488           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10489           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10490           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10491           ;;
10492         *)
10493           wlarc='${wl}'
10494           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10495           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10496           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10497           ;;
10498         esac
10499       fi
10500       hardcode_libdir_flag_spec='-R$libdir'
10501       hardcode_shlibpath_var=no
10502       case $host_os in
10503       solaris2.[0-5] | solaris2.[0-5].*) ;;
10504       *)
10505         # The compiler driver will combine and reorder linker options,
10506         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10507         # but is careful enough not to reorder.
10508         # Supported since Solaris 2.6 (maybe 2.5.1?)
10509         if test "$GCC" = yes; then
10510           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10511         else
10512           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10513         fi
10514         ;;
10515       esac
10516       link_all_deplibs=yes
10517       ;;
10518
10519     sunos4*)
10520       if test "x$host_vendor" = xsequent; then
10521         # Use $CC to link under sequent, because it throws in some extra .o
10522         # files that make .init and .fini sections work.
10523         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10524       else
10525         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10526       fi
10527       hardcode_libdir_flag_spec='-L$libdir'
10528       hardcode_direct=yes
10529       hardcode_minus_L=yes
10530       hardcode_shlibpath_var=no
10531       ;;
10532
10533     sysv4)
10534       case $host_vendor in
10535         sni)
10536           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537           hardcode_direct=yes # is this really true???
10538         ;;
10539         siemens)
10540           ## LD is ld it makes a PLAMLIB
10541           ## CC just makes a GrossModule.
10542           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10543           reload_cmds='$CC -r -o $output$reload_objs'
10544           hardcode_direct=no
10545         ;;
10546         motorola)
10547           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10548           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10549         ;;
10550       esac
10551       runpath_var='LD_RUN_PATH'
10552       hardcode_shlibpath_var=no
10553       ;;
10554
10555     sysv4.3*)
10556       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557       hardcode_shlibpath_var=no
10558       export_dynamic_flag_spec='-Bexport'
10559       ;;
10560
10561     sysv4*MP*)
10562       if test -d /usr/nec; then
10563         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10564         hardcode_shlibpath_var=no
10565         runpath_var=LD_RUN_PATH
10566         hardcode_runpath_var=yes
10567         ld_shlibs=yes
10568       fi
10569       ;;
10570
10571     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10572       no_undefined_flag='${wl}-z,text'
10573       archive_cmds_need_lc=no
10574       hardcode_shlibpath_var=no
10575       runpath_var='LD_RUN_PATH'
10576
10577       if test "$GCC" = yes; then
10578         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10579         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10580       else
10581         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10582         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583       fi
10584       ;;
10585
10586     sysv5* | sco3.2v5* | sco5v6*)
10587       # Note: We can NOT use -z defs as we might desire, because we do not
10588       # link with -lc, and that would cause any symbols used from libc to
10589       # always be unresolved, which means just about no library would
10590       # ever link correctly.  If we're not using GNU ld we use -z text
10591       # though, which does catch some bad symbols but isn't as heavy-handed
10592       # as -z defs.
10593       no_undefined_flag='${wl}-z,text'
10594       allow_undefined_flag='${wl}-z,nodefs'
10595       archive_cmds_need_lc=no
10596       hardcode_shlibpath_var=no
10597       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10598       hardcode_libdir_separator=':'
10599       link_all_deplibs=yes
10600       export_dynamic_flag_spec='${wl}-Bexport'
10601       runpath_var='LD_RUN_PATH'
10602
10603       if test "$GCC" = yes; then
10604         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606       else
10607         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609       fi
10610       ;;
10611
10612     uts4*)
10613       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614       hardcode_libdir_flag_spec='-L$libdir'
10615       hardcode_shlibpath_var=no
10616       ;;
10617
10618     *)
10619       ld_shlibs=no
10620       ;;
10621     esac
10622
10623     if test x$host_vendor = xsni; then
10624       case $host in
10625       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10626         export_dynamic_flag_spec='${wl}-Blargedynsym'
10627         ;;
10628       esac
10629     fi
10630   fi
10631
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10633 $as_echo "$ld_shlibs" >&6; }
10634 test "$ld_shlibs" = no && can_build_shared=no
10635
10636 with_gnu_ld=$with_gnu_ld
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652 #
10653 # Do we need to explicitly link libc?
10654 #
10655 case "x$archive_cmds_need_lc" in
10656 x|xyes)
10657   # Assume -lc should be added
10658   archive_cmds_need_lc=yes
10659
10660   if test "$enable_shared" = yes && test "$GCC" = yes; then
10661     case $archive_cmds in
10662     *'~'*)
10663       # FIXME: we may have to deal with multi-command sequences.
10664       ;;
10665     '$CC '*)
10666       # Test whether the compiler implicitly links with -lc since on some
10667       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10668       # to ld, don't add -lc before -lgcc.
10669       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10670 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10671 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10672   $as_echo_n "(cached) " >&6
10673 else
10674   $RM conftest*
10675         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10676
10677         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10678   (eval $ac_compile) 2>&5
10679   ac_status=$?
10680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10681   test $ac_status = 0; } 2>conftest.err; then
10682           soname=conftest
10683           lib=conftest
10684           libobjs=conftest.$ac_objext
10685           deplibs=
10686           wl=$lt_prog_compiler_wl
10687           pic_flag=$lt_prog_compiler_pic
10688           compiler_flags=-v
10689           linker_flags=-v
10690           verstring=
10691           output_objdir=.
10692           libname=conftest
10693           lt_save_allow_undefined_flag=$allow_undefined_flag
10694           allow_undefined_flag=
10695           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10696   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10697   ac_status=$?
10698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10699   test $ac_status = 0; }
10700           then
10701             lt_cv_archive_cmds_need_lc=no
10702           else
10703             lt_cv_archive_cmds_need_lc=yes
10704           fi
10705           allow_undefined_flag=$lt_save_allow_undefined_flag
10706         else
10707           cat conftest.err 1>&5
10708         fi
10709         $RM conftest*
10710
10711 fi
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10713 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10714       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10715       ;;
10716     esac
10717   fi
10718   ;;
10719 esac
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10878 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10879
10880 if test "$GCC" = yes; then
10881   case $host_os in
10882     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10883     *) lt_awk_arg="/^libraries:/" ;;
10884   esac
10885   case $host_os in
10886     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10887     *) lt_sed_strip_eq="s,=/,/,g" ;;
10888   esac
10889   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10890   case $lt_search_path_spec in
10891   *\;*)
10892     # if the path contains ";" then we assume it to be the separator
10893     # otherwise default to the standard path separator (i.e. ":") - it is
10894     # assumed that no part of a normal pathname contains ";" but that should
10895     # okay in the real world where ";" in dirpaths is itself problematic.
10896     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10897     ;;
10898   *)
10899     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10900     ;;
10901   esac
10902   # Ok, now we have the path, separated by spaces, we can step through it
10903   # and add multilib dir if necessary.
10904   lt_tmp_lt_search_path_spec=
10905   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10906   for lt_sys_path in $lt_search_path_spec; do
10907     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10908       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10909     else
10910       test -d "$lt_sys_path" && \
10911         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10912     fi
10913   done
10914   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10915 BEGIN {RS=" "; FS="/|\n";} {
10916   lt_foo="";
10917   lt_count=0;
10918   for (lt_i = NF; lt_i > 0; lt_i--) {
10919     if ($lt_i != "" && $lt_i != ".") {
10920       if ($lt_i == "..") {
10921         lt_count++;
10922       } else {
10923         if (lt_count == 0) {
10924           lt_foo="/" $lt_i lt_foo;
10925         } else {
10926           lt_count--;
10927         }
10928       }
10929     }
10930   }
10931   if (lt_foo != "") { lt_freq[lt_foo]++; }
10932   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10933 }'`
10934   # AWK program above erroneously prepends '/' to C:/dos/paths
10935   # for these hosts.
10936   case $host_os in
10937     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10938       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10939   esac
10940   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10941 else
10942   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10943 fi
10944 library_names_spec=
10945 libname_spec='lib$name'
10946 soname_spec=
10947 shrext_cmds=".so"
10948 postinstall_cmds=
10949 postuninstall_cmds=
10950 finish_cmds=
10951 finish_eval=
10952 shlibpath_var=
10953 shlibpath_overrides_runpath=unknown
10954 version_type=none
10955 dynamic_linker="$host_os ld.so"
10956 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10957 need_lib_prefix=unknown
10958 hardcode_into_libs=no
10959
10960 # when you set need_version to no, make sure it does not cause -set_version
10961 # flags to be left without arguments
10962 need_version=unknown
10963
10964 case $host_os in
10965 aix3*)
10966   version_type=linux
10967   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10968   shlibpath_var=LIBPATH
10969
10970   # AIX 3 has no versioning support, so we append a major version to the name.
10971   soname_spec='${libname}${release}${shared_ext}$major'
10972   ;;
10973
10974 aix[4-9]*)
10975   version_type=linux
10976   need_lib_prefix=no
10977   need_version=no
10978   hardcode_into_libs=yes
10979   if test "$host_cpu" = ia64; then
10980     # AIX 5 supports IA64
10981     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10982     shlibpath_var=LD_LIBRARY_PATH
10983   else
10984     # With GCC up to 2.95.x, collect2 would create an import file
10985     # for dependence libraries.  The import file would start with
10986     # the line `#! .'.  This would cause the generated library to
10987     # depend on `.', always an invalid library.  This was fixed in
10988     # development snapshots of GCC prior to 3.0.
10989     case $host_os in
10990       aix4 | aix4.[01] | aix4.[01].*)
10991       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10992            echo ' yes '
10993            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10994         :
10995       else
10996         can_build_shared=no
10997       fi
10998       ;;
10999     esac
11000     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11001     # soname into executable. Probably we can add versioning support to
11002     # collect2, so additional links can be useful in future.
11003     if test "$aix_use_runtimelinking" = yes; then
11004       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11005       # instead of lib<name>.a to let people know that these are not
11006       # typical AIX shared libraries.
11007       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008     else
11009       # We preserve .a as extension for shared libraries through AIX4.2
11010       # and later when we are not doing run time linking.
11011       library_names_spec='${libname}${release}.a $libname.a'
11012       soname_spec='${libname}${release}${shared_ext}$major'
11013     fi
11014     shlibpath_var=LIBPATH
11015   fi
11016   ;;
11017
11018 amigaos*)
11019   case $host_cpu in
11020   powerpc)
11021     # Since July 2007 AmigaOS4 officially supports .so libraries.
11022     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024     ;;
11025   m68k)
11026     library_names_spec='$libname.ixlibrary $libname.a'
11027     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11028     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11029     ;;
11030   esac
11031   ;;
11032
11033 beos*)
11034   library_names_spec='${libname}${shared_ext}'
11035   dynamic_linker="$host_os ld.so"
11036   shlibpath_var=LIBRARY_PATH
11037   ;;
11038
11039 bsdi[45]*)
11040   version_type=linux
11041   need_version=no
11042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043   soname_spec='${libname}${release}${shared_ext}$major'
11044   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11045   shlibpath_var=LD_LIBRARY_PATH
11046   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11047   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11048   # the default ld.so.conf also contains /usr/contrib/lib and
11049   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11050   # libtool to hard-code these into programs
11051   ;;
11052
11053 cygwin* | mingw* | pw32* | cegcc*)
11054   version_type=windows
11055   shrext_cmds=".dll"
11056   need_version=no
11057   need_lib_prefix=no
11058
11059   case $GCC,$cc_basename in
11060   yes,*)
11061     # gcc
11062     library_names_spec='$libname.dll.a'
11063     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11064     postinstall_cmds='base_file=`basename \${file}`~
11065       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11066       dldir=$destdir/`dirname \$dlpath`~
11067       test -d \$dldir || mkdir -p \$dldir~
11068       $install_prog $dir/$dlname \$dldir/$dlname~
11069       chmod a+x \$dldir/$dlname~
11070       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11071         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11072       fi'
11073     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11074       dlpath=$dir/\$dldll~
11075        $RM \$dlpath'
11076     shlibpath_overrides_runpath=yes
11077
11078     case $host_os in
11079     cygwin*)
11080       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11081       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11082
11083       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11084       ;;
11085     mingw* | cegcc*)
11086       # MinGW DLLs use traditional 'lib' prefix
11087       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11088       ;;
11089     pw32*)
11090       # pw32 DLLs use 'pw' prefix rather than 'lib'
11091       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11092       ;;
11093     esac
11094     dynamic_linker='Win32 ld.exe'
11095     ;;
11096
11097   *,cl*)
11098     # Native MSVC
11099     libname_spec='$name'
11100     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11101     library_names_spec='${libname}.dll.lib'
11102
11103     case $build_os in
11104     mingw*)
11105       sys_lib_search_path_spec=
11106       lt_save_ifs=$IFS
11107       IFS=';'
11108       for lt_path in $LIB
11109       do
11110         IFS=$lt_save_ifs
11111         # Let DOS variable expansion print the short 8.3 style file name.
11112         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11113         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11114       done
11115       IFS=$lt_save_ifs
11116       # Convert to MSYS style.
11117       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11118       ;;
11119     cygwin*)
11120       # Convert to unix form, then to dos form, then back to unix form
11121       # but this time dos style (no spaces!) so that the unix form looks
11122       # like /cygdrive/c/PROGRA~1:/cygdr...
11123       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11124       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11125       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11126       ;;
11127     *)
11128       sys_lib_search_path_spec="$LIB"
11129       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11130         # It is most probably a Windows format PATH.
11131         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11132       else
11133         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11134       fi
11135       # FIXME: find the short name or the path components, as spaces are
11136       # common. (e.g. "Program Files" -> "PROGRA~1")
11137       ;;
11138     esac
11139
11140     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11141     postinstall_cmds='base_file=`basename \${file}`~
11142       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11143       dldir=$destdir/`dirname \$dlpath`~
11144       test -d \$dldir || mkdir -p \$dldir~
11145       $install_prog $dir/$dlname \$dldir/$dlname'
11146     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11147       dlpath=$dir/\$dldll~
11148        $RM \$dlpath'
11149     shlibpath_overrides_runpath=yes
11150     dynamic_linker='Win32 link.exe'
11151     ;;
11152
11153   *)
11154     # Assume MSVC wrapper
11155     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11156     dynamic_linker='Win32 ld.exe'
11157     ;;
11158   esac
11159   # FIXME: first we should search . and the directory the executable is in
11160   shlibpath_var=PATH
11161   ;;
11162
11163 darwin* | rhapsody*)
11164   dynamic_linker="$host_os dyld"
11165   version_type=darwin
11166   need_lib_prefix=no
11167   need_version=no
11168   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11169   soname_spec='${libname}${release}${major}$shared_ext'
11170   shlibpath_overrides_runpath=yes
11171   shlibpath_var=DYLD_LIBRARY_PATH
11172   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11173
11174   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11175   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11176   ;;
11177
11178 dgux*)
11179   version_type=linux
11180   need_lib_prefix=no
11181   need_version=no
11182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11183   soname_spec='${libname}${release}${shared_ext}$major'
11184   shlibpath_var=LD_LIBRARY_PATH
11185   ;;
11186
11187 freebsd1*)
11188   dynamic_linker=no
11189   ;;
11190
11191 freebsd* | dragonfly*)
11192   # DragonFly does not have aout.  When/if they implement a new
11193   # versioning mechanism, adjust this.
11194   if test -x /usr/bin/objformat; then
11195     objformat=`/usr/bin/objformat`
11196   else
11197     case $host_os in
11198     freebsd[123]*) objformat=aout ;;
11199     *) objformat=elf ;;
11200     esac
11201   fi
11202   version_type=freebsd-$objformat
11203   case $version_type in
11204     freebsd-elf*)
11205       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11206       need_version=no
11207       need_lib_prefix=no
11208       ;;
11209     freebsd-*)
11210       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11211       need_version=yes
11212       ;;
11213   esac
11214   shlibpath_var=LD_LIBRARY_PATH
11215   case $host_os in
11216   freebsd2*)
11217     shlibpath_overrides_runpath=yes
11218     ;;
11219   freebsd3.[01]* | freebsdelf3.[01]*)
11220     shlibpath_overrides_runpath=yes
11221     hardcode_into_libs=yes
11222     ;;
11223   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11224   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11225     shlibpath_overrides_runpath=no
11226     hardcode_into_libs=yes
11227     ;;
11228   *) # from 4.6 on, and DragonFly
11229     shlibpath_overrides_runpath=yes
11230     hardcode_into_libs=yes
11231     ;;
11232   esac
11233   ;;
11234
11235 gnu*)
11236   version_type=linux
11237   need_lib_prefix=no
11238   need_version=no
11239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11240   soname_spec='${libname}${release}${shared_ext}$major'
11241   shlibpath_var=LD_LIBRARY_PATH
11242   hardcode_into_libs=yes
11243   ;;
11244
11245 haiku*)
11246   version_type=linux
11247   need_lib_prefix=no
11248   need_version=no
11249   dynamic_linker="$host_os runtime_loader"
11250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11251   soname_spec='${libname}${release}${shared_ext}$major'
11252   shlibpath_var=LIBRARY_PATH
11253   shlibpath_overrides_runpath=yes
11254   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11255   hardcode_into_libs=yes
11256   ;;
11257
11258 hpux9* | hpux10* | hpux11*)
11259   # Give a soname corresponding to the major version so that dld.sl refuses to
11260   # link against other versions.
11261   version_type=sunos
11262   need_lib_prefix=no
11263   need_version=no
11264   case $host_cpu in
11265   ia64*)
11266     shrext_cmds='.so'
11267     hardcode_into_libs=yes
11268     dynamic_linker="$host_os dld.so"
11269     shlibpath_var=LD_LIBRARY_PATH
11270     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272     soname_spec='${libname}${release}${shared_ext}$major'
11273     if test "X$HPUX_IA64_MODE" = X32; then
11274       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11275     else
11276       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11277     fi
11278     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11279     ;;
11280   hppa*64*)
11281     shrext_cmds='.sl'
11282     hardcode_into_libs=yes
11283     dynamic_linker="$host_os dld.sl"
11284     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11285     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287     soname_spec='${libname}${release}${shared_ext}$major'
11288     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11289     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11290     ;;
11291   *)
11292     shrext_cmds='.sl'
11293     dynamic_linker="$host_os dld.sl"
11294     shlibpath_var=SHLIB_PATH
11295     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297     soname_spec='${libname}${release}${shared_ext}$major'
11298     ;;
11299   esac
11300   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11301   postinstall_cmds='chmod 555 $lib'
11302   # or fails outright, so override atomically:
11303   install_override_mode=555
11304   ;;
11305
11306 interix[3-9]*)
11307   version_type=linux
11308   need_lib_prefix=no
11309   need_version=no
11310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11311   soname_spec='${libname}${release}${shared_ext}$major'
11312   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11313   shlibpath_var=LD_LIBRARY_PATH
11314   shlibpath_overrides_runpath=no
11315   hardcode_into_libs=yes
11316   ;;
11317
11318 irix5* | irix6* | nonstopux*)
11319   case $host_os in
11320     nonstopux*) version_type=nonstopux ;;
11321     *)
11322         if test "$lt_cv_prog_gnu_ld" = yes; then
11323                 version_type=linux
11324         else
11325                 version_type=irix
11326         fi ;;
11327   esac
11328   need_lib_prefix=no
11329   need_version=no
11330   soname_spec='${libname}${release}${shared_ext}$major'
11331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11332   case $host_os in
11333   irix5* | nonstopux*)
11334     libsuff= shlibsuff=
11335     ;;
11336   *)
11337     case $LD in # libtool.m4 will add one of these switches to LD
11338     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11339       libsuff= shlibsuff= libmagic=32-bit;;
11340     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11341       libsuff=32 shlibsuff=N32 libmagic=N32;;
11342     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11343       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11344     *) libsuff= shlibsuff= libmagic=never-match;;
11345     esac
11346     ;;
11347   esac
11348   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11349   shlibpath_overrides_runpath=no
11350   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11351   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11352   hardcode_into_libs=yes
11353   ;;
11354
11355 # No shared lib support for Linux oldld, aout, or coff.
11356 linux*oldld* | linux*aout* | linux*coff*)
11357   dynamic_linker=no
11358   ;;
11359
11360 # This must be Linux ELF.
11361 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11362   version_type=linux
11363   need_lib_prefix=no
11364   need_version=no
11365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366   soname_spec='${libname}${release}${shared_ext}$major'
11367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11368   shlibpath_var=LD_LIBRARY_PATH
11369   shlibpath_overrides_runpath=no
11370
11371   # Some binutils ld are patched to set DT_RUNPATH
11372   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11373   $as_echo_n "(cached) " >&6
11374 else
11375   lt_cv_shlibpath_overrides_runpath=no
11376     save_LDFLAGS=$LDFLAGS
11377     save_libdir=$libdir
11378     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11379          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11380     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h.  */
11382
11383 int
11384 main ()
11385 {
11386
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"; then :
11392   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11393   lt_cv_shlibpath_overrides_runpath=yes
11394 fi
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext \
11397     conftest$ac_exeext conftest.$ac_ext
11398     LDFLAGS=$save_LDFLAGS
11399     libdir=$save_libdir
11400
11401 fi
11402
11403   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11404
11405   # This implies no fast_install, which is unacceptable.
11406   # Some rework will be needed to allow for fast_install
11407   # before this can be enabled.
11408   hardcode_into_libs=yes
11409
11410   # Append ld.so.conf contents to the search path
11411   if test -f /etc/ld.so.conf; then
11412     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11413     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11414   fi
11415
11416   # We used to test for /lib/ld.so.1 and disable shared libraries on
11417   # powerpc, because MkLinux only supported shared libraries with the
11418   # GNU dynamic linker.  Since this was broken with cross compilers,
11419   # most powerpc-linux boxes support dynamic linking these days and
11420   # people can always --disable-shared, the test was removed, and we
11421   # assume the GNU/Linux dynamic linker is in use.
11422   dynamic_linker='GNU/Linux ld.so'
11423   ;;
11424
11425 netbsd*)
11426   version_type=sunos
11427   need_lib_prefix=no
11428   need_version=no
11429   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11431     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11432     dynamic_linker='NetBSD (a.out) ld.so'
11433   else
11434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11435     soname_spec='${libname}${release}${shared_ext}$major'
11436     dynamic_linker='NetBSD ld.elf_so'
11437   fi
11438   shlibpath_var=LD_LIBRARY_PATH
11439   shlibpath_overrides_runpath=yes
11440   hardcode_into_libs=yes
11441   ;;
11442
11443 newsos6)
11444   version_type=linux
11445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446   shlibpath_var=LD_LIBRARY_PATH
11447   shlibpath_overrides_runpath=yes
11448   ;;
11449
11450 *nto* | *qnx*)
11451   version_type=qnx
11452   need_lib_prefix=no
11453   need_version=no
11454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455   soname_spec='${libname}${release}${shared_ext}$major'
11456   shlibpath_var=LD_LIBRARY_PATH
11457   shlibpath_overrides_runpath=no
11458   hardcode_into_libs=yes
11459   dynamic_linker='ldqnx.so'
11460   ;;
11461
11462 openbsd*)
11463   version_type=sunos
11464   sys_lib_dlsearch_path_spec="/usr/lib"
11465   need_lib_prefix=no
11466   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11467   case $host_os in
11468     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11469     *)                          need_version=no  ;;
11470   esac
11471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11472   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11473   shlibpath_var=LD_LIBRARY_PATH
11474   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11475     case $host_os in
11476       openbsd2.[89] | openbsd2.[89].*)
11477         shlibpath_overrides_runpath=no
11478         ;;
11479       *)
11480         shlibpath_overrides_runpath=yes
11481         ;;
11482       esac
11483   else
11484     shlibpath_overrides_runpath=yes
11485   fi
11486   ;;
11487
11488 os2*)
11489   libname_spec='$name'
11490   shrext_cmds=".dll"
11491   need_lib_prefix=no
11492   library_names_spec='$libname${shared_ext} $libname.a'
11493   dynamic_linker='OS/2 ld.exe'
11494   shlibpath_var=LIBPATH
11495   ;;
11496
11497 osf3* | osf4* | osf5*)
11498   version_type=osf
11499   need_lib_prefix=no
11500   need_version=no
11501   soname_spec='${libname}${release}${shared_ext}$major'
11502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503   shlibpath_var=LD_LIBRARY_PATH
11504   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11505   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11506   ;;
11507
11508 rdos*)
11509   dynamic_linker=no
11510   ;;
11511
11512 solaris*)
11513   version_type=linux
11514   need_lib_prefix=no
11515   need_version=no
11516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517   soname_spec='${libname}${release}${shared_ext}$major'
11518   shlibpath_var=LD_LIBRARY_PATH
11519   shlibpath_overrides_runpath=yes
11520   hardcode_into_libs=yes
11521   # ldd complains unless libraries are executable
11522   postinstall_cmds='chmod +x $lib'
11523   ;;
11524
11525 sunos4*)
11526   version_type=sunos
11527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11528   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11529   shlibpath_var=LD_LIBRARY_PATH
11530   shlibpath_overrides_runpath=yes
11531   if test "$with_gnu_ld" = yes; then
11532     need_lib_prefix=no
11533   fi
11534   need_version=yes
11535   ;;
11536
11537 sysv4 | sysv4.3*)
11538   version_type=linux
11539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540   soname_spec='${libname}${release}${shared_ext}$major'
11541   shlibpath_var=LD_LIBRARY_PATH
11542   case $host_vendor in
11543     sni)
11544       shlibpath_overrides_runpath=no
11545       need_lib_prefix=no
11546       runpath_var=LD_RUN_PATH
11547       ;;
11548     siemens)
11549       need_lib_prefix=no
11550       ;;
11551     motorola)
11552       need_lib_prefix=no
11553       need_version=no
11554       shlibpath_overrides_runpath=no
11555       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11556       ;;
11557   esac
11558   ;;
11559
11560 sysv4*MP*)
11561   if test -d /usr/nec ;then
11562     version_type=linux
11563     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11564     soname_spec='$libname${shared_ext}.$major'
11565     shlibpath_var=LD_LIBRARY_PATH
11566   fi
11567   ;;
11568
11569 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11570   version_type=freebsd-elf
11571   need_lib_prefix=no
11572   need_version=no
11573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11574   soname_spec='${libname}${release}${shared_ext}$major'
11575   shlibpath_var=LD_LIBRARY_PATH
11576   shlibpath_overrides_runpath=yes
11577   hardcode_into_libs=yes
11578   if test "$with_gnu_ld" = yes; then
11579     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11580   else
11581     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11582     case $host_os in
11583       sco3.2v5*)
11584         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11585         ;;
11586     esac
11587   fi
11588   sys_lib_dlsearch_path_spec='/usr/lib'
11589   ;;
11590
11591 tpf*)
11592   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11593   version_type=linux
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597   shlibpath_var=LD_LIBRARY_PATH
11598   shlibpath_overrides_runpath=no
11599   hardcode_into_libs=yes
11600   ;;
11601
11602 uts4*)
11603   version_type=linux
11604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605   soname_spec='${libname}${release}${shared_ext}$major'
11606   shlibpath_var=LD_LIBRARY_PATH
11607   ;;
11608
11609 *)
11610   dynamic_linker=no
11611   ;;
11612 esac
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11614 $as_echo "$dynamic_linker" >&6; }
11615 test "$dynamic_linker" = no && can_build_shared=no
11616
11617 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11618 if test "$GCC" = yes; then
11619   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11620 fi
11621
11622 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11623   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11624 fi
11625 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11626   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11627 fi
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11721 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11722 hardcode_action=
11723 if test -n "$hardcode_libdir_flag_spec" ||
11724    test -n "$runpath_var" ||
11725    test "X$hardcode_automatic" = "Xyes" ; then
11726
11727   # We can hardcode non-existent directories.
11728   if test "$hardcode_direct" != no &&
11729      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11730      # have to relink, otherwise we might link with an installed library
11731      # when we should be linking with a yet-to-be-installed one
11732      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11733      test "$hardcode_minus_L" != no; then
11734     # Linking always hardcodes the temporary library directory.
11735     hardcode_action=relink
11736   else
11737     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11738     hardcode_action=immediate
11739   fi
11740 else
11741   # We cannot hardcode anything, or else we can only hardcode existing
11742   # directories.
11743   hardcode_action=unsupported
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11746 $as_echo "$hardcode_action" >&6; }
11747
11748 if test "$hardcode_action" = relink ||
11749    test "$inherit_rpath" = yes; then
11750   # Fast installation is not supported
11751   enable_fast_install=no
11752 elif test "$shlibpath_overrides_runpath" = yes ||
11753      test "$enable_shared" = no; then
11754   # Fast installation is not necessary
11755   enable_fast_install=needless
11756 fi
11757
11758
11759
11760
11761
11762
11763   if test "x$enable_dlopen" != xyes; then
11764   enable_dlopen=unknown
11765   enable_dlopen_self=unknown
11766   enable_dlopen_self_static=unknown
11767 else
11768   lt_cv_dlopen=no
11769   lt_cv_dlopen_libs=
11770
11771   case $host_os in
11772   beos*)
11773     lt_cv_dlopen="load_add_on"
11774     lt_cv_dlopen_libs=
11775     lt_cv_dlopen_self=yes
11776     ;;
11777
11778   mingw* | pw32* | cegcc*)
11779     lt_cv_dlopen="LoadLibrary"
11780     lt_cv_dlopen_libs=
11781     ;;
11782
11783   cygwin*)
11784     lt_cv_dlopen="dlopen"
11785     lt_cv_dlopen_libs=
11786     ;;
11787
11788   darwin*)
11789   # if libdl is installed we need to link against it
11790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11791 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11792 if ${ac_cv_lib_dl_dlopen+:} false; then :
11793   $as_echo_n "(cached) " >&6
11794 else
11795   ac_check_lib_save_LIBS=$LIBS
11796 LIBS="-ldl  $LIBS"
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h.  */
11799
11800 /* Override any GCC internal prototype to avoid an error.
11801    Use char because int might match the return type of a GCC
11802    builtin and then its argument prototype would still apply.  */
11803 #ifdef __cplusplus
11804 extern "C"
11805 #endif
11806 char dlopen ();
11807 int
11808 main ()
11809 {
11810 return dlopen ();
11811   ;
11812   return 0;
11813 }
11814 _ACEOF
11815 if ac_fn_c_try_link "$LINENO"; then :
11816   ac_cv_lib_dl_dlopen=yes
11817 else
11818   ac_cv_lib_dl_dlopen=no
11819 fi
11820 rm -f core conftest.err conftest.$ac_objext \
11821     conftest$ac_exeext conftest.$ac_ext
11822 LIBS=$ac_check_lib_save_LIBS
11823 fi
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11825 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11826 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11827   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11828 else
11829
11830     lt_cv_dlopen="dyld"
11831     lt_cv_dlopen_libs=
11832     lt_cv_dlopen_self=yes
11833
11834 fi
11835
11836     ;;
11837
11838   *)
11839     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11840 if test "x$ac_cv_func_shl_load" = xyes; then :
11841   lt_cv_dlopen="shl_load"
11842 else
11843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11844 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11845 if ${ac_cv_lib_dld_shl_load+:} false; then :
11846   $as_echo_n "(cached) " >&6
11847 else
11848   ac_check_lib_save_LIBS=$LIBS
11849 LIBS="-ldld  $LIBS"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h.  */
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854    Use char because int might match the return type of a GCC
11855    builtin and then its argument prototype would still apply.  */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char shl_load ();
11860 int
11861 main ()
11862 {
11863 return shl_load ();
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 if ac_fn_c_try_link "$LINENO"; then :
11869   ac_cv_lib_dld_shl_load=yes
11870 else
11871   ac_cv_lib_dld_shl_load=no
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext \
11874     conftest$ac_exeext conftest.$ac_ext
11875 LIBS=$ac_check_lib_save_LIBS
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11878 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11879 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11880   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11881 else
11882   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11883 if test "x$ac_cv_func_dlopen" = xyes; then :
11884   lt_cv_dlopen="dlopen"
11885 else
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11887 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11888 if ${ac_cv_lib_dl_dlopen+:} false; then :
11889   $as_echo_n "(cached) " >&6
11890 else
11891   ac_check_lib_save_LIBS=$LIBS
11892 LIBS="-ldl  $LIBS"
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h.  */
11895
11896 /* Override any GCC internal prototype to avoid an error.
11897    Use char because int might match the return type of a GCC
11898    builtin and then its argument prototype would still apply.  */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char dlopen ();
11903 int
11904 main ()
11905 {
11906 return dlopen ();
11907   ;
11908   return 0;
11909 }
11910 _ACEOF
11911 if ac_fn_c_try_link "$LINENO"; then :
11912   ac_cv_lib_dl_dlopen=yes
11913 else
11914   ac_cv_lib_dl_dlopen=no
11915 fi
11916 rm -f core conftest.err conftest.$ac_objext \
11917     conftest$ac_exeext conftest.$ac_ext
11918 LIBS=$ac_check_lib_save_LIBS
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11921 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11922 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11923   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11924 else
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11926 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11927 if ${ac_cv_lib_svld_dlopen+:} false; then :
11928   $as_echo_n "(cached) " >&6
11929 else
11930   ac_check_lib_save_LIBS=$LIBS
11931 LIBS="-lsvld  $LIBS"
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h.  */
11934
11935 /* Override any GCC internal prototype to avoid an error.
11936    Use char because int might match the return type of a GCC
11937    builtin and then its argument prototype would still apply.  */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char dlopen ();
11942 int
11943 main ()
11944 {
11945 return dlopen ();
11946   ;
11947   return 0;
11948 }
11949 _ACEOF
11950 if ac_fn_c_try_link "$LINENO"; then :
11951   ac_cv_lib_svld_dlopen=yes
11952 else
11953   ac_cv_lib_svld_dlopen=no
11954 fi
11955 rm -f core conftest.err conftest.$ac_objext \
11956     conftest$ac_exeext conftest.$ac_ext
11957 LIBS=$ac_check_lib_save_LIBS
11958 fi
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11960 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11961 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11962   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11963 else
11964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11965 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11966 if ${ac_cv_lib_dld_dld_link+:} false; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969   ac_check_lib_save_LIBS=$LIBS
11970 LIBS="-ldld  $LIBS"
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h.  */
11973
11974 /* Override any GCC internal prototype to avoid an error.
11975    Use char because int might match the return type of a GCC
11976    builtin and then its argument prototype would still apply.  */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 char dld_link ();
11981 int
11982 main ()
11983 {
11984 return dld_link ();
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 if ac_fn_c_try_link "$LINENO"; then :
11990   ac_cv_lib_dld_dld_link=yes
11991 else
11992   ac_cv_lib_dld_dld_link=no
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext \
11995     conftest$ac_exeext conftest.$ac_ext
11996 LIBS=$ac_check_lib_save_LIBS
11997 fi
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11999 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12000 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12001   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12002 fi
12003
12004
12005 fi
12006
12007
12008 fi
12009
12010
12011 fi
12012
12013
12014 fi
12015
12016
12017 fi
12018
12019     ;;
12020   esac
12021
12022   if test "x$lt_cv_dlopen" != xno; then
12023     enable_dlopen=yes
12024   else
12025     enable_dlopen=no
12026   fi
12027
12028   case $lt_cv_dlopen in
12029   dlopen)
12030     save_CPPFLAGS="$CPPFLAGS"
12031     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12032
12033     save_LDFLAGS="$LDFLAGS"
12034     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12035
12036     save_LIBS="$LIBS"
12037     LIBS="$lt_cv_dlopen_libs $LIBS"
12038
12039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12040 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12041 if ${lt_cv_dlopen_self+:} false; then :
12042   $as_echo_n "(cached) " >&6
12043 else
12044           if test "$cross_compiling" = yes; then :
12045   lt_cv_dlopen_self=cross
12046 else
12047   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12048   lt_status=$lt_dlunknown
12049   cat > conftest.$ac_ext <<_LT_EOF
12050 #line $LINENO "configure"
12051 #include "confdefs.h"
12052
12053 #if HAVE_DLFCN_H
12054 #include <dlfcn.h>
12055 #endif
12056
12057 #include <stdio.h>
12058
12059 #ifdef RTLD_GLOBAL
12060 #  define LT_DLGLOBAL           RTLD_GLOBAL
12061 #else
12062 #  ifdef DL_GLOBAL
12063 #    define LT_DLGLOBAL         DL_GLOBAL
12064 #  else
12065 #    define LT_DLGLOBAL         0
12066 #  endif
12067 #endif
12068
12069 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12070    find out it does not work in some platform. */
12071 #ifndef LT_DLLAZY_OR_NOW
12072 #  ifdef RTLD_LAZY
12073 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12074 #  else
12075 #    ifdef DL_LAZY
12076 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12077 #    else
12078 #      ifdef RTLD_NOW
12079 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12080 #      else
12081 #        ifdef DL_NOW
12082 #          define LT_DLLAZY_OR_NOW      DL_NOW
12083 #        else
12084 #          define LT_DLLAZY_OR_NOW      0
12085 #        endif
12086 #      endif
12087 #    endif
12088 #  endif
12089 #endif
12090
12091 /* When -fvisbility=hidden is used, assume the code has been annotated
12092    correspondingly for the symbols needed.  */
12093 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12094 int fnord () __attribute__((visibility("default")));
12095 #endif
12096
12097 int fnord () { return 42; }
12098 int main ()
12099 {
12100   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12101   int status = $lt_dlunknown;
12102
12103   if (self)
12104     {
12105       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12106       else
12107         {
12108           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12109           else puts (dlerror ());
12110         }
12111       /* dlclose (self); */
12112     }
12113   else
12114     puts (dlerror ());
12115
12116   return status;
12117 }
12118 _LT_EOF
12119   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12120   (eval $ac_link) 2>&5
12121   ac_status=$?
12122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12123   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12124     (./conftest; exit; ) >&5 2>/dev/null
12125     lt_status=$?
12126     case x$lt_status in
12127       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12128       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12129       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12130     esac
12131   else :
12132     # compilation failed
12133     lt_cv_dlopen_self=no
12134   fi
12135 fi
12136 rm -fr conftest*
12137
12138
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12141 $as_echo "$lt_cv_dlopen_self" >&6; }
12142
12143     if test "x$lt_cv_dlopen_self" = xyes; then
12144       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12145       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12146 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12147 if ${lt_cv_dlopen_self_static+:} false; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150           if test "$cross_compiling" = yes; then :
12151   lt_cv_dlopen_self_static=cross
12152 else
12153   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12154   lt_status=$lt_dlunknown
12155   cat > conftest.$ac_ext <<_LT_EOF
12156 #line $LINENO "configure"
12157 #include "confdefs.h"
12158
12159 #if HAVE_DLFCN_H
12160 #include <dlfcn.h>
12161 #endif
12162
12163 #include <stdio.h>
12164
12165 #ifdef RTLD_GLOBAL
12166 #  define LT_DLGLOBAL           RTLD_GLOBAL
12167 #else
12168 #  ifdef DL_GLOBAL
12169 #    define LT_DLGLOBAL         DL_GLOBAL
12170 #  else
12171 #    define LT_DLGLOBAL         0
12172 #  endif
12173 #endif
12174
12175 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12176    find out it does not work in some platform. */
12177 #ifndef LT_DLLAZY_OR_NOW
12178 #  ifdef RTLD_LAZY
12179 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12180 #  else
12181 #    ifdef DL_LAZY
12182 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12183 #    else
12184 #      ifdef RTLD_NOW
12185 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12186 #      else
12187 #        ifdef DL_NOW
12188 #          define LT_DLLAZY_OR_NOW      DL_NOW
12189 #        else
12190 #          define LT_DLLAZY_OR_NOW      0
12191 #        endif
12192 #      endif
12193 #    endif
12194 #  endif
12195 #endif
12196
12197 /* When -fvisbility=hidden is used, assume the code has been annotated
12198    correspondingly for the symbols needed.  */
12199 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12200 int fnord () __attribute__((visibility("default")));
12201 #endif
12202
12203 int fnord () { return 42; }
12204 int main ()
12205 {
12206   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12207   int status = $lt_dlunknown;
12208
12209   if (self)
12210     {
12211       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12212       else
12213         {
12214           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12215           else puts (dlerror ());
12216         }
12217       /* dlclose (self); */
12218     }
12219   else
12220     puts (dlerror ());
12221
12222   return status;
12223 }
12224 _LT_EOF
12225   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12226   (eval $ac_link) 2>&5
12227   ac_status=$?
12228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12229   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12230     (./conftest; exit; ) >&5 2>/dev/null
12231     lt_status=$?
12232     case x$lt_status in
12233       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12234       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12235       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12236     esac
12237   else :
12238     # compilation failed
12239     lt_cv_dlopen_self_static=no
12240   fi
12241 fi
12242 rm -fr conftest*
12243
12244
12245 fi
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12247 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12248     fi
12249
12250     CPPFLAGS="$save_CPPFLAGS"
12251     LDFLAGS="$save_LDFLAGS"
12252     LIBS="$save_LIBS"
12253     ;;
12254   esac
12255
12256   case $lt_cv_dlopen_self in
12257   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12258   *) enable_dlopen_self=unknown ;;
12259   esac
12260
12261   case $lt_cv_dlopen_self_static in
12262   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12263   *) enable_dlopen_self_static=unknown ;;
12264   esac
12265 fi
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283 striplib=
12284 old_striplib=
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12286 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12287 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12288   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12289   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12291 $as_echo "yes" >&6; }
12292 else
12293 # FIXME - insert some real tests, host_os isn't really good enough
12294   case $host_os in
12295   darwin*)
12296     if test -n "$STRIP" ; then
12297       striplib="$STRIP -x"
12298       old_striplib="$STRIP -S"
12299       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12300 $as_echo "yes" >&6; }
12301     else
12302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12304     fi
12305     ;;
12306   *)
12307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12309     ;;
12310   esac
12311 fi
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324   # Report which library types will actually be built
12325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12326 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12328 $as_echo "$can_build_shared" >&6; }
12329
12330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12331 $as_echo_n "checking whether to build shared libraries... " >&6; }
12332   test "$can_build_shared" = "no" && enable_shared=no
12333
12334   # On AIX, shared libraries and static libraries use the same namespace, and
12335   # are all built from PIC.
12336   case $host_os in
12337   aix3*)
12338     test "$enable_shared" = yes && enable_static=no
12339     if test -n "$RANLIB"; then
12340       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12341       postinstall_cmds='$RANLIB $lib'
12342     fi
12343     ;;
12344
12345   aix[4-9]*)
12346     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12347       test "$enable_shared" = yes && enable_static=no
12348     fi
12349     ;;
12350   esac
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12352 $as_echo "$enable_shared" >&6; }
12353
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12355 $as_echo_n "checking whether to build static libraries... " >&6; }
12356   # Make sure either enable_shared or enable_static is yes.
12357   test "$enable_shared" = yes || enable_static=yes
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12359 $as_echo "$enable_static" >&6; }
12360
12361
12362
12363
12364 fi
12365 ac_ext=c
12366 ac_cpp='$CPP $CPPFLAGS'
12367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12370
12371 CC="$lt_save_CC"
12372
12373       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12374     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12375     (test "X$CXX" != "Xg++"))) ; then
12376   ac_ext=cpp
12377 ac_cpp='$CXXCPP $CPPFLAGS'
12378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12382 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12383 if test -z "$CXXCPP"; then
12384   if ${ac_cv_prog_CXXCPP+:} false; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387       # Double quotes because CXXCPP needs to be expanded
12388     for CXXCPP in "$CXX -E" "/lib/cpp"
12389     do
12390       ac_preproc_ok=false
12391 for ac_cxx_preproc_warn_flag in '' yes
12392 do
12393   # Use a header file that comes with gcc, so configuring glibc
12394   # with a fresh cross-compiler works.
12395   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12396   # <limits.h> exists even on freestanding compilers.
12397   # On the NeXT, cc -E runs the code through the compiler's parser,
12398   # not just through cpp. "Syntax error" is here to catch this case.
12399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h.  */
12401 #ifdef __STDC__
12402 # include <limits.h>
12403 #else
12404 # include <assert.h>
12405 #endif
12406                      Syntax error
12407 _ACEOF
12408 if ac_fn_cxx_try_cpp "$LINENO"; then :
12409
12410 else
12411   # Broken: fails on valid input.
12412 continue
12413 fi
12414 rm -f conftest.err conftest.i conftest.$ac_ext
12415
12416   # OK, works on sane cases.  Now check whether nonexistent headers
12417   # can be detected and how.
12418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h.  */
12420 #include <ac_nonexistent.h>
12421 _ACEOF
12422 if ac_fn_cxx_try_cpp "$LINENO"; then :
12423   # Broken: success on invalid input.
12424 continue
12425 else
12426   # Passes both tests.
12427 ac_preproc_ok=:
12428 break
12429 fi
12430 rm -f conftest.err conftest.i conftest.$ac_ext
12431
12432 done
12433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12434 rm -f conftest.i conftest.err conftest.$ac_ext
12435 if $ac_preproc_ok; then :
12436   break
12437 fi
12438
12439     done
12440     ac_cv_prog_CXXCPP=$CXXCPP
12441
12442 fi
12443   CXXCPP=$ac_cv_prog_CXXCPP
12444 else
12445   ac_cv_prog_CXXCPP=$CXXCPP
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12448 $as_echo "$CXXCPP" >&6; }
12449 ac_preproc_ok=false
12450 for ac_cxx_preproc_warn_flag in '' yes
12451 do
12452   # Use a header file that comes with gcc, so configuring glibc
12453   # with a fresh cross-compiler works.
12454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455   # <limits.h> exists even on freestanding compilers.
12456   # On the NeXT, cc -E runs the code through the compiler's parser,
12457   # not just through cpp. "Syntax error" is here to catch this case.
12458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h.  */
12460 #ifdef __STDC__
12461 # include <limits.h>
12462 #else
12463 # include <assert.h>
12464 #endif
12465                      Syntax error
12466 _ACEOF
12467 if ac_fn_cxx_try_cpp "$LINENO"; then :
12468
12469 else
12470   # Broken: fails on valid input.
12471 continue
12472 fi
12473 rm -f conftest.err conftest.i conftest.$ac_ext
12474
12475   # OK, works on sane cases.  Now check whether nonexistent headers
12476   # can be detected and how.
12477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h.  */
12479 #include <ac_nonexistent.h>
12480 _ACEOF
12481 if ac_fn_cxx_try_cpp "$LINENO"; then :
12482   # Broken: success on invalid input.
12483 continue
12484 else
12485   # Passes both tests.
12486 ac_preproc_ok=:
12487 break
12488 fi
12489 rm -f conftest.err conftest.i conftest.$ac_ext
12490
12491 done
12492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12493 rm -f conftest.i conftest.err conftest.$ac_ext
12494 if $ac_preproc_ok; then :
12495
12496 else
12497   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12499 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12500 See \`config.log' for more details" "$LINENO" 5; }
12501 fi
12502
12503 ac_ext=c
12504 ac_cpp='$CPP $CPPFLAGS'
12505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12508
12509 else
12510   _lt_caught_CXX_error=yes
12511 fi
12512
12513 ac_ext=cpp
12514 ac_cpp='$CXXCPP $CPPFLAGS'
12515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12518
12519 archive_cmds_need_lc_CXX=no
12520 allow_undefined_flag_CXX=
12521 always_export_symbols_CXX=no
12522 archive_expsym_cmds_CXX=
12523 compiler_needs_object_CXX=no
12524 export_dynamic_flag_spec_CXX=
12525 hardcode_direct_CXX=no
12526 hardcode_direct_absolute_CXX=no
12527 hardcode_libdir_flag_spec_CXX=
12528 hardcode_libdir_flag_spec_ld_CXX=
12529 hardcode_libdir_separator_CXX=
12530 hardcode_minus_L_CXX=no
12531 hardcode_shlibpath_var_CXX=unsupported
12532 hardcode_automatic_CXX=no
12533 inherit_rpath_CXX=no
12534 module_cmds_CXX=
12535 module_expsym_cmds_CXX=
12536 link_all_deplibs_CXX=unknown
12537 old_archive_cmds_CXX=$old_archive_cmds
12538 reload_flag_CXX=$reload_flag
12539 reload_cmds_CXX=$reload_cmds
12540 no_undefined_flag_CXX=
12541 whole_archive_flag_spec_CXX=
12542 enable_shared_with_static_runtimes_CXX=no
12543
12544 # Source file extension for C++ test sources.
12545 ac_ext=cpp
12546
12547 # Object file extension for compiled C++ test sources.
12548 objext=o
12549 objext_CXX=$objext
12550
12551 # No sense in running all these tests if we already determined that
12552 # the CXX compiler isn't working.  Some variables (like enable_shared)
12553 # are currently assumed to apply to all compilers on this platform,
12554 # and will be corrupted by setting them based on a non-working compiler.
12555 if test "$_lt_caught_CXX_error" != yes; then
12556   # Code to be used in simple compile tests
12557   lt_simple_compile_test_code="int some_variable = 0;"
12558
12559   # Code to be used in simple link tests
12560   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12561
12562   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12563
12564
12565
12566
12567
12568
12569 # If no C compiler was specified, use CC.
12570 LTCC=${LTCC-"$CC"}
12571
12572 # If no C compiler flags were specified, use CFLAGS.
12573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12574
12575 # Allow CC to be a program name with arguments.
12576 compiler=$CC
12577
12578
12579   # save warnings/boilerplate of simple test code
12580   ac_outfile=conftest.$ac_objext
12581 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12582 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12583 _lt_compiler_boilerplate=`cat conftest.err`
12584 $RM conftest*
12585
12586   ac_outfile=conftest.$ac_objext
12587 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12588 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12589 _lt_linker_boilerplate=`cat conftest.err`
12590 $RM -r conftest*
12591
12592
12593   # Allow CC to be a program name with arguments.
12594   lt_save_CC=$CC
12595   lt_save_CFLAGS=$CFLAGS
12596   lt_save_LD=$LD
12597   lt_save_GCC=$GCC
12598   GCC=$GXX
12599   lt_save_with_gnu_ld=$with_gnu_ld
12600   lt_save_path_LD=$lt_cv_path_LD
12601   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12602     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12603   else
12604     $as_unset lt_cv_prog_gnu_ld
12605   fi
12606   if test -n "${lt_cv_path_LDCXX+set}"; then
12607     lt_cv_path_LD=$lt_cv_path_LDCXX
12608   else
12609     $as_unset lt_cv_path_LD
12610   fi
12611   test -z "${LDCXX+set}" || LD=$LDCXX
12612   CC=${CXX-"c++"}
12613   CFLAGS=$CXXFLAGS
12614   compiler=$CC
12615   compiler_CXX=$CC
12616   for cc_temp in $compiler""; do
12617   case $cc_temp in
12618     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12619     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12620     \-*) ;;
12621     *) break;;
12622   esac
12623 done
12624 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12625
12626
12627   if test -n "$compiler"; then
12628     # We don't want -fno-exception when compiling C++ code, so set the
12629     # no_builtin_flag separately
12630     if test "$GXX" = yes; then
12631       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12632     else
12633       lt_prog_compiler_no_builtin_flag_CXX=
12634     fi
12635
12636     if test "$GXX" = yes; then
12637       # Set up default GNU C++ configuration
12638
12639
12640
12641 # Check whether --with-gnu-ld was given.
12642 if test "${with_gnu_ld+set}" = set; then :
12643   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12644 else
12645   with_gnu_ld=no
12646 fi
12647
12648 ac_prog=ld
12649 if test "$GCC" = yes; then
12650   # Check if gcc -print-prog-name=ld gives a path.
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12652 $as_echo_n "checking for ld used by $CC... " >&6; }
12653   case $host in
12654   *-*-mingw*)
12655     # gcc leaves a trailing carriage return which upsets mingw
12656     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12657   *)
12658     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12659   esac
12660   case $ac_prog in
12661     # Accept absolute paths.
12662     [\\/]* | ?:[\\/]*)
12663       re_direlt='/[^/][^/]*/\.\./'
12664       # Canonicalize the pathname of ld
12665       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12666       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12667         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12668       done
12669       test -z "$LD" && LD="$ac_prog"
12670       ;;
12671   "")
12672     # If it fails, then pretend we aren't using GCC.
12673     ac_prog=ld
12674     ;;
12675   *)
12676     # If it is relative, then search for the first ld in PATH.
12677     with_gnu_ld=unknown
12678     ;;
12679   esac
12680 elif test "$with_gnu_ld" = yes; then
12681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12682 $as_echo_n "checking for GNU ld... " >&6; }
12683 else
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12685 $as_echo_n "checking for non-GNU ld... " >&6; }
12686 fi
12687 if ${lt_cv_path_LD+:} false; then :
12688   $as_echo_n "(cached) " >&6
12689 else
12690   if test -z "$LD"; then
12691   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12692   for ac_dir in $PATH; do
12693     IFS="$lt_save_ifs"
12694     test -z "$ac_dir" && ac_dir=.
12695     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12696       lt_cv_path_LD="$ac_dir/$ac_prog"
12697       # Check to see if the program is GNU ld.  I'd rather use --version,
12698       # but apparently some variants of GNU ld only accept -v.
12699       # Break only if it was the GNU/non-GNU ld that we prefer.
12700       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12701       *GNU* | *'with BFD'*)
12702         test "$with_gnu_ld" != no && break
12703         ;;
12704       *)
12705         test "$with_gnu_ld" != yes && break
12706         ;;
12707       esac
12708     fi
12709   done
12710   IFS="$lt_save_ifs"
12711 else
12712   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12713 fi
12714 fi
12715
12716 LD="$lt_cv_path_LD"
12717 if test -n "$LD"; then
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12719 $as_echo "$LD" >&6; }
12720 else
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723 fi
12724 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12726 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12727 if ${lt_cv_prog_gnu_ld+:} false; then :
12728   $as_echo_n "(cached) " >&6
12729 else
12730   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12731 case `$LD -v 2>&1 </dev/null` in
12732 *GNU* | *'with BFD'*)
12733   lt_cv_prog_gnu_ld=yes
12734   ;;
12735 *)
12736   lt_cv_prog_gnu_ld=no
12737   ;;
12738 esac
12739 fi
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12741 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12742 with_gnu_ld=$lt_cv_prog_gnu_ld
12743
12744
12745
12746
12747
12748
12749
12750       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12751       # archiving commands below assume that GNU ld is being used.
12752       if test "$with_gnu_ld" = yes; then
12753         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12754         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12755
12756         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12757         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12758
12759         # If archive_cmds runs LD, not CC, wlarc should be empty
12760         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12761         #     investigate it a little bit more. (MM)
12762         wlarc='${wl}'
12763
12764         # ancient GNU ld didn't support --whole-archive et. al.
12765         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12766           $GREP 'no-whole-archive' > /dev/null; then
12767           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12768         else
12769           whole_archive_flag_spec_CXX=
12770         fi
12771       else
12772         with_gnu_ld=no
12773         wlarc=
12774
12775         # A generic and very simple default shared library creation
12776         # command for GNU C++ for the case where it uses the native
12777         # linker, instead of GNU ld.  If possible, this setting should
12778         # overridden to take advantage of the native linker features on
12779         # the platform it is being used on.
12780         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12781       fi
12782
12783       # Commands to make compiler produce verbose output that lists
12784       # what "hidden" libraries, object files and flags are used when
12785       # linking a shared library.
12786       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12787
12788     else
12789       GXX=no
12790       with_gnu_ld=no
12791       wlarc=
12792     fi
12793
12794     # PORTME: fill in a description of your system's C++ link characteristics
12795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12796 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12797     ld_shlibs_CXX=yes
12798     case $host_os in
12799       aix3*)
12800         # FIXME: insert proper C++ library support
12801         ld_shlibs_CXX=no
12802         ;;
12803       aix[4-9]*)
12804         if test "$host_cpu" = ia64; then
12805           # On IA64, the linker does run time linking by default, so we don't
12806           # have to do anything special.
12807           aix_use_runtimelinking=no
12808           exp_sym_flag='-Bexport'
12809           no_entry_flag=""
12810         else
12811           aix_use_runtimelinking=no
12812
12813           # Test if we are trying to use run time linking or normal
12814           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12815           # need to do runtime linking.
12816           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12817             for ld_flag in $LDFLAGS; do
12818               case $ld_flag in
12819               *-brtl*)
12820                 aix_use_runtimelinking=yes
12821                 break
12822                 ;;
12823               esac
12824             done
12825             ;;
12826           esac
12827
12828           exp_sym_flag='-bexport'
12829           no_entry_flag='-bnoentry'
12830         fi
12831
12832         # When large executables or shared objects are built, AIX ld can
12833         # have problems creating the table of contents.  If linking a library
12834         # or program results in "error TOC overflow" add -mminimal-toc to
12835         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12836         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12837
12838         archive_cmds_CXX=''
12839         hardcode_direct_CXX=yes
12840         hardcode_direct_absolute_CXX=yes
12841         hardcode_libdir_separator_CXX=':'
12842         link_all_deplibs_CXX=yes
12843         file_list_spec_CXX='${wl}-f,'
12844
12845         if test "$GXX" = yes; then
12846           case $host_os in aix4.[012]|aix4.[012].*)
12847           # We only want to do this on AIX 4.2 and lower, the check
12848           # below for broken collect2 doesn't work under 4.3+
12849           collect2name=`${CC} -print-prog-name=collect2`
12850           if test -f "$collect2name" &&
12851              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12852           then
12853             # We have reworked collect2
12854             :
12855           else
12856             # We have old collect2
12857             hardcode_direct_CXX=unsupported
12858             # It fails to find uninstalled libraries when the uninstalled
12859             # path is not listed in the libpath.  Setting hardcode_minus_L
12860             # to unsupported forces relinking
12861             hardcode_minus_L_CXX=yes
12862             hardcode_libdir_flag_spec_CXX='-L$libdir'
12863             hardcode_libdir_separator_CXX=
12864           fi
12865           esac
12866           shared_flag='-shared'
12867           if test "$aix_use_runtimelinking" = yes; then
12868             shared_flag="$shared_flag "'${wl}-G'
12869           fi
12870         else
12871           # not using gcc
12872           if test "$host_cpu" = ia64; then
12873           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12874           # chokes on -Wl,-G. The following line is correct:
12875           shared_flag='-G'
12876           else
12877             if test "$aix_use_runtimelinking" = yes; then
12878               shared_flag='${wl}-G'
12879             else
12880               shared_flag='${wl}-bM:SRE'
12881             fi
12882           fi
12883         fi
12884
12885         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12886         # It seems that -bexpall does not export symbols beginning with
12887         # underscore (_), so it is better to generate a list of symbols to
12888         # export.
12889         always_export_symbols_CXX=yes
12890         if test "$aix_use_runtimelinking" = yes; then
12891           # Warning - without using the other runtime loading flags (-brtl),
12892           # -berok will link without error, but may produce a broken library.
12893           allow_undefined_flag_CXX='-berok'
12894           # Determine the default libpath from the value encoded in an empty
12895           # executable.
12896           if test "${lt_cv_aix_libpath+set}" = set; then
12897   aix_libpath=$lt_cv_aix_libpath
12898 else
12899   if ${lt_cv_aix_libpath__CXX+:} false; then :
12900   $as_echo_n "(cached) " >&6
12901 else
12902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h.  */
12904
12905 int
12906 main ()
12907 {
12908
12909   ;
12910   return 0;
12911 }
12912 _ACEOF
12913 if ac_fn_cxx_try_link "$LINENO"; then :
12914
12915   lt_aix_libpath_sed='
12916       /Import File Strings/,/^$/ {
12917           /^0/ {
12918               s/^0  *\([^ ]*\) *$/\1/
12919               p
12920           }
12921       }'
12922   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12923   # Check for a 64-bit object if we didn't find anything.
12924   if test -z "$lt_cv_aix_libpath__CXX"; then
12925     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12926   fi
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext \
12929     conftest$ac_exeext conftest.$ac_ext
12930   if test -z "$lt_cv_aix_libpath__CXX"; then
12931     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12932   fi
12933
12934 fi
12935
12936   aix_libpath=$lt_cv_aix_libpath__CXX
12937 fi
12938
12939           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12940
12941           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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12942         else
12943           if test "$host_cpu" = ia64; then
12944             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12945             allow_undefined_flag_CXX="-z nodefs"
12946             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"
12947           else
12948             # Determine the default libpath from the value encoded in an
12949             # empty executable.
12950             if test "${lt_cv_aix_libpath+set}" = set; then
12951   aix_libpath=$lt_cv_aix_libpath
12952 else
12953   if ${lt_cv_aix_libpath__CXX+:} false; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h.  */
12958
12959 int
12960 main ()
12961 {
12962
12963   ;
12964   return 0;
12965 }
12966 _ACEOF
12967 if ac_fn_cxx_try_link "$LINENO"; then :
12968
12969   lt_aix_libpath_sed='
12970       /Import File Strings/,/^$/ {
12971           /^0/ {
12972               s/^0  *\([^ ]*\) *$/\1/
12973               p
12974           }
12975       }'
12976   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12977   # Check for a 64-bit object if we didn't find anything.
12978   if test -z "$lt_cv_aix_libpath__CXX"; then
12979     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12980   fi
12981 fi
12982 rm -f core conftest.err conftest.$ac_objext \
12983     conftest$ac_exeext conftest.$ac_ext
12984   if test -z "$lt_cv_aix_libpath__CXX"; then
12985     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12986   fi
12987
12988 fi
12989
12990   aix_libpath=$lt_cv_aix_libpath__CXX
12991 fi
12992
12993             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12994             # Warning - without using the other run time loading flags,
12995             # -berok will link without error, but may produce a broken library.
12996             no_undefined_flag_CXX=' ${wl}-bernotok'
12997             allow_undefined_flag_CXX=' ${wl}-berok'
12998             if test "$with_gnu_ld" = yes; then
12999               # We only use this code for GNU lds that support --whole-archive.
13000               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13001             else
13002               # Exported symbols can be pulled into shared objects from archives
13003               whole_archive_flag_spec_CXX='$convenience'
13004             fi
13005             archive_cmds_need_lc_CXX=yes
13006             # This is similar to how AIX traditionally builds its shared
13007             # libraries.
13008             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'
13009           fi
13010         fi
13011         ;;
13012
13013       beos*)
13014         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13015           allow_undefined_flag_CXX=unsupported
13016           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13017           # support --undefined.  This deserves some investigation.  FIXME
13018           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019         else
13020           ld_shlibs_CXX=no
13021         fi
13022         ;;
13023
13024       chorus*)
13025         case $cc_basename in
13026           *)
13027           # FIXME: insert proper C++ library support
13028           ld_shlibs_CXX=no
13029           ;;
13030         esac
13031         ;;
13032
13033       cygwin* | mingw* | pw32* | cegcc*)
13034         case $GXX,$cc_basename in
13035         ,cl* | no,cl*)
13036           # Native MSVC
13037           # hardcode_libdir_flag_spec is actually meaningless, as there is
13038           # no search path for DLLs.
13039           hardcode_libdir_flag_spec_CXX=' '
13040           allow_undefined_flag_CXX=unsupported
13041           always_export_symbols_CXX=yes
13042           file_list_spec_CXX='@'
13043           # Tell ltmain to make .lib files, not .a files.
13044           libext=lib
13045           # Tell ltmain to make .dll files, not .so files.
13046           shrext_cmds=".dll"
13047           # FIXME: Setting linknames here is a bad hack.
13048           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13049           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13050               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13051             else
13052               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13053             fi~
13054             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13055             linknames='
13056           # The linker will not automatically build a static lib if we build a DLL.
13057           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13058           enable_shared_with_static_runtimes_CXX=yes
13059           # Don't use ranlib
13060           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13061           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13062             lt_tool_outputfile="@TOOL_OUTPUT@"~
13063             case $lt_outputfile in
13064               *.exe|*.EXE) ;;
13065               *)
13066                 lt_outputfile="$lt_outputfile.exe"
13067                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13068                 ;;
13069             esac~
13070             func_to_tool_file "$lt_outputfile"~
13071             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13072               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13073               $RM "$lt_outputfile.manifest";
13074             fi'
13075           ;;
13076         *)
13077           # g++
13078           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13079           # as there is no search path for DLLs.
13080           hardcode_libdir_flag_spec_CXX='-L$libdir'
13081           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13082           allow_undefined_flag_CXX=unsupported
13083           always_export_symbols_CXX=no
13084           enable_shared_with_static_runtimes_CXX=yes
13085
13086           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13087             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'
13088             # If the export-symbols file already is a .def file (1st line
13089             # is EXPORTS), use it as is; otherwise, prepend...
13090             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13091               cp $export_symbols $output_objdir/$soname.def;
13092             else
13093               echo EXPORTS > $output_objdir/$soname.def;
13094               cat $export_symbols >> $output_objdir/$soname.def;
13095             fi~
13096             $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'
13097           else
13098             ld_shlibs_CXX=no
13099           fi
13100           ;;
13101         esac
13102         ;;
13103       darwin* | rhapsody*)
13104
13105
13106   archive_cmds_need_lc_CXX=no
13107   hardcode_direct_CXX=no
13108   hardcode_automatic_CXX=yes
13109   hardcode_shlibpath_var_CXX=unsupported
13110   if test "$lt_cv_ld_force_load" = "yes"; then
13111     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13112   else
13113     whole_archive_flag_spec_CXX=''
13114   fi
13115   link_all_deplibs_CXX=yes
13116   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13117   case $cc_basename in
13118      ifort*) _lt_dar_can_shared=yes ;;
13119      *) _lt_dar_can_shared=$GCC ;;
13120   esac
13121   if test "$_lt_dar_can_shared" = "yes"; then
13122     output_verbose_link_cmd=func_echo_all
13123     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13124     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13125     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13126     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13127        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13128       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13129       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13130     fi
13131
13132   else
13133   ld_shlibs_CXX=no
13134   fi
13135
13136         ;;
13137
13138       dgux*)
13139         case $cc_basename in
13140           ec++*)
13141             # FIXME: insert proper C++ library support
13142             ld_shlibs_CXX=no
13143             ;;
13144           ghcx*)
13145             # Green Hills C++ Compiler
13146             # FIXME: insert proper C++ library support
13147             ld_shlibs_CXX=no
13148             ;;
13149           *)
13150             # FIXME: insert proper C++ library support
13151             ld_shlibs_CXX=no
13152             ;;
13153         esac
13154         ;;
13155
13156       freebsd[12]*)
13157         # C++ shared libraries reported to be fairly broken before
13158         # switch to ELF
13159         ld_shlibs_CXX=no
13160         ;;
13161
13162       freebsd-elf*)
13163         archive_cmds_need_lc_CXX=no
13164         ;;
13165
13166       freebsd* | dragonfly*)
13167         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13168         # conventions
13169         ld_shlibs_CXX=yes
13170         ;;
13171
13172       gnu*)
13173         ;;
13174
13175       haiku*)
13176         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13177         link_all_deplibs_CXX=yes
13178         ;;
13179
13180       hpux9*)
13181         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13182         hardcode_libdir_separator_CXX=:
13183         export_dynamic_flag_spec_CXX='${wl}-E'
13184         hardcode_direct_CXX=yes
13185         hardcode_minus_L_CXX=yes # Not in the search PATH,
13186                                              # but as the default
13187                                              # location of the library.
13188
13189         case $cc_basename in
13190           CC*)
13191             # FIXME: insert proper C++ library support
13192             ld_shlibs_CXX=no
13193             ;;
13194           aCC*)
13195             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'
13196             # Commands to make compiler produce verbose output that lists
13197             # what "hidden" libraries, object files and flags are used when
13198             # linking a shared library.
13199             #
13200             # There doesn't appear to be a way to prevent this compiler from
13201             # explicitly linking system object files so we need to strip them
13202             # from the output so that they don't get included in the library
13203             # dependencies.
13204             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13205             ;;
13206           *)
13207             if test "$GXX" = yes; then
13208               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13209             else
13210               # FIXME: insert proper C++ library support
13211               ld_shlibs_CXX=no
13212             fi
13213             ;;
13214         esac
13215         ;;
13216
13217       hpux10*|hpux11*)
13218         if test $with_gnu_ld = no; then
13219           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13220           hardcode_libdir_separator_CXX=:
13221
13222           case $host_cpu in
13223             hppa*64*|ia64*)
13224               ;;
13225             *)
13226               export_dynamic_flag_spec_CXX='${wl}-E'
13227               ;;
13228           esac
13229         fi
13230         case $host_cpu in
13231           hppa*64*|ia64*)
13232             hardcode_direct_CXX=no
13233             hardcode_shlibpath_var_CXX=no
13234             ;;
13235           *)
13236             hardcode_direct_CXX=yes
13237             hardcode_direct_absolute_CXX=yes
13238             hardcode_minus_L_CXX=yes # Not in the search PATH,
13239                                                  # but as the default
13240                                                  # location of the library.
13241             ;;
13242         esac
13243
13244         case $cc_basename in
13245           CC*)
13246             # FIXME: insert proper C++ library support
13247             ld_shlibs_CXX=no
13248             ;;
13249           aCC*)
13250             case $host_cpu in
13251               hppa*64*)
13252                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13253                 ;;
13254               ia64*)
13255                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13256                 ;;
13257               *)
13258                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13259                 ;;
13260             esac
13261             # Commands to make compiler produce verbose output that lists
13262             # what "hidden" libraries, object files and flags are used when
13263             # linking a shared library.
13264             #
13265             # There doesn't appear to be a way to prevent this compiler from
13266             # explicitly linking system object files so we need to strip them
13267             # from the output so that they don't get included in the library
13268             # dependencies.
13269             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; func_echo_all "$list"'
13270             ;;
13271           *)
13272             if test "$GXX" = yes; then
13273               if test $with_gnu_ld = no; then
13274                 case $host_cpu in
13275                   hppa*64*)
13276                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13277                     ;;
13278                   ia64*)
13279                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13280                     ;;
13281                   *)
13282                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13283                     ;;
13284                 esac
13285               fi
13286             else
13287               # FIXME: insert proper C++ library support
13288               ld_shlibs_CXX=no
13289             fi
13290             ;;
13291         esac
13292         ;;
13293
13294       interix[3-9]*)
13295         hardcode_direct_CXX=no
13296         hardcode_shlibpath_var_CXX=no
13297         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13298         export_dynamic_flag_spec_CXX='${wl}-E'
13299         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13300         # Instead, shared libraries are loaded at an image base (0x10000000 by
13301         # default) and relocated if they conflict, which is a slow very memory
13302         # consuming and fragmenting process.  To avoid this, we pick a random,
13303         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13304         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13305         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'
13306         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'
13307         ;;
13308       irix5* | irix6*)
13309         case $cc_basename in
13310           CC*)
13311             # SGI C++
13312             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13313
13314             # Archives containing C++ object files must be created using
13315             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13316             # necessary to make sure instantiated templates are included
13317             # in the archive.
13318             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13319             ;;
13320           *)
13321             if test "$GXX" = yes; then
13322               if test "$with_gnu_ld" = no; then
13323                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13324               else
13325                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13326               fi
13327             fi
13328             link_all_deplibs_CXX=yes
13329             ;;
13330         esac
13331         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13332         hardcode_libdir_separator_CXX=:
13333         inherit_rpath_CXX=yes
13334         ;;
13335
13336       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13337         case $cc_basename in
13338           KCC*)
13339             # Kuck and Associates, Inc. (KAI) C++ Compiler
13340
13341             # KCC will only create a shared library if the output file
13342             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13343             # to its proper name (with version) after linking.
13344             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'
13345             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'
13346             # Commands to make compiler produce verbose output that lists
13347             # what "hidden" libraries, object files and flags are used when
13348             # linking a shared library.
13349             #
13350             # There doesn't appear to be a way to prevent this compiler from
13351             # explicitly linking system object files so we need to strip them
13352             # from the output so that they don't get included in the library
13353             # dependencies.
13354             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; func_echo_all "$list"'
13355
13356             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13357             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13358
13359             # Archives containing C++ object files must be created using
13360             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13361             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13362             ;;
13363           icpc* | ecpc* )
13364             # Intel C++
13365             with_gnu_ld=yes
13366             # version 8.0 and above of icpc choke on multiply defined symbols
13367             # if we add $predep_objects and $postdep_objects, however 7.1 and
13368             # earlier do not add the objects themselves.
13369             case `$CC -V 2>&1` in
13370               *"Version 7."*)
13371                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13372                 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'
13373                 ;;
13374               *)  # Version 8.0 or newer
13375                 tmp_idyn=
13376                 case $host_cpu in
13377                   ia64*) tmp_idyn=' -i_dynamic';;
13378                 esac
13379                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380                 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'
13381                 ;;
13382             esac
13383             archive_cmds_need_lc_CXX=no
13384             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13385             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13386             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13387             ;;
13388           pgCC* | pgcpp*)
13389             # Portland Group C++ compiler
13390             case `$CC -V` in
13391             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13392               prelink_cmds_CXX='tpldir=Template.dir~
13393                 rm -rf $tpldir~
13394                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13395                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13396               old_archive_cmds_CXX='tpldir=Template.dir~
13397                 rm -rf $tpldir~
13398                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13399                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13400                 $RANLIB $oldlib'
13401               archive_cmds_CXX='tpldir=Template.dir~
13402                 rm -rf $tpldir~
13403                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13404                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13405               archive_expsym_cmds_CXX='tpldir=Template.dir~
13406                 rm -rf $tpldir~
13407                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13408                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13409               ;;
13410             *) # Version 6 and above use weak symbols
13411               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13412               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'
13413               ;;
13414             esac
13415
13416             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13417             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13418             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13419             ;;
13420           cxx*)
13421             # Compaq C++
13422             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13423             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'
13424
13425             runpath_var=LD_RUN_PATH
13426             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13427             hardcode_libdir_separator_CXX=:
13428
13429             # Commands to make compiler produce verbose output that lists
13430             # what "hidden" libraries, object files and flags are used when
13431             # linking a shared library.
13432             #
13433             # There doesn't appear to be a way to prevent this compiler from
13434             # explicitly linking system object files so we need to strip them
13435             # from the output so that they don't get included in the library
13436             # dependencies.
13437             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13438             ;;
13439           xl* | mpixl* | bgxl*)
13440             # IBM XL 8.0 on PPC, with GNU ld
13441             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13442             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13443             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444             if test "x$supports_anon_versioning" = xyes; then
13445               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13446                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13447                 echo "local: *; };" >> $output_objdir/$libname.ver~
13448                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13449             fi
13450             ;;
13451           *)
13452             case `$CC -V 2>&1 | sed 5q` in
13453             *Sun\ C*)
13454               # Sun C++ 5.9
13455               no_undefined_flag_CXX=' -zdefs'
13456               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13457               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13458               hardcode_libdir_flag_spec_CXX='-R$libdir'
13459               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13460               compiler_needs_object_CXX=yes
13461
13462               # Not sure whether something based on
13463               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13464               # would be better.
13465               output_verbose_link_cmd='func_echo_all'
13466
13467               # Archives containing C++ object files must be created using
13468               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13469               # necessary to make sure instantiated templates are included
13470               # in the archive.
13471               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13472               ;;
13473             esac
13474             ;;
13475         esac
13476         ;;
13477
13478       lynxos*)
13479         # FIXME: insert proper C++ library support
13480         ld_shlibs_CXX=no
13481         ;;
13482
13483       m88k*)
13484         # FIXME: insert proper C++ library support
13485         ld_shlibs_CXX=no
13486         ;;
13487
13488       mvs*)
13489         case $cc_basename in
13490           cxx*)
13491             # FIXME: insert proper C++ library support
13492             ld_shlibs_CXX=no
13493             ;;
13494           *)
13495             # FIXME: insert proper C++ library support
13496             ld_shlibs_CXX=no
13497             ;;
13498         esac
13499         ;;
13500
13501       netbsd*)
13502         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13503           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13504           wlarc=
13505           hardcode_libdir_flag_spec_CXX='-R$libdir'
13506           hardcode_direct_CXX=yes
13507           hardcode_shlibpath_var_CXX=no
13508         fi
13509         # Workaround some broken pre-1.5 toolchains
13510         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13511         ;;
13512
13513       *nto* | *qnx*)
13514         ld_shlibs_CXX=yes
13515         ;;
13516
13517       openbsd2*)
13518         # C++ shared libraries are fairly broken
13519         ld_shlibs_CXX=no
13520         ;;
13521
13522       openbsd*)
13523         if test -f /usr/libexec/ld.so; then
13524           hardcode_direct_CXX=yes
13525           hardcode_shlibpath_var_CXX=no
13526           hardcode_direct_absolute_CXX=yes
13527           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13528           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13529           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13530             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13531             export_dynamic_flag_spec_CXX='${wl}-E'
13532             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13533           fi
13534           output_verbose_link_cmd=func_echo_all
13535         else
13536           ld_shlibs_CXX=no
13537         fi
13538         ;;
13539
13540       osf3* | osf4* | osf5*)
13541         case $cc_basename in
13542           KCC*)
13543             # Kuck and Associates, Inc. (KAI) C++ Compiler
13544
13545             # KCC will only create a shared library if the output file
13546             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13547             # to its proper name (with version) after linking.
13548             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'
13549
13550             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13551             hardcode_libdir_separator_CXX=:
13552
13553             # Archives containing C++ object files must be created using
13554             # the KAI C++ compiler.
13555             case $host in
13556               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13557               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13558             esac
13559             ;;
13560           RCC*)
13561             # Rational C++ 2.4.1
13562             # FIXME: insert proper C++ library support
13563             ld_shlibs_CXX=no
13564             ;;
13565           cxx*)
13566             case $host in
13567               osf3*)
13568                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13569                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13570                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13571                 ;;
13572               *)
13573                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13574                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13575                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13576                   echo "-hidden">> $lib.exp~
13577                   $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~
13578                   $RM $lib.exp'
13579                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13580                 ;;
13581             esac
13582
13583             hardcode_libdir_separator_CXX=:
13584
13585             # Commands to make compiler produce verbose output that lists
13586             # what "hidden" libraries, object files and flags are used when
13587             # linking a shared library.
13588             #
13589             # There doesn't appear to be a way to prevent this compiler from
13590             # explicitly linking system object files so we need to strip them
13591             # from the output so that they don't get included in the library
13592             # dependencies.
13593             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13594             ;;
13595           *)
13596             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13597               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13598               case $host in
13599                 osf3*)
13600                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13601                   ;;
13602                 *)
13603                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13604                   ;;
13605               esac
13606
13607               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13608               hardcode_libdir_separator_CXX=:
13609
13610               # Commands to make compiler produce verbose output that lists
13611               # what "hidden" libraries, object files and flags are used when
13612               # linking a shared library.
13613               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13614
13615             else
13616               # FIXME: insert proper C++ library support
13617               ld_shlibs_CXX=no
13618             fi
13619             ;;
13620         esac
13621         ;;
13622
13623       psos*)
13624         # FIXME: insert proper C++ library support
13625         ld_shlibs_CXX=no
13626         ;;
13627
13628       sunos4*)
13629         case $cc_basename in
13630           CC*)
13631             # Sun C++ 4.x
13632             # FIXME: insert proper C++ library support
13633             ld_shlibs_CXX=no
13634             ;;
13635           lcc*)
13636             # Lucid
13637             # FIXME: insert proper C++ library support
13638             ld_shlibs_CXX=no
13639             ;;
13640           *)
13641             # FIXME: insert proper C++ library support
13642             ld_shlibs_CXX=no
13643             ;;
13644         esac
13645         ;;
13646
13647       solaris*)
13648         case $cc_basename in
13649           CC* | sunCC*)
13650             # Sun C++ 4.2, 5.x and Centerline C++
13651             archive_cmds_need_lc_CXX=yes
13652             no_undefined_flag_CXX=' -zdefs'
13653             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13654             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13655               $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'
13656
13657             hardcode_libdir_flag_spec_CXX='-R$libdir'
13658             hardcode_shlibpath_var_CXX=no
13659             case $host_os in
13660               solaris2.[0-5] | solaris2.[0-5].*) ;;
13661               *)
13662                 # The compiler driver will combine and reorder linker options,
13663                 # but understands `-z linker_flag'.
13664                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13665                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13666                 ;;
13667             esac
13668             link_all_deplibs_CXX=yes
13669
13670             output_verbose_link_cmd='func_echo_all'
13671
13672             # Archives containing C++ object files must be created using
13673             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13674             # necessary to make sure instantiated templates are included
13675             # in the archive.
13676             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13677             ;;
13678           gcx*)
13679             # Green Hills C++ Compiler
13680             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13681
13682             # The C++ compiler must be used to create the archive.
13683             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13684             ;;
13685           *)
13686             # GNU C++ compiler with Solaris linker
13687             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13688               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13689               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13690                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13691                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13692                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13693
13694                 # Commands to make compiler produce verbose output that lists
13695                 # what "hidden" libraries, object files and flags are used when
13696                 # linking a shared library.
13697                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13698               else
13699                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13700                 # platform.
13701                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13702                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13703                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13704
13705                 # Commands to make compiler produce verbose output that lists
13706                 # what "hidden" libraries, object files and flags are used when
13707                 # linking a shared library.
13708                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13709               fi
13710
13711               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13712               case $host_os in
13713                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13714                 *)
13715                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13716                   ;;
13717               esac
13718             fi
13719             ;;
13720         esac
13721         ;;
13722
13723     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13724       no_undefined_flag_CXX='${wl}-z,text'
13725       archive_cmds_need_lc_CXX=no
13726       hardcode_shlibpath_var_CXX=no
13727       runpath_var='LD_RUN_PATH'
13728
13729       case $cc_basename in
13730         CC*)
13731           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13732           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13733           ;;
13734         *)
13735           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737           ;;
13738       esac
13739       ;;
13740
13741       sysv5* | sco3.2v5* | sco5v6*)
13742         # Note: We can NOT use -z defs as we might desire, because we do not
13743         # link with -lc, and that would cause any symbols used from libc to
13744         # always be unresolved, which means just about no library would
13745         # ever link correctly.  If we're not using GNU ld we use -z text
13746         # though, which does catch some bad symbols but isn't as heavy-handed
13747         # as -z defs.
13748         no_undefined_flag_CXX='${wl}-z,text'
13749         allow_undefined_flag_CXX='${wl}-z,nodefs'
13750         archive_cmds_need_lc_CXX=no
13751         hardcode_shlibpath_var_CXX=no
13752         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13753         hardcode_libdir_separator_CXX=':'
13754         link_all_deplibs_CXX=yes
13755         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13756         runpath_var='LD_RUN_PATH'
13757
13758         case $cc_basename in
13759           CC*)
13760             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13763               '"$old_archive_cmds_CXX"
13764             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13765               '"$reload_cmds_CXX"
13766             ;;
13767           *)
13768             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770             ;;
13771         esac
13772       ;;
13773
13774       tandem*)
13775         case $cc_basename in
13776           NCC*)
13777             # NonStop-UX NCC 3.20
13778             # FIXME: insert proper C++ library support
13779             ld_shlibs_CXX=no
13780             ;;
13781           *)
13782             # FIXME: insert proper C++ library support
13783             ld_shlibs_CXX=no
13784             ;;
13785         esac
13786         ;;
13787
13788       vxworks*)
13789         # FIXME: insert proper C++ library support
13790         ld_shlibs_CXX=no
13791         ;;
13792
13793       *)
13794         # FIXME: insert proper C++ library support
13795         ld_shlibs_CXX=no
13796         ;;
13797     esac
13798
13799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13800 $as_echo "$ld_shlibs_CXX" >&6; }
13801     test "$ld_shlibs_CXX" = no && can_build_shared=no
13802
13803     GCC_CXX="$GXX"
13804     LD_CXX="$LD"
13805
13806     ## CAVEAT EMPTOR:
13807     ## There is no encapsulation within the following macros, do not change
13808     ## the running order or otherwise move them around unless you know exactly
13809     ## what you are doing...
13810     # Dependencies to place before and after the object being linked:
13811 predep_objects_CXX=
13812 postdep_objects_CXX=
13813 predeps_CXX=
13814 postdeps_CXX=
13815 compiler_lib_search_path_CXX=
13816
13817 cat > conftest.$ac_ext <<_LT_EOF
13818 class Foo
13819 {
13820 public:
13821   Foo (void) { a = 0; }
13822 private:
13823   int a;
13824 };
13825 _LT_EOF
13826
13827
13828 _lt_libdeps_save_CFLAGS=$CFLAGS
13829 case "$CC $CFLAGS " in #(
13830 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13831 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13832 esac
13833
13834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13835   (eval $ac_compile) 2>&5
13836   ac_status=$?
13837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13838   test $ac_status = 0; }; then
13839   # Parse the compiler output and extract the necessary
13840   # objects, libraries and library flags.
13841
13842   # Sentinel used to keep track of whether or not we are before
13843   # the conftest object file.
13844   pre_test_object_deps_done=no
13845
13846   for p in `eval "$output_verbose_link_cmd"`; do
13847     case ${prev}${p} in
13848
13849     -L* | -R* | -l*)
13850        # Some compilers place space between "-{L,R}" and the path.
13851        # Remove the space.
13852        if test $p = "-L" ||
13853           test $p = "-R"; then
13854          prev=$p
13855          continue
13856        fi
13857
13858        # Expand the sysroot to ease extracting the directories later.
13859        if test -z "$prev"; then
13860          case $p in
13861          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13862          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13863          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13864          esac
13865        fi
13866        case $p in
13867        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13868        esac
13869        if test "$pre_test_object_deps_done" = no; then
13870          case ${prev} in
13871          -L | -R)
13872            # Internal compiler library paths should come after those
13873            # provided the user.  The postdeps already come after the
13874            # user supplied libs so there is no need to process them.
13875            if test -z "$compiler_lib_search_path_CXX"; then
13876              compiler_lib_search_path_CXX="${prev}${p}"
13877            else
13878              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13879            fi
13880            ;;
13881          # The "-l" case would never come before the object being
13882          # linked, so don't bother handling this case.
13883          esac
13884        else
13885          if test -z "$postdeps_CXX"; then
13886            postdeps_CXX="${prev}${p}"
13887          else
13888            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13889          fi
13890        fi
13891        prev=
13892        ;;
13893
13894     *.lto.$objext) ;; # Ignore GCC LTO objects
13895     *.$objext)
13896        # This assumes that the test object file only shows up
13897        # once in the compiler output.
13898        if test "$p" = "conftest.$objext"; then
13899          pre_test_object_deps_done=yes
13900          continue
13901        fi
13902
13903        if test "$pre_test_object_deps_done" = no; then
13904          if test -z "$predep_objects_CXX"; then
13905            predep_objects_CXX="$p"
13906          else
13907            predep_objects_CXX="$predep_objects_CXX $p"
13908          fi
13909        else
13910          if test -z "$postdep_objects_CXX"; then
13911            postdep_objects_CXX="$p"
13912          else
13913            postdep_objects_CXX="$postdep_objects_CXX $p"
13914          fi
13915        fi
13916        ;;
13917
13918     *) ;; # Ignore the rest.
13919
13920     esac
13921   done
13922
13923   # Clean up.
13924   rm -f a.out a.exe
13925 else
13926   echo "libtool.m4: error: problem compiling CXX test program"
13927 fi
13928
13929 $RM -f confest.$objext
13930 CFLAGS=$_lt_libdeps_save_CFLAGS
13931
13932 # PORTME: override above test on systems where it is broken
13933 case $host_os in
13934 interix[3-9]*)
13935   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13936   # hack all around it, let's just trust "g++" to DTRT.
13937   predep_objects_CXX=
13938   postdep_objects_CXX=
13939   postdeps_CXX=
13940   ;;
13941
13942 linux*)
13943   case `$CC -V 2>&1 | sed 5q` in
13944   *Sun\ C*)
13945     # Sun C++ 5.9
13946
13947     # The more standards-conforming stlport4 library is
13948     # incompatible with the Cstd library. Avoid specifying
13949     # it if it's in CXXFLAGS. Ignore libCrun as
13950     # -library=stlport4 depends on it.
13951     case " $CXX $CXXFLAGS " in
13952     *" -library=stlport4 "*)
13953       solaris_use_stlport4=yes
13954       ;;
13955     esac
13956
13957     if test "$solaris_use_stlport4" != yes; then
13958       postdeps_CXX='-library=Cstd -library=Crun'
13959     fi
13960     ;;
13961   esac
13962   ;;
13963
13964 solaris*)
13965   case $cc_basename in
13966   CC* | sunCC*)
13967     # The more standards-conforming stlport4 library is
13968     # incompatible with the Cstd library. Avoid specifying
13969     # it if it's in CXXFLAGS. Ignore libCrun as
13970     # -library=stlport4 depends on it.
13971     case " $CXX $CXXFLAGS " in
13972     *" -library=stlport4 "*)
13973       solaris_use_stlport4=yes
13974       ;;
13975     esac
13976
13977     # Adding this requires a known-good setup of shared libraries for
13978     # Sun compiler versions before 5.6, else PIC objects from an old
13979     # archive will be linked into the output, leading to subtle bugs.
13980     if test "$solaris_use_stlport4" != yes; then
13981       postdeps_CXX='-library=Cstd -library=Crun'
13982     fi
13983     ;;
13984   esac
13985   ;;
13986 esac
13987
13988
13989 case " $postdeps_CXX " in
13990 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13991 esac
13992  compiler_lib_search_dirs_CXX=
13993 if test -n "${compiler_lib_search_path_CXX}"; then
13994  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13995 fi
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027     lt_prog_compiler_wl_CXX=
14028 lt_prog_compiler_pic_CXX=
14029 lt_prog_compiler_static_CXX=
14030
14031
14032   # C++ specific cases for pic, static, wl, etc.
14033   if test "$GXX" = yes; then
14034     lt_prog_compiler_wl_CXX='-Wl,'
14035     lt_prog_compiler_static_CXX='-static'
14036
14037     case $host_os in
14038     aix*)
14039       # All AIX code is PIC.
14040       if test "$host_cpu" = ia64; then
14041         # AIX 5 now supports IA64 processor
14042         lt_prog_compiler_static_CXX='-Bstatic'
14043       fi
14044       ;;
14045
14046     amigaos*)
14047       case $host_cpu in
14048       powerpc)
14049             # see comment about AmigaOS4 .so support
14050             lt_prog_compiler_pic_CXX='-fPIC'
14051         ;;
14052       m68k)
14053             # FIXME: we need at least 68020 code to build shared libraries, but
14054             # adding the `-m68020' flag to GCC prevents building anything better,
14055             # like `-m68040'.
14056             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14057         ;;
14058       esac
14059       ;;
14060
14061     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14062       # PIC is the default for these OSes.
14063       ;;
14064     mingw* | cygwin* | os2* | pw32* | cegcc*)
14065       # This hack is so that the source file can tell whether it is being
14066       # built for inclusion in a dll (and should export symbols for example).
14067       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14068       # (--disable-auto-import) libraries
14069       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14070       ;;
14071     darwin* | rhapsody*)
14072       # PIC is the default on this platform
14073       # Common symbols not allowed in MH_DYLIB files
14074       lt_prog_compiler_pic_CXX='-fno-common'
14075       ;;
14076     *djgpp*)
14077       # DJGPP does not support shared libraries at all
14078       lt_prog_compiler_pic_CXX=
14079       ;;
14080     haiku*)
14081       # PIC is the default for Haiku.
14082       # The "-static" flag exists, but is broken.
14083       lt_prog_compiler_static_CXX=
14084       ;;
14085     interix[3-9]*)
14086       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14087       # Instead, we relocate shared libraries at runtime.
14088       ;;
14089     sysv4*MP*)
14090       if test -d /usr/nec; then
14091         lt_prog_compiler_pic_CXX=-Kconform_pic
14092       fi
14093       ;;
14094     hpux*)
14095       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14096       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14097       # sets the default TLS model and affects inlining.
14098       case $host_cpu in
14099       hppa*64*)
14100         ;;
14101       *)
14102         lt_prog_compiler_pic_CXX='-fPIC'
14103         ;;
14104       esac
14105       ;;
14106     *qnx* | *nto*)
14107       # QNX uses GNU C++, but need to define -shared option too, otherwise
14108       # it will coredump.
14109       lt_prog_compiler_pic_CXX='-fPIC -shared'
14110       ;;
14111     *)
14112       lt_prog_compiler_pic_CXX='-fPIC'
14113       ;;
14114     esac
14115   else
14116     case $host_os in
14117       aix[4-9]*)
14118         # All AIX code is PIC.
14119         if test "$host_cpu" = ia64; then
14120           # AIX 5 now supports IA64 processor
14121           lt_prog_compiler_static_CXX='-Bstatic'
14122         else
14123           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14124         fi
14125         ;;
14126       chorus*)
14127         case $cc_basename in
14128         cxch68*)
14129           # Green Hills C++ Compiler
14130           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14131           ;;
14132         esac
14133         ;;
14134       mingw* | cygwin* | os2* | pw32* | cegcc*)
14135         # This hack is so that the source file can tell whether it is being
14136         # built for inclusion in a dll (and should export symbols for example).
14137         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14138         ;;
14139       dgux*)
14140         case $cc_basename in
14141           ec++*)
14142             lt_prog_compiler_pic_CXX='-KPIC'
14143             ;;
14144           ghcx*)
14145             # Green Hills C++ Compiler
14146             lt_prog_compiler_pic_CXX='-pic'
14147             ;;
14148           *)
14149             ;;
14150         esac
14151         ;;
14152       freebsd* | dragonfly*)
14153         # FreeBSD uses GNU C++
14154         ;;
14155       hpux9* | hpux10* | hpux11*)
14156         case $cc_basename in
14157           CC*)
14158             lt_prog_compiler_wl_CXX='-Wl,'
14159             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14160             if test "$host_cpu" != ia64; then
14161               lt_prog_compiler_pic_CXX='+Z'
14162             fi
14163             ;;
14164           aCC*)
14165             lt_prog_compiler_wl_CXX='-Wl,'
14166             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14167             case $host_cpu in
14168             hppa*64*|ia64*)
14169               # +Z the default
14170               ;;
14171             *)
14172               lt_prog_compiler_pic_CXX='+Z'
14173               ;;
14174             esac
14175             ;;
14176           *)
14177             ;;
14178         esac
14179         ;;
14180       interix*)
14181         # This is c89, which is MS Visual C++ (no shared libs)
14182         # Anyone wants to do a port?
14183         ;;
14184       irix5* | irix6* | nonstopux*)
14185         case $cc_basename in
14186           CC*)
14187             lt_prog_compiler_wl_CXX='-Wl,'
14188             lt_prog_compiler_static_CXX='-non_shared'
14189             # CC pic flag -KPIC is the default.
14190             ;;
14191           *)
14192             ;;
14193         esac
14194         ;;
14195       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14196         case $cc_basename in
14197           KCC*)
14198             # KAI C++ Compiler
14199             lt_prog_compiler_wl_CXX='--backend -Wl,'
14200             lt_prog_compiler_pic_CXX='-fPIC'
14201             ;;
14202           ecpc* )
14203             # old Intel C++ for x86_64 which still supported -KPIC.
14204             lt_prog_compiler_wl_CXX='-Wl,'
14205             lt_prog_compiler_pic_CXX='-KPIC'
14206             lt_prog_compiler_static_CXX='-static'
14207             ;;
14208           icpc* )
14209             # Intel C++, used to be incompatible with GCC.
14210             # ICC 10 doesn't accept -KPIC any more.
14211             lt_prog_compiler_wl_CXX='-Wl,'
14212             lt_prog_compiler_pic_CXX='-fPIC'
14213             lt_prog_compiler_static_CXX='-static'
14214             ;;
14215           pgCC* | pgcpp*)
14216             # Portland Group C++ compiler
14217             lt_prog_compiler_wl_CXX='-Wl,'
14218             lt_prog_compiler_pic_CXX='-fpic'
14219             lt_prog_compiler_static_CXX='-Bstatic'
14220             ;;
14221           cxx*)
14222             # Compaq C++
14223             # Make sure the PIC flag is empty.  It appears that all Alpha
14224             # Linux and Compaq Tru64 Unix objects are PIC.
14225             lt_prog_compiler_pic_CXX=
14226             lt_prog_compiler_static_CXX='-non_shared'
14227             ;;
14228           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14229             # IBM XL 8.0, 9.0 on PPC and BlueGene
14230             lt_prog_compiler_wl_CXX='-Wl,'
14231             lt_prog_compiler_pic_CXX='-qpic'
14232             lt_prog_compiler_static_CXX='-qstaticlink'
14233             ;;
14234           *)
14235             case `$CC -V 2>&1 | sed 5q` in
14236             *Sun\ C*)
14237               # Sun C++ 5.9
14238               lt_prog_compiler_pic_CXX='-KPIC'
14239               lt_prog_compiler_static_CXX='-Bstatic'
14240               lt_prog_compiler_wl_CXX='-Qoption ld '
14241               ;;
14242             esac
14243             ;;
14244         esac
14245         ;;
14246       lynxos*)
14247         ;;
14248       m88k*)
14249         ;;
14250       mvs*)
14251         case $cc_basename in
14252           cxx*)
14253             lt_prog_compiler_pic_CXX='-W c,exportall'
14254             ;;
14255           *)
14256             ;;
14257         esac
14258         ;;
14259       netbsd*)
14260         ;;
14261       *qnx* | *nto*)
14262         # QNX uses GNU C++, but need to define -shared option too, otherwise
14263         # it will coredump.
14264         lt_prog_compiler_pic_CXX='-fPIC -shared'
14265         ;;
14266       osf3* | osf4* | osf5*)
14267         case $cc_basename in
14268           KCC*)
14269             lt_prog_compiler_wl_CXX='--backend -Wl,'
14270             ;;
14271           RCC*)
14272             # Rational C++ 2.4.1
14273             lt_prog_compiler_pic_CXX='-pic'
14274             ;;
14275           cxx*)
14276             # Digital/Compaq C++
14277             lt_prog_compiler_wl_CXX='-Wl,'
14278             # Make sure the PIC flag is empty.  It appears that all Alpha
14279             # Linux and Compaq Tru64 Unix objects are PIC.
14280             lt_prog_compiler_pic_CXX=
14281             lt_prog_compiler_static_CXX='-non_shared'
14282             ;;
14283           *)
14284             ;;
14285         esac
14286         ;;
14287       psos*)
14288         ;;
14289       solaris*)
14290         case $cc_basename in
14291           CC* | sunCC*)
14292             # Sun C++ 4.2, 5.x and Centerline C++
14293             lt_prog_compiler_pic_CXX='-KPIC'
14294             lt_prog_compiler_static_CXX='-Bstatic'
14295             lt_prog_compiler_wl_CXX='-Qoption ld '
14296             ;;
14297           gcx*)
14298             # Green Hills C++ Compiler
14299             lt_prog_compiler_pic_CXX='-PIC'
14300             ;;
14301           *)
14302             ;;
14303         esac
14304         ;;
14305       sunos4*)
14306         case $cc_basename in
14307           CC*)
14308             # Sun C++ 4.x
14309             lt_prog_compiler_pic_CXX='-pic'
14310             lt_prog_compiler_static_CXX='-Bstatic'
14311             ;;
14312           lcc*)
14313             # Lucid
14314             lt_prog_compiler_pic_CXX='-pic'
14315             ;;
14316           *)
14317             ;;
14318         esac
14319         ;;
14320       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14321         case $cc_basename in
14322           CC*)
14323             lt_prog_compiler_wl_CXX='-Wl,'
14324             lt_prog_compiler_pic_CXX='-KPIC'
14325             lt_prog_compiler_static_CXX='-Bstatic'
14326             ;;
14327         esac
14328         ;;
14329       tandem*)
14330         case $cc_basename in
14331           NCC*)
14332             # NonStop-UX NCC 3.20
14333             lt_prog_compiler_pic_CXX='-KPIC'
14334             ;;
14335           *)
14336             ;;
14337         esac
14338         ;;
14339       vxworks*)
14340         ;;
14341       *)
14342         lt_prog_compiler_can_build_shared_CXX=no
14343         ;;
14344     esac
14345   fi
14346
14347 case $host_os in
14348   # For platforms which do not support PIC, -DPIC is meaningless:
14349   *djgpp*)
14350     lt_prog_compiler_pic_CXX=
14351     ;;
14352   *)
14353     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14354     ;;
14355 esac
14356
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14358 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14359 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14360   $as_echo_n "(cached) " >&6
14361 else
14362   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14363 fi
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14365 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14366 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14367
14368 #
14369 # Check to make sure the PIC flag actually works.
14370 #
14371 if test -n "$lt_prog_compiler_pic_CXX"; then
14372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14373 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14374 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14375   $as_echo_n "(cached) " >&6
14376 else
14377   lt_cv_prog_compiler_pic_works_CXX=no
14378    ac_outfile=conftest.$ac_objext
14379    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14380    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14381    # Insert the option either (1) after the last *FLAGS variable, or
14382    # (2) before a word containing "conftest.", or (3) at the end.
14383    # Note that $ac_compile itself does not contain backslashes and begins
14384    # with a dollar sign (not a hyphen), so the echo should work correctly.
14385    # The option is referenced via a variable to avoid confusing sed.
14386    lt_compile=`echo "$ac_compile" | $SED \
14387    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14388    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14389    -e 's:$: $lt_compiler_flag:'`
14390    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14391    (eval "$lt_compile" 2>conftest.err)
14392    ac_status=$?
14393    cat conftest.err >&5
14394    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395    if (exit $ac_status) && test -s "$ac_outfile"; then
14396      # The compiler can only warn and ignore the option if not recognized
14397      # So say no if there are warnings other than the usual output.
14398      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14399      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14400      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14401        lt_cv_prog_compiler_pic_works_CXX=yes
14402      fi
14403    fi
14404    $RM conftest*
14405
14406 fi
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14408 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14409
14410 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14411     case $lt_prog_compiler_pic_CXX in
14412      "" | " "*) ;;
14413      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14414      esac
14415 else
14416     lt_prog_compiler_pic_CXX=
14417      lt_prog_compiler_can_build_shared_CXX=no
14418 fi
14419
14420 fi
14421
14422
14423
14424
14425
14426 #
14427 # Check to make sure the static flag actually works.
14428 #
14429 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14431 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14432 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14433   $as_echo_n "(cached) " >&6
14434 else
14435   lt_cv_prog_compiler_static_works_CXX=no
14436    save_LDFLAGS="$LDFLAGS"
14437    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14438    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14439    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14440      # The linker can only warn and ignore the option if not recognized
14441      # So say no if there are warnings
14442      if test -s conftest.err; then
14443        # Append any errors to the config.log.
14444        cat conftest.err 1>&5
14445        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14446        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14447        if diff conftest.exp conftest.er2 >/dev/null; then
14448          lt_cv_prog_compiler_static_works_CXX=yes
14449        fi
14450      else
14451        lt_cv_prog_compiler_static_works_CXX=yes
14452      fi
14453    fi
14454    $RM -r conftest*
14455    LDFLAGS="$save_LDFLAGS"
14456
14457 fi
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14459 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14460
14461 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14462     :
14463 else
14464     lt_prog_compiler_static_CXX=
14465 fi
14466
14467
14468
14469
14470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14471 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14472 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14473   $as_echo_n "(cached) " >&6
14474 else
14475   lt_cv_prog_compiler_c_o_CXX=no
14476    $RM -r conftest 2>/dev/null
14477    mkdir conftest
14478    cd conftest
14479    mkdir out
14480    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14481
14482    lt_compiler_flag="-o out/conftest2.$ac_objext"
14483    # Insert the option either (1) after the last *FLAGS variable, or
14484    # (2) before a word containing "conftest.", or (3) at the end.
14485    # Note that $ac_compile itself does not contain backslashes and begins
14486    # with a dollar sign (not a hyphen), so the echo should work correctly.
14487    lt_compile=`echo "$ac_compile" | $SED \
14488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14490    -e 's:$: $lt_compiler_flag:'`
14491    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14492    (eval "$lt_compile" 2>out/conftest.err)
14493    ac_status=$?
14494    cat out/conftest.err >&5
14495    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14497    then
14498      # The compiler can only warn and ignore the option if not recognized
14499      # So say no if there are warnings
14500      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14501      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14502      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14503        lt_cv_prog_compiler_c_o_CXX=yes
14504      fi
14505    fi
14506    chmod u+w . 2>&5
14507    $RM conftest*
14508    # SGI C++ compiler will create directory out/ii_files/ for
14509    # template instantiation
14510    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14511    $RM out/* && rmdir out
14512    cd ..
14513    $RM -r conftest
14514    $RM conftest*
14515
14516 fi
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14518 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14519
14520
14521
14522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14523 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14524 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527   lt_cv_prog_compiler_c_o_CXX=no
14528    $RM -r conftest 2>/dev/null
14529    mkdir conftest
14530    cd conftest
14531    mkdir out
14532    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14533
14534    lt_compiler_flag="-o out/conftest2.$ac_objext"
14535    # Insert the option either (1) after the last *FLAGS variable, or
14536    # (2) before a word containing "conftest.", or (3) at the end.
14537    # Note that $ac_compile itself does not contain backslashes and begins
14538    # with a dollar sign (not a hyphen), so the echo should work correctly.
14539    lt_compile=`echo "$ac_compile" | $SED \
14540    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14542    -e 's:$: $lt_compiler_flag:'`
14543    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14544    (eval "$lt_compile" 2>out/conftest.err)
14545    ac_status=$?
14546    cat out/conftest.err >&5
14547    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14549    then
14550      # The compiler can only warn and ignore the option if not recognized
14551      # So say no if there are warnings
14552      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14553      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14554      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14555        lt_cv_prog_compiler_c_o_CXX=yes
14556      fi
14557    fi
14558    chmod u+w . 2>&5
14559    $RM conftest*
14560    # SGI C++ compiler will create directory out/ii_files/ for
14561    # template instantiation
14562    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14563    $RM out/* && rmdir out
14564    cd ..
14565    $RM -r conftest
14566    $RM conftest*
14567
14568 fi
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14570 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14571
14572
14573
14574
14575 hard_links="nottested"
14576 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14577   # do not overwrite the value of need_locks provided by the user
14578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14579 $as_echo_n "checking if we can lock with hard links... " >&6; }
14580   hard_links=yes
14581   $RM conftest*
14582   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14583   touch conftest.a
14584   ln conftest.a conftest.b 2>&5 || hard_links=no
14585   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14587 $as_echo "$hard_links" >&6; }
14588   if test "$hard_links" = no; then
14589     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14590 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14591     need_locks=warn
14592   fi
14593 else
14594   need_locks=no
14595 fi
14596
14597
14598
14599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14600 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14601
14602   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14603   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14604   case $host_os in
14605   aix[4-9]*)
14606     # If we're using GNU nm, then we don't want the "-C" option.
14607     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14608     # Also, AIX nm treats weak defined symbols like other global defined
14609     # symbols, whereas GNU nm marks them as "W".
14610     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14611       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14612     else
14613       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'
14614     fi
14615     ;;
14616   pw32*)
14617     export_symbols_cmds_CXX="$ltdll_cmds"
14618     ;;
14619   cygwin* | mingw* | cegcc*)
14620     case $cc_basename in
14621     cl*) ;;
14622     *)
14623       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14624       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14625       ;;
14626     esac
14627     ;;
14628   *)
14629     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14630     ;;
14631   esac
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14634 $as_echo "$ld_shlibs_CXX" >&6; }
14635 test "$ld_shlibs_CXX" = no && can_build_shared=no
14636
14637 with_gnu_ld_CXX=$with_gnu_ld
14638
14639
14640
14641
14642
14643
14644 #
14645 # Do we need to explicitly link libc?
14646 #
14647 case "x$archive_cmds_need_lc_CXX" in
14648 x|xyes)
14649   # Assume -lc should be added
14650   archive_cmds_need_lc_CXX=yes
14651
14652   if test "$enable_shared" = yes && test "$GCC" = yes; then
14653     case $archive_cmds_CXX in
14654     *'~'*)
14655       # FIXME: we may have to deal with multi-command sequences.
14656       ;;
14657     '$CC '*)
14658       # Test whether the compiler implicitly links with -lc since on some
14659       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14660       # to ld, don't add -lc before -lgcc.
14661       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14662 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14663 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14664   $as_echo_n "(cached) " >&6
14665 else
14666   $RM conftest*
14667         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14668
14669         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14670   (eval $ac_compile) 2>&5
14671   ac_status=$?
14672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14673   test $ac_status = 0; } 2>conftest.err; then
14674           soname=conftest
14675           lib=conftest
14676           libobjs=conftest.$ac_objext
14677           deplibs=
14678           wl=$lt_prog_compiler_wl_CXX
14679           pic_flag=$lt_prog_compiler_pic_CXX
14680           compiler_flags=-v
14681           linker_flags=-v
14682           verstring=
14683           output_objdir=.
14684           libname=conftest
14685           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14686           allow_undefined_flag_CXX=
14687           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14688   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14689   ac_status=$?
14690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14691   test $ac_status = 0; }
14692           then
14693             lt_cv_archive_cmds_need_lc_CXX=no
14694           else
14695             lt_cv_archive_cmds_need_lc_CXX=yes
14696           fi
14697           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14698         else
14699           cat conftest.err 1>&5
14700         fi
14701         $RM conftest*
14702
14703 fi
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14705 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14706       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14707       ;;
14708     esac
14709   fi
14710   ;;
14711 esac
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14777 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14778
14779 library_names_spec=
14780 libname_spec='lib$name'
14781 soname_spec=
14782 shrext_cmds=".so"
14783 postinstall_cmds=
14784 postuninstall_cmds=
14785 finish_cmds=
14786 finish_eval=
14787 shlibpath_var=
14788 shlibpath_overrides_runpath=unknown
14789 version_type=none
14790 dynamic_linker="$host_os ld.so"
14791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14792 need_lib_prefix=unknown
14793 hardcode_into_libs=no
14794
14795 # when you set need_version to no, make sure it does not cause -set_version
14796 # flags to be left without arguments
14797 need_version=unknown
14798
14799 case $host_os in
14800 aix3*)
14801   version_type=linux
14802   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14803   shlibpath_var=LIBPATH
14804
14805   # AIX 3 has no versioning support, so we append a major version to the name.
14806   soname_spec='${libname}${release}${shared_ext}$major'
14807   ;;
14808
14809 aix[4-9]*)
14810   version_type=linux
14811   need_lib_prefix=no
14812   need_version=no
14813   hardcode_into_libs=yes
14814   if test "$host_cpu" = ia64; then
14815     # AIX 5 supports IA64
14816     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14817     shlibpath_var=LD_LIBRARY_PATH
14818   else
14819     # With GCC up to 2.95.x, collect2 would create an import file
14820     # for dependence libraries.  The import file would start with
14821     # the line `#! .'.  This would cause the generated library to
14822     # depend on `.', always an invalid library.  This was fixed in
14823     # development snapshots of GCC prior to 3.0.
14824     case $host_os in
14825       aix4 | aix4.[01] | aix4.[01].*)
14826       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14827            echo ' yes '
14828            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14829         :
14830       else
14831         can_build_shared=no
14832       fi
14833       ;;
14834     esac
14835     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14836     # soname into executable. Probably we can add versioning support to
14837     # collect2, so additional links can be useful in future.
14838     if test "$aix_use_runtimelinking" = yes; then
14839       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14840       # instead of lib<name>.a to let people know that these are not
14841       # typical AIX shared libraries.
14842       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843     else
14844       # We preserve .a as extension for shared libraries through AIX4.2
14845       # and later when we are not doing run time linking.
14846       library_names_spec='${libname}${release}.a $libname.a'
14847       soname_spec='${libname}${release}${shared_ext}$major'
14848     fi
14849     shlibpath_var=LIBPATH
14850   fi
14851   ;;
14852
14853 amigaos*)
14854   case $host_cpu in
14855   powerpc)
14856     # Since July 2007 AmigaOS4 officially supports .so libraries.
14857     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14859     ;;
14860   m68k)
14861     library_names_spec='$libname.ixlibrary $libname.a'
14862     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14863     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14864     ;;
14865   esac
14866   ;;
14867
14868 beos*)
14869   library_names_spec='${libname}${shared_ext}'
14870   dynamic_linker="$host_os ld.so"
14871   shlibpath_var=LIBRARY_PATH
14872   ;;
14873
14874 bsdi[45]*)
14875   version_type=linux
14876   need_version=no
14877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878   soname_spec='${libname}${release}${shared_ext}$major'
14879   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14880   shlibpath_var=LD_LIBRARY_PATH
14881   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14882   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14883   # the default ld.so.conf also contains /usr/contrib/lib and
14884   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14885   # libtool to hard-code these into programs
14886   ;;
14887
14888 cygwin* | mingw* | pw32* | cegcc*)
14889   version_type=windows
14890   shrext_cmds=".dll"
14891   need_version=no
14892   need_lib_prefix=no
14893
14894   case $GCC,$cc_basename in
14895   yes,*)
14896     # gcc
14897     library_names_spec='$libname.dll.a'
14898     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14899     postinstall_cmds='base_file=`basename \${file}`~
14900       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14901       dldir=$destdir/`dirname \$dlpath`~
14902       test -d \$dldir || mkdir -p \$dldir~
14903       $install_prog $dir/$dlname \$dldir/$dlname~
14904       chmod a+x \$dldir/$dlname~
14905       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14906         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14907       fi'
14908     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14909       dlpath=$dir/\$dldll~
14910        $RM \$dlpath'
14911     shlibpath_overrides_runpath=yes
14912
14913     case $host_os in
14914     cygwin*)
14915       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14916       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14917
14918       ;;
14919     mingw* | cegcc*)
14920       # MinGW DLLs use traditional 'lib' prefix
14921       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14922       ;;
14923     pw32*)
14924       # pw32 DLLs use 'pw' prefix rather than 'lib'
14925       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14926       ;;
14927     esac
14928     dynamic_linker='Win32 ld.exe'
14929     ;;
14930
14931   *,cl*)
14932     # Native MSVC
14933     libname_spec='$name'
14934     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14935     library_names_spec='${libname}.dll.lib'
14936
14937     case $build_os in
14938     mingw*)
14939       sys_lib_search_path_spec=
14940       lt_save_ifs=$IFS
14941       IFS=';'
14942       for lt_path in $LIB
14943       do
14944         IFS=$lt_save_ifs
14945         # Let DOS variable expansion print the short 8.3 style file name.
14946         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14947         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14948       done
14949       IFS=$lt_save_ifs
14950       # Convert to MSYS style.
14951       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14952       ;;
14953     cygwin*)
14954       # Convert to unix form, then to dos form, then back to unix form
14955       # but this time dos style (no spaces!) so that the unix form looks
14956       # like /cygdrive/c/PROGRA~1:/cygdr...
14957       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14958       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14959       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14960       ;;
14961     *)
14962       sys_lib_search_path_spec="$LIB"
14963       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14964         # It is most probably a Windows format PATH.
14965         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14966       else
14967         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14968       fi
14969       # FIXME: find the short name or the path components, as spaces are
14970       # common. (e.g. "Program Files" -> "PROGRA~1")
14971       ;;
14972     esac
14973
14974     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14975     postinstall_cmds='base_file=`basename \${file}`~
14976       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14977       dldir=$destdir/`dirname \$dlpath`~
14978       test -d \$dldir || mkdir -p \$dldir~
14979       $install_prog $dir/$dlname \$dldir/$dlname'
14980     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14981       dlpath=$dir/\$dldll~
14982        $RM \$dlpath'
14983     shlibpath_overrides_runpath=yes
14984     dynamic_linker='Win32 link.exe'
14985     ;;
14986
14987   *)
14988     # Assume MSVC wrapper
14989     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14990     dynamic_linker='Win32 ld.exe'
14991     ;;
14992   esac
14993   # FIXME: first we should search . and the directory the executable is in
14994   shlibpath_var=PATH
14995   ;;
14996
14997 darwin* | rhapsody*)
14998   dynamic_linker="$host_os dyld"
14999   version_type=darwin
15000   need_lib_prefix=no
15001   need_version=no
15002   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15003   soname_spec='${libname}${release}${major}$shared_ext'
15004   shlibpath_overrides_runpath=yes
15005   shlibpath_var=DYLD_LIBRARY_PATH
15006   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15007
15008   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15009   ;;
15010
15011 dgux*)
15012   version_type=linux
15013   need_lib_prefix=no
15014   need_version=no
15015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15016   soname_spec='${libname}${release}${shared_ext}$major'
15017   shlibpath_var=LD_LIBRARY_PATH
15018   ;;
15019
15020 freebsd1*)
15021   dynamic_linker=no
15022   ;;
15023
15024 freebsd* | dragonfly*)
15025   # DragonFly does not have aout.  When/if they implement a new
15026   # versioning mechanism, adjust this.
15027   if test -x /usr/bin/objformat; then
15028     objformat=`/usr/bin/objformat`
15029   else
15030     case $host_os in
15031     freebsd[123]*) objformat=aout ;;
15032     *) objformat=elf ;;
15033     esac
15034   fi
15035   version_type=freebsd-$objformat
15036   case $version_type in
15037     freebsd-elf*)
15038       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15039       need_version=no
15040       need_lib_prefix=no
15041       ;;
15042     freebsd-*)
15043       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15044       need_version=yes
15045       ;;
15046   esac
15047   shlibpath_var=LD_LIBRARY_PATH
15048   case $host_os in
15049   freebsd2*)
15050     shlibpath_overrides_runpath=yes
15051     ;;
15052   freebsd3.[01]* | freebsdelf3.[01]*)
15053     shlibpath_overrides_runpath=yes
15054     hardcode_into_libs=yes
15055     ;;
15056   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15057   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15058     shlibpath_overrides_runpath=no
15059     hardcode_into_libs=yes
15060     ;;
15061   *) # from 4.6 on, and DragonFly
15062     shlibpath_overrides_runpath=yes
15063     hardcode_into_libs=yes
15064     ;;
15065   esac
15066   ;;
15067
15068 gnu*)
15069   version_type=linux
15070   need_lib_prefix=no
15071   need_version=no
15072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15073   soname_spec='${libname}${release}${shared_ext}$major'
15074   shlibpath_var=LD_LIBRARY_PATH
15075   hardcode_into_libs=yes
15076   ;;
15077
15078 haiku*)
15079   version_type=linux
15080   need_lib_prefix=no
15081   need_version=no
15082   dynamic_linker="$host_os runtime_loader"
15083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15084   soname_spec='${libname}${release}${shared_ext}$major'
15085   shlibpath_var=LIBRARY_PATH
15086   shlibpath_overrides_runpath=yes
15087   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15088   hardcode_into_libs=yes
15089   ;;
15090
15091 hpux9* | hpux10* | hpux11*)
15092   # Give a soname corresponding to the major version so that dld.sl refuses to
15093   # link against other versions.
15094   version_type=sunos
15095   need_lib_prefix=no
15096   need_version=no
15097   case $host_cpu in
15098   ia64*)
15099     shrext_cmds='.so'
15100     hardcode_into_libs=yes
15101     dynamic_linker="$host_os dld.so"
15102     shlibpath_var=LD_LIBRARY_PATH
15103     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15104     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105     soname_spec='${libname}${release}${shared_ext}$major'
15106     if test "X$HPUX_IA64_MODE" = X32; then
15107       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15108     else
15109       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15110     fi
15111     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15112     ;;
15113   hppa*64*)
15114     shrext_cmds='.sl'
15115     hardcode_into_libs=yes
15116     dynamic_linker="$host_os dld.sl"
15117     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15118     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120     soname_spec='${libname}${release}${shared_ext}$major'
15121     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15122     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15123     ;;
15124   *)
15125     shrext_cmds='.sl'
15126     dynamic_linker="$host_os dld.sl"
15127     shlibpath_var=SHLIB_PATH
15128     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130     soname_spec='${libname}${release}${shared_ext}$major'
15131     ;;
15132   esac
15133   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15134   postinstall_cmds='chmod 555 $lib'
15135   # or fails outright, so override atomically:
15136   install_override_mode=555
15137   ;;
15138
15139 interix[3-9]*)
15140   version_type=linux
15141   need_lib_prefix=no
15142   need_version=no
15143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15144   soname_spec='${libname}${release}${shared_ext}$major'
15145   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15146   shlibpath_var=LD_LIBRARY_PATH
15147   shlibpath_overrides_runpath=no
15148   hardcode_into_libs=yes
15149   ;;
15150
15151 irix5* | irix6* | nonstopux*)
15152   case $host_os in
15153     nonstopux*) version_type=nonstopux ;;
15154     *)
15155         if test "$lt_cv_prog_gnu_ld" = yes; then
15156                 version_type=linux
15157         else
15158                 version_type=irix
15159         fi ;;
15160   esac
15161   need_lib_prefix=no
15162   need_version=no
15163   soname_spec='${libname}${release}${shared_ext}$major'
15164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15165   case $host_os in
15166   irix5* | nonstopux*)
15167     libsuff= shlibsuff=
15168     ;;
15169   *)
15170     case $LD in # libtool.m4 will add one of these switches to LD
15171     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15172       libsuff= shlibsuff= libmagic=32-bit;;
15173     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15174       libsuff=32 shlibsuff=N32 libmagic=N32;;
15175     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15176       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15177     *) libsuff= shlibsuff= libmagic=never-match;;
15178     esac
15179     ;;
15180   esac
15181   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15182   shlibpath_overrides_runpath=no
15183   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15184   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15185   hardcode_into_libs=yes
15186   ;;
15187
15188 # No shared lib support for Linux oldld, aout, or coff.
15189 linux*oldld* | linux*aout* | linux*coff*)
15190   dynamic_linker=no
15191   ;;
15192
15193 # This must be Linux ELF.
15194 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15195   version_type=linux
15196   need_lib_prefix=no
15197   need_version=no
15198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199   soname_spec='${libname}${release}${shared_ext}$major'
15200   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15201   shlibpath_var=LD_LIBRARY_PATH
15202   shlibpath_overrides_runpath=no
15203
15204   # Some binutils ld are patched to set DT_RUNPATH
15205   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15206   $as_echo_n "(cached) " >&6
15207 else
15208   lt_cv_shlibpath_overrides_runpath=no
15209     save_LDFLAGS=$LDFLAGS
15210     save_libdir=$libdir
15211     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15212          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h.  */
15215
15216 int
15217 main ()
15218 {
15219
15220   ;
15221   return 0;
15222 }
15223 _ACEOF
15224 if ac_fn_cxx_try_link "$LINENO"; then :
15225   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15226   lt_cv_shlibpath_overrides_runpath=yes
15227 fi
15228 fi
15229 rm -f core conftest.err conftest.$ac_objext \
15230     conftest$ac_exeext conftest.$ac_ext
15231     LDFLAGS=$save_LDFLAGS
15232     libdir=$save_libdir
15233
15234 fi
15235
15236   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15237
15238   # This implies no fast_install, which is unacceptable.
15239   # Some rework will be needed to allow for fast_install
15240   # before this can be enabled.
15241   hardcode_into_libs=yes
15242
15243   # Append ld.so.conf contents to the search path
15244   if test -f /etc/ld.so.conf; then
15245     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15246     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15247   fi
15248
15249   # We used to test for /lib/ld.so.1 and disable shared libraries on
15250   # powerpc, because MkLinux only supported shared libraries with the
15251   # GNU dynamic linker.  Since this was broken with cross compilers,
15252   # most powerpc-linux boxes support dynamic linking these days and
15253   # people can always --disable-shared, the test was removed, and we
15254   # assume the GNU/Linux dynamic linker is in use.
15255   dynamic_linker='GNU/Linux ld.so'
15256   ;;
15257
15258 netbsd*)
15259   version_type=sunos
15260   need_lib_prefix=no
15261   need_version=no
15262   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15264     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15265     dynamic_linker='NetBSD (a.out) ld.so'
15266   else
15267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15268     soname_spec='${libname}${release}${shared_ext}$major'
15269     dynamic_linker='NetBSD ld.elf_so'
15270   fi
15271   shlibpath_var=LD_LIBRARY_PATH
15272   shlibpath_overrides_runpath=yes
15273   hardcode_into_libs=yes
15274   ;;
15275
15276 newsos6)
15277   version_type=linux
15278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279   shlibpath_var=LD_LIBRARY_PATH
15280   shlibpath_overrides_runpath=yes
15281   ;;
15282
15283 *nto* | *qnx*)
15284   version_type=qnx
15285   need_lib_prefix=no
15286   need_version=no
15287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288   soname_spec='${libname}${release}${shared_ext}$major'
15289   shlibpath_var=LD_LIBRARY_PATH
15290   shlibpath_overrides_runpath=no
15291   hardcode_into_libs=yes
15292   dynamic_linker='ldqnx.so'
15293   ;;
15294
15295 openbsd*)
15296   version_type=sunos
15297   sys_lib_dlsearch_path_spec="/usr/lib"
15298   need_lib_prefix=no
15299   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15300   case $host_os in
15301     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15302     *)                          need_version=no  ;;
15303   esac
15304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15305   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15306   shlibpath_var=LD_LIBRARY_PATH
15307   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15308     case $host_os in
15309       openbsd2.[89] | openbsd2.[89].*)
15310         shlibpath_overrides_runpath=no
15311         ;;
15312       *)
15313         shlibpath_overrides_runpath=yes
15314         ;;
15315       esac
15316   else
15317     shlibpath_overrides_runpath=yes
15318   fi
15319   ;;
15320
15321 os2*)
15322   libname_spec='$name'
15323   shrext_cmds=".dll"
15324   need_lib_prefix=no
15325   library_names_spec='$libname${shared_ext} $libname.a'
15326   dynamic_linker='OS/2 ld.exe'
15327   shlibpath_var=LIBPATH
15328   ;;
15329
15330 osf3* | osf4* | osf5*)
15331   version_type=osf
15332   need_lib_prefix=no
15333   need_version=no
15334   soname_spec='${libname}${release}${shared_ext}$major'
15335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336   shlibpath_var=LD_LIBRARY_PATH
15337   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15338   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15339   ;;
15340
15341 rdos*)
15342   dynamic_linker=no
15343   ;;
15344
15345 solaris*)
15346   version_type=linux
15347   need_lib_prefix=no
15348   need_version=no
15349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350   soname_spec='${libname}${release}${shared_ext}$major'
15351   shlibpath_var=LD_LIBRARY_PATH
15352   shlibpath_overrides_runpath=yes
15353   hardcode_into_libs=yes
15354   # ldd complains unless libraries are executable
15355   postinstall_cmds='chmod +x $lib'
15356   ;;
15357
15358 sunos4*)
15359   version_type=sunos
15360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15361   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15362   shlibpath_var=LD_LIBRARY_PATH
15363   shlibpath_overrides_runpath=yes
15364   if test "$with_gnu_ld" = yes; then
15365     need_lib_prefix=no
15366   fi
15367   need_version=yes
15368   ;;
15369
15370 sysv4 | sysv4.3*)
15371   version_type=linux
15372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373   soname_spec='${libname}${release}${shared_ext}$major'
15374   shlibpath_var=LD_LIBRARY_PATH
15375   case $host_vendor in
15376     sni)
15377       shlibpath_overrides_runpath=no
15378       need_lib_prefix=no
15379       runpath_var=LD_RUN_PATH
15380       ;;
15381     siemens)
15382       need_lib_prefix=no
15383       ;;
15384     motorola)
15385       need_lib_prefix=no
15386       need_version=no
15387       shlibpath_overrides_runpath=no
15388       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15389       ;;
15390   esac
15391   ;;
15392
15393 sysv4*MP*)
15394   if test -d /usr/nec ;then
15395     version_type=linux
15396     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15397     soname_spec='$libname${shared_ext}.$major'
15398     shlibpath_var=LD_LIBRARY_PATH
15399   fi
15400   ;;
15401
15402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15403   version_type=freebsd-elf
15404   need_lib_prefix=no
15405   need_version=no
15406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15407   soname_spec='${libname}${release}${shared_ext}$major'
15408   shlibpath_var=LD_LIBRARY_PATH
15409   shlibpath_overrides_runpath=yes
15410   hardcode_into_libs=yes
15411   if test "$with_gnu_ld" = yes; then
15412     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15413   else
15414     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15415     case $host_os in
15416       sco3.2v5*)
15417         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15418         ;;
15419     esac
15420   fi
15421   sys_lib_dlsearch_path_spec='/usr/lib'
15422   ;;
15423
15424 tpf*)
15425   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15426   version_type=linux
15427   need_lib_prefix=no
15428   need_version=no
15429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430   shlibpath_var=LD_LIBRARY_PATH
15431   shlibpath_overrides_runpath=no
15432   hardcode_into_libs=yes
15433   ;;
15434
15435 uts4*)
15436   version_type=linux
15437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438   soname_spec='${libname}${release}${shared_ext}$major'
15439   shlibpath_var=LD_LIBRARY_PATH
15440   ;;
15441
15442 *)
15443   dynamic_linker=no
15444   ;;
15445 esac
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15447 $as_echo "$dynamic_linker" >&6; }
15448 test "$dynamic_linker" = no && can_build_shared=no
15449
15450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15451 if test "$GCC" = yes; then
15452   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15453 fi
15454
15455 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15456   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15457 fi
15458 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15459   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15460 fi
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15500 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15501 hardcode_action_CXX=
15502 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15503    test -n "$runpath_var_CXX" ||
15504    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15505
15506   # We can hardcode non-existent directories.
15507   if test "$hardcode_direct_CXX" != no &&
15508      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15509      # have to relink, otherwise we might link with an installed library
15510      # when we should be linking with a yet-to-be-installed one
15511      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15512      test "$hardcode_minus_L_CXX" != no; then
15513     # Linking always hardcodes the temporary library directory.
15514     hardcode_action_CXX=relink
15515   else
15516     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15517     hardcode_action_CXX=immediate
15518   fi
15519 else
15520   # We cannot hardcode anything, or else we can only hardcode existing
15521   # directories.
15522   hardcode_action_CXX=unsupported
15523 fi
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15525 $as_echo "$hardcode_action_CXX" >&6; }
15526
15527 if test "$hardcode_action_CXX" = relink ||
15528    test "$inherit_rpath_CXX" = yes; then
15529   # Fast installation is not supported
15530   enable_fast_install=no
15531 elif test "$shlibpath_overrides_runpath" = yes ||
15532      test "$enable_shared" = no; then
15533   # Fast installation is not necessary
15534   enable_fast_install=needless
15535 fi
15536
15537
15538
15539
15540
15541
15542
15543   fi # test -n "$compiler"
15544
15545   CC=$lt_save_CC
15546   CFLAGS=$lt_save_CFLAGS
15547   LDCXX=$LD
15548   LD=$lt_save_LD
15549   GCC=$lt_save_GCC
15550   with_gnu_ld=$lt_save_with_gnu_ld
15551   lt_cv_path_LDCXX=$lt_cv_path_LD
15552   lt_cv_path_LD=$lt_save_path_LD
15553   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15554   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15555 fi # test "$_lt_caught_CXX_error" != yes
15556
15557 ac_ext=c
15558 ac_cpp='$CPP $CPPFLAGS'
15559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575         ac_config_commands="$ac_config_commands libtool"
15576
15577
15578
15579
15580 # Only expand once:
15581
15582
15583
15584 for ac_header in sys/time.h
15585 do :
15586   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15587 if test "x$ac_cv_header_sys_time_h" = xyes; then :
15588   cat >>confdefs.h <<_ACEOF
15589 #define HAVE_SYS_TIME_H 1
15590 _ACEOF
15591
15592 fi
15593
15594 done
15595
15596
15597
15598 if test -n "$CC_FOR_BUILD"; then
15599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
15600 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
15601 # remove anything that might look like compiler output to our "||" expression
15602 rm -f conftest* a.out b.out a.exe a_out.exe
15603 cat >conftest.c <<EOF
15604 int
15605 main ()
15606 {
15607   exit(0);
15608 }
15609 EOF
15610 gmp_compile="$CC_FOR_BUILD conftest.c"
15611 cc_for_build_works=no
15612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
15613   (eval $gmp_compile) 2>&5
15614   ac_status=$?
15615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15616   test $ac_status = 0; }; then
15617   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
15618     cc_for_build_works=yes
15619   fi
15620 fi
15621 rm -f conftest* a.out b.out a.exe a_out.exe
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
15623 $as_echo "$cc_for_build_works" >&6; }
15624 if test "$cc_for_build_works" = yes; then
15625   :
15626 else
15627   as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
15628 fi
15629
15630 elif test -n "$HOST_CC"; then
15631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
15632 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
15633 # remove anything that might look like compiler output to our "||" expression
15634 rm -f conftest* a.out b.out a.exe a_out.exe
15635 cat >conftest.c <<EOF
15636 int
15637 main ()
15638 {
15639   exit(0);
15640 }
15641 EOF
15642 gmp_compile="$HOST_CC conftest.c"
15643 cc_for_build_works=no
15644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
15645   (eval $gmp_compile) 2>&5
15646   ac_status=$?
15647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15648   test $ac_status = 0; }; then
15649   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
15650     cc_for_build_works=yes
15651   fi
15652 fi
15653 rm -f conftest* a.out b.out a.exe a_out.exe
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
15655 $as_echo "$cc_for_build_works" >&6; }
15656 if test "$cc_for_build_works" = yes; then
15657   CC_FOR_BUILD=$HOST_CC
15658 else
15659   as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5
15660 fi
15661
15662 else
15663   for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
15664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
15665 $as_echo_n "checking build system compiler $i... " >&6; }
15666 # remove anything that might look like compiler output to our "||" expression
15667 rm -f conftest* a.out b.out a.exe a_out.exe
15668 cat >conftest.c <<EOF
15669 int
15670 main ()
15671 {
15672   exit(0);
15673 }
15674 EOF
15675 gmp_compile="$i conftest.c"
15676 cc_for_build_works=no
15677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
15678   (eval $gmp_compile) 2>&5
15679   ac_status=$?
15680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15681   test $ac_status = 0; }; then
15682   if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
15683     cc_for_build_works=yes
15684   fi
15685 fi
15686 rm -f conftest* a.out b.out a.exe a_out.exe
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
15688 $as_echo "$cc_for_build_works" >&6; }
15689 if test "$cc_for_build_works" = yes; then
15690   CC_FOR_BUILD=$i
15691        break
15692 else
15693   :
15694 fi
15695
15696   done
15697   if test -z "$CC_FOR_BUILD"; then
15698     as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5
15699   fi
15700 fi
15701
15702
15703
15704
15705
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
15707 $as_echo_n "checking for build system preprocessor... " >&6; }
15708 if test -z "$CPP_FOR_BUILD"; then
15709   if ${gmp_cv_prog_cpp_for_build+:} false; then :
15710   $as_echo_n "(cached) " >&6
15711 else
15712   cat >conftest.c <<EOF
15713 #define FOO BAR
15714 EOF
15715   for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
15716     gmp_compile="$i conftest.c"
15717     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
15718   (eval $gmp_compile) 2>&5
15719   ac_status=$?
15720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15721   test $ac_status = 0; } >&5 2>&1; then
15722       gmp_cv_prog_cpp_for_build=$i
15723       break
15724     fi
15725   done
15726   rm -f conftest* a.out b.out a.exe a_out.exe
15727   if test -z "$gmp_cv_prog_cpp_for_build"; then
15728     as_fn_error $? "Cannot find build system C preprocessor." "$LINENO" 5
15729   fi
15730
15731 fi
15732
15733   CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
15734 fi
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
15736 $as_echo "$CPP_FOR_BUILD" >&6; }
15737
15738
15739
15740
15741
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
15743 $as_echo_n "checking for build system executable suffix... " >&6; }
15744 if ${gmp_cv_prog_exeext_for_build+:} false; then :
15745   $as_echo_n "(cached) " >&6
15746 else
15747   cat >conftest.c <<EOF
15748 int
15749 main ()
15750 {
15751   exit (0);
15752 }
15753 EOF
15754 for i in .exe ,ff8 ""; do
15755   gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
15756   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
15757   (eval $gmp_compile) 2>&5
15758   ac_status=$?
15759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15760   test $ac_status = 0; }; then
15761     if (./conftest) 2>&5; then
15762       gmp_cv_prog_exeext_for_build=$i
15763       break
15764     fi
15765   fi
15766 done
15767 rm -f conftest*
15768 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
15769   as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5
15770 fi
15771
15772 fi
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
15774 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
15775 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
15776
15777
15778
15779 if test -z "$CFLAGS_FOR_BUILD"; then
15780   CFLAGS_FOR_BUILD="-g -O2"
15781 fi
15782 if test -z "$LDFLAGS_FOR_BUILD"; then
15783   LDFLAGS_FOR_BUILD="-g"
15784 fi
15785 if test -z "$CPPFLAGS_FOR_BUILD"; then
15786   CPPFLAGS_FOR_BUILD=""
15787 fi
15788 if test -z "$LIBS_FOR_BUILD"; then
15789   LIBS_FOR_BUILD=""
15790 fi
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option -fno-rtti" >&5
15803 $as_echo_n "checking for compiler option -fno-rtti... " >&6; }
15804 if ${ac_cv_compiler_option_nortti+:} false; then :
15805   $as_echo_n "(cached) " >&6
15806 else
15807
15808 cat >conftest.$ac_ext <<EOF
15809 int main() { return 0; }
15810 EOF
15811 ${CXX} -c $CFLAGS $CPPFLAGS -fno-rtti conftest.$ac_ext 1>conftest.out 2>conftest.err
15812 if test $? -ne 0 -o -s conftest.err; then
15813      ac_cv_compiler_option_nortti=no
15814 else
15815      ac_cv_compiler_option_nortti=yes
15816 fi
15817 rm -f conftest.$ac_ext conftest.out conftest.err
15818
15819 fi
15820 if test ".$ac_cv_compiler_option_nortti" = .yes; then
15821     CXXFLAGS="$CXXFLAGS -fno-rtti"
15822 else
15823     :
15824 fi
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_compiler_option_nortti" >&5
15826 $as_echo "$ac_cv_compiler_option_nortti" >&6; }
15827
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option -fno-exceptions" >&5
15829 $as_echo_n "checking for compiler option -fno-exceptions... " >&6; }
15830 if ${ac_cv_compiler_option_noexceptions+:} false; then :
15831   $as_echo_n "(cached) " >&6
15832 else
15833
15834 cat >conftest.$ac_ext <<EOF
15835 int main() { return 0; }
15836 EOF
15837 ${CXX} -c $CFLAGS $CPPFLAGS -fno-exceptions conftest.$ac_ext 1>conftest.out 2>conftest.err
15838 if test $? -ne 0 -o -s conftest.err; then
15839      ac_cv_compiler_option_noexceptions=no
15840 else
15841      ac_cv_compiler_option_noexceptions=yes
15842 fi
15843 rm -f conftest.$ac_ext conftest.out conftest.err
15844
15845 fi
15846 if test ".$ac_cv_compiler_option_noexceptions" = .yes; then
15847     CXXFLAGS="$CXXFLAGS -fno-exceptions"
15848 else
15849     :
15850 fi
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_compiler_option_noexceptions" >&5
15852 $as_echo "$ac_cv_compiler_option_noexceptions" >&6; }
15853
15854 PTH_CPPFLAGS=''
15855 PTH_CFLAGS=''
15856 PTH_LDFLAGS=''
15857 PTH_LIBS=''
15858
15859
15860
15861
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth" >&5
15863 $as_echo_n "checking for GNU Pth... " >&6; }
15864 if test ".$verbose" = .yes; then
15865     { $as_echo "$as_me:${as_lineno-$LINENO}: result:   " >&5
15866 $as_echo "  " >&6; }
15867 fi
15868
15869
15870 # Check whether --with-pth was given.
15871 if test "${with_pth+set}" = set; then :
15872   withval=$with_pth;
15873 else
15874   with_pth="yes"
15875
15876 fi
15877
15878 # Check whether --with-pth-test was given.
15879 if test "${with_pth_test+set}" = set; then :
15880   withval=$with_pth_test;
15881 else
15882   with_pth_test="yes"
15883
15884 fi
15885 if test ".$verbose" = .yes; then
15886     { $as_echo "$as_me:${as_lineno-$LINENO}: result:   + Command Line Options:" >&5
15887 $as_echo "  + Command Line Options:" >&6; }
15888 fi
15889
15890 if test ".$verbose" = .yes; then
15891     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o --with-pth=$with_pth" >&5
15892 $as_echo "      o --with-pth=$with_pth" >&6; }
15893 fi
15894
15895 if test ".$verbose" = .yes; then
15896     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o --with-pth-test=$with_pth_test" >&5
15897 $as_echo "      o --with-pth-test=$with_pth_test" >&6; }
15898 fi
15899
15900 if test ".$with_pth" != .no; then
15901     _pth_subdir=no
15902     _pth_subdir_opts=''
15903     case "$with_pth" in
15904         subdir:* )
15905             _pth_subdir=yes
15906                         _pth_subdir_opts=`echo $with_pth | sed -e 's/^subdir:[^         ]*[     ]*//'`
15907             with_pth=`echo $with_pth | sed -e 's/^subdir:\([^   ]*\).*$/\1/'`
15908                         ;;
15909     esac
15910     _pth_version=""
15911     _pth_location=""
15912     _pth_type=""
15913     _pth_cppflags=""
15914     _pth_cflags=""
15915     _pth_ldflags=""
15916     _pth_libs=""
15917     if test ".$with_pth" = .yes; then
15918         #   via config script in $PATH
15919                 _pth_version=`(pthsem-config --version) 2>/dev/null |\
15920                       sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'`
15921                 if test ".$_pth_version" != .; then
15922             _pth_location=`pthsem-config --prefix`
15923             _pth_type='installed'
15924             _pth_cppflags=`pthsem-config --cflags`
15925             _pth_cflags=`pthsem-config --cflags`
15926             _pth_ldflags=`pthsem-config --ldflags`
15927             _pth_libs=`pthsem-config --libs --all`
15928         fi
15929     elif test -d "$with_pth"; then
15930         with_pth=`echo $with_pth | sed -e 's;/*$;;'`
15931         _pth_found=no
15932         #   via locally included source tree
15933         if test ".$_pth_subdir" = .yes; then
15934             _pth_location="$with_pth"
15935             _pth_type='local'
15936 #mjm
15937             _pth_cppflags="-I$with_pth"
15938             _pth_cflags="-I$with_pth"
15939 #            _pth_cppflags="-isystem$with_pth"
15940 #            _pth_cflags="-isystem$with_pth"
15941             if test -f "$with_pth/ltconfig"; then
15942                 _pth_ldflags="-L$with_pth/.libs"
15943             else
15944                 _pth_ldflags="-L$with_pth"
15945             fi
15946 # mjm
15947 #            _pth_libs="-lpth"
15948             _pth_libs="-lpthsem"
15949 #                        _pth_version=`grep '^const char PTH_Hello' $with_pth/pth_vers.c |\
15950 #                          sed -e 's;^.*Version[        ]*\([0-9]*\.[0-9]*[.ab][0-9]*\)[        ].*$;\1;'`
15951                         _pth_version=`grep '^Version' $with_pth/pthsem.pc |\
15952                           sed -e 's;Version: ;;'`
15953                           echo "_pth_version = $_pth_version"
15954                         _pth_found=yes
15955             ac_configure_args="$ac_configure_args --enable-subdir $_pth_subdir_opts"
15956             with_pth_test=no
15957         fi
15958         #   via config script under a specified directory
15959         #   (a standard installation, but not a source tree)
15960         if test ".$_pth_found" = .no; then
15961             for _dir in $with_pth/bin $with_pth; do
15962                 if test -f "$_dir/pthsem-config"; then
15963                     test -f "$_dir/pthsem-config.in" && continue # pth-config in source tree!
15964                                         _pth_version=`($_dir/pthsem-config --version) 2>/dev/null |\
15965                                   sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'`
15966                                         if test ".$_pth_version" != .; then
15967                         _pth_location=`$_dir/pthsem-config --prefix`
15968                         _pth_type="installed"
15969                         _pth_cppflags=`$_dir/pthsem-config --cflags`
15970                         _pth_cflags=`$_dir/pthsem-config --cflags`
15971                         _pth_ldflags=`$_dir/pthsem-config --ldflags`
15972                         _pth_libs=`$_dir/pthsem-config --libs --all`
15973                         _pth_found=yes
15974                         break
15975                     fi
15976                 fi
15977             done
15978         fi
15979         #   in any subarea under a specified directory
15980         #   (either a special installation or a Pth source tree)
15981         if test ".$_pth_found" = .no; then
15982                         _pth_found=0
15983             for _file in x `find $with_pth -name "pthsem.h" -type f -print`; do
15984                 test .$_file = .x && continue
15985                 _dir=`echo $_file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'`
15986                 _pth_version=`($_dir/pthsem-config --version) 2>/dev/null |\
15987                               sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'`
15988                 if test ".$_pth_version" = .; then
15989                     _pth_version=`grep '^#define PTH_VERSION_STR' $_file |\
15990                                   sed -e 's;^#define[   ]*PTH_VERSION_STR[      ]*"\([0-9]*\.[0-9]*[.ab][0-9]*\)[       ].*$;\1;'`
15991                 fi
15992                 _pth_cppflags="-I$_dir"
15993                 _pth_cflags="-I$_dir"
15994                 _pth_found=`expr $_pth_found + 1`
15995             done
15996             for _file in x `find $with_pth -name "libpthsem.[aso]" -type f -print`; do
15997                 test .$_file = .x && continue
15998                 _dir=`echo $_file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'`
15999                 _pth_ldflags="-L$_dir"
16000                 _pth_libs="-lpthsem"
16001                 _pth_found=`expr $_pth_found + 1`
16002             done
16003                         if test ".$_pth_found" = .2; then
16004                 _pth_location="$with_pth"
16005                 _pth_type="uninstalled"
16006             else
16007                 _pth_version=''
16008             fi
16009         fi
16010     fi
16011     if test ".$verbose" = .yes; then
16012     { $as_echo "$as_me:${as_lineno-$LINENO}: result:   + Determined Location:" >&5
16013 $as_echo "  + Determined Location:" >&6; }
16014 fi
16015
16016     if test ".$verbose" = .yes; then
16017     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o path: $_pth_location" >&5
16018 $as_echo "      o path: $_pth_location" >&6; }
16019 fi
16020
16021     if test ".$verbose" = .yes; then
16022     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o type: $_pth_type" >&5
16023 $as_echo "      o type: $_pth_type" >&6; }
16024 fi
16025
16026     if test ".$_pth_version" = .; then
16027         if test ".$with_pth" != .yes; then
16028              { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5
16029 $as_echo "*FAILED*" >&6; }
16030
16031 echo " "+------------------------------------------------------------------------+"" 1>&2
16032 cat <<EOT | sed -e 's/^[        ]*/ | /' -e 's/>>/  /' 1>&2
16033              Unable to locate pthsem under $with_pth.
16034              Please specify the correct path to either a pthsem installation tree
16035              (use --with-pth=DIR if you used --prefix=DIR for installing pthsem in
16036              the past) or to a pthsem source tree (use --with-pth=DIR if DIR is a
16037              path to a pthsem-X.Y.Z/ directory; but make sure the package is already
16038              built, i.e., the "configure; make" step was already performed there).
16039 EOT
16040 echo " "+------------------------------------------------------------------------+"" 1>&2
16041 exit 1
16042
16043         else
16044              { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5
16045 $as_echo "*FAILED*" >&6; }
16046
16047 echo " "+------------------------------------------------------------------------+"" 1>&2
16048 cat <<EOT | sed -e 's/^[        ]*/ | /' -e 's/>>/  /' 1>&2
16049              Unable to locate pthsem in any system-wide location (see \$PATH).
16050              Please specify the correct path to either a pthsem installation tree
16051              (use --with-pth=DIR if you used --prefix=DIR for installing pthsem in
16052              the past) or to a pthsem source tree (use --with-pth=DIR if DIR is a
16053              path to a pthsem-X.Y.Z/ directory; but make sure the package is already
16054              built, i.e., the "configure; make" step was already performed there).
16055 EOT
16056 echo " "+------------------------------------------------------------------------+"" 1>&2
16057 exit 1
16058
16059         fi
16060     fi
16061                 _req_version="2.0.8"
16062     for _var in _pth_version _req_version; do
16063         eval "_val=\"\$${_var}\""
16064         _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
16065         _minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'`
16066         _rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'`
16067         _micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'`
16068         case $_rtype in
16069             "a" ) _rtype=0 ;;
16070             "b" ) _rtype=1 ;;
16071             "." ) _rtype=2 ;;
16072         esac
16073         _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \
16074               "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`
16075         eval "${_var}_hex=\"\$_hex\""
16076     done
16077     if test ".$verbose" = .yes; then
16078     { $as_echo "$as_me:${as_lineno-$LINENO}: result:   + Determined Versions:" >&5
16079 $as_echo "  + Determined Versions:" >&6; }
16080 fi
16081
16082     if test ".$verbose" = .yes; then
16083     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o existing: $_pth_version -> 0x$_pth_version_hex" >&5
16084 $as_echo "      o existing: $_pth_version -> 0x$_pth_version_hex" >&6; }
16085 fi
16086
16087     if test ".$verbose" = .yes; then
16088     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o required: $_req_version -> 0x$_req_version_hex" >&5
16089 $as_echo "      o required: $_req_version -> 0x$_req_version_hex" >&6; }
16090 fi
16091
16092     _ok=0
16093     if test ".$_pth_version_hex" != .; then
16094         if test ".$_req_version_hex" != .; then
16095             if test $_pth_version_hex -ge $_req_version_hex; then
16096                 _ok=1
16097             fi
16098         fi
16099     fi
16100     if test ".$_ok" = .0; then
16101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5
16102 $as_echo "*FAILED*" >&6; }
16103
16104 echo " "+------------------------------------------------------------------------+"" 1>&2
16105 cat <<EOT | sed -e 's/^[        ]*/ | /' -e 's/>>/  /' 1>&2
16106         Found pthsem version $_pth_version, but required at least version $_req_version.
16107         Upgrade pthsem under $_pth_location to $_req_version or higher first, please.
16108 EOT
16109 echo " "+------------------------------------------------------------------------+"" 1>&2
16110 exit 1
16111
16112     fi
16113                 if test ".$with_pth_test" = .yes; then
16114         _ac_save_CPPFLAGS="$CPPFLAGS"
16115         _ac_save_CFLAGS="$CFLAGS"
16116         _ac_save_LDFLAGS="$LDFLAGS"
16117         _ac_save_LIBS="$LIBS"
16118         CPPFLAGS="$CPPFLAGS $_pth_cppflags"
16119         CFLAGS="$CFLAGS $_pth_cflags"
16120         LDFLAGS="$LDFLAGS $_pth_ldflags"
16121         LIBS="$LIBS $_pth_libs"
16122         if test ".$verbose" = .yes; then
16123     { $as_echo "$as_me:${as_lineno-$LINENO}: result:   + Test Build Environment:" >&5
16124 $as_echo "  + Test Build Environment:" >&6; }
16125 fi
16126
16127         if test ".$verbose" = .yes; then
16128     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o CPPFLAGS=\"$CPPFLAGS\"" >&5
16129 $as_echo "      o CPPFLAGS=\"$CPPFLAGS\"" >&6; }
16130 fi
16131
16132         if test ".$verbose" = .yes; then
16133     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o CFLAGS=\"$CFLAGS\"" >&5
16134 $as_echo "      o CFLAGS=\"$CFLAGS\"" >&6; }
16135 fi
16136
16137         if test ".$verbose" = .yes; then
16138     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o LDFLAGS=\"$LDFLAGS\"" >&5
16139 $as_echo "      o LDFLAGS=\"$LDFLAGS\"" >&6; }
16140 fi
16141
16142         if test ".$verbose" = .yes; then
16143     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o LIBS=\"$LIBS\"" >&5
16144 $as_echo "      o LIBS=\"$LIBS\"" >&6; }
16145 fi
16146
16147         cross_compile=no
16148
16149
16150
16151
16152         if test ".$verbose" = .yes; then
16153     { $as_echo "$as_me:${as_lineno-$LINENO}: result:   + Performing Sanity Checks:" >&5
16154 $as_echo "  + Performing Sanity Checks:" >&6; }
16155 fi
16156
16157         if test ".$verbose" = .yes; then
16158     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o pre-processor test" >&5
16159 $as_echo "      o pre-processor test" >&6; }
16160 fi
16161
16162         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h.  */
16164         #include <stdio.h>
16165         #include <pthsem.h>
16166
16167 _ACEOF
16168 if ac_fn_c_try_cpp "$LINENO"; then :
16169   _ok=yes
16170 else
16171   _ok=no
16172 fi
16173 rm -f conftest.err conftest.i conftest.$ac_ext
16174         if test ".$_ok" != .yes; then
16175             { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5
16176 $as_echo "*FAILED*" >&6; }
16177
16178 echo " "+------------------------------------------------------------------------+"" 1>&2
16179 cat <<EOT | sed -e 's/^[        ]*/ | /' -e 's/>>/  /' 1>&2
16180             Found pthsem $_pth_version under $_pth_location, but
16181             was unable to perform a sanity pre-processor check. This means
16182             the pthsem header pthsem.h was not found.
16183             We used the following build environment:
16184             >> CPP="$CPP"
16185             >> CPPFLAGS="$CPPFLAGS"
16186             See config.log for possibly more details.
16187 EOT
16188 echo " "+------------------------------------------------------------------------+"" 1>&2
16189 exit 1
16190
16191         fi
16192         if test ".$verbose" = .yes; then
16193     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o link check" >&5
16194 $as_echo "      o link check" >&6; }
16195 fi
16196
16197         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198 /* end confdefs.h.  */
16199         #include <stdio.h>
16200         #include <pthsem.h>
16201
16202 int
16203 main ()
16204 {
16205             FILE *fp;
16206             if (!(fp = fopen("conftestval", "w")))
16207                 exit(1);
16208             fprintf(fp, "hmm");
16209             fclose(fp);
16210             pth_init();
16211             pth_kill();
16212             if (!(fp = fopen("conftestval", "w")))
16213                 exit(1);
16214             fprintf(fp, "yes");
16215             fclose(fp);
16216             exit(0);
16217
16218   ;
16219   return 0;
16220 }
16221 _ACEOF
16222 if ac_fn_c_try_link "$LINENO"; then :
16223   _ok=yes
16224 else
16225   _ok=no
16226 fi
16227 rm -f core conftest.err conftest.$ac_objext \
16228     conftest$ac_exeext conftest.$ac_ext
16229         if test ".$_ok" != .yes; then
16230             { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5
16231 $as_echo "*FAILED*" >&6; }
16232
16233 echo " "+------------------------------------------------------------------------+"" 1>&2
16234 cat <<EOT | sed -e 's/^[        ]*/ | /' -e 's/>>/  /' 1>&2
16235             Found pthsem $_pth_version under $_pth_location, but
16236             was unable to perform a sanity linker check. This means
16237             the pthsem library libpthsem.a was not found.
16238             We used the following build environment:
16239             >> CC="$CC"
16240             >> CFLAGS="$CFLAGS"
16241             >> LDFLAGS="$LDFLAGS"
16242             >> LIBS="$LIBS"
16243             See config.log for possibly more details.
16244 EOT
16245 echo " "+------------------------------------------------------------------------+"" 1>&2
16246 exit 1
16247
16248         fi
16249         if test ".$verbose" = .yes; then
16250     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o run-time check" >&5
16251 $as_echo "      o run-time check" >&6; }
16252 fi
16253
16254         if test "$cross_compiling" = yes; then :
16255   _ok=no
16256 else
16257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h.  */
16259         #include <stdio.h>
16260         #include <pthsem.h>
16261                 int main(int argc, char *argv)
16262         {
16263                      FILE *fp;
16264             if (!(fp = fopen("conftestval", "w")))
16265                 exit(1);
16266             fprintf(fp, "hmm");
16267             fclose(fp);
16268             pth_init();
16269             pth_kill();
16270             if (!(fp = fopen("conftestval", "w")))
16271                 exit(1);
16272             fprintf(fp, "yes");
16273             fclose(fp);
16274             exit(0);
16275                 }
16276
16277 _ACEOF
16278 if ac_fn_c_try_run "$LINENO"; then :
16279   _ok=`cat conftestval`
16280 else
16281   _ok=no
16282 fi
16283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16284   conftest.$ac_objext conftest.beam conftest.$ac_ext
16285 fi
16286
16287         if test ".$_ok" != .yes; then
16288             if test ".$_ok" = .no; then
16289                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5
16290 $as_echo "*FAILED*" >&6; }
16291
16292 echo " "+------------------------------------------------------------------------+"" 1>&2
16293 cat <<EOT | sed -e 's/^[        ]*/ | /' -e 's/>>/  /' 1>&2
16294                 Found pthsem $_pth_version under $_pth_location, but
16295                 was unable to perform a sanity execution check. This usually
16296                 means that the pthsem shared library libpthsem.so is present
16297                 but \$LD_LIBRARY_PATH is incomplete to execute a Pth test.
16298                 In this case either disable this test via --without-pth-test,
16299                 or extend \$LD_LIBRARY_PATH, or build pthsem as a static
16300                 library only via its --disable-shared Autoconf option.
16301                 We used the following build environment:
16302                 >> CC="$CC"
16303                 >> CFLAGS="$CFLAGS"
16304                 >> LDFLAGS="$LDFLAGS"
16305                 >> LIBS="$LIBS"
16306                 See config.log for possibly more details.
16307 EOT
16308 echo " "+------------------------------------------------------------------------+"" 1>&2
16309 exit 1
16310
16311             else
16312                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5
16313 $as_echo "*FAILED*" >&6; }
16314
16315 echo " "+------------------------------------------------------------------------+"" 1>&2
16316 cat <<EOT | sed -e 's/^[        ]*/ | /' -e 's/>>/  /' 1>&2
16317                 Found pthsem $_pth_version under $_pth_location, but
16318                 was unable to perform a sanity run-time check. This usually
16319                 means that the pthsem library failed to work and possibly
16320                 caused a core dump in the test program. In this case it
16321                 is strongly recommended that you re-install pthsem and this
16322                 time make sure that it really passes its "make test" procedure.
16323                 We used the following build environment:
16324                 >> CC="$CC"
16325                 >> CFLAGS="$CFLAGS"
16326                 >> LDFLAGS="$LDFLAGS"
16327                 >> LIBS="$LIBS"
16328                 See config.log for possibly more details.
16329 EOT
16330 echo " "+------------------------------------------------------------------------+"" 1>&2
16331 exit 1
16332
16333             fi
16334         fi
16335         _extendvars="no"
16336         if test ".$_extendvars" != .yes; then
16337             CPPFLAGS="$_ac_save_CPPFLAGS"
16338             CFLAGS="$_ac_save_CFLAGS"
16339             LDFLAGS="$_ac_save_LDFLAGS"
16340             LIBS="$_ac_save_LIBS"
16341         fi
16342     else
16343         _extendvars="no"
16344         if test ".$_extendvars" = .yes; then
16345             if test ".$_pth_subdir" = .yes; then
16346                 CPPFLAGS="$CPPFLAGS $_pth_cppflags"
16347                 CFLAGS="$CFLAGS $_pth_cflags"
16348                 LDFLAGS="$LDFLAGS $_pth_ldflags"
16349                 LIBS="$LIBS $_pth_libs"
16350             fi
16351         fi
16352     fi
16353     PTH_CPPFLAGS="$_pth_cppflags"
16354     PTH_CFLAGS="$_pth_cflags"
16355     PTH_LDFLAGS="$_pth_ldflags"
16356     PTH_LIBS="$_pth_libs"
16357
16358
16359
16360
16361     if test ".$verbose" = .yes; then
16362     { $as_echo "$as_me:${as_lineno-$LINENO}: result:   + Final Results:" >&5
16363 $as_echo "  + Final Results:" >&6; }
16364 fi
16365
16366     if test ".$verbose" = .yes; then
16367     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o PTH_CPPFLAGS=\"$PTH_CPPFLAGS\"" >&5
16368 $as_echo "      o PTH_CPPFLAGS=\"$PTH_CPPFLAGS\"" >&6; }
16369 fi
16370
16371     if test ".$verbose" = .yes; then
16372     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o PTH_CFLAGS=\"$PTH_CFLAGS\"" >&5
16373 $as_echo "      o PTH_CFLAGS=\"$PTH_CFLAGS\"" >&6; }
16374 fi
16375
16376     if test ".$verbose" = .yes; then
16377     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o PTH_LDFLAGS=\"$PTH_LDFLAGS\"" >&5
16378 $as_echo "      o PTH_LDFLAGS=\"$PTH_LDFLAGS\"" >&6; }
16379 fi
16380
16381     if test ".$verbose" = .yes; then
16382     { $as_echo "$as_me:${as_lineno-$LINENO}: result:       o PTH_LIBS=\"$PTH_LIBS\"" >&5
16383 $as_echo "      o PTH_LIBS=\"$PTH_LIBS\"" >&6; }
16384 fi
16385
16386 fi
16387 if test ".$with_pth" != .no; then
16388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $_pth_version, $_pth_type under $_pth_location" >&5
16389 $as_echo "version $_pth_version, $_pth_type under $_pth_location" >&6; }
16390     :
16391 else
16392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16393 $as_echo "no" >&6; }
16394     :
16395 fi
16396
16397 ac_fn_c_check_header_mongrel "$LINENO" "argp.h" "ac_cv_header_argp_h" "$ac_includes_default"
16398 if test "x$ac_cv_header_argp_h" = xyes; then :
16399
16400 else
16401   as_fn_error $? "argp_parse not found" "$LINENO" 5
16402 fi
16403
16404
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing argp_parse" >&5
16406 $as_echo_n "checking for library containing argp_parse... " >&6; }
16407 if ${ac_cv_search_argp_parse+:} false; then :
16408   $as_echo_n "(cached) " >&6
16409 else
16410   ac_func_search_save_LIBS=$LIBS
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h.  */
16413
16414 /* Override any GCC internal prototype to avoid an error.
16415    Use char because int might match the return type of a GCC
16416    builtin and then its argument prototype would still apply.  */
16417 #ifdef __cplusplus
16418 extern "C"
16419 #endif
16420 char argp_parse ();
16421 int
16422 main ()
16423 {
16424 return argp_parse ();
16425   ;
16426   return 0;
16427 }
16428 _ACEOF
16429 for ac_lib in '' argp; do
16430   if test -z "$ac_lib"; then
16431     ac_res="none required"
16432   else
16433     ac_res=-l$ac_lib
16434     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16435   fi
16436   if ac_fn_c_try_link "$LINENO"; then :
16437   ac_cv_search_argp_parse=$ac_res
16438 fi
16439 rm -f core conftest.err conftest.$ac_objext \
16440     conftest$ac_exeext
16441   if ${ac_cv_search_argp_parse+:} false; then :
16442   break
16443 fi
16444 done
16445 if ${ac_cv_search_argp_parse+:} false; then :
16446
16447 else
16448   ac_cv_search_argp_parse=no
16449 fi
16450 rm conftest.$ac_ext
16451 LIBS=$ac_func_search_save_LIBS
16452 fi
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_argp_parse" >&5
16454 $as_echo "$ac_cv_search_argp_parse" >&6; }
16455 ac_res=$ac_cv_search_argp_parse
16456 if test "$ac_res" != no; then :
16457   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16458
16459 else
16460   as_fn_error $? "argp_parse not found" "$LINENO" 5
16461 fi
16462
16463 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
16464 if test "x$ac_cv_header_linux_serial_h" = xyes; then :
16465
16466 $as_echo "#define HAVE_LINUX_LOWLATENCY 1 " >>confdefs.h
16467
16468 else
16469   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No supported low latency mode found" >&5
16470 $as_echo "$as_me: WARNING: No supported low latency mode found" >&2;}
16471 fi
16472
16473
16474 have_source_info=no
16475 have_linux_api=no
16476 ac_fn_c_check_header_preproc "$LINENO" "linux/rtnetlink.h" "ac_cv_header_linux_rtnetlink_h"
16477 if test "x$ac_cv_header_linux_rtnetlink_h" = xyes; then :
16478
16479 $as_echo "#define HAVE_LINUX_NETLINK 1" >>confdefs.h
16480  have_source_info=yes
16481 fi
16482
16483
16484 ac_fn_c_check_header_preproc "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h"
16485 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
16486
16487 $as_echo "#define OS_LINUX 1" >>confdefs.h
16488  have_linux_api=yes; have_usb=yes
16489 fi
16490
16491
16492 ac_fn_c_check_header_preproc "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h"
16493 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
16494
16495 $as_echo "#define HAVE_WINDOWS_IPHELPER 1" >>confdefs.h
16496
16497   LIBS="-liphlpapi $LIBS"; have_source_info=yes
16498 fi
16499
16500
16501
16502 ac_fn_c_check_decl "$LINENO" "SA_SIZE" "ac_cv_have_decl_SA_SIZE" "#include <net/route.h>
16503 "
16504 if test "x$ac_cv_have_decl_SA_SIZE" = xyes; then :
16505
16506 $as_echo "#define HAVE_SA_SIZE 1" >>confdefs.h
16507
16508 fi
16509
16510 have_bsd_source_info=no
16511 ac_fn_c_check_decl "$LINENO" "__FreeBSD__" "ac_cv_have_decl___FreeBSD__" "$ac_includes_default"
16512 if test "x$ac_cv_have_decl___FreeBSD__" = xyes; then :
16513   have_bsd_source_info=yes
16514 fi
16515
16516 ac_fn_c_check_decl "$LINENO" "__APPLE__" "ac_cv_have_decl___APPLE__" "$ac_includes_default"
16517 if test "x$ac_cv_have_decl___APPLE__" = xyes; then :
16518   have_bsd_source_info=yes
16519 fi
16520
16521 if test x$have_bsd_source_info = xyes ; then
16522
16523 $as_echo "#define HAVE_BSD_SOURCEINFO 1" >>confdefs.h
16524
16525   have_source_info=yes
16526 fi
16527
16528 for ac_func in gethostbyname_r
16529 do :
16530   ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
16531 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
16532   cat >>confdefs.h <<_ACEOF
16533 #define HAVE_GETHOSTBYNAME_R 1
16534 _ACEOF
16535
16536 else
16537   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: eibd client library not thread safe" >&5
16538 $as_echo "$as_me: WARNING: eibd client library not thread safe" >&2;}
16539 fi
16540 done
16541
16542
16543  if test x$have_linux_api = xyes; then
16544   LINUX_API_TRUE=
16545   LINUX_API_FALSE='#'
16546 else
16547   LINUX_API_TRUE='#'
16548   LINUX_API_FALSE=
16549 fi
16550
16551
16552 # Check whether --enable-onlyeibd was given.
16553 if test "${enable_onlyeibd+set}" = set; then :
16554   enableval=$enable_onlyeibd; case "${enableval}" in
16555  yes) onlyeibd=true ;;
16556   no)  onlyeibd=false ;;
16557    *) as_fn_error $? "bad value ${enableval} for --enable-onlyeibd" "$LINENO" 5 ;;
16558  esac
16559 else
16560   onlyeibd=false
16561 fi
16562
16563  if test x$onlyeibd = xtrue; then
16564   HAVE_ONLYEIBD_TRUE=
16565   HAVE_ONLYEIBD_FALSE='#'
16566 else
16567   HAVE_ONLYEIBD_TRUE='#'
16568   HAVE_ONLYEIBD_FALSE=
16569 fi
16570
16571
16572 if test x$onlyeibd = xfalse ; then
16573
16574
16575
16576 # Check whether --with-xml-prefix was given.
16577 if test "${with_xml_prefix+set}" = set; then :
16578   withval=$with_xml_prefix; xml_config_prefix="$withval"
16579 else
16580   xml_config_prefix=""
16581 fi
16582
16583
16584 # Check whether --with-xml-exec-prefix was given.
16585 if test "${with_xml_exec_prefix+set}" = set; then :
16586   withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
16587 else
16588   xml_config_exec_prefix=""
16589 fi
16590
16591 # Check whether --enable-xmltest was given.
16592 if test "${enable_xmltest+set}" = set; then :
16593   enableval=$enable_xmltest;
16594 else
16595   enable_xmltest=yes
16596 fi
16597
16598
16599   if test x$xml_config_exec_prefix != x ; then
16600      xml_config_args="$xml_config_args"
16601      if test x${XML2_CONFIG+set} != xset ; then
16602         XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
16603      fi
16604   fi
16605   if test x$xml_config_prefix != x ; then
16606      xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
16607      if test x${XML2_CONFIG+set} != xset ; then
16608         XML2_CONFIG=$xml_config_prefix/bin/xml2-config
16609      fi
16610   fi
16611
16612   # Extract the first word of "xml2-config", so it can be a program name with args.
16613 set dummy xml2-config; ac_word=$2
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16615 $as_echo_n "checking for $ac_word... " >&6; }
16616 if ${ac_cv_path_XML2_CONFIG+:} false; then :
16617   $as_echo_n "(cached) " >&6
16618 else
16619   case $XML2_CONFIG in
16620   [\\/]* | ?:[\\/]*)
16621   ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
16622   ;;
16623   *)
16624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16625 for as_dir in $PATH
16626 do
16627   IFS=$as_save_IFS
16628   test -z "$as_dir" && as_dir=.
16629     for ac_exec_ext in '' $ac_executable_extensions; do
16630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16631     ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16633     break 2
16634   fi
16635 done
16636   done
16637 IFS=$as_save_IFS
16638
16639   test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
16640   ;;
16641 esac
16642 fi
16643 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
16644 if test -n "$XML2_CONFIG"; then
16645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
16646 $as_echo "$XML2_CONFIG" >&6; }
16647 else
16648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649 $as_echo "no" >&6; }
16650 fi
16651
16652
16653   min_xml_version=2.6.16
16654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
16655 $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
16656   no_xml=""
16657   if test "$XML2_CONFIG" = "no" ; then
16658     no_xml=yes
16659   else
16660     XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
16661     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
16662     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
16663            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16664     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
16665            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16666     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
16667            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16668     if test "x$enable_xmltest" = "xyes" ; then
16669       ac_save_CPPFLAGS="$CPPFLAGS"
16670       ac_save_LIBS="$LIBS"
16671       CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
16672       LIBS="$XML_LIBS $LIBS"
16673       rm -f conf.xmltest
16674       if test "$cross_compiling" = yes; then :
16675   echo $ac_n "cross compiling; assumed OK... $ac_c"
16676 else
16677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h.  */
16679
16680 #include <stdlib.h>
16681 #include <stdio.h>
16682 #include <string.h>
16683 #include <libxml/xmlversion.h>
16684
16685 int
16686 main()
16687 {
16688   int xml_major_version, xml_minor_version, xml_micro_version;
16689   int major, minor, micro;
16690   char *tmp_version;
16691
16692   system("touch conf.xmltest");
16693
16694   /* Capture xml2-config output via autoconf/configure variables */
16695   /* HP/UX 9 (%@#!) writes to sscanf strings */
16696   tmp_version = (char *)strdup("$min_xml_version");
16697   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
16698      printf("%s, bad version string from xml2-config\n", "$min_xml_version");
16699      exit(1);
16700    }
16701    free(tmp_version);
16702
16703    /* Capture the version information from the header files */
16704    tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
16705    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
16706      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
16707      exit(1);
16708    }
16709    free(tmp_version);
16710
16711  /* Compare xml2-config output to the libxml headers */
16712   if ((xml_major_version != $xml_config_major_version) ||
16713       (xml_minor_version != $xml_config_minor_version) ||
16714       (xml_micro_version != $xml_config_micro_version))
16715     {
16716       printf("*** libxml header files (version %d.%d.%d) do not match\n",
16717          xml_major_version, xml_minor_version, xml_micro_version);
16718       printf("*** xml2-config (version %d.%d.%d)\n",
16719          $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
16720       return 1;
16721     }
16722 /* Compare the headers to the library to make sure we match */
16723   /* Less than ideal -- doesn't provide us with return value feedback,
16724    * only exits if there's a serious mismatch between header and library.
16725    */
16726     LIBXML_TEST_VERSION;
16727
16728     /* Test that the library is greater than our minimum version */
16729     if ((xml_major_version > major) ||
16730         ((xml_major_version == major) && (xml_minor_version > minor)) ||
16731         ((xml_major_version == major) && (xml_minor_version == minor) &&
16732         (xml_micro_version >= micro)))
16733       {
16734         return 0;
16735        }
16736      else
16737       {
16738         printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
16739                xml_major_version, xml_minor_version, xml_micro_version);
16740         printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
16741            major, minor, micro);
16742         printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
16743         printf("***\n");
16744         printf("*** If you have already installed a sufficiently new version, this error\n");
16745         printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
16746         printf("*** being found. The easiest way to fix this is to remove the old version\n");
16747         printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
16748         printf("*** correct copy of xml2-config. (In this case, you will have to\n");
16749         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16750         printf("*** so that the correct libraries are found at run-time))\n");
16751     }
16752   return 1;
16753 }
16754
16755 _ACEOF
16756 if ac_fn_c_try_run "$LINENO"; then :
16757
16758 else
16759   no_xml=yes
16760 fi
16761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16762   conftest.$ac_objext conftest.beam conftest.$ac_ext
16763 fi
16764
16765        CPPFLAGS="$ac_save_CPPFLAGS"
16766        LIBS="$ac_save_LIBS"
16767      fi
16768   fi
16769
16770   if test "x$no_xml" = x ; then
16771      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
16772 $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
16773      :
16774   else
16775      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16776 $as_echo "no" >&6; }
16777      if test "$XML2_CONFIG" = "no" ; then
16778        echo "*** The xml2-config script installed by LIBXML could not be found"
16779        echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
16780        echo "*** your path, or set the XML2_CONFIG environment variable to the"
16781        echo "*** full path to xml2-config."
16782      else
16783        if test -f conf.xmltest ; then
16784         :
16785        else
16786           echo "*** Could not run libxml test program, checking why..."
16787           CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
16788           LIBS="$LIBS $XML_LIBS"
16789           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h.  */
16791
16792 #include <libxml/xmlversion.h>
16793 #include <stdio.h>
16794
16795 int
16796 main ()
16797 {
16798  LIBXML_TEST_VERSION; return 0;
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 if ac_fn_c_try_link "$LINENO"; then :
16804    echo "*** The test program compiled, but did not run. This usually means"
16805           echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
16806           echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
16807           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16808           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
16809           echo "*** is required on your system"
16810           echo "***"
16811           echo "*** If you have an old version installed, it is best to remove it, although"
16812           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16813 else
16814    echo "*** The test program failed to compile or link. See the file config.log for the"
16815           echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
16816           echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
16817           echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
16818 fi
16819 rm -f core conftest.err conftest.$ac_objext \
16820     conftest$ac_exeext conftest.$ac_ext
16821           CPPFLAGS="$ac_save_CPPFLAGS"
16822           LIBS="$ac_save_LIBS"
16823        fi
16824      fi
16825
16826      XML_CPPFLAGS=""
16827      XML_LIBS=""
16828      as_fn_error $? "limxml2 not found" "$LINENO" 5
16829   fi
16830
16831
16832   rm -f conf.xmltest
16833
16834 # Extract the first word of "m68hc05-as", so it can be a program name with args.
16835 set dummy m68hc05-as; ac_word=$2
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16837 $as_echo_n "checking for $ac_word... " >&6; }
16838 if ${ac_cv_path_TAS+:} false; then :
16839   $as_echo_n "(cached) " >&6
16840 else
16841   case $TAS in
16842   [\\/]* | ?:[\\/]*)
16843   ac_cv_path_TAS="$TAS" # Let the user override the test with a path.
16844   ;;
16845   *)
16846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16847 as_dummy="$PATH:$bindir:$prefix/bin"
16848 for as_dir in $as_dummy
16849 do
16850   IFS=$as_save_IFS
16851   test -z "$as_dir" && as_dir=.
16852     for ac_exec_ext in '' $ac_executable_extensions; do
16853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16854     ac_cv_path_TAS="$as_dir/$ac_word$ac_exec_ext"
16855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16856     break 2
16857   fi
16858 done
16859   done
16860 IFS=$as_save_IFS
16861
16862   ;;
16863 esac
16864 fi
16865 TAS=$ac_cv_path_TAS
16866 if test -n "$TAS"; then
16867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAS" >&5
16868 $as_echo "$TAS" >&6; }
16869 else
16870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16871 $as_echo "no" >&6; }
16872 fi
16873
16874
16875 # Extract the first word of "m68hc05-ld", so it can be a program name with args.
16876 set dummy m68hc05-ld; ac_word=$2
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16878 $as_echo_n "checking for $ac_word... " >&6; }
16879 if ${ac_cv_path_TLD+:} false; then :
16880   $as_echo_n "(cached) " >&6
16881 else
16882   case $TLD in
16883   [\\/]* | ?:[\\/]*)
16884   ac_cv_path_TLD="$TLD" # Let the user override the test with a path.
16885   ;;
16886   *)
16887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16888 as_dummy="$PATH:$bindir:$prefix/bin"
16889 for as_dir in $as_dummy
16890 do
16891   IFS=$as_save_IFS
16892   test -z "$as_dir" && as_dir=.
16893     for ac_exec_ext in '' $ac_executable_extensions; do
16894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16895     ac_cv_path_TLD="$as_dir/$ac_word$ac_exec_ext"
16896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16897     break 2
16898   fi
16899 done
16900   done
16901 IFS=$as_save_IFS
16902
16903   ;;
16904 esac
16905 fi
16906 TLD=$ac_cv_path_TLD
16907 if test -n "$TLD"; then
16908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TLD" >&5
16909 $as_echo "$TLD" >&6; }
16910 else
16911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16912 $as_echo "no" >&6; }
16913 fi
16914
16915
16916 # Extract the first word of "m68hc05-ar", so it can be a program name with args.
16917 set dummy m68hc05-ar; ac_word=$2
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16919 $as_echo_n "checking for $ac_word... " >&6; }
16920 if ${ac_cv_path_TAR+:} false; then :
16921   $as_echo_n "(cached) " >&6
16922 else
16923   case $TAR in
16924   [\\/]* | ?:[\\/]*)
16925   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
16926   ;;
16927   *)
16928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16929 as_dummy="$PATH:$bindir:$prefix/bin"
16930 for as_dir in $as_dummy
16931 do
16932   IFS=$as_save_IFS
16933   test -z "$as_dir" && as_dir=.
16934     for ac_exec_ext in '' $ac_executable_extensions; do
16935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16936     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
16937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16938     break 2
16939   fi
16940 done
16941   done
16942 IFS=$as_save_IFS
16943
16944   ;;
16945 esac
16946 fi
16947 TAR=$ac_cv_path_TAR
16948 if test -n "$TAR"; then
16949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
16950 $as_echo "$TAR" >&6; }
16951 else
16952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953 $as_echo "no" >&6; }
16954 fi
16955
16956
16957 # Extract the first word of "m68hc05-ranlib", so it can be a program name with args.
16958 set dummy m68hc05-ranlib; ac_word=$2
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16960 $as_echo_n "checking for $ac_word... " >&6; }
16961 if ${ac_cv_path_TRANLIB+:} false; then :
16962   $as_echo_n "(cached) " >&6
16963 else
16964   case $TRANLIB in
16965   [\\/]* | ?:[\\/]*)
16966   ac_cv_path_TRANLIB="$TRANLIB" # Let the user override the test with a path.
16967   ;;
16968   *)
16969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16970 as_dummy="$PATH:$bindir:$prefix/bin"
16971 for as_dir in $as_dummy
16972 do
16973   IFS=$as_save_IFS
16974   test -z "$as_dir" && as_dir=.
16975     for ac_exec_ext in '' $ac_executable_extensions; do
16976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16977     ac_cv_path_TRANLIB="$as_dir/$ac_word$ac_exec_ext"
16978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16979     break 2
16980   fi
16981 done
16982   done
16983 IFS=$as_save_IFS
16984
16985   ;;
16986 esac
16987 fi
16988 TRANLIB=$ac_cv_path_TRANLIB
16989 if test -n "$TRANLIB"; then
16990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANLIB" >&5
16991 $as_echo "$TRANLIB" >&6; }
16992 else
16993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16994 $as_echo "no" >&6; }
16995 fi
16996
16997
16998 # Extract the first word of "m68hc05-gcc", so it can be a program name with args.
16999 set dummy m68hc05-gcc; ac_word=$2
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17001 $as_echo_n "checking for $ac_word... " >&6; }
17002 if ${ac_cv_path_TGCC+:} false; then :
17003   $as_echo_n "(cached) " >&6
17004 else
17005   case $TGCC in
17006   [\\/]* | ?:[\\/]*)
17007   ac_cv_path_TGCC="$TGCC" # Let the user override the test with a path.
17008   ;;
17009   *)
17010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17011 as_dummy="$PATH:$bindir:$prefix/bin"
17012 for as_dir in $as_dummy
17013 do
17014   IFS=$as_save_IFS
17015   test -z "$as_dir" && as_dir=.
17016     for ac_exec_ext in '' $ac_executable_extensions; do
17017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17018     ac_cv_path_TGCC="$as_dir/$ac_word$ac_exec_ext"
17019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17020     break 2
17021   fi
17022 done
17023   done
17024 IFS=$as_save_IFS
17025
17026   ;;
17027 esac
17028 fi
17029 TGCC=$ac_cv_path_TGCC
17030 if test -n "$TGCC"; then
17031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TGCC" >&5
17032 $as_echo "$TGCC" >&6; }
17033 else
17034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17035 $as_echo "no" >&6; }
17036 fi
17037
17038
17039
17040 test -z "$TAS" && as_fn_error $? "m68hc05-as not found" "$LINENO" 5
17041 test -z "$TAR" && as_fn_error $? "m68hc05-ar not found" "$LINENO" 5
17042 test -z "$TLD" && as_fn_error $? "m68hc05-ld not found" "$LINENO" 5
17043 test -z "$TRANLIB" && as_fn_error $? "m68hc05 ranlib not found" "$LINENO" 5
17044 test -z "$TGCC" && as_fn_error $? "m68hc05 gcc not found" "$LINENO" 5
17045
17046 fi
17047
17048 # Check whether --enable-ft12 was given.
17049 if test "${enable_ft12+set}" = set; then :
17050   enableval=$enable_ft12; case "${enableval}" in
17051  yes) ft12=true ;;
17052   no)  ft12=false ;;
17053    *) as_fn_error $? "bad value ${enableval} for --enable-ft12" "$LINENO" 5 ;;
17054  esac
17055 else
17056   ft12=false
17057 fi
17058
17059  if test x$ft12 = xtrue; then
17060   HAVE_FT12_TRUE=
17061   HAVE_FT12_FALSE='#'
17062 else
17063   HAVE_FT12_TRUE='#'
17064   HAVE_FT12_FALSE=
17065 fi
17066
17067 if test x$ft12 = xtrue ; then
17068
17069 $as_echo "#define HAVE_FT12 1 " >>confdefs.h
17070
17071 fi
17072
17073 # Check whether --enable-pei16 was given.
17074 if test "${enable_pei16+set}" = set; then :
17075   enableval=$enable_pei16; case "${enableval}" in
17076  yes) pei16=true ;;
17077   no)  pei16=false ;;
17078    *) as_fn_error $? "bad value ${enableval} for --enable-pei16" "$LINENO" 5 ;;
17079  esac
17080 else
17081   pei16=false
17082 fi
17083
17084  if test x$pei16 = xtrue; then
17085   HAVE_PEI16_TRUE=
17086   HAVE_PEI16_FALSE='#'
17087 else
17088   HAVE_PEI16_TRUE='#'
17089   HAVE_PEI16_FALSE=
17090 fi
17091
17092 if test x$pei16 = xtrue; then
17093
17094 $as_echo "#define HAVE_PEI16 1 " >>confdefs.h
17095
17096 fi
17097
17098 # Check whether --enable-tpuart was given.
17099 if test "${enable_tpuart+set}" = set; then :
17100   enableval=$enable_tpuart; case "${enableval}" in
17101  yes) tpuart=true ;;
17102   no)  tpuart=false ;;
17103    *) as_fn_error $? "bad value ${enableval} for --enable-tpuart" "$LINENO" 5 ;;
17104  esac
17105 else
17106   tpuart=false
17107 fi
17108
17109  if test x$tpuart = xtrue; then
17110   HAVE_TPUART_TRUE=
17111   HAVE_TPUART_FALSE='#'
17112 else
17113   HAVE_TPUART_TRUE='#'
17114   HAVE_TPUART_FALSE=
17115 fi
17116
17117 if test x$tpuart = xtrue ; then
17118
17119 $as_echo "#define HAVE_TPUART 1 " >>confdefs.h
17120
17121 fi
17122
17123 # Check whether --enable-pei16s was given.
17124 if test "${enable_pei16s+set}" = set; then :
17125   enableval=$enable_pei16s; case "${enableval}" in
17126  yes) pei16s=true ;;
17127   no)  pei16s=false ;;
17128    *) as_fn_error $? "bad value ${enableval} for --enable-pei16s" "$LINENO" 5 ;;
17129  esac
17130 else
17131   pei16s=false
17132 fi
17133
17134  if test x$pei16s = xtrue; then
17135   HAVE_PEI16s_TRUE=
17136   HAVE_PEI16s_FALSE='#'
17137 else
17138   HAVE_PEI16s_TRUE='#'
17139   HAVE_PEI16s_FALSE=
17140 fi
17141
17142 if test x$pei16s = xtrue ; then
17143
17144 $as_echo "#define HAVE_PEI16s 1 " >>confdefs.h
17145
17146 fi
17147
17148 # Check whether --enable-tpuarts was given.
17149 if test "${enable_tpuarts+set}" = set; then :
17150   enableval=$enable_tpuarts; case "${enableval}" in
17151  yes) tpuarts=true ;;
17152   no)  tpuarts=false ;;
17153    *) as_fn_error $? "bad value ${enableval} for --enable-tpuarts" "$LINENO" 5 ;;
17154  esac
17155 else
17156   tpuarts=false
17157 fi
17158
17159  if test x$tpuarts = xtrue; then
17160   HAVE_TPUARTs_TRUE=
17161   HAVE_TPUARTs_FALSE='#'
17162 else
17163   HAVE_TPUARTs_TRUE='#'
17164   HAVE_TPUARTs_FALSE=
17165 fi
17166
17167 if test x$tpuarts = xtrue ; then
17168
17169 $as_echo "#define HAVE_TPUARTs 1 " >>confdefs.h
17170
17171 fi
17172
17173 # Check whether --enable-eibnetip was given.
17174 if test "${enable_eibnetip+set}" = set; then :
17175   enableval=$enable_eibnetip; case "${enableval}" in
17176  yes) eibnetip=true ;;
17177   no)  eibnetip=false ;;
17178    *) as_fn_error $? "bad value ${enableval} for --enable-eibnetip" "$LINENO" 5 ;;
17179  esac
17180 else
17181   eibnetip=false
17182 fi
17183
17184  if test x$eibnetip = xtrue; then
17185   HAVE_EIBNETIP_TRUE=
17186   HAVE_EIBNETIP_FALSE='#'
17187 else
17188   HAVE_EIBNETIP_TRUE='#'
17189   HAVE_EIBNETIP_FALSE=
17190 fi
17191
17192 if test x$eibnetip = xtrue ; then
17193
17194 $as_echo "#define HAVE_EIBNETIP 1 " >>confdefs.h
17195
17196 fi
17197
17198 # Check whether --enable-eibnetiptunnel was given.
17199 if test "${enable_eibnetiptunnel+set}" = set; then :
17200   enableval=$enable_eibnetiptunnel; case "${enableval}" in
17201  yes) eibnetiptunnel=true ;;
17202   no)  eibnetiptunnel=false ;;
17203    *) as_fn_error $? "bad value ${enableval} for --enable-eibnetiptunnel" "$LINENO" 5 ;;
17204  esac
17205 else
17206   eibnetiptunnel=false
17207 fi
17208
17209  if test x$eibnetiptunnel = xtrue; then
17210   HAVE_EIBNETIPTUNNEL_TRUE=
17211   HAVE_EIBNETIPTUNNEL_FALSE='#'
17212 else
17213   HAVE_EIBNETIPTUNNEL_TRUE='#'
17214   HAVE_EIBNETIPTUNNEL_FALSE=
17215 fi
17216
17217 if test x$eibnetiptunnel = xtrue ; then
17218  if test x$have_source_info != xyes ; then
17219   as_fn_error $? "not all needed functions for EIBnet/IP tunneling backend available" "$LINENO" 5
17220  fi
17221
17222 $as_echo "#define HAVE_EIBNETIPTUNNEL 1 " >>confdefs.h
17223
17224 fi
17225
17226 # Check whether --enable-usb was given.
17227 if test "${enable_usb+set}" = set; then :
17228   enableval=$enable_usb; case "${enableval}" in
17229  yes) usb=true ;;
17230   no)  usb=false ;;
17231    *) as_fn_error $? "bad value ${enableval} for --enable-usb" "$LINENO" 5 ;;
17232  esac
17233 else
17234   usb=false
17235 fi
17236
17237  if test x$usb = xtrue; then
17238   HAVE_USB_TRUE=
17239   HAVE_USB_FALSE='#'
17240 else
17241   HAVE_USB_TRUE='#'
17242   HAVE_USB_FALSE=
17243 fi
17244
17245 if test x$usb = xtrue ; then
17246  if test x$have_usb != xyes ; then
17247   as_fn_error $? "not all needed functions for USB backend available" "$LINENO" 5
17248  fi
17249
17250 $as_echo "#define HAVE_USB 1 " >>confdefs.h
17251
17252 fi
17253
17254 # Check whether --enable-eibnetipserver was given.
17255 if test "${enable_eibnetipserver+set}" = set; then :
17256   enableval=$enable_eibnetipserver; case "${enableval}" in
17257  yes) eibnetipserver=true ;;
17258   no)  eibnetipserver=false ;;
17259    *) as_fn_error $? "bad value ${enableval} for --enable-eibnetipserver" "$LINENO" 5 ;;
17260  esac
17261 else
17262   eibnetipserver=false
17263 fi
17264
17265 if test x$eibnetipserver = xtrue ; then
17266  if test x$have_source_info != xyes ; then
17267   as_fn_error $? "not all needed functions for EIBnet/IP server available" "$LINENO" 5
17268  fi
17269
17270 $as_echo "#define HAVE_EIBNETIPSERVER 1 " >>confdefs.h
17271
17272 fi
17273
17274 # Check whether --enable-groupcache was given.
17275 if test "${enable_groupcache+set}" = set; then :
17276   enableval=$enable_groupcache; case "${enableval}" in
17277  yes) groupcache=true ;;
17278   no)  groupcache=false ;;
17279    *) as_fn_error $? "bad value ${enableval} for --enable-groupcache" "$LINENO" 5 ;;
17280  esac
17281 else
17282   groupcache=true
17283 fi
17284
17285 if test x$groupcache = xtrue ; then
17286
17287 $as_echo "#define HAVE_GROUPCACHE 1 " >>confdefs.h
17288
17289 fi
17290
17291
17292  if test x$have_source_info = xyes ; then
17293   HAVE_SOURCE_INFO_TRUE=
17294   HAVE_SOURCE_INFO_FALSE='#'
17295 else
17296   HAVE_SOURCE_INFO_TRUE='#'
17297   HAVE_SOURCE_INFO_FALSE=
17298 fi
17299
17300
17301 for ac_prog in indent
17302 do
17303   # Extract the first word of "$ac_prog", so it can be a program name with args.
17304 set dummy $ac_prog; ac_word=$2
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17306 $as_echo_n "checking for $ac_word... " >&6; }
17307 if ${ac_cv_prog_INDENT+:} false; then :
17308   $as_echo_n "(cached) " >&6
17309 else
17310   if test -n "$INDENT"; then
17311   ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
17312 else
17313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17314 for as_dir in $PATH
17315 do
17316   IFS=$as_save_IFS
17317   test -z "$as_dir" && as_dir=.
17318     for ac_exec_ext in '' $ac_executable_extensions; do
17319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17320     ac_cv_prog_INDENT="$ac_prog"
17321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17322     break 2
17323   fi
17324 done
17325   done
17326 IFS=$as_save_IFS
17327
17328 fi
17329 fi
17330 INDENT=$ac_cv_prog_INDENT
17331 if test -n "$INDENT"; then
17332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
17333 $as_echo "$INDENT" >&6; }
17334 else
17335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17336 $as_echo "no" >&6; }
17337 fi
17338
17339
17340   test -n "$INDENT" && break
17341 done
17342 test -n "$INDENT" || INDENT="no"
17343
17344 for ac_prog in fastjar jar
17345 do
17346   # Extract the first word of "$ac_prog", so it can be a program name with args.
17347 set dummy $ac_prog; ac_word=$2
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17349 $as_echo_n "checking for $ac_word... " >&6; }
17350 if ${ac_cv_prog_JAR+:} false; then :
17351   $as_echo_n "(cached) " >&6
17352 else
17353   if test -n "$JAR"; then
17354   ac_cv_prog_JAR="$JAR" # Let the user override the test.
17355 else
17356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17357 for as_dir in $PATH
17358 do
17359   IFS=$as_save_IFS
17360   test -z "$as_dir" && as_dir=.
17361     for ac_exec_ext in '' $ac_executable_extensions; do
17362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17363     ac_cv_prog_JAR="$ac_prog"
17364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17365     break 2
17366   fi
17367 done
17368   done
17369 IFS=$as_save_IFS
17370
17371 fi
17372 fi
17373 JAR=$ac_cv_prog_JAR
17374 if test -n "$JAR"; then
17375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
17376 $as_echo "$JAR" >&6; }
17377 else
17378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17379 $as_echo "no" >&6; }
17380 fi
17381
17382
17383   test -n "$JAR" && break
17384 done
17385 test -n "$JAR" || JAR="no"
17386
17387 for ac_prog in "gcj -C" javac
17388 do
17389   # Extract the first word of "$ac_prog", so it can be a program name with args.
17390 set dummy $ac_prog; ac_word=$2
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17392 $as_echo_n "checking for $ac_word... " >&6; }
17393 if ${ac_cv_prog_JAVAC+:} false; then :
17394   $as_echo_n "(cached) " >&6
17395 else
17396   if test -n "$JAVAC"; then
17397   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
17398 else
17399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17400 for as_dir in $PATH
17401 do
17402   IFS=$as_save_IFS
17403   test -z "$as_dir" && as_dir=.
17404     for ac_exec_ext in '' $ac_executable_extensions; do
17405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17406     ac_cv_prog_JAVAC="$ac_prog"
17407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17408     break 2
17409   fi
17410 done
17411   done
17412 IFS=$as_save_IFS
17413
17414 fi
17415 fi
17416 JAVAC=$ac_cv_prog_JAVAC
17417 if test -n "$JAVAC"; then
17418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
17419 $as_echo "$JAVAC" >&6; }
17420 else
17421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17422 $as_echo "no" >&6; }
17423 fi
17424
17425
17426   test -n "$JAVAC" && break
17427 done
17428 test -n "$JAVAC" || JAVAC="no"
17429
17430
17431 # Check whether --enable-java was given.
17432 if test "${enable_java+set}" = set; then :
17433   enableval=$enable_java; case "${enableval}" in
17434  yes) enablejava=true ;;
17435   no)  enablejava=false ;;
17436    *) as_fn_error $? "bad value ${enableval} for --enable-java" "$LINENO" 5 ;;
17437  esac
17438 else
17439   enablejava=false
17440 fi
17441
17442 if test x$enablejava = xtrue ; then
17443
17444 $as_echo "#define BUILD_JAVA 1 " >>confdefs.h
17445
17446
17447  if test x"$JAVAC" = xno ; then
17448   as_fn_error $? "no java compiler found" "$LINENO" 5
17449  fi
17450
17451  if test x"$JAR" = xno ; then
17452   as_fn_error $? "jar not found" "$LINENO" 5
17453  fi
17454
17455 fi
17456
17457
17458 # Check whether --with-libstdc was given.
17459 if test "${with_libstdc+set}" = set; then :
17460   withval=$with_libstdc; case "${withval}" in
17461  yes) use_libstdc=true ;;
17462   no)  use_libstdc=false ;;
17463    *) as_fn_error $? "bad value ${withval} for --with-libstdc" "$LINENO" 5 ;;
17464  esac
17465 else
17466   use_libstdc=true
17467 fi
17468
17469 if test x$use_libstdc = xfalse ; then
17470
17471 $as_echo "#define USE_NOLIBSTDC 1 " >>confdefs.h
17472
17473  CXX=$CC
17474 fi
17475
17476  if test x$enablejava = xtrue ; then
17477   BUILD_JAVA_TRUE=
17478   BUILD_JAVA_FALSE='#'
17479 else
17480   BUILD_JAVA_TRUE='#'
17481   BUILD_JAVA_FALSE=
17482 fi
17483
17484
17485 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
17486 #include <sys/types.h>
17487 #include <sys/socket.h>
17488 #include <netinet/in.h>
17489
17490 "
17491 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
17492
17493 $as_echo "#define HAVE_SOCKADDR_IN_LEN 1" >>confdefs.h
17494
17495 fi
17496
17497
17498 ac_config_headers="$ac_config_headers config.h"
17499
17500 ac_config_files="$ac_config_files Makefile common/Makefile eibd/Makefile eibd/include/Makefile eibd/client/Makefile eibd/examples/Makefile eibd/libserver/Makefile eibd/server/Makefile eibd/backend/Makefile eibd/client/def/Makefile eibd/client/c/Makefile eibd/client/java/Makefile eibd/client/php/Makefile eibd/client/cs/Makefile eibd/client/perl/Makefile eibd/client/python/Makefile eibd/client/pascal/Makefile eibd/eibnet/Makefile eibd/bcu/Makefile eibd/usb/Makefile xml/Makefile xml/gui/Makefile xml/gui/examples/Makefile bcu/Makefile bcu/lib/Makefile bcu/include/Makefile bcu/ldscripts/Makefile bcugen/Makefile bcugen/struct/Makefile bcugen/configfile/Makefile bcugen/lib/Makefile archive/Makefile build/Makefile contrib/Makefile debian/Makefile"
17501
17502 cat >confcache <<\_ACEOF
17503 # This file is a shell script that caches the results of configure
17504 # tests run on this system so they can be shared between configure
17505 # scripts and configure runs, see configure's option --config-cache.
17506 # It is not useful on other systems.  If it contains results you don't
17507 # want to keep, you may remove or edit it.
17508 #
17509 # config.status only pays attention to the cache file if you give it
17510 # the --recheck option to rerun configure.
17511 #
17512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17514 # following values.
17515
17516 _ACEOF
17517
17518 # The following way of writing the cache mishandles newlines in values,
17519 # but we know of no workaround that is simple, portable, and efficient.
17520 # So, we kill variables containing newlines.
17521 # Ultrix sh set writes to stderr and can't be redirected directly,
17522 # and sets the high bit in the cache file unless we assign to the vars.
17523 (
17524   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17525     eval ac_val=\$$ac_var
17526     case $ac_val in #(
17527     *${as_nl}*)
17528       case $ac_var in #(
17529       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17531       esac
17532       case $ac_var in #(
17533       _ | IFS | as_nl) ;; #(
17534       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17535       *) { eval $ac_var=; unset $ac_var;} ;;
17536       esac ;;
17537     esac
17538   done
17539
17540   (set) 2>&1 |
17541     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17542     *${as_nl}ac_space=\ *)
17543       # `set' does not quote correctly, so add quotes: double-quote
17544       # substitution turns \\\\ into \\, and sed turns \\ into \.
17545       sed -n \
17546         "s/'/'\\\\''/g;
17547           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17548       ;; #(
17549     *)
17550       # `set' quotes correctly as required by POSIX, so do not add quotes.
17551       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17552       ;;
17553     esac |
17554     sort
17555 ) |
17556   sed '
17557      /^ac_cv_env_/b end
17558      t clear
17559      :clear
17560      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17561      t end
17562      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17563      :end' >>confcache
17564 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17565   if test -w "$cache_file"; then
17566     if test "x$cache_file" != "x/dev/null"; then
17567       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17568 $as_echo "$as_me: updating cache $cache_file" >&6;}
17569       if test ! -f "$cache_file" || test -h "$cache_file"; then
17570         cat confcache >"$cache_file"
17571       else
17572         case $cache_file in #(
17573         */* | ?:*)
17574           mv -f confcache "$cache_file"$$ &&
17575           mv -f "$cache_file"$$ "$cache_file" ;; #(
17576         *)
17577           mv -f confcache "$cache_file" ;;
17578         esac
17579       fi
17580     fi
17581   else
17582     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17583 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17584   fi
17585 fi
17586 rm -f confcache
17587
17588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17589 # Let make expand exec_prefix.
17590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17591
17592 DEFS=-DHAVE_CONFIG_H
17593
17594 ac_libobjs=
17595 ac_ltlibobjs=
17596 U=
17597 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17598   # 1. Remove the extension, and $U if already installed.
17599   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17600   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17601   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17602   #    will be set to the directory where LIBOBJS objects are built.
17603   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17604   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17605 done
17606 LIBOBJS=$ac_libobjs
17607
17608 LTLIBOBJS=$ac_ltlibobjs
17609
17610
17611  if test -n "$EXEEXT"; then
17612   am__EXEEXT_TRUE=
17613   am__EXEEXT_FALSE='#'
17614 else
17615   am__EXEEXT_TRUE='#'
17616   am__EXEEXT_FALSE=
17617 fi
17618
17619 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17620   as_fn_error $? "conditional \"AMDEP\" was never defined.
17621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17622 fi
17623 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17624   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17626 fi
17627 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17628   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17630 fi
17631 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17632   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17634 fi
17635 if test -z "${LINUX_API_TRUE}" && test -z "${LINUX_API_FALSE}"; then
17636   as_fn_error $? "conditional \"LINUX_API\" was never defined.
17637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17638 fi
17639 if test -z "${HAVE_ONLYEIBD_TRUE}" && test -z "${HAVE_ONLYEIBD_FALSE}"; then
17640   as_fn_error $? "conditional \"HAVE_ONLYEIBD\" was never defined.
17641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17642 fi
17643 if test -z "${HAVE_FT12_TRUE}" && test -z "${HAVE_FT12_FALSE}"; then
17644   as_fn_error $? "conditional \"HAVE_FT12\" was never defined.
17645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17646 fi
17647 if test -z "${HAVE_PEI16_TRUE}" && test -z "${HAVE_PEI16_FALSE}"; then
17648   as_fn_error $? "conditional \"HAVE_PEI16\" was never defined.
17649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17650 fi
17651 if test -z "${HAVE_TPUART_TRUE}" && test -z "${HAVE_TPUART_FALSE}"; then
17652   as_fn_error $? "conditional \"HAVE_TPUART\" was never defined.
17653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17654 fi
17655 if test -z "${HAVE_PEI16s_TRUE}" && test -z "${HAVE_PEI16s_FALSE}"; then
17656   as_fn_error $? "conditional \"HAVE_PEI16s\" was never defined.
17657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17658 fi
17659 if test -z "${HAVE_TPUARTs_TRUE}" && test -z "${HAVE_TPUARTs_FALSE}"; then
17660   as_fn_error $? "conditional \"HAVE_TPUARTs\" was never defined.
17661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17662 fi
17663 if test -z "${HAVE_EIBNETIP_TRUE}" && test -z "${HAVE_EIBNETIP_FALSE}"; then
17664   as_fn_error $? "conditional \"HAVE_EIBNETIP\" was never defined.
17665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17666 fi
17667 if test -z "${HAVE_EIBNETIPTUNNEL_TRUE}" && test -z "${HAVE_EIBNETIPTUNNEL_FALSE}"; then
17668   as_fn_error $? "conditional \"HAVE_EIBNETIPTUNNEL\" was never defined.
17669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17670 fi
17671 if test -z "${HAVE_USB_TRUE}" && test -z "${HAVE_USB_FALSE}"; then
17672   as_fn_error $? "conditional \"HAVE_USB\" was never defined.
17673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17674 fi
17675 if test -z "${HAVE_SOURCE_INFO_TRUE}" && test -z "${HAVE_SOURCE_INFO_FALSE}"; then
17676   as_fn_error $? "conditional \"HAVE_SOURCE_INFO\" was never defined.
17677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17678 fi
17679 if test -z "${BUILD_JAVA_TRUE}" && test -z "${BUILD_JAVA_FALSE}"; then
17680   as_fn_error $? "conditional \"BUILD_JAVA\" was never defined.
17681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17682 fi
17683
17684 : "${CONFIG_STATUS=./config.status}"
17685 ac_write_fail=0
17686 ac_clean_files_save=$ac_clean_files
17687 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17689 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17690 as_write_fail=0
17691 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17692 #! $SHELL
17693 # Generated by $as_me.
17694 # Run this file to recreate the current configuration.
17695 # Compiler output produced by configure, useful for debugging
17696 # configure, is in config.log if it exists.
17697
17698 debug=false
17699 ac_cs_recheck=false
17700 ac_cs_silent=false
17701
17702 SHELL=\${CONFIG_SHELL-$SHELL}
17703 export SHELL
17704 _ASEOF
17705 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17706 ## -------------------- ##
17707 ## M4sh Initialization. ##
17708 ## -------------------- ##
17709
17710 # Be more Bourne compatible
17711 DUALCASE=1; export DUALCASE # for MKS sh
17712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17713   emulate sh
17714   NULLCMD=:
17715   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17716   # is contrary to our usage.  Disable this feature.
17717   alias -g '${1+"$@"}'='"$@"'
17718   setopt NO_GLOB_SUBST
17719 else
17720   case `(set -o) 2>/dev/null` in #(
17721   *posix*) :
17722     set -o posix ;; #(
17723   *) :
17724      ;;
17725 esac
17726 fi
17727
17728
17729 as_nl='
17730 '
17731 export as_nl
17732 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17733 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17736 # Prefer a ksh shell builtin over an external printf program on Solaris,
17737 # but without wasting forks for bash or zsh.
17738 if test -z "$BASH_VERSION$ZSH_VERSION" \
17739     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17740   as_echo='print -r --'
17741   as_echo_n='print -rn --'
17742 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17743   as_echo='printf %s\n'
17744   as_echo_n='printf %s'
17745 else
17746   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17747     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17748     as_echo_n='/usr/ucb/echo -n'
17749   else
17750     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17751     as_echo_n_body='eval
17752       arg=$1;
17753       case $arg in #(
17754       *"$as_nl"*)
17755         expr "X$arg" : "X\\(.*\\)$as_nl";
17756         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17757       esac;
17758       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17759     '
17760     export as_echo_n_body
17761     as_echo_n='sh -c $as_echo_n_body as_echo'
17762   fi
17763   export as_echo_body
17764   as_echo='sh -c $as_echo_body as_echo'
17765 fi
17766
17767 # The user is always right.
17768 if test "${PATH_SEPARATOR+set}" != set; then
17769   PATH_SEPARATOR=:
17770   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17771     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17772       PATH_SEPARATOR=';'
17773   }
17774 fi
17775
17776
17777 # IFS
17778 # We need space, tab and new line, in precisely that order.  Quoting is
17779 # there to prevent editors from complaining about space-tab.
17780 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17781 # splitting by setting IFS to empty value.)
17782 IFS=" ""        $as_nl"
17783
17784 # Find who we are.  Look in the path if we contain no directory separator.
17785 as_myself=
17786 case $0 in #((
17787   *[\\/]* ) as_myself=$0 ;;
17788   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17789 for as_dir in $PATH
17790 do
17791   IFS=$as_save_IFS
17792   test -z "$as_dir" && as_dir=.
17793     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17794   done
17795 IFS=$as_save_IFS
17796
17797      ;;
17798 esac
17799 # We did not find ourselves, most probably we were run as `sh COMMAND'
17800 # in which case we are not to be found in the path.
17801 if test "x$as_myself" = x; then
17802   as_myself=$0
17803 fi
17804 if test ! -f "$as_myself"; then
17805   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17806   exit 1
17807 fi
17808
17809 # Unset variables that we do not need and which cause bugs (e.g. in
17810 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17811 # suppresses any "Segmentation fault" message there.  '((' could
17812 # trigger a bug in pdksh 5.2.14.
17813 for as_var in BASH_ENV ENV MAIL MAILPATH
17814 do eval test x\${$as_var+set} = xset \
17815   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17816 done
17817 PS1='$ '
17818 PS2='> '
17819 PS4='+ '
17820
17821 # NLS nuisances.
17822 LC_ALL=C
17823 export LC_ALL
17824 LANGUAGE=C
17825 export LANGUAGE
17826
17827 # CDPATH.
17828 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17829
17830
17831 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17832 # ----------------------------------------
17833 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17834 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17835 # script with STATUS, using 1 if that was 0.
17836 as_fn_error ()
17837 {
17838   as_status=$1; test $as_status -eq 0 && as_status=1
17839   if test "$4"; then
17840     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17841     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17842   fi
17843   $as_echo "$as_me: error: $2" >&2
17844   as_fn_exit $as_status
17845 } # as_fn_error
17846
17847
17848 # as_fn_set_status STATUS
17849 # -----------------------
17850 # Set $? to STATUS, without forking.
17851 as_fn_set_status ()
17852 {
17853   return $1
17854 } # as_fn_set_status
17855
17856 # as_fn_exit STATUS
17857 # -----------------
17858 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17859 as_fn_exit ()
17860 {
17861   set +e
17862   as_fn_set_status $1
17863   exit $1
17864 } # as_fn_exit
17865
17866 # as_fn_unset VAR
17867 # ---------------
17868 # Portably unset VAR.
17869 as_fn_unset ()
17870 {
17871   { eval $1=; unset $1;}
17872 }
17873 as_unset=as_fn_unset
17874 # as_fn_append VAR VALUE
17875 # ----------------------
17876 # Append the text in VALUE to the end of the definition contained in VAR. Take
17877 # advantage of any shell optimizations that allow amortized linear growth over
17878 # repeated appends, instead of the typical quadratic growth present in naive
17879 # implementations.
17880 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17881   eval 'as_fn_append ()
17882   {
17883     eval $1+=\$2
17884   }'
17885 else
17886   as_fn_append ()
17887   {
17888     eval $1=\$$1\$2
17889   }
17890 fi # as_fn_append
17891
17892 # as_fn_arith ARG...
17893 # ------------------
17894 # Perform arithmetic evaluation on the ARGs, and store the result in the
17895 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17896 # must be portable across $(()) and expr.
17897 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17898   eval 'as_fn_arith ()
17899   {
17900     as_val=$(( $* ))
17901   }'
17902 else
17903   as_fn_arith ()
17904   {
17905     as_val=`expr "$@" || test $? -eq 1`
17906   }
17907 fi # as_fn_arith
17908
17909
17910 if expr a : '\(a\)' >/dev/null 2>&1 &&
17911    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17912   as_expr=expr
17913 else
17914   as_expr=false
17915 fi
17916
17917 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17918   as_basename=basename
17919 else
17920   as_basename=false
17921 fi
17922
17923 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17924   as_dirname=dirname
17925 else
17926   as_dirname=false
17927 fi
17928
17929 as_me=`$as_basename -- "$0" ||
17930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17931          X"$0" : 'X\(//\)$' \| \
17932          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17933 $as_echo X/"$0" |
17934     sed '/^.*\/\([^/][^/]*\)\/*$/{
17935             s//\1/
17936             q
17937           }
17938           /^X\/\(\/\/\)$/{
17939             s//\1/
17940             q
17941           }
17942           /^X\/\(\/\).*/{
17943             s//\1/
17944             q
17945           }
17946           s/.*/./; q'`
17947
17948 # Avoid depending upon Character Ranges.
17949 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17950 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17951 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17952 as_cr_digits='0123456789'
17953 as_cr_alnum=$as_cr_Letters$as_cr_digits
17954
17955 ECHO_C= ECHO_N= ECHO_T=
17956 case `echo -n x` in #(((((
17957 -n*)
17958   case `echo 'xy\c'` in
17959   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17960   xy)  ECHO_C='\c';;
17961   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17962        ECHO_T=' ';;
17963   esac;;
17964 *)
17965   ECHO_N='-n';;
17966 esac
17967
17968 rm -f conf$$ conf$$.exe conf$$.file
17969 if test -d conf$$.dir; then
17970   rm -f conf$$.dir/conf$$.file
17971 else
17972   rm -f conf$$.dir
17973   mkdir conf$$.dir 2>/dev/null
17974 fi
17975 if (echo >conf$$.file) 2>/dev/null; then
17976   if ln -s conf$$.file conf$$ 2>/dev/null; then
17977     as_ln_s='ln -s'
17978     # ... but there are two gotchas:
17979     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17980     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17981     # In both cases, we have to default to `cp -p'.
17982     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17983       as_ln_s='cp -p'
17984   elif ln conf$$.file conf$$ 2>/dev/null; then
17985     as_ln_s=ln
17986   else
17987     as_ln_s='cp -p'
17988   fi
17989 else
17990   as_ln_s='cp -p'
17991 fi
17992 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17993 rmdir conf$$.dir 2>/dev/null
17994
17995
17996 # as_fn_mkdir_p
17997 # -------------
17998 # Create "$as_dir" as a directory, including parents if necessary.
17999 as_fn_mkdir_p ()
18000 {
18001
18002   case $as_dir in #(
18003   -*) as_dir=./$as_dir;;
18004   esac
18005   test -d "$as_dir" || eval $as_mkdir_p || {
18006     as_dirs=
18007     while :; do
18008       case $as_dir in #(
18009       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18010       *) as_qdir=$as_dir;;
18011       esac
18012       as_dirs="'$as_qdir' $as_dirs"
18013       as_dir=`$as_dirname -- "$as_dir" ||
18014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18015          X"$as_dir" : 'X\(//\)[^/]' \| \
18016          X"$as_dir" : 'X\(//\)$' \| \
18017          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18018 $as_echo X"$as_dir" |
18019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18020             s//\1/
18021             q
18022           }
18023           /^X\(\/\/\)[^/].*/{
18024             s//\1/
18025             q
18026           }
18027           /^X\(\/\/\)$/{
18028             s//\1/
18029             q
18030           }
18031           /^X\(\/\).*/{
18032             s//\1/
18033             q
18034           }
18035           s/.*/./; q'`
18036       test -d "$as_dir" && break
18037     done
18038     test -z "$as_dirs" || eval "mkdir $as_dirs"
18039   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18040
18041
18042 } # as_fn_mkdir_p
18043 if mkdir -p . 2>/dev/null; then
18044   as_mkdir_p='mkdir -p "$as_dir"'
18045 else
18046   test -d ./-p && rmdir ./-p
18047   as_mkdir_p=false
18048 fi
18049
18050 if test -x / >/dev/null 2>&1; then
18051   as_test_x='test -x'
18052 else
18053   if ls -dL / >/dev/null 2>&1; then
18054     as_ls_L_option=L
18055   else
18056     as_ls_L_option=
18057   fi
18058   as_test_x='
18059     eval sh -c '\''
18060       if test -d "$1"; then
18061         test -d "$1/.";
18062       else
18063         case $1 in #(
18064         -*)set "./$1";;
18065         esac;
18066         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18067         ???[sx]*):;;*)false;;esac;fi
18068     '\'' sh
18069   '
18070 fi
18071 as_executable_p=$as_test_x
18072
18073 # Sed expression to map a string onto a valid CPP name.
18074 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18075
18076 # Sed expression to map a string onto a valid variable name.
18077 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18078
18079
18080 exec 6>&1
18081 ## ----------------------------------- ##
18082 ## Main body of $CONFIG_STATUS script. ##
18083 ## ----------------------------------- ##
18084 _ASEOF
18085 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18086
18087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18088 # Save the log message, to keep $0 and so on meaningful, and to
18089 # report actual input values of CONFIG_FILES etc. instead of their
18090 # values after options handling.
18091 ac_log="
18092 This file was extended by bcusdk $as_me 0.0.5, which was
18093 generated by GNU Autoconf 2.68.  Invocation command line was
18094
18095   CONFIG_FILES    = $CONFIG_FILES
18096   CONFIG_HEADERS  = $CONFIG_HEADERS
18097   CONFIG_LINKS    = $CONFIG_LINKS
18098   CONFIG_COMMANDS = $CONFIG_COMMANDS
18099   $ $0 $@
18100
18101 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18102 "
18103
18104 _ACEOF
18105
18106 case $ac_config_files in *"
18107 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18108 esac
18109
18110 case $ac_config_headers in *"
18111 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18112 esac
18113
18114
18115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18116 # Files that config.status was made for.
18117 config_files="$ac_config_files"
18118 config_headers="$ac_config_headers"
18119 config_commands="$ac_config_commands"
18120
18121 _ACEOF
18122
18123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18124 ac_cs_usage="\
18125 \`$as_me' instantiates files and other configuration actions
18126 from templates according to the current configuration.  Unless the files
18127 and actions are specified as TAGs, all are instantiated by default.
18128
18129 Usage: $0 [OPTION]... [TAG]...
18130
18131   -h, --help       print this help, then exit
18132   -V, --version    print version number and configuration settings, then exit
18133       --config     print configuration, then exit
18134   -q, --quiet, --silent
18135                    do not print progress messages
18136   -d, --debug      don't remove temporary files
18137       --recheck    update $as_me by reconfiguring in the same conditions
18138       --file=FILE[:TEMPLATE]
18139                    instantiate the configuration file FILE
18140       --header=FILE[:TEMPLATE]
18141                    instantiate the configuration header FILE
18142
18143 Configuration files:
18144 $config_files
18145
18146 Configuration headers:
18147 $config_headers
18148
18149 Configuration commands:
18150 $config_commands
18151
18152 Report bugs to the package provider."
18153
18154 _ACEOF
18155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18156 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18157 ac_cs_version="\\
18158 bcusdk config.status 0.0.5
18159 configured by $0, generated by GNU Autoconf 2.68,
18160   with options \\"\$ac_cs_config\\"
18161
18162 Copyright (C) 2010 Free Software Foundation, Inc.
18163 This config.status script is free software; the Free Software Foundation
18164 gives unlimited permission to copy, distribute and modify it."
18165
18166 ac_pwd='$ac_pwd'
18167 srcdir='$srcdir'
18168 INSTALL='$INSTALL'
18169 MKDIR_P='$MKDIR_P'
18170 AWK='$AWK'
18171 test -n "\$AWK" || AWK=awk
18172 _ACEOF
18173
18174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18175 # The default lists apply if the user does not specify any file.
18176 ac_need_defaults=:
18177 while test $# != 0
18178 do
18179   case $1 in
18180   --*=?*)
18181     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18182     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18183     ac_shift=:
18184     ;;
18185   --*=)
18186     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18187     ac_optarg=
18188     ac_shift=:
18189     ;;
18190   *)
18191     ac_option=$1
18192     ac_optarg=$2
18193     ac_shift=shift
18194     ;;
18195   esac
18196
18197   case $ac_option in
18198   # Handling of the options.
18199   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18200     ac_cs_recheck=: ;;
18201   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18202     $as_echo "$ac_cs_version"; exit ;;
18203   --config | --confi | --conf | --con | --co | --c )
18204     $as_echo "$ac_cs_config"; exit ;;
18205   --debug | --debu | --deb | --de | --d | -d )
18206     debug=: ;;
18207   --file | --fil | --fi | --f )
18208     $ac_shift
18209     case $ac_optarg in
18210     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18211     '') as_fn_error $? "missing file argument" ;;
18212     esac
18213     as_fn_append CONFIG_FILES " '$ac_optarg'"
18214     ac_need_defaults=false;;
18215   --header | --heade | --head | --hea )
18216     $ac_shift
18217     case $ac_optarg in
18218     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18219     esac
18220     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18221     ac_need_defaults=false;;
18222   --he | --h)
18223     # Conflict between --help and --header
18224     as_fn_error $? "ambiguous option: \`$1'
18225 Try \`$0 --help' for more information.";;
18226   --help | --hel | -h )
18227     $as_echo "$ac_cs_usage"; exit ;;
18228   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18229   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18230     ac_cs_silent=: ;;
18231
18232   # This is an error.
18233   -*) as_fn_error $? "unrecognized option: \`$1'
18234 Try \`$0 --help' for more information." ;;
18235
18236   *) as_fn_append ac_config_targets " $1"
18237      ac_need_defaults=false ;;
18238
18239   esac
18240   shift
18241 done
18242
18243 ac_configure_extra_args=
18244
18245 if $ac_cs_silent; then
18246   exec 6>/dev/null
18247   ac_configure_extra_args="$ac_configure_extra_args --silent"
18248 fi
18249
18250 _ACEOF
18251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18252 if \$ac_cs_recheck; then
18253   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18254   shift
18255   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18256   CONFIG_SHELL='$SHELL'
18257   export CONFIG_SHELL
18258   exec "\$@"
18259 fi
18260
18261 _ACEOF
18262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18263 exec 5>>config.log
18264 {
18265   echo
18266   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18267 ## Running $as_me. ##
18268 _ASBOX
18269   $as_echo "$ac_log"
18270 } >&5
18271
18272 _ACEOF
18273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18274 #
18275 # INIT-COMMANDS
18276 #
18277 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18278
18279
18280 # The HP-UX ksh and POSIX shell print the target directory to stdout
18281 # if CDPATH is set.
18282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18283
18284 sed_quote_subst='$sed_quote_subst'
18285 double_quote_subst='$double_quote_subst'
18286 delay_variable_subst='$delay_variable_subst'
18287 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18288 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18289 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18290 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18291 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18292 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18293 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18294 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18295 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18296 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18297 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18298 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18299 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18300 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18301 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18302 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18303 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18304 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18305 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18306 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18307 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18308 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18309 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18310 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18311 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18312 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18313 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18314 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18315 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18316 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18317 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18318 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18319 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18320 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18321 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18322 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18323 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18324 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18325 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18326 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18327 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18328 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18329 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18330 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18331 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18332 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18333 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18334 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18335 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18336 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18337 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18338 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18339 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18340 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18341 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18342 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18343 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18344 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18345 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18346 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18347 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18348 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18349 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18350 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18351 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18352 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18353 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18354 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18355 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18356 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18357 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18358 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18359 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18360 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18361 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18362 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18363 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18364 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18365 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18366 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18367 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18368 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18369 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18370 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18371 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18372 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18373 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18374 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18375 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18376 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18377 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18378 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18379 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18380 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18381 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18382 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18383 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18384 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18385 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18386 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18387 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18388 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18389 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18390 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18391 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18392 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18393 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18394 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18395 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18396 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18397 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18398 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18399 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18400 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18401 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18402 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18403 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18404 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18405 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18406 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18407 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18408 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18409 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18410 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18411 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18412 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18413 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18414 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18415 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18416 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18417 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18418 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18419 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18420 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18421 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18422 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18423 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18424 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18425 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18426 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18427 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18428 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18429 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18430 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18431 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18432 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18433 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18434 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18435 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18436 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18437 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18438 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18439 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18440 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18441 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18442 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18443 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18444 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18445 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18446 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18447 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18448 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18449 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18450 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18451 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18452 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18453 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18454 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18455 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18456 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18457 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18458 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18459 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18460 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18461 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18462 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18463 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18464 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18465 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18466 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18467 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18468 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18469 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18470 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18471 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18472
18473 LTCC='$LTCC'
18474 LTCFLAGS='$LTCFLAGS'
18475 compiler='$compiler_DEFAULT'
18476
18477 # A function that is used when there is no print builtin or printf.
18478 func_fallback_echo ()
18479 {
18480   eval 'cat <<_LTECHO_EOF
18481 \$1
18482 _LTECHO_EOF'
18483 }
18484
18485 # Quote evaled strings.
18486 for var in SHELL \
18487 ECHO \
18488 SED \
18489 GREP \
18490 EGREP \
18491 FGREP \
18492 LD \
18493 NM \
18494 LN_S \
18495 lt_SP2NL \
18496 lt_NL2SP \
18497 reload_flag \
18498 OBJDUMP \
18499 deplibs_check_method \
18500 file_magic_cmd \
18501 file_magic_glob \
18502 want_nocaseglob \
18503 DLLTOOL \
18504 sharedlib_from_linklib_cmd \
18505 AR \
18506 AR_FLAGS \
18507 archiver_list_spec \
18508 STRIP \
18509 RANLIB \
18510 CC \
18511 CFLAGS \
18512 compiler \
18513 lt_cv_sys_global_symbol_pipe \
18514 lt_cv_sys_global_symbol_to_cdecl \
18515 lt_cv_sys_global_symbol_to_c_name_address \
18516 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18517 nm_file_list_spec \
18518 lt_prog_compiler_no_builtin_flag \
18519 lt_prog_compiler_pic \
18520 lt_prog_compiler_wl \
18521 lt_prog_compiler_static \
18522 lt_cv_prog_compiler_c_o \
18523 need_locks \
18524 MANIFEST_TOOL \
18525 DSYMUTIL \
18526 NMEDIT \
18527 LIPO \
18528 OTOOL \
18529 OTOOL64 \
18530 shrext_cmds \
18531 export_dynamic_flag_spec \
18532 whole_archive_flag_spec \
18533 compiler_needs_object \
18534 with_gnu_ld \
18535 allow_undefined_flag \
18536 no_undefined_flag \
18537 hardcode_libdir_flag_spec \
18538 hardcode_libdir_flag_spec_ld \
18539 hardcode_libdir_separator \
18540 exclude_expsyms \
18541 include_expsyms \
18542 file_list_spec \
18543 variables_saved_for_relink \
18544 libname_spec \
18545 library_names_spec \
18546 soname_spec \
18547 install_override_mode \
18548 finish_eval \
18549 old_striplib \
18550 striplib \
18551 compiler_lib_search_dirs \
18552 predep_objects \
18553 postdep_objects \
18554 predeps \
18555 postdeps \
18556 compiler_lib_search_path \
18557 LD_CXX \
18558 reload_flag_CXX \
18559 compiler_CXX \
18560 lt_prog_compiler_no_builtin_flag_CXX \
18561 lt_prog_compiler_pic_CXX \
18562 lt_prog_compiler_wl_CXX \
18563 lt_prog_compiler_static_CXX \
18564 lt_cv_prog_compiler_c_o_CXX \
18565 export_dynamic_flag_spec_CXX \
18566 whole_archive_flag_spec_CXX \
18567 compiler_needs_object_CXX \
18568 with_gnu_ld_CXX \
18569 allow_undefined_flag_CXX \
18570 no_undefined_flag_CXX \
18571 hardcode_libdir_flag_spec_CXX \
18572 hardcode_libdir_flag_spec_ld_CXX \
18573 hardcode_libdir_separator_CXX \
18574 exclude_expsyms_CXX \
18575 include_expsyms_CXX \
18576 file_list_spec_CXX \
18577 compiler_lib_search_dirs_CXX \
18578 predep_objects_CXX \
18579 postdep_objects_CXX \
18580 predeps_CXX \
18581 postdeps_CXX \
18582 compiler_lib_search_path_CXX; do
18583     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18584     *[\\\\\\\`\\"\\\$]*)
18585       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18586       ;;
18587     *)
18588       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18589       ;;
18590     esac
18591 done
18592
18593 # Double-quote double-evaled strings.
18594 for var in reload_cmds \
18595 old_postinstall_cmds \
18596 old_postuninstall_cmds \
18597 old_archive_cmds \
18598 extract_expsyms_cmds \
18599 old_archive_from_new_cmds \
18600 old_archive_from_expsyms_cmds \
18601 archive_cmds \
18602 archive_expsym_cmds \
18603 module_cmds \
18604 module_expsym_cmds \
18605 export_symbols_cmds \
18606 prelink_cmds \
18607 postlink_cmds \
18608 postinstall_cmds \
18609 postuninstall_cmds \
18610 finish_cmds \
18611 sys_lib_search_path_spec \
18612 sys_lib_dlsearch_path_spec \
18613 reload_cmds_CXX \
18614 old_archive_cmds_CXX \
18615 old_archive_from_new_cmds_CXX \
18616 old_archive_from_expsyms_cmds_CXX \
18617 archive_cmds_CXX \
18618 archive_expsym_cmds_CXX \
18619 module_cmds_CXX \
18620 module_expsym_cmds_CXX \
18621 export_symbols_cmds_CXX \
18622 prelink_cmds_CXX \
18623 postlink_cmds_CXX; do
18624     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18625     *[\\\\\\\`\\"\\\$]*)
18626       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18627       ;;
18628     *)
18629       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18630       ;;
18631     esac
18632 done
18633
18634 ac_aux_dir='$ac_aux_dir'
18635 xsi_shell='$xsi_shell'
18636 lt_shell_append='$lt_shell_append'
18637
18638 # See if we are running on zsh, and set the options which allow our
18639 # commands through without removal of \ escapes INIT.
18640 if test -n "\${ZSH_VERSION+set}" ; then
18641    setopt NO_GLOB_SUBST
18642 fi
18643
18644
18645     PACKAGE='$PACKAGE'
18646     VERSION='$VERSION'
18647     TIMESTAMP='$TIMESTAMP'
18648     RM='$RM'
18649     ofile='$ofile'
18650
18651
18652
18653
18654
18655
18656 _ACEOF
18657
18658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18659
18660 # Handling of arguments.
18661 for ac_config_target in $ac_config_targets
18662 do
18663   case $ac_config_target in
18664     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18665     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18666     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18667     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18668     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
18669     "eibd/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/Makefile" ;;
18670     "eibd/include/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/include/Makefile" ;;
18671     "eibd/client/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/client/Makefile" ;;
18672     "eibd/examples/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/examples/Makefile" ;;
18673     "eibd/libserver/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/libserver/Makefile" ;;
18674     "eibd/server/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/server/Makefile" ;;
18675     "eibd/backend/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/backend/Makefile" ;;
18676     "eibd/client/def/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/client/def/Makefile" ;;
18677     "eibd/client/c/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/client/c/Makefile" ;;
18678     "eibd/client/java/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/client/java/Makefile" ;;
18679     "eibd/client/php/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/client/php/Makefile" ;;
18680     "eibd/client/cs/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/client/cs/Makefile" ;;
18681     "eibd/client/perl/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/client/perl/Makefile" ;;
18682     "eibd/client/python/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/client/python/Makefile" ;;
18683     "eibd/client/pascal/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/client/pascal/Makefile" ;;
18684     "eibd/eibnet/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/eibnet/Makefile" ;;
18685     "eibd/bcu/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/bcu/Makefile" ;;
18686     "eibd/usb/Makefile") CONFIG_FILES="$CONFIG_FILES eibd/usb/Makefile" ;;
18687     "xml/Makefile") CONFIG_FILES="$CONFIG_FILES xml/Makefile" ;;
18688     "xml/gui/Makefile") CONFIG_FILES="$CONFIG_FILES xml/gui/Makefile" ;;
18689     "xml/gui/examples/Makefile") CONFIG_FILES="$CONFIG_FILES xml/gui/examples/Makefile" ;;
18690     "bcu/Makefile") CONFIG_FILES="$CONFIG_FILES bcu/Makefile" ;;
18691     "bcu/lib/Makefile") CONFIG_FILES="$CONFIG_FILES bcu/lib/Makefile" ;;
18692     "bcu/include/Makefile") CONFIG_FILES="$CONFIG_FILES bcu/include/Makefile" ;;
18693     "bcu/ldscripts/Makefile") CONFIG_FILES="$CONFIG_FILES bcu/ldscripts/Makefile" ;;
18694     "bcugen/Makefile") CONFIG_FILES="$CONFIG_FILES bcugen/Makefile" ;;
18695     "bcugen/struct/Makefile") CONFIG_FILES="$CONFIG_FILES bcugen/struct/Makefile" ;;
18696     "bcugen/configfile/Makefile") CONFIG_FILES="$CONFIG_FILES bcugen/configfile/Makefile" ;;
18697     "bcugen/lib/Makefile") CONFIG_FILES="$CONFIG_FILES bcugen/lib/Makefile" ;;
18698     "archive/Makefile") CONFIG_FILES="$CONFIG_FILES archive/Makefile" ;;
18699     "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
18700     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
18701     "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
18702
18703   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18704   esac
18705 done
18706
18707
18708 # If the user did not use the arguments to specify the items to instantiate,
18709 # then the envvar interface is used.  Set only those that are not.
18710 # We use the long form for the default assignment because of an extremely
18711 # bizarre bug on SunOS 4.1.3.
18712 if $ac_need_defaults; then
18713   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18714   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18715   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18716 fi
18717
18718 # Have a temporary directory for convenience.  Make it in the build tree
18719 # simply because there is no reason against having it here, and in addition,
18720 # creating and moving files from /tmp can sometimes cause problems.
18721 # Hook for its removal unless debugging.
18722 # Note that there is a small window in which the directory will not be cleaned:
18723 # after its creation but before its name has been assigned to `$tmp'.
18724 $debug ||
18725 {
18726   tmp= ac_tmp=
18727   trap 'exit_status=$?
18728   : "${ac_tmp:=$tmp}"
18729   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18730 ' 0
18731   trap 'as_fn_exit 1' 1 2 13 15
18732 }
18733 # Create a (secure) tmp directory for tmp files.
18734
18735 {
18736   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18737   test -d "$tmp"
18738 }  ||
18739 {
18740   tmp=./conf$$-$RANDOM
18741   (umask 077 && mkdir "$tmp")
18742 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18743 ac_tmp=$tmp
18744
18745 # Set up the scripts for CONFIG_FILES section.
18746 # No need to generate them if there are no CONFIG_FILES.
18747 # This happens for instance with `./config.status config.h'.
18748 if test -n "$CONFIG_FILES"; then
18749
18750
18751 ac_cr=`echo X | tr X '\015'`
18752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18753 # But we know of no other shell where ac_cr would be empty at this
18754 # point, so we can use a bashism as a fallback.
18755 if test "x$ac_cr" = x; then
18756   eval ac_cr=\$\'\\r\'
18757 fi
18758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18760   ac_cs_awk_cr='\\r'
18761 else
18762   ac_cs_awk_cr=$ac_cr
18763 fi
18764
18765 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18766 _ACEOF
18767
18768
18769 {
18770   echo "cat >conf$$subs.awk <<_ACEOF" &&
18771   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18772   echo "_ACEOF"
18773 } >conf$$subs.sh ||
18774   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18775 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18776 ac_delim='%!_!# '
18777 for ac_last_try in false false false false false :; do
18778   . ./conf$$subs.sh ||
18779     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18780
18781   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18782   if test $ac_delim_n = $ac_delim_num; then
18783     break
18784   elif $ac_last_try; then
18785     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18786   else
18787     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18788   fi
18789 done
18790 rm -f conf$$subs.sh
18791
18792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18793 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18794 _ACEOF
18795 sed -n '
18796 h
18797 s/^/S["/; s/!.*/"]=/
18798 p
18799 g
18800 s/^[^!]*!//
18801 :repl
18802 t repl
18803 s/'"$ac_delim"'$//
18804 t delim
18805 :nl
18806 h
18807 s/\(.\{148\}\)..*/\1/
18808 t more1
18809 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18810 p
18811 n
18812 b repl
18813 :more1
18814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18815 p
18816 g
18817 s/.\{148\}//
18818 t nl
18819 :delim
18820 h
18821 s/\(.\{148\}\)..*/\1/
18822 t more2
18823 s/["\\]/\\&/g; s/^/"/; s/$/"/
18824 p
18825 b
18826 :more2
18827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18828 p
18829 g
18830 s/.\{148\}//
18831 t delim
18832 ' <conf$$subs.awk | sed '
18833 /^[^""]/{
18834   N
18835   s/\n//
18836 }
18837 ' >>$CONFIG_STATUS || ac_write_fail=1
18838 rm -f conf$$subs.awk
18839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18840 _ACAWK
18841 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18842   for (key in S) S_is_set[key] = 1
18843   FS = "\a"
18844
18845 }
18846 {
18847   line = $ 0
18848   nfields = split(line, field, "@")
18849   substed = 0
18850   len = length(field[1])
18851   for (i = 2; i < nfields; i++) {
18852     key = field[i]
18853     keylen = length(key)
18854     if (S_is_set[key]) {
18855       value = S[key]
18856       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18857       len += length(value) + length(field[++i])
18858       substed = 1
18859     } else
18860       len += 1 + keylen
18861   }
18862
18863   print line
18864 }
18865
18866 _ACAWK
18867 _ACEOF
18868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18869 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18870   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18871 else
18872   cat
18873 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18874   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18875 _ACEOF
18876
18877 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18878 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18879 # trailing colons and then remove the whole line if VPATH becomes empty
18880 # (actually we leave an empty line to preserve line numbers).
18881 if test "x$srcdir" = x.; then
18882   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18883 h
18884 s///
18885 s/^/:/
18886 s/[      ]*$/:/
18887 s/:\$(srcdir):/:/g
18888 s/:\${srcdir}:/:/g
18889 s/:@srcdir@:/:/g
18890 s/^:*//
18891 s/:*$//
18892 x
18893 s/\(=[   ]*\).*/\1/
18894 G
18895 s/\n//
18896 s/^[^=]*=[       ]*$//
18897 }'
18898 fi
18899
18900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18901 fi # test -n "$CONFIG_FILES"
18902
18903 # Set up the scripts for CONFIG_HEADERS section.
18904 # No need to generate them if there are no CONFIG_HEADERS.
18905 # This happens for instance with `./config.status Makefile'.
18906 if test -n "$CONFIG_HEADERS"; then
18907 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18908 BEGIN {
18909 _ACEOF
18910
18911 # Transform confdefs.h into an awk script `defines.awk', embedded as
18912 # here-document in config.status, that substitutes the proper values into
18913 # config.h.in to produce config.h.
18914
18915 # Create a delimiter string that does not exist in confdefs.h, to ease
18916 # handling of long lines.
18917 ac_delim='%!_!# '
18918 for ac_last_try in false false :; do
18919   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18920   if test -z "$ac_tt"; then
18921     break
18922   elif $ac_last_try; then
18923     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18924   else
18925     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18926   fi
18927 done
18928
18929 # For the awk script, D is an array of macro values keyed by name,
18930 # likewise P contains macro parameters if any.  Preserve backslash
18931 # newline sequences.
18932
18933 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18934 sed -n '
18935 s/.\{148\}/&'"$ac_delim"'/g
18936 t rset
18937 :rset
18938 s/^[     ]*#[    ]*define[       ][      ]*/ /
18939 t def
18940 d
18941 :def
18942 s/\\$//
18943 t bsnl
18944 s/["\\]/\\&/g
18945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18946 D["\1"]=" \3"/p
18947 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18948 d
18949 :bsnl
18950 s/["\\]/\\&/g
18951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18952 D["\1"]=" \3\\\\\\n"\\/p
18953 t cont
18954 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18955 t cont
18956 d
18957 :cont
18958 n
18959 s/.\{148\}/&'"$ac_delim"'/g
18960 t clear
18961 :clear
18962 s/\\$//
18963 t bsnlc
18964 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18965 d
18966 :bsnlc
18967 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18968 b cont
18969 ' <confdefs.h | sed '
18970 s/'"$ac_delim"'/"\\\
18971 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18972
18973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18974   for (key in D) D_is_set[key] = 1
18975   FS = "\a"
18976 }
18977 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18978   line = \$ 0
18979   split(line, arg, " ")
18980   if (arg[1] == "#") {
18981     defundef = arg[2]
18982     mac1 = arg[3]
18983   } else {
18984     defundef = substr(arg[1], 2)
18985     mac1 = arg[2]
18986   }
18987   split(mac1, mac2, "(") #)
18988   macro = mac2[1]
18989   prefix = substr(line, 1, index(line, defundef) - 1)
18990   if (D_is_set[macro]) {
18991     # Preserve the white space surrounding the "#".
18992     print prefix "define", macro P[macro] D[macro]
18993     next
18994   } else {
18995     # Replace #undef with comments.  This is necessary, for example,
18996     # in the case of _POSIX_SOURCE, which is predefined and required
18997     # on some systems where configure will not decide to define it.
18998     if (defundef == "undef") {
18999       print "/*", prefix defundef, macro, "*/"
19000       next
19001     }
19002   }
19003 }
19004 { print }
19005 _ACAWK
19006 _ACEOF
19007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19008   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19009 fi # test -n "$CONFIG_HEADERS"
19010
19011
19012 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19013 shift
19014 for ac_tag
19015 do
19016   case $ac_tag in
19017   :[FHLC]) ac_mode=$ac_tag; continue;;
19018   esac
19019   case $ac_mode$ac_tag in
19020   :[FHL]*:*);;
19021   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19022   :[FH]-) ac_tag=-:-;;
19023   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19024   esac
19025   ac_save_IFS=$IFS
19026   IFS=:
19027   set x $ac_tag
19028   IFS=$ac_save_IFS
19029   shift
19030   ac_file=$1
19031   shift
19032
19033   case $ac_mode in
19034   :L) ac_source=$1;;
19035   :[FH])
19036     ac_file_inputs=
19037     for ac_f
19038     do
19039       case $ac_f in
19040       -) ac_f="$ac_tmp/stdin";;
19041       *) # Look for the file first in the build tree, then in the source tree
19042          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19043          # because $ac_f cannot contain `:'.
19044          test -f "$ac_f" ||
19045            case $ac_f in
19046            [\\/$]*) false;;
19047            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19048            esac ||
19049            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19050       esac
19051       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19052       as_fn_append ac_file_inputs " '$ac_f'"
19053     done
19054
19055     # Let's still pretend it is `configure' which instantiates (i.e., don't
19056     # use $as_me), people would be surprised to read:
19057     #    /* config.h.  Generated by config.status.  */
19058     configure_input='Generated from '`
19059           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19060         `' by configure.'
19061     if test x"$ac_file" != x-; then
19062       configure_input="$ac_file.  $configure_input"
19063       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19064 $as_echo "$as_me: creating $ac_file" >&6;}
19065     fi
19066     # Neutralize special characters interpreted by sed in replacement strings.
19067     case $configure_input in #(
19068     *\&* | *\|* | *\\* )
19069        ac_sed_conf_input=`$as_echo "$configure_input" |
19070        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19071     *) ac_sed_conf_input=$configure_input;;
19072     esac
19073
19074     case $ac_tag in
19075     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19076       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19077     esac
19078     ;;
19079   esac
19080
19081   ac_dir=`$as_dirname -- "$ac_file" ||
19082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19083          X"$ac_file" : 'X\(//\)[^/]' \| \
19084          X"$ac_file" : 'X\(//\)$' \| \
19085          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19086 $as_echo X"$ac_file" |
19087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19088             s//\1/
19089             q
19090           }
19091           /^X\(\/\/\)[^/].*/{
19092             s//\1/
19093             q
19094           }
19095           /^X\(\/\/\)$/{
19096             s//\1/
19097             q
19098           }
19099           /^X\(\/\).*/{
19100             s//\1/
19101             q
19102           }
19103           s/.*/./; q'`
19104   as_dir="$ac_dir"; as_fn_mkdir_p
19105   ac_builddir=.
19106
19107 case "$ac_dir" in
19108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19109 *)
19110   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19111   # A ".." for each directory in $ac_dir_suffix.
19112   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19113   case $ac_top_builddir_sub in
19114   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19115   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19116   esac ;;
19117 esac
19118 ac_abs_top_builddir=$ac_pwd
19119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19120 # for backward compatibility:
19121 ac_top_builddir=$ac_top_build_prefix
19122
19123 case $srcdir in
19124   .)  # We are building in place.
19125     ac_srcdir=.
19126     ac_top_srcdir=$ac_top_builddir_sub
19127     ac_abs_top_srcdir=$ac_pwd ;;
19128   [\\/]* | ?:[\\/]* )  # Absolute name.
19129     ac_srcdir=$srcdir$ac_dir_suffix;
19130     ac_top_srcdir=$srcdir
19131     ac_abs_top_srcdir=$srcdir ;;
19132   *) # Relative name.
19133     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19134     ac_top_srcdir=$ac_top_build_prefix$srcdir
19135     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19136 esac
19137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19138
19139
19140   case $ac_mode in
19141   :F)
19142   #
19143   # CONFIG_FILE
19144   #
19145
19146   case $INSTALL in
19147   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19148   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19149   esac
19150   ac_MKDIR_P=$MKDIR_P
19151   case $MKDIR_P in
19152   [\\/$]* | ?:[\\/]* ) ;;
19153   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19154   esac
19155 _ACEOF
19156
19157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19158 # If the template does not know about datarootdir, expand it.
19159 # FIXME: This hack should be removed a few years after 2.60.
19160 ac_datarootdir_hack=; ac_datarootdir_seen=
19161 ac_sed_dataroot='
19162 /datarootdir/ {
19163   p
19164   q
19165 }
19166 /@datadir@/p
19167 /@docdir@/p
19168 /@infodir@/p
19169 /@localedir@/p
19170 /@mandir@/p'
19171 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19172 *datarootdir*) ac_datarootdir_seen=yes;;
19173 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19174   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19175 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19176 _ACEOF
19177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19178   ac_datarootdir_hack='
19179   s&@datadir@&$datadir&g
19180   s&@docdir@&$docdir&g
19181   s&@infodir@&$infodir&g
19182   s&@localedir@&$localedir&g
19183   s&@mandir@&$mandir&g
19184   s&\\\${datarootdir}&$datarootdir&g' ;;
19185 esac
19186 _ACEOF
19187
19188 # Neutralize VPATH when `$srcdir' = `.'.
19189 # Shell code in configure.ac might set extrasub.
19190 # FIXME: do we really want to maintain this feature?
19191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19192 ac_sed_extra="$ac_vpsub
19193 $extrasub
19194 _ACEOF
19195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19196 :t
19197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19198 s|@configure_input@|$ac_sed_conf_input|;t t
19199 s&@top_builddir@&$ac_top_builddir_sub&;t t
19200 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19201 s&@srcdir@&$ac_srcdir&;t t
19202 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19203 s&@top_srcdir@&$ac_top_srcdir&;t t
19204 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19205 s&@builddir@&$ac_builddir&;t t
19206 s&@abs_builddir@&$ac_abs_builddir&;t t
19207 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19208 s&@INSTALL@&$ac_INSTALL&;t t
19209 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19210 $ac_datarootdir_hack
19211 "
19212 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19213   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19214
19215 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19216   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19217   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19218       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19219   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19220 which seems to be undefined.  Please make sure it is defined" >&5
19221 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19222 which seems to be undefined.  Please make sure it is defined" >&2;}
19223
19224   rm -f "$ac_tmp/stdin"
19225   case $ac_file in
19226   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19227   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19228   esac \
19229   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19230  ;;
19231   :H)
19232   #
19233   # CONFIG_HEADER
19234   #
19235   if test x"$ac_file" != x-; then
19236     {
19237       $as_echo "/* $configure_input  */" \
19238       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19239     } >"$ac_tmp/config.h" \
19240       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19241     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19242       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19243 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19244     else
19245       rm -f "$ac_file"
19246       mv "$ac_tmp/config.h" "$ac_file" \
19247         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19248     fi
19249   else
19250     $as_echo "/* $configure_input  */" \
19251       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19252       || as_fn_error $? "could not create -" "$LINENO" 5
19253   fi
19254 # Compute "$ac_file"'s index in $config_headers.
19255 _am_arg="$ac_file"
19256 _am_stamp_count=1
19257 for _am_header in $config_headers :; do
19258   case $_am_header in
19259     $_am_arg | $_am_arg:* )
19260       break ;;
19261     * )
19262       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19263   esac
19264 done
19265 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19266 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19267          X"$_am_arg" : 'X\(//\)[^/]' \| \
19268          X"$_am_arg" : 'X\(//\)$' \| \
19269          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19270 $as_echo X"$_am_arg" |
19271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19272             s//\1/
19273             q
19274           }
19275           /^X\(\/\/\)[^/].*/{
19276             s//\1/
19277             q
19278           }
19279           /^X\(\/\/\)$/{
19280             s//\1/
19281             q
19282           }
19283           /^X\(\/\).*/{
19284             s//\1/
19285             q
19286           }
19287           s/.*/./; q'`/stamp-h$_am_stamp_count
19288  ;;
19289
19290   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19291 $as_echo "$as_me: executing $ac_file commands" >&6;}
19292  ;;
19293   esac
19294
19295
19296   case $ac_file$ac_mode in
19297     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19298   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19299   # are listed without --file.  Let's play safe and only enable the eval
19300   # if we detect the quoting.
19301   case $CONFIG_FILES in
19302   *\'*) eval set x "$CONFIG_FILES" ;;
19303   *)   set x $CONFIG_FILES ;;
19304   esac
19305   shift
19306   for mf
19307   do
19308     # Strip MF so we end up with the name of the file.
19309     mf=`echo "$mf" | sed -e 's/:.*$//'`
19310     # Check whether this is an Automake generated Makefile or not.
19311     # We used to match only the files named `Makefile.in', but
19312     # some people rename them; so instead we look at the file content.
19313     # Grep'ing the first line is not enough: some people post-process
19314     # each Makefile.in and add a new line on top of each file to say so.
19315     # Grep'ing the whole file is not good either: AIX grep has a line
19316     # limit of 2048, but all sed's we know have understand at least 4000.
19317     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19318       dirpart=`$as_dirname -- "$mf" ||
19319 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19320          X"$mf" : 'X\(//\)[^/]' \| \
19321          X"$mf" : 'X\(//\)$' \| \
19322          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19323 $as_echo X"$mf" |
19324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19325             s//\1/
19326             q
19327           }
19328           /^X\(\/\/\)[^/].*/{
19329             s//\1/
19330             q
19331           }
19332           /^X\(\/\/\)$/{
19333             s//\1/
19334             q
19335           }
19336           /^X\(\/\).*/{
19337             s//\1/
19338             q
19339           }
19340           s/.*/./; q'`
19341     else
19342       continue
19343     fi
19344     # Extract the definition of DEPDIR, am__include, and am__quote
19345     # from the Makefile without running `make'.
19346     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19347     test -z "$DEPDIR" && continue
19348     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19349     test -z "am__include" && continue
19350     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19351     # When using ansi2knr, U may be empty or an underscore; expand it
19352     U=`sed -n 's/^U = //p' < "$mf"`
19353     # Find all dependency output files, they are included files with
19354     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19355     # simplest approach to changing $(DEPDIR) to its actual value in the
19356     # expansion.
19357     for file in `sed -n "
19358       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19359          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19360       # Make sure the directory exists.
19361       test -f "$dirpart/$file" && continue
19362       fdir=`$as_dirname -- "$file" ||
19363 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19364          X"$file" : 'X\(//\)[^/]' \| \
19365          X"$file" : 'X\(//\)$' \| \
19366          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19367 $as_echo X"$file" |
19368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19369             s//\1/
19370             q
19371           }
19372           /^X\(\/\/\)[^/].*/{
19373             s//\1/
19374             q
19375           }
19376           /^X\(\/\/\)$/{
19377             s//\1/
19378             q
19379           }
19380           /^X\(\/\).*/{
19381             s//\1/
19382             q
19383           }
19384           s/.*/./; q'`
19385       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19386       # echo "creating $dirpart/$file"
19387       echo '# dummy' > "$dirpart/$file"
19388     done
19389   done
19390 }
19391  ;;
19392     "libtool":C)
19393
19394     # See if we are running on zsh, and set the options which allow our
19395     # commands through without removal of \ escapes.
19396     if test -n "${ZSH_VERSION+set}" ; then
19397       setopt NO_GLOB_SUBST
19398     fi
19399
19400     cfgfile="${ofile}T"
19401     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19402     $RM "$cfgfile"
19403
19404     cat <<_LT_EOF >> "$cfgfile"
19405 #! $SHELL
19406
19407 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19408 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19411 #
19412 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19413 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19414 #                 Inc.
19415 #   Written by Gordon Matzigkeit, 1996
19416 #
19417 #   This file is part of GNU Libtool.
19418 #
19419 # GNU Libtool is free software; you can redistribute it and/or
19420 # modify it under the terms of the GNU General Public License as
19421 # published by the Free Software Foundation; either version 2 of
19422 # the License, or (at your option) any later version.
19423 #
19424 # As a special exception to the GNU General Public License,
19425 # if you distribute this file as part of a program or library that
19426 # is built using GNU Libtool, you may include this file under the
19427 # same distribution terms that you use for the rest of that program.
19428 #
19429 # GNU Libtool is distributed in the hope that it will be useful,
19430 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19432 # GNU General Public License for more details.
19433 #
19434 # You should have received a copy of the GNU General Public License
19435 # along with GNU Libtool; see the file COPYING.  If not, a copy
19436 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19437 # obtained by writing to the Free Software Foundation, Inc.,
19438 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19439
19440
19441 # The names of the tagged configurations supported by this script.
19442 available_tags="CXX "
19443
19444 # ### BEGIN LIBTOOL CONFIG
19445
19446 # Which release of libtool.m4 was used?
19447 macro_version=$macro_version
19448 macro_revision=$macro_revision
19449
19450 # Whether or not to build shared libraries.
19451 build_libtool_libs=$enable_shared
19452
19453 # Whether or not to build static libraries.
19454 build_old_libs=$enable_static
19455
19456 # What type of objects to build.
19457 pic_mode=$pic_mode
19458
19459 # Whether or not to optimize for fast installation.
19460 fast_install=$enable_fast_install
19461
19462 # Shell to use when invoking shell scripts.
19463 SHELL=$lt_SHELL
19464
19465 # An echo program that protects backslashes.
19466 ECHO=$lt_ECHO
19467
19468 # The host system.
19469 host_alias=$host_alias
19470 host=$host
19471 host_os=$host_os
19472
19473 # The build system.
19474 build_alias=$build_alias
19475 build=$build
19476 build_os=$build_os
19477
19478 # A sed program that does not truncate output.
19479 SED=$lt_SED
19480
19481 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19482 Xsed="\$SED -e 1s/^X//"
19483
19484 # A grep program that handles long lines.
19485 GREP=$lt_GREP
19486
19487 # An ERE matcher.
19488 EGREP=$lt_EGREP
19489
19490 # A literal string matcher.
19491 FGREP=$lt_FGREP
19492
19493 # A BSD- or MS-compatible name lister.
19494 NM=$lt_NM
19495
19496 # Whether we need soft or hard links.
19497 LN_S=$lt_LN_S
19498
19499 # What is the maximum length of a command?
19500 max_cmd_len=$max_cmd_len
19501
19502 # Object file suffix (normally "o").
19503 objext=$ac_objext
19504
19505 # Executable file suffix (normally "").
19506 exeext=$exeext
19507
19508 # whether the shell understands "unset".
19509 lt_unset=$lt_unset
19510
19511 # turn spaces into newlines.
19512 SP2NL=$lt_lt_SP2NL
19513
19514 # turn newlines into spaces.
19515 NL2SP=$lt_lt_NL2SP
19516
19517 # convert \$build file names to \$host format.
19518 to_host_file_cmd=$lt_cv_to_host_file_cmd
19519
19520 # convert \$build files to toolchain format.
19521 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19522
19523 # An object symbol dumper.
19524 OBJDUMP=$lt_OBJDUMP
19525
19526 # Method to check whether dependent libraries are shared objects.
19527 deplibs_check_method=$lt_deplibs_check_method
19528
19529 # Command to use when deplibs_check_method = "file_magic".
19530 file_magic_cmd=$lt_file_magic_cmd
19531
19532 # How to find potential files when deplibs_check_method = "file_magic".
19533 file_magic_glob=$lt_file_magic_glob
19534
19535 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19536 want_nocaseglob=$lt_want_nocaseglob
19537
19538 # DLL creation program.
19539 DLLTOOL=$lt_DLLTOOL
19540
19541 # Command to associate shared and link libraries.
19542 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19543
19544 # The archiver.
19545 AR=$lt_AR
19546
19547 # Flags to create an archive.
19548 AR_FLAGS=$lt_AR_FLAGS
19549
19550 # How to feed a file listing to the archiver.
19551 archiver_list_spec=$lt_archiver_list_spec
19552
19553 # A symbol stripping program.
19554 STRIP=$lt_STRIP
19555
19556 # Commands used to install an old-style archive.
19557 RANLIB=$lt_RANLIB
19558 old_postinstall_cmds=$lt_old_postinstall_cmds
19559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19560
19561 # Whether to use a lock for old archive extraction.
19562 lock_old_archive_extraction=$lock_old_archive_extraction
19563
19564 # A C compiler.
19565 LTCC=$lt_CC
19566
19567 # LTCC compiler flags.
19568 LTCFLAGS=$lt_CFLAGS
19569
19570 # Take the output of nm and produce a listing of raw symbols and C names.
19571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19572
19573 # Transform the output of nm in a proper C declaration.
19574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19575
19576 # Transform the output of nm in a C name address pair.
19577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19578
19579 # Transform the output of nm in a C name address pair when lib prefix is needed.
19580 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19581
19582 # Specify filename containing input files for \$NM.
19583 nm_file_list_spec=$lt_nm_file_list_spec
19584
19585 # The root where to search for dependent libraries,and in which our libraries should be installed.
19586 lt_sysroot=$lt_sysroot
19587
19588 # The name of the directory that contains temporary libtool files.
19589 objdir=$objdir
19590
19591 # Used to examine libraries when file_magic_cmd begins with "file".
19592 MAGIC_CMD=$MAGIC_CMD
19593
19594 # Must we lock files when doing compilation?
19595 need_locks=$lt_need_locks
19596
19597 # Manifest tool.
19598 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19599
19600 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19601 DSYMUTIL=$lt_DSYMUTIL
19602
19603 # Tool to change global to local symbols on Mac OS X.
19604 NMEDIT=$lt_NMEDIT
19605
19606 # Tool to manipulate fat objects and archives on Mac OS X.
19607 LIPO=$lt_LIPO
19608
19609 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19610 OTOOL=$lt_OTOOL
19611
19612 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19613 OTOOL64=$lt_OTOOL64
19614
19615 # Old archive suffix (normally "a").
19616 libext=$libext
19617
19618 # Shared library suffix (normally ".so").
19619 shrext_cmds=$lt_shrext_cmds
19620
19621 # The commands to extract the exported symbol list from a shared archive.
19622 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19623
19624 # Variables whose values should be saved in libtool wrapper scripts and
19625 # restored at link time.
19626 variables_saved_for_relink=$lt_variables_saved_for_relink
19627
19628 # Do we need the "lib" prefix for modules?
19629 need_lib_prefix=$need_lib_prefix
19630
19631 # Do we need a version for libraries?
19632 need_version=$need_version
19633
19634 # Library versioning type.
19635 version_type=$version_type
19636
19637 # Shared library runtime path variable.
19638 runpath_var=$runpath_var
19639
19640 # Shared library path variable.
19641 shlibpath_var=$shlibpath_var
19642
19643 # Is shlibpath searched before the hard-coded library search path?
19644 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19645
19646 # Format of library name prefix.
19647 libname_spec=$lt_libname_spec
19648
19649 # List of archive names.  First name is the real one, the rest are links.
19650 # The last name is the one that the linker finds with -lNAME
19651 library_names_spec=$lt_library_names_spec
19652
19653 # The coded name of the library, if different from the real name.
19654 soname_spec=$lt_soname_spec
19655
19656 # Permission mode override for installation of shared libraries.
19657 install_override_mode=$lt_install_override_mode
19658
19659 # Command to use after installation of a shared archive.
19660 postinstall_cmds=$lt_postinstall_cmds
19661
19662 # Command to use after uninstallation of a shared archive.
19663 postuninstall_cmds=$lt_postuninstall_cmds
19664
19665 # Commands used to finish a libtool library installation in a directory.
19666 finish_cmds=$lt_finish_cmds
19667
19668 # As "finish_cmds", except a single script fragment to be evaled but
19669 # not shown.
19670 finish_eval=$lt_finish_eval
19671
19672 # Whether we should hardcode library paths into libraries.
19673 hardcode_into_libs=$hardcode_into_libs
19674
19675 # Compile-time system search path for libraries.
19676 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19677
19678 # Run-time system search path for libraries.
19679 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19680
19681 # Whether dlopen is supported.
19682 dlopen_support=$enable_dlopen
19683
19684 # Whether dlopen of programs is supported.
19685 dlopen_self=$enable_dlopen_self
19686
19687 # Whether dlopen of statically linked programs is supported.
19688 dlopen_self_static=$enable_dlopen_self_static
19689
19690 # Commands to strip libraries.
19691 old_striplib=$lt_old_striplib
19692 striplib=$lt_striplib
19693
19694
19695 # The linker used to build libraries.
19696 LD=$lt_LD
19697
19698 # How to create reloadable object files.
19699 reload_flag=$lt_reload_flag
19700 reload_cmds=$lt_reload_cmds
19701
19702 # Commands used to build an old-style archive.
19703 old_archive_cmds=$lt_old_archive_cmds
19704
19705 # A language specific compiler.
19706 CC=$lt_compiler
19707
19708 # Is the compiler the GNU compiler?
19709 with_gcc=$GCC
19710
19711 # Compiler flag to turn off builtin functions.
19712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19713
19714 # Additional compiler flags for building library objects.
19715 pic_flag=$lt_lt_prog_compiler_pic
19716
19717 # How to pass a linker flag through the compiler.
19718 wl=$lt_lt_prog_compiler_wl
19719
19720 # Compiler flag to prevent dynamic linking.
19721 link_static_flag=$lt_lt_prog_compiler_static
19722
19723 # Does compiler simultaneously support -c and -o options?
19724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19725
19726 # Whether or not to add -lc for building shared libraries.
19727 build_libtool_need_lc=$archive_cmds_need_lc
19728
19729 # Whether or not to disallow shared libs when runtime libs are static.
19730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19731
19732 # Compiler flag to allow reflexive dlopens.
19733 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19734
19735 # Compiler flag to generate shared objects directly from archives.
19736 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19737
19738 # Whether the compiler copes with passing no objects directly.
19739 compiler_needs_object=$lt_compiler_needs_object
19740
19741 # Create an old-style archive from a shared archive.
19742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19743
19744 # Create a temporary old-style archive to link instead of a shared archive.
19745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19746
19747 # Commands used to build a shared archive.
19748 archive_cmds=$lt_archive_cmds
19749 archive_expsym_cmds=$lt_archive_expsym_cmds
19750
19751 # Commands used to build a loadable module if different from building
19752 # a shared archive.
19753 module_cmds=$lt_module_cmds
19754 module_expsym_cmds=$lt_module_expsym_cmds
19755
19756 # Whether we are building with GNU ld or not.
19757 with_gnu_ld=$lt_with_gnu_ld
19758
19759 # Flag that allows shared libraries with undefined symbols to be built.
19760 allow_undefined_flag=$lt_allow_undefined_flag
19761
19762 # Flag that enforces no undefined symbols.
19763 no_undefined_flag=$lt_no_undefined_flag
19764
19765 # Flag to hardcode \$libdir into a binary during linking.
19766 # This must work even if \$libdir does not exist
19767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19768
19769 # If ld is used when linking, flag to hardcode \$libdir into a binary
19770 # during linking.  This must work even if \$libdir does not exist.
19771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19772
19773 # Whether we need a single "-rpath" flag with a separated argument.
19774 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19775
19776 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19777 # DIR into the resulting binary.
19778 hardcode_direct=$hardcode_direct
19779
19780 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19781 # DIR into the resulting binary and the resulting library dependency is
19782 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19783 # library is relocated.
19784 hardcode_direct_absolute=$hardcode_direct_absolute
19785
19786 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19787 # into the resulting binary.
19788 hardcode_minus_L=$hardcode_minus_L
19789
19790 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19791 # into the resulting binary.
19792 hardcode_shlibpath_var=$hardcode_shlibpath_var
19793
19794 # Set to "yes" if building a shared library automatically hardcodes DIR
19795 # into the library and all subsequent libraries and executables linked
19796 # against it.
19797 hardcode_automatic=$hardcode_automatic
19798
19799 # Set to yes if linker adds runtime paths of dependent libraries
19800 # to runtime path list.
19801 inherit_rpath=$inherit_rpath
19802
19803 # Whether libtool must link a program against all its dependency libraries.
19804 link_all_deplibs=$link_all_deplibs
19805
19806 # Set to "yes" if exported symbols are required.
19807 always_export_symbols=$always_export_symbols
19808
19809 # The commands to list exported symbols.
19810 export_symbols_cmds=$lt_export_symbols_cmds
19811
19812 # Symbols that should not be listed in the preloaded symbols.
19813 exclude_expsyms=$lt_exclude_expsyms
19814
19815 # Symbols that must always be exported.
19816 include_expsyms=$lt_include_expsyms
19817
19818 # Commands necessary for linking programs (against libraries) with templates.
19819 prelink_cmds=$lt_prelink_cmds
19820
19821 # Commands necessary for finishing linking programs.
19822 postlink_cmds=$lt_postlink_cmds
19823
19824 # Specify filename containing input files.
19825 file_list_spec=$lt_file_list_spec
19826
19827 # How to hardcode a shared library path into an executable.
19828 hardcode_action=$hardcode_action
19829
19830 # The directories searched by this compiler when creating a shared library.
19831 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19832
19833 # Dependencies to place before and after the objects being linked to
19834 # create a shared library.
19835 predep_objects=$lt_predep_objects
19836 postdep_objects=$lt_postdep_objects
19837 predeps=$lt_predeps
19838 postdeps=$lt_postdeps
19839
19840 # The library search path used internally by the compiler when linking
19841 # a shared library.
19842 compiler_lib_search_path=$lt_compiler_lib_search_path
19843
19844 # ### END LIBTOOL CONFIG
19845
19846 _LT_EOF
19847
19848   case $host_os in
19849   aix3*)
19850     cat <<\_LT_EOF >> "$cfgfile"
19851 # AIX sometimes has problems with the GCC collect2 program.  For some
19852 # reason, if we set the COLLECT_NAMES environment variable, the problems
19853 # vanish in a puff of smoke.
19854 if test "X${COLLECT_NAMES+set}" != Xset; then
19855   COLLECT_NAMES=
19856   export COLLECT_NAMES
19857 fi
19858 _LT_EOF
19859     ;;
19860   esac
19861
19862
19863 ltmain="$ac_aux_dir/ltmain.sh"
19864
19865
19866   # We use sed instead of cat because bash on DJGPP gets confused if
19867   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19868   # text mode, it properly converts lines to CR/LF.  This bash problem
19869   # is reportedly fixed, but why not run on old versions too?
19870   sed '$q' "$ltmain" >> "$cfgfile" \
19871      || (rm -f "$cfgfile"; exit 1)
19872
19873   if test x"$xsi_shell" = xyes; then
19874   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19875 func_dirname ()\
19876 {\
19877 \    case ${1} in\
19878 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19879 \      *  ) func_dirname_result="${3}" ;;\
19880 \    esac\
19881 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19882   && mv -f "$cfgfile.tmp" "$cfgfile" \
19883     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19884 test 0 -eq $? || _lt_function_replace_fail=:
19885
19886
19887   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19888 func_basename ()\
19889 {\
19890 \    func_basename_result="${1##*/}"\
19891 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19892   && mv -f "$cfgfile.tmp" "$cfgfile" \
19893     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19894 test 0 -eq $? || _lt_function_replace_fail=:
19895
19896
19897   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19898 func_dirname_and_basename ()\
19899 {\
19900 \    case ${1} in\
19901 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19902 \      *  ) func_dirname_result="${3}" ;;\
19903 \    esac\
19904 \    func_basename_result="${1##*/}"\
19905 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19906   && mv -f "$cfgfile.tmp" "$cfgfile" \
19907     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19908 test 0 -eq $? || _lt_function_replace_fail=:
19909
19910
19911   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19912 func_stripname ()\
19913 {\
19914 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19915 \    # positional parameters, so assign one to ordinary parameter first.\
19916 \    func_stripname_result=${3}\
19917 \    func_stripname_result=${func_stripname_result#"${1}"}\
19918 \    func_stripname_result=${func_stripname_result%"${2}"}\
19919 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19920   && mv -f "$cfgfile.tmp" "$cfgfile" \
19921     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19922 test 0 -eq $? || _lt_function_replace_fail=:
19923
19924
19925   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19926 func_split_long_opt ()\
19927 {\
19928 \    func_split_long_opt_name=${1%%=*}\
19929 \    func_split_long_opt_arg=${1#*=}\
19930 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19931   && mv -f "$cfgfile.tmp" "$cfgfile" \
19932     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19933 test 0 -eq $? || _lt_function_replace_fail=:
19934
19935
19936   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19937 func_split_short_opt ()\
19938 {\
19939 \    func_split_short_opt_arg=${1#??}\
19940 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19941 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19942   && mv -f "$cfgfile.tmp" "$cfgfile" \
19943     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19944 test 0 -eq $? || _lt_function_replace_fail=:
19945
19946
19947   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19948 func_lo2o ()\
19949 {\
19950 \    case ${1} in\
19951 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19952 \      *)    func_lo2o_result=${1} ;;\
19953 \    esac\
19954 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19955   && mv -f "$cfgfile.tmp" "$cfgfile" \
19956     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19957 test 0 -eq $? || _lt_function_replace_fail=:
19958
19959
19960   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19961 func_xform ()\
19962 {\
19963     func_xform_result=${1%.*}.lo\
19964 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19965   && mv -f "$cfgfile.tmp" "$cfgfile" \
19966     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19967 test 0 -eq $? || _lt_function_replace_fail=:
19968
19969
19970   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19971 func_arith ()\
19972 {\
19973     func_arith_result=$(( $* ))\
19974 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19975   && mv -f "$cfgfile.tmp" "$cfgfile" \
19976     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19977 test 0 -eq $? || _lt_function_replace_fail=:
19978
19979
19980   sed -e '/^func_len ()$/,/^} # func_len /c\
19981 func_len ()\
19982 {\
19983     func_len_result=${#1}\
19984 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19985   && mv -f "$cfgfile.tmp" "$cfgfile" \
19986     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19987 test 0 -eq $? || _lt_function_replace_fail=:
19988
19989 fi
19990
19991 if test x"$lt_shell_append" = xyes; then
19992   sed -e '/^func_append ()$/,/^} # func_append /c\
19993 func_append ()\
19994 {\
19995     eval "${1}+=\\${2}"\
19996 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19997   && mv -f "$cfgfile.tmp" "$cfgfile" \
19998     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19999 test 0 -eq $? || _lt_function_replace_fail=:
20000
20001
20002   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20003 func_append_quoted ()\
20004 {\
20005 \    func_quote_for_eval "${2}"\
20006 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20007 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20008   && mv -f "$cfgfile.tmp" "$cfgfile" \
20009     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20010 test 0 -eq $? || _lt_function_replace_fail=:
20011
20012
20013   # Save a `func_append' function call where possible by direct use of '+='
20014   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20015     && mv -f "$cfgfile.tmp" "$cfgfile" \
20016       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20017   test 0 -eq $? || _lt_function_replace_fail=:
20018 else
20019   # Save a `func_append' function call even when '+=' is not available
20020   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20021     && mv -f "$cfgfile.tmp" "$cfgfile" \
20022       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20023   test 0 -eq $? || _lt_function_replace_fail=:
20024 fi
20025
20026 if test x"$_lt_function_replace_fail" = x":"; then
20027   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20028 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20029 fi
20030
20031
20032    mv -f "$cfgfile" "$ofile" ||
20033     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20034   chmod +x "$ofile"
20035
20036
20037     cat <<_LT_EOF >> "$ofile"
20038
20039 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20040
20041 # The linker used to build libraries.
20042 LD=$lt_LD_CXX
20043
20044 # How to create reloadable object files.
20045 reload_flag=$lt_reload_flag_CXX
20046 reload_cmds=$lt_reload_cmds_CXX
20047
20048 # Commands used to build an old-style archive.
20049 old_archive_cmds=$lt_old_archive_cmds_CXX
20050
20051 # A language specific compiler.
20052 CC=$lt_compiler_CXX
20053
20054 # Is the compiler the GNU compiler?
20055 with_gcc=$GCC_CXX
20056
20057 # Compiler flag to turn off builtin functions.
20058 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20059
20060 # Additional compiler flags for building library objects.
20061 pic_flag=$lt_lt_prog_compiler_pic_CXX
20062
20063 # How to pass a linker flag through the compiler.
20064 wl=$lt_lt_prog_compiler_wl_CXX
20065
20066 # Compiler flag to prevent dynamic linking.
20067 link_static_flag=$lt_lt_prog_compiler_static_CXX
20068
20069 # Does compiler simultaneously support -c and -o options?
20070 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20071
20072 # Whether or not to add -lc for building shared libraries.
20073 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20074
20075 # Whether or not to disallow shared libs when runtime libs are static.
20076 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20077
20078 # Compiler flag to allow reflexive dlopens.
20079 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20080
20081 # Compiler flag to generate shared objects directly from archives.
20082 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20083
20084 # Whether the compiler copes with passing no objects directly.
20085 compiler_needs_object=$lt_compiler_needs_object_CXX
20086
20087 # Create an old-style archive from a shared archive.
20088 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20089
20090 # Create a temporary old-style archive to link instead of a shared archive.
20091 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20092
20093 # Commands used to build a shared archive.
20094 archive_cmds=$lt_archive_cmds_CXX
20095 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20096
20097 # Commands used to build a loadable module if different from building
20098 # a shared archive.
20099 module_cmds=$lt_module_cmds_CXX
20100 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20101
20102 # Whether we are building with GNU ld or not.
20103 with_gnu_ld=$lt_with_gnu_ld_CXX
20104
20105 # Flag that allows shared libraries with undefined symbols to be built.
20106 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20107
20108 # Flag that enforces no undefined symbols.
20109 no_undefined_flag=$lt_no_undefined_flag_CXX
20110
20111 # Flag to hardcode \$libdir into a binary during linking.
20112 # This must work even if \$libdir does not exist
20113 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20114
20115 # If ld is used when linking, flag to hardcode \$libdir into a binary
20116 # during linking.  This must work even if \$libdir does not exist.
20117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20118
20119 # Whether we need a single "-rpath" flag with a separated argument.
20120 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20121
20122 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20123 # DIR into the resulting binary.
20124 hardcode_direct=$hardcode_direct_CXX
20125
20126 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20127 # DIR into the resulting binary and the resulting library dependency is
20128 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20129 # library is relocated.
20130 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20131
20132 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20133 # into the resulting binary.
20134 hardcode_minus_L=$hardcode_minus_L_CXX
20135
20136 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20137 # into the resulting binary.
20138 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20139
20140 # Set to "yes" if building a shared library automatically hardcodes DIR
20141 # into the library and all subsequent libraries and executables linked
20142 # against it.
20143 hardcode_automatic=$hardcode_automatic_CXX
20144
20145 # Set to yes if linker adds runtime paths of dependent libraries
20146 # to runtime path list.
20147 inherit_rpath=$inherit_rpath_CXX
20148
20149 # Whether libtool must link a program against all its dependency libraries.
20150 link_all_deplibs=$link_all_deplibs_CXX
20151
20152 # Set to "yes" if exported symbols are required.
20153 always_export_symbols=$always_export_symbols_CXX
20154
20155 # The commands to list exported symbols.
20156 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20157
20158 # Symbols that should not be listed in the preloaded symbols.
20159 exclude_expsyms=$lt_exclude_expsyms_CXX
20160
20161 # Symbols that must always be exported.
20162 include_expsyms=$lt_include_expsyms_CXX
20163
20164 # Commands necessary for linking programs (against libraries) with templates.
20165 prelink_cmds=$lt_prelink_cmds_CXX
20166
20167 # Commands necessary for finishing linking programs.
20168 postlink_cmds=$lt_postlink_cmds_CXX
20169
20170 # Specify filename containing input files.
20171 file_list_spec=$lt_file_list_spec_CXX
20172
20173 # How to hardcode a shared library path into an executable.
20174 hardcode_action=$hardcode_action_CXX
20175
20176 # The directories searched by this compiler when creating a shared library.
20177 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20178
20179 # Dependencies to place before and after the objects being linked to
20180 # create a shared library.
20181 predep_objects=$lt_predep_objects_CXX
20182 postdep_objects=$lt_postdep_objects_CXX
20183 predeps=$lt_predeps_CXX
20184 postdeps=$lt_postdeps_CXX
20185
20186 # The library search path used internally by the compiler when linking
20187 # a shared library.
20188 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20189
20190 # ### END LIBTOOL TAG CONFIG: CXX
20191 _LT_EOF
20192
20193  ;;
20194
20195   esac
20196 done # for ac_tag
20197
20198
20199 as_fn_exit 0
20200 _ACEOF
20201 ac_clean_files=$ac_clean_files_save
20202
20203 test $ac_write_fail = 0 ||
20204   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20205
20206
20207 # configure is writing to config.log, and then calls config.status.
20208 # config.status does its own redirection, appending to config.log.
20209 # Unfortunately, on DOS this fails, as config.log is still kept open
20210 # by configure, so config.status won't be able to write to it; its
20211 # output is simply discarded.  So we exec the FD to /dev/null,
20212 # effectively closing config.log, so it can be properly (re)opened and
20213 # appended to by config.status.  When coming back to configure, we
20214 # need to make the FD available again.
20215 if test "$no_create" != yes; then
20216   ac_cs_success=:
20217   ac_config_status_args=
20218   test "$silent" = yes &&
20219     ac_config_status_args="$ac_config_status_args --quiet"
20220   exec 5>/dev/null
20221   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20222   exec 5>>config.log
20223   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20224   # would make configure fail if this is the last instruction.
20225   $ac_cs_success || as_fn_exit 1
20226 fi
20227 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20228   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20229 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20230 fi
20231
20232
20233