OSDN Git Service

libitm: Avoid non-portable x86 branch prediction mnemonic.
[pf3gnuchains/gcc-fork.git] / libitm / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU TM Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     PATH=/empty FPATH=/empty; export PATH FPATH
178     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU TM Runtime Library'
558 PACKAGE_TARNAME='libitm'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU TM Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libitm/'
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 #  include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 #  include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 ARCH_FUTEX_FALSE
605 ARCH_FUTEX_TRUE
606 ARCH_X86_FALSE
607 ARCH_X86_TRUE
608 link_itm
609 XLDFLAGS
610 XCFLAGS
611 config_path
612 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
613 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
614 OPT_LDFLAGS
615 SECTION_LDFLAGS
616 libtool_VERSION
617 MAINT
618 MAINTAINER_MODE_FALSE
619 MAINTAINER_MODE_TRUE
620 enable_static
621 enable_shared
622 CXXCPP
623 CPP
624 OTOOL64
625 OTOOL
626 LIPO
627 NMEDIT
628 DSYMUTIL
629 OBJDUMP
630 LN_S
631 ac_ct_DUMPBIN
632 DUMPBIN
633 LD
634 FGREP
635 EGREP
636 GREP
637 SED
638 LIBTOOL
639 BUILD_INFO_FALSE
640 BUILD_INFO_TRUE
641 PERL
642 RANLIB
643 NM
644 AR
645 am__fastdepCCAS_FALSE
646 am__fastdepCCAS_TRUE
647 CCASDEPMODE
648 CCASFLAGS
649 CCAS
650 am__fastdepCXX_FALSE
651 am__fastdepCXX_TRUE
652 CXXDEPMODE
653 ac_ct_CXX
654 CXXFLAGS
655 CXX
656 am__fastdepCC_FALSE
657 am__fastdepCC_TRUE
658 CCDEPMODE
659 AMDEPBACKSLASH
660 AMDEP_FALSE
661 AMDEP_TRUE
662 am__quote
663 am__include
664 DEPDIR
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
671 CC
672 toolexeclibdir
673 toolexecdir
674 multi_basedir
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
680 AWK
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 STRIP
685 install_sh
686 MAKEINFO
687 AUTOHEADER
688 AUTOMAKE
689 AUTOCONF
690 ACLOCAL
691 VERSION
692 PACKAGE
693 CYGPATH_W
694 am__isrc
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 target_os
699 target_vendor
700 target_cpu
701 target
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 GENINSRC_FALSE
711 GENINSRC_TRUE
712 target_alias
713 host_alias
714 build_alias
715 LIBS
716 ECHO_T
717 ECHO_N
718 ECHO_C
719 DEFS
720 mandir
721 localedir
722 libdir
723 psdir
724 pdfdir
725 dvidir
726 htmldir
727 infodir
728 docdir
729 oldincludedir
730 includedir
731 localstatedir
732 sharedstatedir
733 sysconfdir
734 datadir
735 datarootdir
736 libexecdir
737 sbindir
738 bindir
739 program_transform_name
740 prefix
741 exec_prefix
742 PACKAGE_URL
743 PACKAGE_BUGREPORT
744 PACKAGE_STRING
745 PACKAGE_VERSION
746 PACKAGE_TARNAME
747 PACKAGE_NAME
748 PATH_SEPARATOR
749 SHELL'
750 ac_subst_files=''
751 ac_user_opts='
752 enable_option_checking
753 enable_version_specific_runtime_libs
754 enable_generated_files_in_srcdir
755 enable_multilib
756 enable_dependency_tracking
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 enable_libtool_lock
763 enable_maintainer_mode
764 enable_linux_futex
765 enable_tls
766 enable_symvers
767 '
768       ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CPP
772 CPPFLAGS
773 CXXCPP'
774
775
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 ac_unrecognized_opts=
780 ac_unrecognized_sep=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
797
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
823
824 ac_prev=
825 ac_dashdash=
826 for ac_option
827 do
828   # If the previous option needs an argument, assign it.
829   if test -n "$ac_prev"; then
830     eval $ac_prev=\$ac_option
831     ac_prev=
832     continue
833   fi
834
835   case $ac_option in
836   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837   *)    ac_optarg=yes ;;
838   esac
839
840   # Accept the important Cygnus configure options, so we can diagnose typos.
841
842   case $ac_dashdash$ac_option in
843   --)
844     ac_dashdash=yes ;;
845
846   -bindir | --bindir | --bindi | --bind | --bin | --bi)
847     ac_prev=bindir ;;
848   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849     bindir=$ac_optarg ;;
850
851   -build | --build | --buil | --bui | --bu)
852     ac_prev=build_alias ;;
853   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854     build_alias=$ac_optarg ;;
855
856   -cache-file | --cache-file | --cache-fil | --cache-fi \
857   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858     ac_prev=cache_file ;;
859   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861     cache_file=$ac_optarg ;;
862
863   --config-cache | -C)
864     cache_file=config.cache ;;
865
866   -datadir | --datadir | --datadi | --datad)
867     ac_prev=datadir ;;
868   -datadir=* | --datadir=* | --datadi=* | --datad=*)
869     datadir=$ac_optarg ;;
870
871   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872   | --dataroo | --dataro | --datar)
873     ac_prev=datarootdir ;;
874   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876     datarootdir=$ac_optarg ;;
877
878   -disable-* | --disable-*)
879     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880     # Reject names that are not valid shell variable names.
881     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882       as_fn_error "invalid feature name: $ac_useropt"
883     ac_useropt_orig=$ac_useropt
884     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885     case $ac_user_opts in
886       *"
887 "enable_$ac_useropt"
888 "*) ;;
889       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890          ac_unrecognized_sep=', ';;
891     esac
892     eval enable_$ac_useropt=no ;;
893
894   -docdir | --docdir | --docdi | --doc | --do)
895     ac_prev=docdir ;;
896   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897     docdir=$ac_optarg ;;
898
899   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900     ac_prev=dvidir ;;
901   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902     dvidir=$ac_optarg ;;
903
904   -enable-* | --enable-*)
905     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908       as_fn_error "invalid feature name: $ac_useropt"
909     ac_useropt_orig=$ac_useropt
910     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911     case $ac_user_opts in
912       *"
913 "enable_$ac_useropt"
914 "*) ;;
915       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916          ac_unrecognized_sep=', ';;
917     esac
918     eval enable_$ac_useropt=\$ac_optarg ;;
919
920   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922   | --exec | --exe | --ex)
923     ac_prev=exec_prefix ;;
924   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926   | --exec=* | --exe=* | --ex=*)
927     exec_prefix=$ac_optarg ;;
928
929   -gas | --gas | --ga | --g)
930     # Obsolete; use --with-gas.
931     with_gas=yes ;;
932
933   -help | --help | --hel | --he | -h)
934     ac_init_help=long ;;
935   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936     ac_init_help=recursive ;;
937   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938     ac_init_help=short ;;
939
940   -host | --host | --hos | --ho)
941     ac_prev=host_alias ;;
942   -host=* | --host=* | --hos=* | --ho=*)
943     host_alias=$ac_optarg ;;
944
945   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946     ac_prev=htmldir ;;
947   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948   | --ht=*)
949     htmldir=$ac_optarg ;;
950
951   -includedir | --includedir | --includedi | --included | --include \
952   | --includ | --inclu | --incl | --inc)
953     ac_prev=includedir ;;
954   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955   | --includ=* | --inclu=* | --incl=* | --inc=*)
956     includedir=$ac_optarg ;;
957
958   -infodir | --infodir | --infodi | --infod | --info | --inf)
959     ac_prev=infodir ;;
960   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961     infodir=$ac_optarg ;;
962
963   -libdir | --libdir | --libdi | --libd)
964     ac_prev=libdir ;;
965   -libdir=* | --libdir=* | --libdi=* | --libd=*)
966     libdir=$ac_optarg ;;
967
968   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969   | --libexe | --libex | --libe)
970     ac_prev=libexecdir ;;
971   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972   | --libexe=* | --libex=* | --libe=*)
973     libexecdir=$ac_optarg ;;
974
975   -localedir | --localedir | --localedi | --localed | --locale)
976     ac_prev=localedir ;;
977   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978     localedir=$ac_optarg ;;
979
980   -localstatedir | --localstatedir | --localstatedi | --localstated \
981   | --localstate | --localstat | --localsta | --localst | --locals)
982     ac_prev=localstatedir ;;
983   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985     localstatedir=$ac_optarg ;;
986
987   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988     ac_prev=mandir ;;
989   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990     mandir=$ac_optarg ;;
991
992   -nfp | --nfp | --nf)
993     # Obsolete; use --without-fp.
994     with_fp=no ;;
995
996   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997   | --no-cr | --no-c | -n)
998     no_create=yes ;;
999
1000   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002     no_recursion=yes ;;
1003
1004   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006   | --oldin | --oldi | --old | --ol | --o)
1007     ac_prev=oldincludedir ;;
1008   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011     oldincludedir=$ac_optarg ;;
1012
1013   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014     ac_prev=prefix ;;
1015   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016     prefix=$ac_optarg ;;
1017
1018   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019   | --program-pre | --program-pr | --program-p)
1020     ac_prev=program_prefix ;;
1021   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023     program_prefix=$ac_optarg ;;
1024
1025   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026   | --program-suf | --program-su | --program-s)
1027     ac_prev=program_suffix ;;
1028   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030     program_suffix=$ac_optarg ;;
1031
1032   -program-transform-name | --program-transform-name \
1033   | --program-transform-nam | --program-transform-na \
1034   | --program-transform-n | --program-transform- \
1035   | --program-transform | --program-transfor \
1036   | --program-transfo | --program-transf \
1037   | --program-trans | --program-tran \
1038   | --progr-tra | --program-tr | --program-t)
1039     ac_prev=program_transform_name ;;
1040   -program-transform-name=* | --program-transform-name=* \
1041   | --program-transform-nam=* | --program-transform-na=* \
1042   | --program-transform-n=* | --program-transform-=* \
1043   | --program-transform=* | --program-transfor=* \
1044   | --program-transfo=* | --program-transf=* \
1045   | --program-trans=* | --program-tran=* \
1046   | --progr-tra=* | --program-tr=* | --program-t=*)
1047     program_transform_name=$ac_optarg ;;
1048
1049   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050     ac_prev=pdfdir ;;
1051   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052     pdfdir=$ac_optarg ;;
1053
1054   -psdir | --psdir | --psdi | --psd | --ps)
1055     ac_prev=psdir ;;
1056   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057     psdir=$ac_optarg ;;
1058
1059   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060   | -silent | --silent | --silen | --sile | --sil)
1061     silent=yes ;;
1062
1063   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064     ac_prev=sbindir ;;
1065   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066   | --sbi=* | --sb=*)
1067     sbindir=$ac_optarg ;;
1068
1069   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071   | --sharedst | --shareds | --shared | --share | --shar \
1072   | --sha | --sh)
1073     ac_prev=sharedstatedir ;;
1074   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077   | --sha=* | --sh=*)
1078     sharedstatedir=$ac_optarg ;;
1079
1080   -site | --site | --sit)
1081     ac_prev=site ;;
1082   -site=* | --site=* | --sit=*)
1083     site=$ac_optarg ;;
1084
1085   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086     ac_prev=srcdir ;;
1087   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088     srcdir=$ac_optarg ;;
1089
1090   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091   | --syscon | --sysco | --sysc | --sys | --sy)
1092     ac_prev=sysconfdir ;;
1093   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095     sysconfdir=$ac_optarg ;;
1096
1097   -target | --target | --targe | --targ | --tar | --ta | --t)
1098     ac_prev=target_alias ;;
1099   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100     target_alias=$ac_optarg ;;
1101
1102   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103     verbose=yes ;;
1104
1105   -version | --version | --versio | --versi | --vers | -V)
1106     ac_init_version=: ;;
1107
1108   -with-* | --with-*)
1109     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112       as_fn_error "invalid package name: $ac_useropt"
1113     ac_useropt_orig=$ac_useropt
1114     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115     case $ac_user_opts in
1116       *"
1117 "with_$ac_useropt"
1118 "*) ;;
1119       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120          ac_unrecognized_sep=', ';;
1121     esac
1122     eval with_$ac_useropt=\$ac_optarg ;;
1123
1124   -without-* | --without-*)
1125     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126     # Reject names that are not valid shell variable names.
1127     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128       as_fn_error "invalid package name: $ac_useropt"
1129     ac_useropt_orig=$ac_useropt
1130     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131     case $ac_user_opts in
1132       *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136          ac_unrecognized_sep=', ';;
1137     esac
1138     eval with_$ac_useropt=no ;;
1139
1140   --x)
1141     # Obsolete; use --with-x.
1142     with_x=yes ;;
1143
1144   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145   | --x-incl | --x-inc | --x-in | --x-i)
1146     ac_prev=x_includes ;;
1147   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149     x_includes=$ac_optarg ;;
1150
1151   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153     ac_prev=x_libraries ;;
1154   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156     x_libraries=$ac_optarg ;;
1157
1158   -*) as_fn_error "unrecognized option: \`$ac_option'
1159 Try \`$0 --help' for more information."
1160     ;;
1161
1162   *=*)
1163     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164     # Reject names that are not valid shell variable names.
1165     case $ac_envvar in #(
1166       '' | [0-9]* | *[!_$as_cr_alnum]* )
1167       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1168     esac
1169     eval $ac_envvar=\$ac_optarg
1170     export $ac_envvar ;;
1171
1172   *)
1173     # FIXME: should be removed in autoconf 3.0.
1174     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1178     ;;
1179
1180   esac
1181 done
1182
1183 if test -n "$ac_prev"; then
1184   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185   as_fn_error "missing argument to $ac_option"
1186 fi
1187
1188 if test -n "$ac_unrecognized_opts"; then
1189   case $enable_option_checking in
1190     no) ;;
1191     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1192     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193   esac
1194 fi
1195
1196 # Check all directory arguments for consistency.
1197 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198                 datadir sysconfdir sharedstatedir localstatedir includedir \
1199                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200                 libdir localedir mandir
1201 do
1202   eval ac_val=\$$ac_var
1203   # Remove trailing slashes.
1204   case $ac_val in
1205     */ )
1206       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207       eval $ac_var=\$ac_val;;
1208   esac
1209   # Be sure to have absolute directory names.
1210   case $ac_val in
1211     [\\/$]* | ?:[\\/]* )  continue;;
1212     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213   esac
1214   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1215 done
1216
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1223
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226   if test "x$build_alias" = x; then
1227     cross_compiling=maybe
1228     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229     If a cross compiler is detected then cross compile mode will be used." >&2
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   as_fn_error "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   as_fn_error "pwd does not report name of working directory"
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251   ac_srcdir_defaulted=yes
1252   # Try the directory containing this script, then the parent directory.
1253   ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255          X"$as_myself" : 'X\(//\)[^/]' \| \
1256          X"$as_myself" : 'X\(//\)$' \| \
1257          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)[^/].*/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\).*/{
1272             s//\1/
1273             q
1274           }
1275           s/.*/./; q'`
1276   srcdir=$ac_confdir
1277   if test ! -r "$srcdir/$ac_unique_file"; then
1278     srcdir=..
1279   fi
1280 else
1281   ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1286 fi
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1290         pwd)`
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293   srcdir=.
1294 fi
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1298 case $srcdir in
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 esac
1301 for ac_var in $ac_precious_vars; do
1302   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303   eval ac_env_${ac_var}_value=\$${ac_var}
1304   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 done
1307
1308 #
1309 # Report the --help message.
1310 #
1311 if test "$ac_init_help" = "long"; then
1312   # Omit some internal or obsolete options to make the list less imposing.
1313   # This message is too long to be a string in the A/UX 3.1 sh.
1314   cat <<_ACEOF
1315 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1316
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE.  See below for descriptions of some of the useful variables.
1321
1322 Defaults for the options are specified in brackets.
1323
1324 Configuration:
1325   -h, --help              display this help and exit
1326       --help=short        display options specific to this package
1327       --help=recursive    display the short help of all the included packages
1328   -V, --version           display version information and exit
1329   -q, --quiet, --silent   do not print \`checking...' messages
1330       --cache-file=FILE   cache test results in FILE [disabled]
1331   -C, --config-cache      alias for \`--cache-file=config.cache'
1332   -n, --no-create         do not create output files
1333       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1334
1335 Installation directories:
1336   --prefix=PREFIX         install architecture-independent files in PREFIX
1337                           [$ac_default_prefix]
1338   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1339                           [PREFIX]
1340
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1345
1346 For better control, use the options below.
1347
1348 Fine tuning of the installation directories:
1349   --bindir=DIR            user executables [EPREFIX/bin]
1350   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1351   --libexecdir=DIR        program executables [EPREFIX/libexec]
1352   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1353   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1354   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1355   --libdir=DIR            object code libraries [EPREFIX/lib]
1356   --includedir=DIR        C header files [PREFIX/include]
1357   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1358   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1359   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1360   --infodir=DIR           info documentation [DATAROOTDIR/info]
1361   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1362   --mandir=DIR            man documentation [DATAROOTDIR/man]
1363   --docdir=DIR            documentation root [DATAROOTDIR/doc/libitm]
1364   --htmldir=DIR           html documentation [DOCDIR]
1365   --dvidir=DIR            dvi documentation [DOCDIR]
1366   --pdfdir=DIR            pdf documentation [DOCDIR]
1367   --psdir=DIR             ps documentation [DOCDIR]
1368 _ACEOF
1369
1370   cat <<\_ACEOF
1371
1372 Program names:
1373   --program-prefix=PREFIX            prepend PREFIX to installed program names
1374   --program-suffix=SUFFIX            append SUFFIX to installed program names
1375   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380   --target=TARGET   configure for building compilers for TARGET [HOST]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385   case $ac_init_help in
1386      short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1387    esac
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-option-checking  ignore unrecognized --enable/--with options
1392   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394   --enable-version-specific-runtime-libs
1395                           Specify that runtime libraries should be installed
1396                           in a compiler-specific directory [default=no]
1397   --enable-generated-files-in-srcdir
1398                           put copies of generated files in source dir intended
1399                           for creating source tarballs for users without
1400                           texinfo bison or flex. [default=no]
1401   --enable-multilib       build many library versions (default)
1402   --disable-dependency-tracking  speeds up one-time build
1403   --enable-dependency-tracking   do not reject slow dependency extractors
1404   --enable-shared[=PKGS]  build shared libraries [default=yes]
1405   --enable-static[=PKGS]  build static libraries [default=yes]
1406   --enable-fast-install[=PKGS]
1407                           optimize for fast installation [default=yes]
1408   --disable-libtool-lock  avoid locking (might break parallel builds)
1409   --enable-maintainer-mode  enable make rules and dependencies not useful
1410                           (and sometimes confusing) to the casual installer
1411   --enable-linux-futex    use the Linux futex system call [default=default]
1412   --enable-tls            Use thread-local storage [default=yes]
1413   --enable-symvers=STYLE  enables symbol versioning of the shared library
1414                           [default=yes]
1415
1416 Optional Packages:
1417   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1418   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1419   --with-pic              try to use only PIC/non-PIC objects [default=use
1420                           both]
1421   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1422
1423 Some influential environment variables:
1424   CC          C compiler command
1425   CFLAGS      C compiler flags
1426   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1427               nonstandard directory <lib dir>
1428   LIBS        libraries to pass to the linker, e.g. -l<library>
1429   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1430               you have headers in a nonstandard directory <include dir>
1431   CXX         C++ compiler command
1432   CXXFLAGS    C++ compiler flags
1433   CCAS        assembler compiler command (defaults to CC)
1434   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1435   CPP         C preprocessor
1436   CXXCPP      C++ preprocessor
1437
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1440
1441 Report bugs to the package provider.
1442 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1443 General help using GNU software: <http://www.gnu.org/gethelp/>.
1444 _ACEOF
1445 ac_status=$?
1446 fi
1447
1448 if test "$ac_init_help" = "recursive"; then
1449   # If there are subdirs, report their specific --help.
1450   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1451     test -d "$ac_dir" ||
1452       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453       continue
1454     ac_builddir=.
1455
1456 case "$ac_dir" in
1457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *)
1459   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1460   # A ".." for each directory in $ac_dir_suffix.
1461   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1462   case $ac_top_builddir_sub in
1463   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1465   esac ;;
1466 esac
1467 ac_abs_top_builddir=$ac_pwd
1468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1469 # for backward compatibility:
1470 ac_top_builddir=$ac_top_build_prefix
1471
1472 case $srcdir in
1473   .)  # We are building in place.
1474     ac_srcdir=.
1475     ac_top_srcdir=$ac_top_builddir_sub
1476     ac_abs_top_srcdir=$ac_pwd ;;
1477   [\\/]* | ?:[\\/]* )  # Absolute name.
1478     ac_srcdir=$srcdir$ac_dir_suffix;
1479     ac_top_srcdir=$srcdir
1480     ac_abs_top_srcdir=$srcdir ;;
1481   *) # Relative name.
1482     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1483     ac_top_srcdir=$ac_top_build_prefix$srcdir
1484     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1485 esac
1486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487
1488     cd "$ac_dir" || { ac_status=$?; continue; }
1489     # Check for guested configure.
1490     if test -f "$ac_srcdir/configure.gnu"; then
1491       echo &&
1492       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493     elif test -f "$ac_srcdir/configure"; then
1494       echo &&
1495       $SHELL "$ac_srcdir/configure" --help=recursive
1496     else
1497       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498     fi || ac_status=$?
1499     cd "$ac_pwd" || { ac_status=$?; break; }
1500   done
1501 fi
1502
1503 test -n "$ac_init_help" && exit $ac_status
1504 if $ac_init_version; then
1505   cat <<\_ACEOF
1506 GNU TM Runtime Library configure 1.0
1507 generated by GNU Autoconf 2.64
1508
1509 Copyright (C) 2009 Free Software Foundation, Inc.
1510 This configure script is free software; the Free Software Foundation
1511 gives unlimited permission to copy, distribute and modify it.
1512 _ACEOF
1513   exit
1514 fi
1515
1516 ## ------------------------ ##
1517 ## Autoconf initialization. ##
1518 ## ------------------------ ##
1519
1520 # ac_fn_c_try_compile LINENO
1521 # --------------------------
1522 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1523 ac_fn_c_try_compile ()
1524 {
1525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526   rm -f conftest.$ac_objext
1527   if { { ac_try="$ac_compile"
1528 case "(($ac_try" in
1529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530   *) ac_try_echo=$ac_try;;
1531 esac
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534   (eval "$ac_compile") 2>conftest.err
1535   ac_status=$?
1536   if test -s conftest.err; then
1537     grep -v '^ *+' conftest.err >conftest.er1
1538     cat conftest.er1 >&5
1539     mv -f conftest.er1 conftest.err
1540   fi
1541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542   test $ac_status = 0; } && {
1543          test -z "$ac_c_werror_flag" ||
1544          test ! -s conftest.err
1545        } && test -s conftest.$ac_objext; then :
1546   ac_retval=0
1547 else
1548   $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1550
1551         ac_retval=1
1552 fi
1553   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1554   return $ac_retval
1555
1556 } # ac_fn_c_try_compile
1557
1558 # ac_fn_cxx_try_compile LINENO
1559 # ----------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_cxx_try_compile ()
1562 {
1563   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564   rm -f conftest.$ac_objext
1565   if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568   *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572   (eval "$ac_compile") 2>conftest.err
1573   ac_status=$?
1574   if test -s conftest.err; then
1575     grep -v '^ *+' conftest.err >conftest.er1
1576     cat conftest.er1 >&5
1577     mv -f conftest.er1 conftest.err
1578   fi
1579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580   test $ac_status = 0; } && {
1581          test -z "$ac_cxx_werror_flag" ||
1582          test ! -s conftest.err
1583        } && test -s conftest.$ac_objext; then :
1584   ac_retval=0
1585 else
1586   $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589         ac_retval=1
1590 fi
1591   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592   return $ac_retval
1593
1594 } # ac_fn_cxx_try_compile
1595
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_link ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   rm -f conftest.$ac_objext conftest$ac_exeext
1603   if { { ac_try="$ac_link"
1604 case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610   (eval "$ac_link") 2>conftest.err
1611   ac_status=$?
1612   if test -s conftest.err; then
1613     grep -v '^ *+' conftest.err >conftest.er1
1614     cat conftest.er1 >&5
1615     mv -f conftest.er1 conftest.err
1616   fi
1617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } && {
1619          test -z "$ac_c_werror_flag" ||
1620          test ! -s conftest.err
1621        } && test -s conftest$ac_exeext && {
1622          test "$cross_compiling" = yes ||
1623          $as_test_x conftest$ac_exeext
1624        }; then :
1625   ac_retval=0
1626 else
1627   $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630         ac_retval=1
1631 fi
1632   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634   # interfere with the next link command; also delete a directory that is
1635   # left behind by Apple's compiler.  We do this before executing the actions.
1636   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638   return $ac_retval
1639
1640 } # ac_fn_c_try_link
1641
1642 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists and can be compiled using the include files in
1645 # INCLUDES, setting the cache variable VAR accordingly.
1646 ac_fn_c_check_header_compile ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1652   $as_echo_n "(cached) " >&6
1653 else
1654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h.  */
1656 $4
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660   eval "$3=yes"
1661 else
1662   eval "$3=no"
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 fi
1666 eval ac_res=\$$3
1667                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670
1671 } # ac_fn_c_check_header_compile
1672
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682   *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687   ac_status=$?
1688   if test -s conftest.err; then
1689     grep -v '^ *+' conftest.err >conftest.er1
1690     cat conftest.er1 >&5
1691     mv -f conftest.er1 conftest.err
1692   fi
1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694   test $ac_status = 0; } >/dev/null && {
1695          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696          test ! -s conftest.err
1697        }; then :
1698   ac_retval=0
1699 else
1700   $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703     ac_retval=1
1704 fi
1705   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706   return $ac_retval
1707
1708 } # ac_fn_c_try_cpp
1709
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_link") 2>&5
1725   ac_status=$?
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728   { { case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_try") 2>&5
1735   ac_status=$?
1736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737   test $ac_status = 0; }; }; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: program exited with status $ac_status" >&5
1741        $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744        ac_retval=$ac_status
1745 fi
1746   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748   return $ac_retval
1749
1750 } # ac_fn_c_try_run
1751
1752 # ac_fn_c_check_func LINENO FUNC VAR
1753 # ----------------------------------
1754 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1755 ac_fn_c_check_func ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1767 #define $2 innocuous_$2
1768
1769 /* System header to define __stub macros and hopefully few prototypes,
1770     which can conflict with char $2 (); below.
1771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1772     <limits.h> exists even on freestanding compilers.  */
1773
1774 #ifdef __STDC__
1775 # include <limits.h>
1776 #else
1777 # include <assert.h>
1778 #endif
1779
1780 #undef $2
1781
1782 /* Override any GCC internal prototype to avoid an error.
1783    Use char because int might match the return type of a GCC
1784    builtin and then its argument prototype would still apply.  */
1785 #ifdef __cplusplus
1786 extern "C"
1787 #endif
1788 char $2 ();
1789 /* The GNU C library defines this for functions which it implements
1790     to always fail with ENOSYS.  Some functions are actually named
1791     something starting with __ and the normal name is an alias.  */
1792 #if defined __stub_$2 || defined __stub___$2
1793 choke me
1794 #endif
1795
1796 int
1797 main ()
1798 {
1799 return $2 ();
1800   ;
1801   return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_link "$LINENO"; then :
1805   eval "$3=yes"
1806 else
1807   eval "$3=no"
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext \
1810     conftest$ac_exeext conftest.$ac_ext
1811 fi
1812 eval ac_res=\$$3
1813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816
1817 } # ac_fn_c_check_func
1818
1819 # ac_fn_cxx_try_cpp LINENO
1820 # ------------------------
1821 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_cxx_try_cpp ()
1823 {
1824   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825   if { { ac_try="$ac_cpp conftest.$ac_ext"
1826 case "(($ac_try" in
1827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828   *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1833   ac_status=$?
1834   if test -s conftest.err; then
1835     grep -v '^ *+' conftest.err >conftest.er1
1836     cat conftest.er1 >&5
1837     mv -f conftest.er1 conftest.err
1838   fi
1839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840   test $ac_status = 0; } >/dev/null && {
1841          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1842          test ! -s conftest.err
1843        }; then :
1844   ac_retval=0
1845 else
1846   $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1848
1849     ac_retval=1
1850 fi
1851   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852   return $ac_retval
1853
1854 } # ac_fn_cxx_try_cpp
1855
1856 # ac_fn_cxx_try_link LINENO
1857 # -------------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_cxx_try_link ()
1860 {
1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862   rm -f conftest.$ac_objext conftest$ac_exeext
1863   if { { ac_try="$ac_link"
1864 case "(($ac_try" in
1865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866   *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870   (eval "$ac_link") 2>conftest.err
1871   ac_status=$?
1872   if test -s conftest.err; then
1873     grep -v '^ *+' conftest.err >conftest.er1
1874     cat conftest.er1 >&5
1875     mv -f conftest.er1 conftest.err
1876   fi
1877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878   test $ac_status = 0; } && {
1879          test -z "$ac_cxx_werror_flag" ||
1880          test ! -s conftest.err
1881        } && test -s conftest$ac_exeext && {
1882          test "$cross_compiling" = yes ||
1883          $as_test_x conftest$ac_exeext
1884        }; then :
1885   ac_retval=0
1886 else
1887   $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890         ac_retval=1
1891 fi
1892   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1893   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1894   # interfere with the next link command; also delete a directory that is
1895   # left behind by Apple's compiler.  We do this before executing the actions.
1896   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898   return $ac_retval
1899
1900 } # ac_fn_cxx_try_link
1901
1902 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1905 # the include files in INCLUDES and setting the cache variable VAR
1906 # accordingly.
1907 ac_fn_c_check_header_mongrel ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914   $as_echo_n "(cached) " >&6
1915 fi
1916 eval ac_res=\$$3
1917                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 else
1920   # Is the header compilable?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1922 $as_echo_n "checking $2 usability... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h.  */
1925 $4
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929   ac_header_compiler=yes
1930 else
1931   ac_header_compiler=no
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1935 $as_echo "$ac_header_compiler" >&6; }
1936
1937 # Is the header present?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1939 $as_echo_n "checking $2 presence... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_cpp "$LINENO"; then :
1945   ac_header_preproc=yes
1946 else
1947   ac_header_preproc=no
1948 fi
1949 rm -f conftest.err conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1951 $as_echo "$ac_header_preproc" >&6; }
1952
1953 # So?  What about this header?
1954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1955   yes:no: )
1956     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1957 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1958     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960     ;;
1961   no:yes:* )
1962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1963 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1964     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1965 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1966     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1967 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1969 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972     ;;
1973 esac
1974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977   $as_echo_n "(cached) " >&6
1978 else
1979   eval "$3=\$ac_header_compiler"
1980 fi
1981 eval ac_res=\$$3
1982                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 fi
1985   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986
1987 } # ac_fn_c_check_header_mongrel
1988
1989 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1990 # -------------------------------------------
1991 # Tests whether TYPE exists after having included INCLUDES, setting cache
1992 # variable VAR accordingly.
1993 ac_fn_c_check_type ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1999   $as_echo_n "(cached) " >&6
2000 else
2001   eval "$3=no"
2002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 $4
2005 int
2006 main ()
2007 {
2008 if (sizeof ($2))
2009          return 0;
2010   ;
2011   return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h.  */
2017 $4
2018 int
2019 main ()
2020 {
2021 if (sizeof (($2)))
2022             return 0;
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028
2029 else
2030   eval "$3=yes"
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 fi
2036 eval ac_res=\$$3
2037                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040
2041 } # ac_fn_c_check_type
2042
2043 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2044 # --------------------------------------------
2045 # Tries to find the compile-time value of EXPR in a program that includes
2046 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2047 # computed
2048 ac_fn_c_compute_int ()
2049 {
2050   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051   if test "$cross_compiling" = yes; then
2052     # Depending upon the size, compute the lo and hi bounds.
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h.  */
2055 $4
2056 int
2057 main ()
2058 {
2059 static int test_array [1 - 2 * !(($2) >= 0)];
2060 test_array [0] = 0
2061
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067   ac_lo=0 ac_mid=0
2068   while :; do
2069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h.  */
2071 $4
2072 int
2073 main ()
2074 {
2075 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2076 test_array [0] = 0
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083   ac_hi=$ac_mid; break
2084 else
2085   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2086                         if test $ac_lo -le $ac_mid; then
2087                           ac_lo= ac_hi=
2088                           break
2089                         fi
2090                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093   done
2094 else
2095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h.  */
2097 $4
2098 int
2099 main ()
2100 {
2101 static int test_array [1 - 2 * !(($2) < 0)];
2102 test_array [0] = 0
2103
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109   ac_hi=-1 ac_mid=-1
2110   while :; do
2111     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h.  */
2113 $4
2114 int
2115 main ()
2116 {
2117 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2118 test_array [0] = 0
2119
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125   ac_lo=$ac_mid; break
2126 else
2127   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2128                         if test $ac_mid -le $ac_hi; then
2129                           ac_lo= ac_hi=
2130                           break
2131                         fi
2132                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135   done
2136 else
2137   ac_lo= ac_hi=
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 # Binary search between lo and hi bounds.
2143 while test "x$ac_lo" != "x$ac_hi"; do
2144   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h.  */
2147 $4
2148 int
2149 main ()
2150 {
2151 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2152 test_array [0] = 0
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159   ac_hi=$ac_mid
2160 else
2161   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 done
2165 case $ac_lo in #((
2166 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2167 '') ac_retval=1 ;;
2168 esac
2169   else
2170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h.  */
2172 $4
2173 static long int longval () { return $2; }
2174 static unsigned long int ulongval () { return $2; }
2175 #include <stdio.h>
2176 #include <stdlib.h>
2177 int
2178 main ()
2179 {
2180
2181   FILE *f = fopen ("conftest.val", "w");
2182   if (! f)
2183     return 1;
2184   if (($2) < 0)
2185     {
2186       long int i = longval ();
2187       if (i != ($2))
2188         return 1;
2189       fprintf (f, "%ld", i);
2190     }
2191   else
2192     {
2193       unsigned long int i = ulongval ();
2194       if (i != ($2))
2195         return 1;
2196       fprintf (f, "%lu", i);
2197     }
2198   /* Do not output a trailing newline, as this causes \r\n confusion
2199      on some platforms.  */
2200   return ferror (f) || fclose (f) != 0;
2201
2202   ;
2203   return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_c_try_run "$LINENO"; then :
2207   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2208 else
2209   ac_retval=1
2210 fi
2211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2212   conftest.$ac_objext conftest.beam conftest.$ac_ext
2213 rm -f conftest.val
2214
2215   fi
2216   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2217   return $ac_retval
2218
2219 } # ac_fn_c_compute_int
2220 cat >config.log <<_ACEOF
2221 This file contains any messages produced by compilers while
2222 running configure, to aid debugging if configure makes a mistake.
2223
2224 It was created by GNU TM Runtime Library $as_me 1.0, which was
2225 generated by GNU Autoconf 2.64.  Invocation command line was
2226
2227   $ $0 $@
2228
2229 _ACEOF
2230 exec 5>>config.log
2231 {
2232 cat <<_ASUNAME
2233 ## --------- ##
2234 ## Platform. ##
2235 ## --------- ##
2236
2237 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2238 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2239 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2240 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2241 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2242
2243 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2244 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2245
2246 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2247 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2248 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2249 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2250 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2251 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2252 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2253
2254 _ASUNAME
2255
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261     $as_echo "PATH: $as_dir"
2262   done
2263 IFS=$as_save_IFS
2264
2265 } >&5
2266
2267 cat >&5 <<_ACEOF
2268
2269
2270 ## ----------- ##
2271 ## Core tests. ##
2272 ## ----------- ##
2273
2274 _ACEOF
2275
2276
2277 # Keep a trace of the command line.
2278 # Strip out --no-create and --no-recursion so they do not pile up.
2279 # Strip out --silent because we don't want to record it for future runs.
2280 # Also quote any args containing shell meta-characters.
2281 # Make two passes to allow for proper duplicate-argument suppression.
2282 ac_configure_args=
2283 ac_configure_args0=
2284 ac_configure_args1=
2285 ac_must_keep_next=false
2286 for ac_pass in 1 2
2287 do
2288   for ac_arg
2289   do
2290     case $ac_arg in
2291     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2292     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2293     | -silent | --silent | --silen | --sile | --sil)
2294       continue ;;
2295     *\'*)
2296       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2297     esac
2298     case $ac_pass in
2299     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2300     2)
2301       as_fn_append ac_configure_args1 " '$ac_arg'"
2302       if test $ac_must_keep_next = true; then
2303         ac_must_keep_next=false # Got value, back to normal.
2304       else
2305         case $ac_arg in
2306           *=* | --config-cache | -C | -disable-* | --disable-* \
2307           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2308           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2309           | -with-* | --with-* | -without-* | --without-* | --x)
2310             case "$ac_configure_args0 " in
2311               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2312             esac
2313             ;;
2314           -* ) ac_must_keep_next=true ;;
2315         esac
2316       fi
2317       as_fn_append ac_configure_args " '$ac_arg'"
2318       ;;
2319     esac
2320   done
2321 done
2322 { ac_configure_args0=; unset ac_configure_args0;}
2323 { ac_configure_args1=; unset ac_configure_args1;}
2324
2325 # When interrupted or exit'd, cleanup temporary files, and complete
2326 # config.log.  We remove comments because anyway the quotes in there
2327 # would cause problems or look ugly.
2328 # WARNING: Use '\'' to represent an apostrophe within the trap.
2329 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2330 trap 'exit_status=$?
2331   # Save into config.log some information that might help in debugging.
2332   {
2333     echo
2334
2335     cat <<\_ASBOX
2336 ## ---------------- ##
2337 ## Cache variables. ##
2338 ## ---------------- ##
2339 _ASBOX
2340     echo
2341     # The following way of writing the cache mishandles newlines in values,
2342 (
2343   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2344     eval ac_val=\$$ac_var
2345     case $ac_val in #(
2346     *${as_nl}*)
2347       case $ac_var in #(
2348       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2350       esac
2351       case $ac_var in #(
2352       _ | IFS | as_nl) ;; #(
2353       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2354       *) { eval $ac_var=; unset $ac_var;} ;;
2355       esac ;;
2356     esac
2357   done
2358   (set) 2>&1 |
2359     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2360     *${as_nl}ac_space=\ *)
2361       sed -n \
2362         "s/'\''/'\''\\\\'\'''\''/g;
2363           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2364       ;; #(
2365     *)
2366       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2367       ;;
2368     esac |
2369     sort
2370 )
2371     echo
2372
2373     cat <<\_ASBOX
2374 ## ----------------- ##
2375 ## Output variables. ##
2376 ## ----------------- ##
2377 _ASBOX
2378     echo
2379     for ac_var in $ac_subst_vars
2380     do
2381       eval ac_val=\$$ac_var
2382       case $ac_val in
2383       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384       esac
2385       $as_echo "$ac_var='\''$ac_val'\''"
2386     done | sort
2387     echo
2388
2389     if test -n "$ac_subst_files"; then
2390       cat <<\_ASBOX
2391 ## ------------------- ##
2392 ## File substitutions. ##
2393 ## ------------------- ##
2394 _ASBOX
2395       echo
2396       for ac_var in $ac_subst_files
2397       do
2398         eval ac_val=\$$ac_var
2399         case $ac_val in
2400         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2401         esac
2402         $as_echo "$ac_var='\''$ac_val'\''"
2403       done | sort
2404       echo
2405     fi
2406
2407     if test -s confdefs.h; then
2408       cat <<\_ASBOX
2409 ## ----------- ##
2410 ## confdefs.h. ##
2411 ## ----------- ##
2412 _ASBOX
2413       echo
2414       cat confdefs.h
2415       echo
2416     fi
2417     test "$ac_signal" != 0 &&
2418       $as_echo "$as_me: caught signal $ac_signal"
2419     $as_echo "$as_me: exit $exit_status"
2420   } >&5
2421   rm -f core *.core core.conftest.* &&
2422     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2423     exit $exit_status
2424 ' 0
2425 for ac_signal in 1 2 13 15; do
2426   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2427 done
2428 ac_signal=0
2429
2430 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2431 rm -f -r conftest* confdefs.h
2432
2433 $as_echo "/* confdefs.h */" > confdefs.h
2434
2435 # Predefined preprocessor variables.
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_NAME "$PACKAGE_NAME"
2439 _ACEOF
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2443 _ACEOF
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2447 _ACEOF
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_STRING "$PACKAGE_STRING"
2451 _ACEOF
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2455 _ACEOF
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_URL "$PACKAGE_URL"
2459 _ACEOF
2460
2461
2462 # Let the site file select an alternate cache file if it wants to.
2463 # Prefer an explicitly selected file to automatically selected ones.
2464 ac_site_file1=NONE
2465 ac_site_file2=NONE
2466 if test -n "$CONFIG_SITE"; then
2467   ac_site_file1=$CONFIG_SITE
2468 elif test "x$prefix" != xNONE; then
2469   ac_site_file1=$prefix/share/config.site
2470   ac_site_file2=$prefix/etc/config.site
2471 else
2472   ac_site_file1=$ac_default_prefix/share/config.site
2473   ac_site_file2=$ac_default_prefix/etc/config.site
2474 fi
2475 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2476 do
2477   test "x$ac_site_file" = xNONE && continue
2478   if test -r "$ac_site_file"; then
2479     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2480 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2481     sed 's/^/| /' "$ac_site_file" >&5
2482     . "$ac_site_file"
2483   fi
2484 done
2485
2486 if test -r "$cache_file"; then
2487   # Some versions of bash will fail to source /dev/null (special
2488   # files actually), so we avoid doing that.
2489   if test -f "$cache_file"; then
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2491 $as_echo "$as_me: loading cache $cache_file" >&6;}
2492     case $cache_file in
2493       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2494       *)                      . "./$cache_file";;
2495     esac
2496   fi
2497 else
2498   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2499 $as_echo "$as_me: creating cache $cache_file" >&6;}
2500   >$cache_file
2501 fi
2502
2503 # Check that the precious variables saved in the cache have kept the same
2504 # value.
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508   eval ac_new_set=\$ac_env_${ac_var}_set
2509   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510   eval ac_new_val=\$ac_env_${ac_var}_value
2511   case $ac_old_set,$ac_new_set in
2512     set,)
2513       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515       ac_cache_corrupted=: ;;
2516     ,set)
2517       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519       ac_cache_corrupted=: ;;
2520     ,);;
2521     *)
2522       if test "x$ac_old_val" != "x$ac_new_val"; then
2523         # differences in whitespace do not lead to failure.
2524         ac_old_val_w=`echo x $ac_old_val`
2525         ac_new_val_w=`echo x $ac_new_val`
2526         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529           ac_cache_corrupted=:
2530         else
2531           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533           eval $ac_var=\$ac_old_val
2534         fi
2535         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2536 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2537         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2538 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2539       fi;;
2540   esac
2541   # Pass precious variables to config.status.
2542   if test "$ac_new_set" = set; then
2543     case $ac_new_val in
2544     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545     *) ac_arg=$ac_var=$ac_new_val ;;
2546     esac
2547     case " $ac_configure_args " in
2548       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2549       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2550     esac
2551   fi
2552 done
2553 if $ac_cache_corrupted; then
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2558   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2559 fi
2560 ## -------------------- ##
2561 ## Main body of script. ##
2562 ## -------------------- ##
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
2570
2571
2572
2573
2574 ac_config_headers="$ac_config_headers config.h"
2575
2576
2577 # -------
2578 # Options
2579 # -------
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2582 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2583  # Check whether --enable-version-specific-runtime-libs was given.
2584 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2585   enableval=$enable_version_specific_runtime_libs;
2586       case "$enableval" in
2587        yes|no) ;;
2588        *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2589                           esac
2590
2591 else
2592   enable_version_specific_runtime_libs=no
2593 fi
2594
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2597 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2598
2599 # We would like our source tree to be readonly. However when releases or
2600 # pre-releases are generated, the flex/bison generated files as well as the
2601 # various formats of manuals need to be included along with the rest of the
2602 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
2603 # just that.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2605 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2606  # Check whether --enable-generated-files-in-srcdir was given.
2607 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2608   enableval=$enable_generated_files_in_srcdir;
2609       case "$enableval" in
2610        yes|no) ;;
2611        *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2612                           esac
2613
2614 else
2615   enable_generated_files_in_srcdir=no
2616 fi
2617
2618
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2620 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2621  if test "$enable_generated_files_in_srcdir" = yes; then
2622   GENINSRC_TRUE=
2623   GENINSRC_FALSE='#'
2624 else
2625   GENINSRC_TRUE='#'
2626   GENINSRC_FALSE=
2627 fi
2628
2629
2630
2631 # -------
2632 # -------
2633
2634 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2635 #
2636 # You will slowly go insane if you do not grok the following fact:  when
2637 # building this library, the top-level /target/ becomes the library's /host/.
2638 #
2639 # configure then causes --target to default to --host, exactly like any
2640 # other package using autoconf.  Therefore, 'target' and 'host' will
2641 # always be the same.  This makes sense both for native and cross compilers
2642 # just think about it for a little while.  :-)
2643 #
2644 # Also, if this library is being configured as part of a cross compiler, the
2645 # top-level configure script will pass the "real" host as $with_cross_host.
2646 #
2647 # Do not delete or change the following two lines.  For why, see
2648 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2649 ac_aux_dir=
2650 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2651   for ac_t in install-sh install.sh shtool; do
2652     if test -f "$ac_dir/$ac_t"; then
2653       ac_aux_dir=$ac_dir
2654       ac_install_sh="$ac_aux_dir/$ac_t -c"
2655       break 2
2656     fi
2657   done
2658 done
2659 if test -z "$ac_aux_dir"; then
2660   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2661 fi
2662
2663 # These three variables are undocumented and unsupported,
2664 # and are intended to be withdrawn in a future Autoconf release.
2665 # They can cause serious problems if a builder's source tree is in a directory
2666 # whose full name contains unusual characters.
2667 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2668 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2669 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2670
2671
2672 # Make sure we can run config.sub.
2673 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2674   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2677 $as_echo_n "checking build system type... " >&6; }
2678 if test "${ac_cv_build+set}" = set; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   ac_build_alias=$build_alias
2682 test "x$ac_build_alias" = x &&
2683   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2684 test "x$ac_build_alias" = x &&
2685   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2686 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2687   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2688
2689 fi
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2691 $as_echo "$ac_cv_build" >&6; }
2692 case $ac_cv_build in
2693 *-*-*) ;;
2694 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2695 esac
2696 build=$ac_cv_build
2697 ac_save_IFS=$IFS; IFS='-'
2698 set x $ac_cv_build
2699 shift
2700 build_cpu=$1
2701 build_vendor=$2
2702 shift; shift
2703 # Remember, the first character of IFS is used to create $*,
2704 # except with old shells:
2705 build_os=$*
2706 IFS=$ac_save_IFS
2707 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2708
2709
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2711 $as_echo_n "checking host system type... " >&6; }
2712 if test "${ac_cv_host+set}" = set; then :
2713   $as_echo_n "(cached) " >&6
2714 else
2715   if test "x$host_alias" = x; then
2716   ac_cv_host=$ac_cv_build
2717 else
2718   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2719     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2720 fi
2721
2722 fi
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2724 $as_echo "$ac_cv_host" >&6; }
2725 case $ac_cv_host in
2726 *-*-*) ;;
2727 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2728 esac
2729 host=$ac_cv_host
2730 ac_save_IFS=$IFS; IFS='-'
2731 set x $ac_cv_host
2732 shift
2733 host_cpu=$1
2734 host_vendor=$2
2735 shift; shift
2736 # Remember, the first character of IFS is used to create $*,
2737 # except with old shells:
2738 host_os=$*
2739 IFS=$ac_save_IFS
2740 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2741
2742
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2744 $as_echo_n "checking target system type... " >&6; }
2745 if test "${ac_cv_target+set}" = set; then :
2746   $as_echo_n "(cached) " >&6
2747 else
2748   if test "x$target_alias" = x; then
2749   ac_cv_target=$ac_cv_host
2750 else
2751   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2752     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2753 fi
2754
2755 fi
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2757 $as_echo "$ac_cv_target" >&6; }
2758 case $ac_cv_target in
2759 *-*-*) ;;
2760 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2761 esac
2762 target=$ac_cv_target
2763 ac_save_IFS=$IFS; IFS='-'
2764 set x $ac_cv_target
2765 shift
2766 target_cpu=$1
2767 target_vendor=$2
2768 shift; shift
2769 # Remember, the first character of IFS is used to create $*,
2770 # except with old shells:
2771 target_os=$*
2772 IFS=$ac_save_IFS
2773 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2774
2775
2776 # The aliases save the names the user supplied, while $host etc.
2777 # will get canonicalized.
2778 test -n "$target_alias" &&
2779   test "$program_prefix$program_suffix$program_transform_name" = \
2780     NONENONEs,x,x, &&
2781   program_prefix=${target_alias}-
2782
2783 target_alias=${target_alias-$host_alias}
2784
2785 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2786 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2787 #  1.9.0:  minimum required version
2788 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2789 #              of other PACKAGE_* variables will, however, and there's nothing
2790 #              we can do about that; they come from AC_INIT).
2791 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2792 #            file in the top srcdir, etc, etc), so stop complaining.
2793 #  -Wall:  turns on all automake warnings...
2794 #  -Wno-portability:  ...except this one, since GNU make is required.
2795 #  -Wno-override: ... and this one, since we do want this in testsuite.
2796 am__api_version='1.11'
2797
2798 # Find a good install program.  We prefer a C program (faster),
2799 # so one script is as good as another.  But avoid the broken or
2800 # incompatible versions:
2801 # SysV /etc/install, /usr/sbin/install
2802 # SunOS /usr/etc/install
2803 # IRIX /sbin/install
2804 # AIX /bin/install
2805 # AmigaOS /C/install, which installs bootblocks on floppy discs
2806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2809 # OS/2's system install, which has a completely different semantic
2810 # ./install, which can be erroneously created by make from ./install.sh.
2811 # Reject install programs that cannot install multiple files.
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2813 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2814 if test -z "$INSTALL"; then
2815 if test "${ac_cv_path_install+set}" = set; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821   IFS=$as_save_IFS
2822   test -z "$as_dir" && as_dir=.
2823     # Account for people who put trailing slashes in PATH elements.
2824 case $as_dir/ in #((
2825   ./ | .// | /[cC]/* | \
2826   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2827   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2828   /usr/ucb/* ) ;;
2829   *)
2830     # OSF1 and SCO ODT 3.0 have their own names for install.
2831     # Don't use installbsd from OSF since it installs stuff as root
2832     # by default.
2833     for ac_prog in ginstall scoinst install; do
2834       for ac_exec_ext in '' $ac_executable_extensions; do
2835         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2836           if test $ac_prog = install &&
2837             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2838             # AIX install.  It has an incompatible calling convention.
2839             :
2840           elif test $ac_prog = install &&
2841             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842             # program-specific install script used by HP pwplus--don't use.
2843             :
2844           else
2845             rm -rf conftest.one conftest.two conftest.dir
2846             echo one > conftest.one
2847             echo two > conftest.two
2848             mkdir conftest.dir
2849             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2850               test -s conftest.one && test -s conftest.two &&
2851               test -s conftest.dir/conftest.one &&
2852               test -s conftest.dir/conftest.two
2853             then
2854               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2855               break 3
2856             fi
2857           fi
2858         fi
2859       done
2860     done
2861     ;;
2862 esac
2863
2864   done
2865 IFS=$as_save_IFS
2866
2867 rm -rf conftest.one conftest.two conftest.dir
2868
2869 fi
2870   if test "${ac_cv_path_install+set}" = set; then
2871     INSTALL=$ac_cv_path_install
2872   else
2873     # As a last resort, use the slow shell script.  Don't cache a
2874     # value for INSTALL within a source directory, because that will
2875     # break other packages using the cache if that directory is
2876     # removed, or if the value is a relative name.
2877     INSTALL=$ac_install_sh
2878   fi
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2881 $as_echo "$INSTALL" >&6; }
2882
2883 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2884 # It thinks the first close brace ends the variable substitution.
2885 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2886
2887 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2888
2889 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2890
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2892 $as_echo_n "checking whether build environment is sane... " >&6; }
2893 # Just in case
2894 sleep 1
2895 echo timestamp > conftest.file
2896 # Reject unsafe characters in $srcdir or the absolute working directory
2897 # name.  Accept space and tab only in the latter.
2898 am_lf='
2899 '
2900 case `pwd` in
2901   *[\\\"\#\$\&\'\`$am_lf]*)
2902     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2903 esac
2904 case $srcdir in
2905   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2906     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2907 esac
2908
2909 # Do `set' in a subshell so we don't clobber the current shell's
2910 # arguments.  Must try -L first in case configure is actually a
2911 # symlink; some systems play weird games with the mod time of symlinks
2912 # (eg FreeBSD returns the mod time of the symlink's containing
2913 # directory).
2914 if (
2915    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2916    if test "$*" = "X"; then
2917       # -L didn't work.
2918       set X `ls -t "$srcdir/configure" conftest.file`
2919    fi
2920    rm -f conftest.file
2921    if test "$*" != "X $srcdir/configure conftest.file" \
2922       && test "$*" != "X conftest.file $srcdir/configure"; then
2923
2924       # If neither matched, then we have a broken ls.  This can happen
2925       # if, for instance, CONFIG_SHELL is bash and it inherits a
2926       # broken ls alias from the environment.  This has actually
2927       # happened.  Such a system could not be considered "sane".
2928       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2929 alias in your environment" "$LINENO" 5
2930    fi
2931
2932    test "$2" = conftest.file
2933    )
2934 then
2935    # Ok.
2936    :
2937 else
2938    as_fn_error "newly created file is older than distributed files!
2939 Check your system clock" "$LINENO" 5
2940 fi
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2942 $as_echo "yes" >&6; }
2943 test "$program_prefix" != NONE &&
2944   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2945 # Use a double $ so make ignores it.
2946 test "$program_suffix" != NONE &&
2947   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2948 # Double any \ or $.
2949 # By default was `s,x,x', remove it if useless.
2950 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2951 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2952
2953 # expand $ac_aux_dir to an absolute path
2954 am_aux_dir=`cd $ac_aux_dir && pwd`
2955
2956 if test x"${MISSING+set}" != xset; then
2957   case $am_aux_dir in
2958   *\ * | *\     *)
2959     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2960   *)
2961     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2962   esac
2963 fi
2964 # Use eval to expand $SHELL
2965 if eval "$MISSING --run true"; then
2966   am_missing_run="$MISSING --run "
2967 else
2968   am_missing_run=
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2970 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2971 fi
2972
2973 if test x"${install_sh}" != xset; then
2974   case $am_aux_dir in
2975   *\ * | *\     *)
2976     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2977   *)
2978     install_sh="\${SHELL} $am_aux_dir/install-sh"
2979   esac
2980 fi
2981
2982 # Installed binaries are usually stripped using `strip' when the user
2983 # run `make install-strip'.  However `strip' might not be the right
2984 # tool to use in cross-compilation environments, therefore Automake
2985 # will honor the `STRIP' environment variable to overrule this program.
2986 if test "$cross_compiling" != no; then
2987   if test -n "$ac_tool_prefix"; then
2988   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}strip; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_STRIP+set}" = set; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   if test -n "$STRIP"; then
2996   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001   IFS=$as_save_IFS
3002   test -z "$as_dir" && as_dir=.
3003     for ac_exec_ext in '' $ac_executable_extensions; do
3004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007     break 2
3008   fi
3009 done
3010   done
3011 IFS=$as_save_IFS
3012
3013 fi
3014 fi
3015 STRIP=$ac_cv_prog_STRIP
3016 if test -n "$STRIP"; then
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3018 $as_echo "$STRIP" >&6; }
3019 else
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024
3025 fi
3026 if test -z "$ac_cv_prog_STRIP"; then
3027   ac_ct_STRIP=$STRIP
3028   # Extract the first word of "strip", so it can be a program name with args.
3029 set dummy strip; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3033   $as_echo_n "(cached) " >&6
3034 else
3035   if test -n "$ac_ct_STRIP"; then
3036   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043     for ac_exec_ext in '' $ac_executable_extensions; do
3044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045     ac_cv_prog_ac_ct_STRIP="strip"
3046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050   done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3056 if test -n "$ac_ct_STRIP"; then
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3058 $as_echo "$ac_ct_STRIP" >&6; }
3059 else
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064   if test "x$ac_ct_STRIP" = x; then
3065     STRIP=":"
3066   else
3067     case $cross_compiling:$ac_tool_warned in
3068 yes:)
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071 ac_tool_warned=yes ;;
3072 esac
3073     STRIP=$ac_ct_STRIP
3074   fi
3075 else
3076   STRIP="$ac_cv_prog_STRIP"
3077 fi
3078
3079 fi
3080 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3081
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3083 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3084 if test -z "$MKDIR_P"; then
3085   if test "${ac_cv_path_mkdir+set}" = set; then :
3086   $as_echo_n "(cached) " >&6
3087 else
3088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093     for ac_prog in mkdir gmkdir; do
3094          for ac_exec_ext in '' $ac_executable_extensions; do
3095            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3096            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3097              'mkdir (GNU coreutils) '* | \
3098              'mkdir (coreutils) '* | \
3099              'mkdir (fileutils) '4.1*)
3100                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3101                break 3;;
3102            esac
3103          done
3104        done
3105   done
3106 IFS=$as_save_IFS
3107
3108 fi
3109
3110   if test "${ac_cv_path_mkdir+set}" = set; then
3111     MKDIR_P="$ac_cv_path_mkdir -p"
3112   else
3113     # As a last resort, use the slow shell script.  Don't cache a
3114     # value for MKDIR_P within a source directory, because that will
3115     # break other packages using the cache if that directory is
3116     # removed, or if the value is a relative name.
3117     test -d ./--version && rmdir ./--version
3118     MKDIR_P="$ac_install_sh -d"
3119   fi
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3122 $as_echo "$MKDIR_P" >&6; }
3123
3124 mkdir_p="$MKDIR_P"
3125 case $mkdir_p in
3126   [\\/$]* | ?:[\\/]*) ;;
3127   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3128 esac
3129
3130 for ac_prog in gawk mawk nawk awk
3131 do
3132   # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_AWK+set}" = set; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$AWK"; then
3140   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147     for ac_exec_ext in '' $ac_executable_extensions; do
3148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149     ac_cv_prog_AWK="$ac_prog"
3150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154   done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 AWK=$ac_cv_prog_AWK
3160 if test -n "$AWK"; then
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3162 $as_echo "$AWK" >&6; }
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169   test -n "$AWK" && break
3170 done
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3173 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3174 set x ${MAKE-make}
3175 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3176 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3177   $as_echo_n "(cached) " >&6
3178 else
3179   cat >conftest.make <<\_ACEOF
3180 SHELL = /bin/sh
3181 all:
3182         @echo '@@@%%%=$(MAKE)=@@@%%%'
3183 _ACEOF
3184 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3185 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3186   *@@@%%%=?*=@@@%%%*)
3187     eval ac_cv_prog_make_${ac_make}_set=yes;;
3188   *)
3189     eval ac_cv_prog_make_${ac_make}_set=no;;
3190 esac
3191 rm -f conftest.make
3192 fi
3193 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3196   SET_MAKE=
3197 else
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200   SET_MAKE="MAKE=${MAKE-make}"
3201 fi
3202
3203 rm -rf .tst 2>/dev/null
3204 mkdir .tst 2>/dev/null
3205 if test -d .tst; then
3206   am__leading_dot=.
3207 else
3208   am__leading_dot=_
3209 fi
3210 rmdir .tst 2>/dev/null
3211
3212 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3213   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3214   # is not polluted with repeated "-I."
3215   am__isrc=' -I$(srcdir)'
3216   # test to see if srcdir already configured
3217   if test -f $srcdir/config.status; then
3218     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3219   fi
3220 fi
3221
3222 # test whether we have cygpath
3223 if test -z "$CYGPATH_W"; then
3224   if (cygpath --version) >/dev/null 2>/dev/null; then
3225     CYGPATH_W='cygpath -w'
3226   else
3227     CYGPATH_W=echo
3228   fi
3229 fi
3230
3231
3232 # Define the identity of the package.
3233  PACKAGE='libitm'
3234  VERSION='1.0'
3235
3236
3237 cat >>confdefs.h <<_ACEOF
3238 #define PACKAGE "$PACKAGE"
3239 _ACEOF
3240
3241
3242 cat >>confdefs.h <<_ACEOF
3243 #define VERSION "$VERSION"
3244 _ACEOF
3245
3246 # Some tools Automake needs.
3247
3248 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3249
3250
3251 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3252
3253
3254 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3255
3256
3257 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3258
3259
3260 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3261
3262 # We need awk for the "check" target.  The system "awk" is bad on
3263 # some platforms.
3264 # Always define AMTAR for backward compatibility.
3265
3266 AMTAR=${AMTAR-"${am_missing_run}tar"}
3267
3268 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3269
3270
3271
3272
3273
3274 # Default to --enable-multilib
3275 # Check whether --enable-multilib was given.
3276 if test "${enable_multilib+set}" = set; then :
3277   enableval=$enable_multilib; case "$enableval" in
3278   yes) multilib=yes ;;
3279   no)  multilib=no ;;
3280   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3281  esac
3282 else
3283   multilib=yes
3284 fi
3285
3286
3287 # We may get other options which we leave undocumented:
3288 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3289 # See config-ml.in if you want the gory details.
3290
3291 if test "$srcdir" = "."; then
3292   if test "$with_target_subdir" != "."; then
3293     multi_basedir="$srcdir/$with_multisrctop../.."
3294   else
3295     multi_basedir="$srcdir/$with_multisrctop.."
3296   fi
3297 else
3298   multi_basedir="$srcdir/.."
3299 fi
3300
3301
3302 # Even if the default multilib is not a cross compilation,
3303 # it may be that some of the other multilibs are.
3304 if test $cross_compiling = no && test $multilib = yes \
3305    && test "x${with_multisubdir}" != x ; then
3306    cross_compiling=maybe
3307 fi
3308
3309 ac_config_commands="$ac_config_commands default-1"
3310
3311
3312 # Calculate toolexeclibdir
3313 # Also toolexecdir, though it's only used in toolexeclibdir
3314 case ${enable_version_specific_runtime_libs} in
3315   yes)
3316     # Need the gcc compiler version to know where to install libraries
3317     # and header files if --enable-version-specific-runtime-libs option
3318     # is selected.
3319     toolexecdir='$(libdir)/gcc/$(target_alias)'
3320     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3321     ;;
3322   no)
3323     if test -n "$with_cross_host" &&
3324        test x"$with_cross_host" != x"no"; then
3325       # Install a library built with a cross compiler in tooldir, not libdir.
3326       toolexecdir='$(exec_prefix)/$(target_alias)'
3327       toolexeclibdir='$(toolexecdir)/lib'
3328     else
3329       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3330       toolexeclibdir='$(libdir)'
3331     fi
3332     multi_os_directory=`$CC -print-multi-os-directory`
3333     case $multi_os_directory in
3334       .) ;; # Avoid trailing /.
3335       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3336     esac
3337     ;;
3338 esac
3339
3340
3341
3342 # Check the compiler.
3343 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3344 # We must force CC to /not/ be precious variables; otherwise
3345 # the wrong, non-multilib-adjusted value will be used in multilibs.
3346 # As a side effect, we have to subst CFLAGS ourselves.
3347
3348
3349
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 if test -n "$ac_tool_prefix"; then
3356   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if test "${ac_cv_prog_CC+set}" = set; then :
3361   $as_echo_n "(cached) " >&6
3362 else
3363   if test -n "$CC"; then
3364   ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369   IFS=$as_save_IFS
3370   test -z "$as_dir" && as_dir=.
3371     for ac_exec_ext in '' $ac_executable_extensions; do
3372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3373     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375     break 2
3376   fi
3377 done
3378   done
3379 IFS=$as_save_IFS
3380
3381 fi
3382 fi
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 $as_echo "$CC" >&6; }
3387 else
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 fi
3391
3392
3393 fi
3394 if test -z "$ac_cv_prog_CC"; then
3395   ac_ct_CC=$CC
3396   # Extract the first word of "gcc", so it can be a program name with args.
3397 set dummy gcc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3401   $as_echo_n "(cached) " >&6
3402 else
3403   if test -n "$ac_ct_CC"; then
3404   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411     for ac_exec_ext in '' $ac_executable_extensions; do
3412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413     ac_cv_prog_ac_ct_CC="gcc"
3414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418   done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3424 if test -n "$ac_ct_CC"; then
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3426 $as_echo "$ac_ct_CC" >&6; }
3427 else
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432   if test "x$ac_ct_CC" = x; then
3433     CC=""
3434   else
3435     case $cross_compiling:$ac_tool_warned in
3436 yes:)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3440 esac
3441     CC=$ac_ct_CC
3442   fi
3443 else
3444   CC="$ac_cv_prog_CC"
3445 fi
3446
3447 if test -z "$CC"; then
3448           if test -n "$ac_tool_prefix"; then
3449     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3450 set dummy ${ac_tool_prefix}cc; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if test "${ac_cv_prog_CC+set}" = set; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   if test -n "$CC"; then
3457   ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462   IFS=$as_save_IFS
3463   test -z "$as_dir" && as_dir=.
3464     for ac_exec_ext in '' $ac_executable_extensions; do
3465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466     ac_cv_prog_CC="${ac_tool_prefix}cc"
3467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468     break 2
3469   fi
3470 done
3471   done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3480 else
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485
3486   fi
3487 fi
3488 if test -z "$CC"; then
3489   # Extract the first word of "cc", so it can be a program name with args.
3490 set dummy cc; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if test "${ac_cv_prog_CC+set}" = set; then :
3494   $as_echo_n "(cached) " >&6
3495 else
3496   if test -n "$CC"; then
3497   ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499   ac_prog_rejected=no
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505     for ac_exec_ext in '' $ac_executable_extensions; do
3506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3508        ac_prog_rejected=yes
3509        continue
3510      fi
3511     ac_cv_prog_CC="cc"
3512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513     break 2
3514   fi
3515 done
3516   done
3517 IFS=$as_save_IFS
3518
3519 if test $ac_prog_rejected = yes; then
3520   # We found a bogon in the path, so make sure we never use it.
3521   set dummy $ac_cv_prog_CC
3522   shift
3523   if test $# != 0; then
3524     # We chose a different compiler from the bogus one.
3525     # However, it has the same basename, so the bogon will be chosen
3526     # first if we set CC to just the basename; use the full file name.
3527     shift
3528     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3529   fi
3530 fi
3531 fi
3532 fi
3533 CC=$ac_cv_prog_CC
3534 if test -n "$CC"; then
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3537 else
3538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 fi
3541
3542
3543 fi
3544 if test -z "$CC"; then
3545   if test -n "$ac_tool_prefix"; then
3546   for ac_prog in cl.exe
3547   do
3548     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_CC+set}" = set; then :
3553   $as_echo_n "(cached) " >&6
3554 else
3555   if test -n "$CC"; then
3556   ac_cv_prog_CC="$CC" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561   IFS=$as_save_IFS
3562   test -z "$as_dir" && as_dir=.
3563     for ac_exec_ext in '' $ac_executable_extensions; do
3564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570   done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 CC=$ac_cv_prog_CC
3576 if test -n "$CC"; then
3577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3579 else
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584
3585     test -n "$CC" && break
3586   done
3587 fi
3588 if test -z "$CC"; then
3589   ac_ct_CC=$CC
3590   for ac_prog in cl.exe
3591 do
3592   # Extract the first word of "$ac_prog", so it can be a program name with args.
3593 set dummy $ac_prog; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3597   $as_echo_n "(cached) " >&6
3598 else
3599   if test -n "$ac_ct_CC"; then
3600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607     for ac_exec_ext in '' $ac_executable_extensions; do
3608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609     ac_cv_prog_ac_ct_CC="$ac_prog"
3610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611     break 2
3612   fi
3613 done
3614   done
3615 IFS=$as_save_IFS
3616
3617 fi
3618 fi
3619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620 if test -n "$ac_ct_CC"; then
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622 $as_echo "$ac_ct_CC" >&6; }
3623 else
3624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 fi
3627
3628
3629   test -n "$ac_ct_CC" && break
3630 done
3631
3632   if test "x$ac_ct_CC" = x; then
3633     CC=""
3634   else
3635     case $cross_compiling:$ac_tool_warned in
3636 yes:)
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3639 ac_tool_warned=yes ;;
3640 esac
3641     CC=$ac_ct_CC
3642   fi
3643 fi
3644
3645 fi
3646
3647
3648 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error "no acceptable C compiler found in \$PATH
3651 See \`config.log' for more details." "$LINENO" 5; }
3652
3653 # Provide some information about the compiler.
3654 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3655 set X $ac_compile
3656 ac_compiler=$2
3657 for ac_option in --version -v -V -qversion; do
3658   { { ac_try="$ac_compiler $ac_option >&5"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3666   ac_status=$?
3667   if test -s conftest.err; then
3668     sed '10a\
3669 ... rest of stderr output deleted ...
3670          10q' conftest.err >conftest.er1
3671     cat conftest.er1 >&5
3672     rm -f conftest.er1 conftest.err
3673   fi
3674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675   test $ac_status = 0; }
3676 done
3677
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h.  */
3680
3681 int
3682 main ()
3683 {
3684
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 ac_clean_files_save=$ac_clean_files
3690 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3691 # Try to create an executable without -o first, disregard a.out.
3692 # It will help us diagnose broken compilers, and finding out an intuition
3693 # of exeext.
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3695 $as_echo_n "checking for C compiler default output file name... " >&6; }
3696 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3697
3698 # The possible output files:
3699 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3700
3701 ac_rmfiles=
3702 for ac_file in $ac_files
3703 do
3704   case $ac_file in
3705     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3707   esac
3708 done
3709 rm -f $ac_rmfiles
3710
3711 if { { ac_try="$ac_link_default"
3712 case "(($ac_try" in
3713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714   *) ac_try_echo=$ac_try;;
3715 esac
3716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 $as_echo "$ac_try_echo"; } >&5
3718   (eval "$ac_link_default") 2>&5
3719   ac_status=$?
3720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721   test $ac_status = 0; }; then :
3722   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3723 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3724 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3725 # so that the user can short-circuit this test for compilers unknown to
3726 # Autoconf.
3727 for ac_file in $ac_files ''
3728 do
3729   test -f "$ac_file" || continue
3730   case $ac_file in
3731     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3732         ;;
3733     [ab].out )
3734         # We found the default executable, but exeext='' is most
3735         # certainly right.
3736         break;;
3737     *.* )
3738         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3739         then :; else
3740            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3741         fi
3742         # We set ac_cv_exeext here because the later test for it is not
3743         # safe: cross compilers may not add the suffix if given an `-o'
3744         # argument, so we may need to know it at that point already.
3745         # Even if this section looks crufty: it has the advantage of
3746         # actually working.
3747         break;;
3748     * )
3749         break;;
3750   esac
3751 done
3752 test "$ac_cv_exeext" = no && ac_cv_exeext=
3753
3754 else
3755   ac_file=''
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3758 $as_echo "$ac_file" >&6; }
3759 if test -z "$ac_file"; then :
3760   $as_echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 { as_fn_set_status 77
3766 as_fn_error "C compiler cannot create executables
3767 See \`config.log' for more details." "$LINENO" 5; }; }
3768 fi
3769 ac_exeext=$ac_cv_exeext
3770
3771 # Check that the compiler produces executables we can run.  If not, either
3772 # the compiler is broken, or we cross compile.
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3774 $as_echo_n "checking whether the C compiler works... " >&6; }
3775 # If not cross compiling, check that we can run a simple program.
3776 if test "$cross_compiling" != yes; then
3777   if { ac_try='./$ac_file'
3778   { { case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784   (eval "$ac_try") 2>&5
3785   ac_status=$?
3786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787   test $ac_status = 0; }; }; then
3788     cross_compiling=no
3789   else
3790     if test "$cross_compiling" = maybe; then
3791         cross_compiling=yes
3792     else
3793         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error "cannot run C compiled programs.
3796 If you meant to cross compile, use \`--host'.
3797 See \`config.log' for more details." "$LINENO" 5; }
3798     fi
3799   fi
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3802 $as_echo "yes" >&6; }
3803
3804 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3805 ac_clean_files=$ac_clean_files_save
3806 # Check that the compiler produces executables we can run.  If not, either
3807 # the compiler is broken, or we cross compile.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3809 $as_echo_n "checking whether we are cross compiling... " >&6; }
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3811 $as_echo "$cross_compiling" >&6; }
3812
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3814 $as_echo_n "checking for suffix of executables... " >&6; }
3815 if { { ac_try="$ac_link"
3816 case "(($ac_try" in
3817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818   *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822   (eval "$ac_link") 2>&5
3823   ac_status=$?
3824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825   test $ac_status = 0; }; then :
3826   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3827 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3828 # work properly (i.e., refer to `conftest.exe'), while it won't with
3829 # `rm'.
3830 for ac_file in conftest.exe conftest conftest.*; do
3831   test -f "$ac_file" || continue
3832   case $ac_file in
3833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3834     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3835           break;;
3836     * ) break;;
3837   esac
3838 done
3839 else
3840   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error "cannot compute suffix of executables: cannot compile and link
3843 See \`config.log' for more details." "$LINENO" 5; }
3844 fi
3845 rm -f conftest$ac_cv_exeext
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3847 $as_echo "$ac_cv_exeext" >&6; }
3848
3849 rm -f conftest.$ac_ext
3850 EXEEXT=$ac_cv_exeext
3851 ac_exeext=$EXEEXT
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3853 $as_echo_n "checking for suffix of object files... " >&6; }
3854 if test "${ac_cv_objext+set}" = set; then :
3855   $as_echo_n "(cached) " >&6
3856 else
3857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h.  */
3859
3860 int
3861 main ()
3862 {
3863
3864   ;
3865   return 0;
3866 }
3867 _ACEOF
3868 rm -f conftest.o conftest.obj
3869 if { { ac_try="$ac_compile"
3870 case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876   (eval "$ac_compile") 2>&5
3877   ac_status=$?
3878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879   test $ac_status = 0; }; then :
3880   for ac_file in conftest.o conftest.obj conftest.*; do
3881   test -f "$ac_file" || continue;
3882   case $ac_file in
3883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3884     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3885        break;;
3886   esac
3887 done
3888 else
3889   $as_echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error "cannot compute suffix of object files: cannot compile
3895 See \`config.log' for more details." "$LINENO" 5; }
3896 fi
3897 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3900 $as_echo "$ac_cv_objext" >&6; }
3901 OBJEXT=$ac_cv_objext
3902 ac_objext=$OBJEXT
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3904 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3905 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914 #ifndef __GNUC__
3915        choke me
3916 #endif
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923   ac_compiler_gnu=yes
3924 else
3925   ac_compiler_gnu=no
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3929
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3932 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3933 if test $ac_compiler_gnu = yes; then
3934   GCC=yes
3935 else
3936   GCC=
3937 fi
3938 ac_test_CFLAGS=${CFLAGS+set}
3939 ac_save_CFLAGS=$CFLAGS
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3942 if test "${ac_cv_prog_cc_g+set}" = set; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   ac_save_c_werror_flag=$ac_c_werror_flag
3946    ac_c_werror_flag=yes
3947    ac_cv_prog_cc_g=no
3948    CFLAGS="-g"
3949    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h.  */
3951
3952 int
3953 main ()
3954 {
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961   ac_cv_prog_cc_g=yes
3962 else
3963   CFLAGS=""
3964       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976
3977 else
3978   ac_c_werror_flag=$ac_save_c_werror_flag
3979          CFLAGS="-g"
3980          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h.  */
3982
3983 int
3984 main ()
3985 {
3986
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992   ac_cv_prog_cc_g=yes
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 fi
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999    ac_c_werror_flag=$ac_save_c_werror_flag
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4002 $as_echo "$ac_cv_prog_cc_g" >&6; }
4003 if test "$ac_test_CFLAGS" = set; then
4004   CFLAGS=$ac_save_CFLAGS
4005 elif test $ac_cv_prog_cc_g = yes; then
4006   if test "$GCC" = yes; then
4007     CFLAGS="-g -O2"
4008   else
4009     CFLAGS="-g"
4010   fi
4011 else
4012   if test "$GCC" = yes; then
4013     CFLAGS="-O2"
4014   else
4015     CFLAGS=
4016   fi
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4019 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4020 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   ac_cv_prog_cc_c89=no
4024 ac_save_CC=$CC
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h.  */
4027 #include <stdarg.h>
4028 #include <stdio.h>
4029 #include <sys/types.h>
4030 #include <sys/stat.h>
4031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4032 struct buf { int x; };
4033 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4034 static char *e (p, i)
4035      char **p;
4036      int i;
4037 {
4038   return p[i];
4039 }
4040 static char *f (char * (*g) (char **, int), char **p, ...)
4041 {
4042   char *s;
4043   va_list v;
4044   va_start (v,p);
4045   s = g (p, va_arg (v,int));
4046   va_end (v);
4047   return s;
4048 }
4049
4050 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4051    function prototypes and stuff, but not '\xHH' hex character constants.
4052    These don't provoke an error unfortunately, instead are silently treated
4053    as 'x'.  The following induces an error, until -std is added to get
4054    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4055    array size at least.  It's necessary to write '\x00'==0 to get something
4056    that's true only with -std.  */
4057 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4058
4059 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4060    inside strings and character constants.  */
4061 #define FOO(x) 'x'
4062 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4063
4064 int test (int i, double x);
4065 struct s1 {int (*f) (int a);};
4066 struct s2 {int (*f) (double a);};
4067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4068 int argc;
4069 char **argv;
4070 int
4071 main ()
4072 {
4073 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4079         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4080 do
4081   CC="$ac_save_CC $ac_arg"
4082   if ac_fn_c_try_compile "$LINENO"; then :
4083   ac_cv_prog_cc_c89=$ac_arg
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext
4086   test "x$ac_cv_prog_cc_c89" != "xno" && break
4087 done
4088 rm -f conftest.$ac_ext
4089 CC=$ac_save_CC
4090
4091 fi
4092 # AC_CACHE_VAL
4093 case "x$ac_cv_prog_cc_c89" in
4094   x)
4095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4096 $as_echo "none needed" >&6; } ;;
4097   xno)
4098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4099 $as_echo "unsupported" >&6; } ;;
4100   *)
4101     CC="$CC $ac_cv_prog_cc_c89"
4102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4103 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4104 esac
4105 if test "x$ac_cv_prog_cc_c89" != xno; then :
4106
4107 fi
4108
4109 ac_ext=c
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114 DEPDIR="${am__leading_dot}deps"
4115
4116 ac_config_commands="$ac_config_commands depfiles"
4117
4118
4119 am_make=${MAKE-make}
4120 cat > confinc << 'END'
4121 am__doit:
4122         @echo this is the am__doit target
4123 .PHONY: am__doit
4124 END
4125 # If we don't find an include directive, just comment out the code.
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4127 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4128 am__include="#"
4129 am__quote=
4130 _am_result=none
4131 # First try GNU make style include.
4132 echo "include confinc" > confmf
4133 # Ignore all kinds of additional output from `make'.
4134 case `$am_make -s -f confmf 2> /dev/null` in #(
4135 *the\ am__doit\ target*)
4136   am__include=include
4137   am__quote=
4138   _am_result=GNU
4139   ;;
4140 esac
4141 # Now try BSD make style include.
4142 if test "$am__include" = "#"; then
4143    echo '.include "confinc"' > confmf
4144    case `$am_make -s -f confmf 2> /dev/null` in #(
4145    *the\ am__doit\ target*)
4146      am__include=.include
4147      am__quote="\""
4148      _am_result=BSD
4149      ;;
4150    esac
4151 fi
4152
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4155 $as_echo "$_am_result" >&6; }
4156 rm -f confinc confmf
4157
4158 # Check whether --enable-dependency-tracking was given.
4159 if test "${enable_dependency_tracking+set}" = set; then :
4160   enableval=$enable_dependency_tracking;
4161 fi
4162
4163 if test "x$enable_dependency_tracking" != xno; then
4164   am_depcomp="$ac_aux_dir/depcomp"
4165   AMDEPBACKSLASH='\'
4166 fi
4167  if test "x$enable_dependency_tracking" != xno; then
4168   AMDEP_TRUE=
4169   AMDEP_FALSE='#'
4170 else
4171   AMDEP_TRUE='#'
4172   AMDEP_FALSE=
4173 fi
4174
4175
4176
4177 depcc="$CC"   am_compiler_list=
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4180 $as_echo_n "checking dependency style of $depcc... " >&6; }
4181 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4185   # We make a subdir and do the tests there.  Otherwise we can end up
4186   # making bogus files that we don't know about and never remove.  For
4187   # instance it was reported that on HP-UX the gcc test will end up
4188   # making a dummy file named `D' -- because `-MD' means `put the output
4189   # in D'.
4190   mkdir conftest.dir
4191   # Copy depcomp to subdir because otherwise we won't find it if we're
4192   # using a relative directory.
4193   cp "$am_depcomp" conftest.dir
4194   cd conftest.dir
4195   # We will build objects and dependencies in a subdirectory because
4196   # it helps to detect inapplicable dependency modes.  For instance
4197   # both Tru64's cc and ICC support -MD to output dependencies as a
4198   # side effect of compilation, but ICC will put the dependencies in
4199   # the current directory while Tru64 will put them in the object
4200   # directory.
4201   mkdir sub
4202
4203   am_cv_CC_dependencies_compiler_type=none
4204   if test "$am_compiler_list" = ""; then
4205      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4206   fi
4207   am__universal=false
4208   case " $depcc " in #(
4209      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4210      esac
4211
4212   for depmode in $am_compiler_list; do
4213     # Setup a source with many dependencies, because some compilers
4214     # like to wrap large dependency lists on column 80 (with \), and
4215     # we should not choose a depcomp mode which is confused by this.
4216     #
4217     # We need to recreate these files for each test, as the compiler may
4218     # overwrite some of them when testing with obscure command lines.
4219     # This happens at least with the AIX C compiler.
4220     : > sub/conftest.c
4221     for i in 1 2 3 4 5 6; do
4222       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4223       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4224       # Solaris 8's {/usr,}/bin/sh.
4225       touch sub/conftst$i.h
4226     done
4227     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4228
4229     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4230     # mode.  It turns out that the SunPro C++ compiler does not properly
4231     # handle `-M -o', and we need to detect this.  Also, some Intel
4232     # versions had trouble with output in subdirs
4233     am__obj=sub/conftest.${OBJEXT-o}
4234     am__minus_obj="-o $am__obj"
4235     case $depmode in
4236     gcc)
4237       # This depmode causes a compiler race in universal mode.
4238       test "$am__universal" = false || continue
4239       ;;
4240     nosideeffect)
4241       # after this tag, mechanisms are not by side-effect, so they'll
4242       # only be used when explicitly requested
4243       if test "x$enable_dependency_tracking" = xyes; then
4244         continue
4245       else
4246         break
4247       fi
4248       ;;
4249     msvisualcpp | msvcmsys)
4250       # This compiler won't grok `-c -o', but also, the minuso test has
4251       # not run yet.  These depmodes are late enough in the game, and
4252       # so weak that their functioning should not be impacted.
4253       am__obj=conftest.${OBJEXT-o}
4254       am__minus_obj=
4255       ;;
4256     none) break ;;
4257     esac
4258     if depmode=$depmode \
4259        source=sub/conftest.c object=$am__obj \
4260        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4261        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4262          >/dev/null 2>conftest.err &&
4263        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4264        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4265        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4266        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4267       # icc doesn't choke on unknown options, it will just issue warnings
4268       # or remarks (even with -Werror).  So we grep stderr for any message
4269       # that says an option was ignored or not supported.
4270       # When given -MP, icc 7.0 and 7.1 complain thusly:
4271       #   icc: Command line warning: ignoring option '-M'; no argument required
4272       # The diagnosis changed in icc 8.0:
4273       #   icc: Command line remark: option '-MP' not supported
4274       if (grep 'ignoring option' conftest.err ||
4275           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4276         am_cv_CC_dependencies_compiler_type=$depmode
4277         break
4278       fi
4279     fi
4280   done
4281
4282   cd ..
4283   rm -rf conftest.dir
4284 else
4285   am_cv_CC_dependencies_compiler_type=none
4286 fi
4287
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4290 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4291 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4292
4293  if
4294   test "x$enable_dependency_tracking" != xno \
4295   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4296   am__fastdepCC_TRUE=
4297   am__fastdepCC_FALSE='#'
4298 else
4299   am__fastdepCC_TRUE='#'
4300   am__fastdepCC_FALSE=
4301 fi
4302
4303
4304 ac_ext=cpp
4305 ac_cpp='$CXXCPP $CPPFLAGS'
4306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4309 if test -z "$CXX"; then
4310   if test -n "$CCC"; then
4311     CXX=$CCC
4312   else
4313     if test -n "$ac_tool_prefix"; then
4314   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4315   do
4316     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if test "${ac_cv_prog_CXX+set}" = set; then :
4321   $as_echo_n "(cached) " >&6
4322 else
4323   if test -n "$CXX"; then
4324   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331     for ac_exec_ext in '' $ac_executable_extensions; do
4332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338   done
4339 IFS=$as_save_IFS
4340
4341 fi
4342 fi
4343 CXX=$ac_cv_prog_CXX
4344 if test -n "$CXX"; then
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4346 $as_echo "$CXX" >&6; }
4347 else
4348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4350 fi
4351
4352
4353     test -n "$CXX" && break
4354   done
4355 fi
4356 if test -z "$CXX"; then
4357   ac_ct_CXX=$CXX
4358   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4359 do
4360   # Extract the first word of "$ac_prog", so it can be a program name with args.
4361 set dummy $ac_prog; ac_word=$2
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363 $as_echo_n "checking for $ac_word... " >&6; }
4364 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4365   $as_echo_n "(cached) " >&6
4366 else
4367   if test -n "$ac_ct_CXX"; then
4368   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4372 do
4373   IFS=$as_save_IFS
4374   test -z "$as_dir" && as_dir=.
4375     for ac_exec_ext in '' $ac_executable_extensions; do
4376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377     ac_cv_prog_ac_ct_CXX="$ac_prog"
4378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379     break 2
4380   fi
4381 done
4382   done
4383 IFS=$as_save_IFS
4384
4385 fi
4386 fi
4387 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4388 if test -n "$ac_ct_CXX"; then
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4390 $as_echo "$ac_ct_CXX" >&6; }
4391 else
4392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 $as_echo "no" >&6; }
4394 fi
4395
4396
4397   test -n "$ac_ct_CXX" && break
4398 done
4399
4400   if test "x$ac_ct_CXX" = x; then
4401     CXX="g++"
4402   else
4403     case $cross_compiling:$ac_tool_warned in
4404 yes:)
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4407 ac_tool_warned=yes ;;
4408 esac
4409     CXX=$ac_ct_CXX
4410   fi
4411 fi
4412
4413   fi
4414 fi
4415 # Provide some information about the compiler.
4416 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4417 set X $ac_compile
4418 ac_compiler=$2
4419 for ac_option in --version -v -V -qversion; do
4420   { { ac_try="$ac_compiler $ac_option >&5"
4421 case "(($ac_try" in
4422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423   *) ac_try_echo=$ac_try;;
4424 esac
4425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4426 $as_echo "$ac_try_echo"; } >&5
4427   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4428   ac_status=$?
4429   if test -s conftest.err; then
4430     sed '10a\
4431 ... rest of stderr output deleted ...
4432          10q' conftest.err >conftest.er1
4433     cat conftest.er1 >&5
4434     rm -f conftest.er1 conftest.err
4435   fi
4436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437   test $ac_status = 0; }
4438 done
4439
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4441 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4442 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h.  */
4447
4448 int
4449 main ()
4450 {
4451 #ifndef __GNUC__
4452        choke me
4453 #endif
4454
4455   ;
4456   return 0;
4457 }
4458 _ACEOF
4459 if ac_fn_cxx_try_compile "$LINENO"; then :
4460   ac_compiler_gnu=yes
4461 else
4462   ac_compiler_gnu=no
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4466
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4469 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4470 if test $ac_compiler_gnu = yes; then
4471   GXX=yes
4472 else
4473   GXX=
4474 fi
4475 ac_test_CXXFLAGS=${CXXFLAGS+set}
4476 ac_save_CXXFLAGS=$CXXFLAGS
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4478 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4479 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4480   $as_echo_n "(cached) " >&6
4481 else
4482   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4483    ac_cxx_werror_flag=yes
4484    ac_cv_prog_cxx_g=no
4485    CXXFLAGS="-g"
4486    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h.  */
4488
4489 int
4490 main ()
4491 {
4492
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 if ac_fn_cxx_try_compile "$LINENO"; then :
4498   ac_cv_prog_cxx_g=yes
4499 else
4500   CXXFLAGS=""
4501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h.  */
4503
4504 int
4505 main ()
4506 {
4507
4508   ;
4509   return 0;
4510 }
4511 _ACEOF
4512 if ac_fn_cxx_try_compile "$LINENO"; then :
4513
4514 else
4515   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4516          CXXFLAGS="-g"
4517          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h.  */
4519
4520 int
4521 main ()
4522 {
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 if ac_fn_cxx_try_compile "$LINENO"; then :
4529   ac_cv_prog_cxx_g=yes
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4537 fi
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4539 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4540 if test "$ac_test_CXXFLAGS" = set; then
4541   CXXFLAGS=$ac_save_CXXFLAGS
4542 elif test $ac_cv_prog_cxx_g = yes; then
4543   if test "$GXX" = yes; then
4544     CXXFLAGS="-g -O2"
4545   else
4546     CXXFLAGS="-g"
4547   fi
4548 else
4549   if test "$GXX" = yes; then
4550     CXXFLAGS="-O2"
4551   else
4552     CXXFLAGS=
4553   fi
4554 fi
4555 ac_ext=c
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
4561 depcc="$CXX"  am_compiler_list=
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4564 $as_echo_n "checking dependency style of $depcc... " >&6; }
4565 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4566   $as_echo_n "(cached) " >&6
4567 else
4568   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4569   # We make a subdir and do the tests there.  Otherwise we can end up
4570   # making bogus files that we don't know about and never remove.  For
4571   # instance it was reported that on HP-UX the gcc test will end up
4572   # making a dummy file named `D' -- because `-MD' means `put the output
4573   # in D'.
4574   mkdir conftest.dir
4575   # Copy depcomp to subdir because otherwise we won't find it if we're
4576   # using a relative directory.
4577   cp "$am_depcomp" conftest.dir
4578   cd conftest.dir
4579   # We will build objects and dependencies in a subdirectory because
4580   # it helps to detect inapplicable dependency modes.  For instance
4581   # both Tru64's cc and ICC support -MD to output dependencies as a
4582   # side effect of compilation, but ICC will put the dependencies in
4583   # the current directory while Tru64 will put them in the object
4584   # directory.
4585   mkdir sub
4586
4587   am_cv_CXX_dependencies_compiler_type=none
4588   if test "$am_compiler_list" = ""; then
4589      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4590   fi
4591   am__universal=false
4592   case " $depcc " in #(
4593      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4594      esac
4595
4596   for depmode in $am_compiler_list; do
4597     # Setup a source with many dependencies, because some compilers
4598     # like to wrap large dependency lists on column 80 (with \), and
4599     # we should not choose a depcomp mode which is confused by this.
4600     #
4601     # We need to recreate these files for each test, as the compiler may
4602     # overwrite some of them when testing with obscure command lines.
4603     # This happens at least with the AIX C compiler.
4604     : > sub/conftest.c
4605     for i in 1 2 3 4 5 6; do
4606       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4607       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4608       # Solaris 8's {/usr,}/bin/sh.
4609       touch sub/conftst$i.h
4610     done
4611     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4612
4613     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4614     # mode.  It turns out that the SunPro C++ compiler does not properly
4615     # handle `-M -o', and we need to detect this.  Also, some Intel
4616     # versions had trouble with output in subdirs
4617     am__obj=sub/conftest.${OBJEXT-o}
4618     am__minus_obj="-o $am__obj"
4619     case $depmode in
4620     gcc)
4621       # This depmode causes a compiler race in universal mode.
4622       test "$am__universal" = false || continue
4623       ;;
4624     nosideeffect)
4625       # after this tag, mechanisms are not by side-effect, so they'll
4626       # only be used when explicitly requested
4627       if test "x$enable_dependency_tracking" = xyes; then
4628         continue
4629       else
4630         break
4631       fi
4632       ;;
4633     msvisualcpp | msvcmsys)
4634       # This compiler won't grok `-c -o', but also, the minuso test has
4635       # not run yet.  These depmodes are late enough in the game, and
4636       # so weak that their functioning should not be impacted.
4637       am__obj=conftest.${OBJEXT-o}
4638       am__minus_obj=
4639       ;;
4640     none) break ;;
4641     esac
4642     if depmode=$depmode \
4643        source=sub/conftest.c object=$am__obj \
4644        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4645        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4646          >/dev/null 2>conftest.err &&
4647        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4648        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4649        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4650        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4651       # icc doesn't choke on unknown options, it will just issue warnings
4652       # or remarks (even with -Werror).  So we grep stderr for any message
4653       # that says an option was ignored or not supported.
4654       # When given -MP, icc 7.0 and 7.1 complain thusly:
4655       #   icc: Command line warning: ignoring option '-M'; no argument required
4656       # The diagnosis changed in icc 8.0:
4657       #   icc: Command line remark: option '-MP' not supported
4658       if (grep 'ignoring option' conftest.err ||
4659           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4660         am_cv_CXX_dependencies_compiler_type=$depmode
4661         break
4662       fi
4663     fi
4664   done
4665
4666   cd ..
4667   rm -rf conftest.dir
4668 else
4669   am_cv_CXX_dependencies_compiler_type=none
4670 fi
4671
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4674 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4675 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4676
4677  if
4678   test "x$enable_dependency_tracking" != xno \
4679   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4680   am__fastdepCXX_TRUE=
4681   am__fastdepCXX_FALSE='#'
4682 else
4683   am__fastdepCXX_TRUE='#'
4684   am__fastdepCXX_FALSE=
4685 fi
4686
4687
4688 # By default we simply use the C compiler to build assembly code.
4689
4690 test "${CCAS+set}" = set || CCAS=$CC
4691 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4692
4693
4694
4695 depcc="$CCAS"   am_compiler_list=
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4698 $as_echo_n "checking dependency style of $depcc... " >&6; }
4699 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4703   # We make a subdir and do the tests there.  Otherwise we can end up
4704   # making bogus files that we don't know about and never remove.  For
4705   # instance it was reported that on HP-UX the gcc test will end up
4706   # making a dummy file named `D' -- because `-MD' means `put the output
4707   # in D'.
4708   mkdir conftest.dir
4709   # Copy depcomp to subdir because otherwise we won't find it if we're
4710   # using a relative directory.
4711   cp "$am_depcomp" conftest.dir
4712   cd conftest.dir
4713   # We will build objects and dependencies in a subdirectory because
4714   # it helps to detect inapplicable dependency modes.  For instance
4715   # both Tru64's cc and ICC support -MD to output dependencies as a
4716   # side effect of compilation, but ICC will put the dependencies in
4717   # the current directory while Tru64 will put them in the object
4718   # directory.
4719   mkdir sub
4720
4721   am_cv_CCAS_dependencies_compiler_type=none
4722   if test "$am_compiler_list" = ""; then
4723      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4724   fi
4725   am__universal=false
4726
4727
4728   for depmode in $am_compiler_list; do
4729     # Setup a source with many dependencies, because some compilers
4730     # like to wrap large dependency lists on column 80 (with \), and
4731     # we should not choose a depcomp mode which is confused by this.
4732     #
4733     # We need to recreate these files for each test, as the compiler may
4734     # overwrite some of them when testing with obscure command lines.
4735     # This happens at least with the AIX C compiler.
4736     : > sub/conftest.c
4737     for i in 1 2 3 4 5 6; do
4738       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4739       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4740       # Solaris 8's {/usr,}/bin/sh.
4741       touch sub/conftst$i.h
4742     done
4743     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4744
4745     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4746     # mode.  It turns out that the SunPro C++ compiler does not properly
4747     # handle `-M -o', and we need to detect this.  Also, some Intel
4748     # versions had trouble with output in subdirs
4749     am__obj=sub/conftest.${OBJEXT-o}
4750     am__minus_obj="-o $am__obj"
4751     case $depmode in
4752     gcc)
4753       # This depmode causes a compiler race in universal mode.
4754       test "$am__universal" = false || continue
4755       ;;
4756     nosideeffect)
4757       # after this tag, mechanisms are not by side-effect, so they'll
4758       # only be used when explicitly requested
4759       if test "x$enable_dependency_tracking" = xyes; then
4760         continue
4761       else
4762         break
4763       fi
4764       ;;
4765     msvisualcpp | msvcmsys)
4766       # This compiler won't grok `-c -o', but also, the minuso test has
4767       # not run yet.  These depmodes are late enough in the game, and
4768       # so weak that their functioning should not be impacted.
4769       am__obj=conftest.${OBJEXT-o}
4770       am__minus_obj=
4771       ;;
4772     none) break ;;
4773     esac
4774     if depmode=$depmode \
4775        source=sub/conftest.c object=$am__obj \
4776        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4777        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4778          >/dev/null 2>conftest.err &&
4779        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4780        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4781        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4782        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4783       # icc doesn't choke on unknown options, it will just issue warnings
4784       # or remarks (even with -Werror).  So we grep stderr for any message
4785       # that says an option was ignored or not supported.
4786       # When given -MP, icc 7.0 and 7.1 complain thusly:
4787       #   icc: Command line warning: ignoring option '-M'; no argument required
4788       # The diagnosis changed in icc 8.0:
4789       #   icc: Command line remark: option '-MP' not supported
4790       if (grep 'ignoring option' conftest.err ||
4791           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4792         am_cv_CCAS_dependencies_compiler_type=$depmode
4793         break
4794       fi
4795     fi
4796   done
4797
4798   cd ..
4799   rm -rf conftest.dir
4800 else
4801   am_cv_CCAS_dependencies_compiler_type=none
4802 fi
4803
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4806 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4807 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4808
4809  if
4810   test "x$enable_dependency_tracking" != xno \
4811   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4812   am__fastdepCCAS_TRUE=
4813   am__fastdepCCAS_FALSE='#'
4814 else
4815   am__fastdepCCAS_TRUE='#'
4816   am__fastdepCCAS_FALSE=
4817 fi
4818
4819
4820
4821
4822
4823
4824 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4825 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4826 # in both places for now and restore CFLAGS at the end of config.
4827 save_CFLAGS="$CFLAGS"
4828
4829 # Find other programs we need.
4830 if test -n "$ac_tool_prefix"; then
4831   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4832 set dummy ${ac_tool_prefix}ar; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if test "${ac_cv_prog_AR+set}" = set; then :
4836   $as_echo_n "(cached) " >&6
4837 else
4838   if test -n "$AR"; then
4839   ac_cv_prog_AR="$AR" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4843 do
4844   IFS=$as_save_IFS
4845   test -z "$as_dir" && as_dir=.
4846     for ac_exec_ext in '' $ac_executable_extensions; do
4847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848     ac_cv_prog_AR="${ac_tool_prefix}ar"
4849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850     break 2
4851   fi
4852 done
4853   done
4854 IFS=$as_save_IFS
4855
4856 fi
4857 fi
4858 AR=$ac_cv_prog_AR
4859 if test -n "$AR"; then
4860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4861 $as_echo "$AR" >&6; }
4862 else
4863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4865 fi
4866
4867
4868 fi
4869 if test -z "$ac_cv_prog_AR"; then
4870   ac_ct_AR=$AR
4871   # Extract the first word of "ar", so it can be a program name with args.
4872 set dummy ar; ac_word=$2
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4876   $as_echo_n "(cached) " >&6
4877 else
4878   if test -n "$ac_ct_AR"; then
4879   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884   IFS=$as_save_IFS
4885   test -z "$as_dir" && as_dir=.
4886     for ac_exec_ext in '' $ac_executable_extensions; do
4887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888     ac_cv_prog_ac_ct_AR="ar"
4889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890     break 2
4891   fi
4892 done
4893   done
4894 IFS=$as_save_IFS
4895
4896 fi
4897 fi
4898 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4899 if test -n "$ac_ct_AR"; then
4900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4901 $as_echo "$ac_ct_AR" >&6; }
4902 else
4903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4905 fi
4906
4907   if test "x$ac_ct_AR" = x; then
4908     AR=""
4909   else
4910     case $cross_compiling:$ac_tool_warned in
4911 yes:)
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4914 ac_tool_warned=yes ;;
4915 esac
4916     AR=$ac_ct_AR
4917   fi
4918 else
4919   AR="$ac_cv_prog_AR"
4920 fi
4921
4922 if test -n "$ac_tool_prefix"; then
4923   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4924 set dummy ${ac_tool_prefix}nm; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_prog_NM+set}" = set; then :
4928   $as_echo_n "(cached) " >&6
4929 else
4930   if test -n "$NM"; then
4931   ac_cv_prog_NM="$NM" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936   IFS=$as_save_IFS
4937   test -z "$as_dir" && as_dir=.
4938     for ac_exec_ext in '' $ac_executable_extensions; do
4939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940     ac_cv_prog_NM="${ac_tool_prefix}nm"
4941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942     break 2
4943   fi
4944 done
4945   done
4946 IFS=$as_save_IFS
4947
4948 fi
4949 fi
4950 NM=$ac_cv_prog_NM
4951 if test -n "$NM"; then
4952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4953 $as_echo "$NM" >&6; }
4954 else
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4957 fi
4958
4959
4960 fi
4961 if test -z "$ac_cv_prog_NM"; then
4962   ac_ct_NM=$NM
4963   # Extract the first word of "nm", so it can be a program name with args.
4964 set dummy nm; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970   if test -n "$ac_ct_NM"; then
4971   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978     for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_prog_ac_ct_NM="nm"
4981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985   done
4986 IFS=$as_save_IFS
4987
4988 fi
4989 fi
4990 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4991 if test -n "$ac_ct_NM"; then
4992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4993 $as_echo "$ac_ct_NM" >&6; }
4994 else
4995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
4997 fi
4998
4999   if test "x$ac_ct_NM" = x; then
5000     NM=""
5001   else
5002     case $cross_compiling:$ac_tool_warned in
5003 yes:)
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006 ac_tool_warned=yes ;;
5007 esac
5008     NM=$ac_ct_NM
5009   fi
5010 else
5011   NM="$ac_cv_prog_NM"
5012 fi
5013
5014 if test -n "$ac_tool_prefix"; then
5015   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5016 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   if test -n "$RANLIB"; then
5023   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030     for ac_exec_ext in '' $ac_executable_extensions; do
5031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034     break 2
5035   fi
5036 done
5037   done
5038 IFS=$as_save_IFS
5039
5040 fi
5041 fi
5042 RANLIB=$ac_cv_prog_RANLIB
5043 if test -n "$RANLIB"; then
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5045 $as_echo "$RANLIB" >&6; }
5046 else
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5049 fi
5050
5051
5052 fi
5053 if test -z "$ac_cv_prog_RANLIB"; then
5054   ac_ct_RANLIB=$RANLIB
5055   # Extract the first word of "ranlib", so it can be a program name with args.
5056 set dummy ranlib; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5060   $as_echo_n "(cached) " >&6
5061 else
5062   if test -n "$ac_ct_RANLIB"; then
5063   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070     for ac_exec_ext in '' $ac_executable_extensions; do
5071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072     ac_cv_prog_ac_ct_RANLIB="ranlib"
5073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074     break 2
5075   fi
5076 done
5077   done
5078 IFS=$as_save_IFS
5079
5080 fi
5081 fi
5082 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5083 if test -n "$ac_ct_RANLIB"; then
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5085 $as_echo "$ac_ct_RANLIB" >&6; }
5086 else
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5089 fi
5090
5091   if test "x$ac_ct_RANLIB" = x; then
5092     RANLIB="ranlib-not-found-in-path-error"
5093   else
5094     case $cross_compiling:$ac_tool_warned in
5095 yes:)
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5098 ac_tool_warned=yes ;;
5099 esac
5100     RANLIB=$ac_ct_RANLIB
5101   fi
5102 else
5103   RANLIB="$ac_cv_prog_RANLIB"
5104 fi
5105
5106 # Extract the first word of "perl", so it can be a program name with args.
5107 set dummy perl; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_path_PERL+set}" = set; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   case $PERL in
5114   [\\/]* | ?:[\\/]*)
5115   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5116   ;;
5117   *)
5118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123     for ac_exec_ext in '' $ac_executable_extensions; do
5124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127     break 2
5128   fi
5129 done
5130   done
5131 IFS=$as_save_IFS
5132
5133   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5134   ;;
5135 esac
5136 fi
5137 PERL=$ac_cv_path_PERL
5138 if test -n "$PERL"; then
5139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5140 $as_echo "$PERL" >&6; }
5141 else
5142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5144 fi
5145
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5148 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5149 set x ${MAKE-make}
5150 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5151 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   cat >conftest.make <<\_ACEOF
5155 SHELL = /bin/sh
5156 all:
5157         @echo '@@@%%%=$(MAKE)=@@@%%%'
5158 _ACEOF
5159 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5161   *@@@%%%=?*=@@@%%%*)
5162     eval ac_cv_prog_make_${ac_make}_set=yes;;
5163   *)
5164     eval ac_cv_prog_make_${ac_make}_set=no;;
5165 esac
5166 rm -f conftest.make
5167 fi
5168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5170 $as_echo "yes" >&6; }
5171   SET_MAKE=
5172 else
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175   SET_MAKE="MAKE=${MAKE-make}"
5176 fi
5177
5178
5179
5180 # See if makeinfo has been installed and is modern enough
5181 # that we can use it.
5182
5183   # Extract the first word of "makeinfo", so it can be a program name with args.
5184 set dummy makeinfo; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   if test -n "$MAKEINFO"; then
5191   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200     ac_cv_prog_MAKEINFO="makeinfo"
5201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205   done
5206 IFS=$as_save_IFS
5207
5208 fi
5209 fi
5210 MAKEINFO=$ac_cv_prog_MAKEINFO
5211 if test -n "$MAKEINFO"; then
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5213 $as_echo "$MAKEINFO" >&6; }
5214 else
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5217 fi
5218
5219
5220   if test -n "$MAKEINFO"; then
5221     # Found it, now check the version.
5222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5223 $as_echo_n "checking for modern makeinfo... " >&6; }
5224 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5228                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5229
5230                     case $ac_prog_version in
5231                       '')  gcc_cv_prog_makeinfo_modern=no;;
5232                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
5233                       *)   gcc_cv_prog_makeinfo_modern=no;;
5234                     esac
5235
5236 fi
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5238 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5239   else
5240     gcc_cv_prog_makeinfo_modern=no
5241   fi
5242   if test $gcc_cv_prog_makeinfo_modern = no; then
5243     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5244   fi
5245
5246  if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5247   BUILD_INFO_TRUE=
5248   BUILD_INFO_FALSE='#'
5249 else
5250   BUILD_INFO_TRUE='#'
5251   BUILD_INFO_FALSE=
5252 fi
5253
5254
5255
5256 # Configure libtool
5257 case `pwd` in
5258   *\ * | *\     *)
5259     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5260 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5261 esac
5262
5263
5264
5265 macro_version='2.2.7a'
5266 macro_revision='1.3134'
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280 ltmain="$ac_aux_dir/ltmain.sh"
5281
5282 # Backslashify metacharacters that are still active within
5283 # double-quoted strings.
5284 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5285
5286 # Same as above, but do not quote variable references.
5287 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5288
5289 # Sed substitution to delay expansion of an escaped shell variable in a
5290 # double_quote_subst'ed string.
5291 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5292
5293 # Sed substitution to delay expansion of an escaped single quote.
5294 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5295
5296 # Sed substitution to avoid accidental globbing in evaled expressions
5297 no_glob_subst='s/\*/\\\*/g'
5298
5299 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5300 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5301 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5304 $as_echo_n "checking how to print strings... " >&6; }
5305 # Test print first, because it will be a builtin if present.
5306 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5307    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5308   ECHO='print -r --'
5309 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5310   ECHO='printf %s\n'
5311 else
5312   # Use this function as a fallback that always works.
5313   func_fallback_echo ()
5314   {
5315     eval 'cat <<_LTECHO_EOF
5316 $1
5317 _LTECHO_EOF'
5318   }
5319   ECHO='func_fallback_echo'
5320 fi
5321
5322 # func_echo_all arg...
5323 # Invoke $ECHO with all args, space-separated.
5324 func_echo_all ()
5325 {
5326     $ECHO ""
5327 }
5328
5329 case "$ECHO" in
5330   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5331 $as_echo "printf" >&6; } ;;
5332   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5333 $as_echo "print -r" >&6; } ;;
5334   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5335 $as_echo "cat" >&6; } ;;
5336 esac
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5352 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5353 if test "${ac_cv_path_SED+set}" = set; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5357      for ac_i in 1 2 3 4 5 6 7; do
5358        ac_script="$ac_script$as_nl$ac_script"
5359      done
5360      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5361      { ac_script=; unset ac_script;}
5362      if test -z "$SED"; then
5363   ac_path_SED_found=false
5364   # Loop through the user's path and test for each of PROGNAME-LIST
5365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368   IFS=$as_save_IFS
5369   test -z "$as_dir" && as_dir=.
5370     for ac_prog in sed gsed; do
5371     for ac_exec_ext in '' $ac_executable_extensions; do
5372       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5373       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5374 # Check for GNU ac_path_SED and select it if it is found.
5375   # Check for GNU $ac_path_SED
5376 case `"$ac_path_SED" --version 2>&1` in
5377 *GNU*)
5378   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5379 *)
5380   ac_count=0
5381   $as_echo_n 0123456789 >"conftest.in"
5382   while :
5383   do
5384     cat "conftest.in" "conftest.in" >"conftest.tmp"
5385     mv "conftest.tmp" "conftest.in"
5386     cp "conftest.in" "conftest.nl"
5387     $as_echo '' >> "conftest.nl"
5388     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5389     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5390     as_fn_arith $ac_count + 1 && ac_count=$as_val
5391     if test $ac_count -gt ${ac_path_SED_max-0}; then
5392       # Best one so far, save it but keep looking for a better one
5393       ac_cv_path_SED="$ac_path_SED"
5394       ac_path_SED_max=$ac_count
5395     fi
5396     # 10*(2^10) chars as input seems more than enough
5397     test $ac_count -gt 10 && break
5398   done
5399   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5400 esac
5401
5402       $ac_path_SED_found && break 3
5403     done
5404   done
5405   done
5406 IFS=$as_save_IFS
5407   if test -z "$ac_cv_path_SED"; then
5408     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5409   fi
5410 else
5411   ac_cv_path_SED=$SED
5412 fi
5413
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5416 $as_echo "$ac_cv_path_SED" >&6; }
5417  SED="$ac_cv_path_SED"
5418   rm -f conftest.sed
5419
5420 test -z "$SED" && SED=sed
5421 Xsed="$SED -e 1s/^X//"
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5434 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5435 if test "${ac_cv_path_GREP+set}" = set; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   if test -z "$GREP"; then
5439   ac_path_GREP_found=false
5440   # Loop through the user's path and test for each of PROGNAME-LIST
5441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446     for ac_prog in grep ggrep; do
5447     for ac_exec_ext in '' $ac_executable_extensions; do
5448       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5449       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5450 # Check for GNU ac_path_GREP and select it if it is found.
5451   # Check for GNU $ac_path_GREP
5452 case `"$ac_path_GREP" --version 2>&1` in
5453 *GNU*)
5454   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5455 *)
5456   ac_count=0
5457   $as_echo_n 0123456789 >"conftest.in"
5458   while :
5459   do
5460     cat "conftest.in" "conftest.in" >"conftest.tmp"
5461     mv "conftest.tmp" "conftest.in"
5462     cp "conftest.in" "conftest.nl"
5463     $as_echo 'GREP' >> "conftest.nl"
5464     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5465     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5466     as_fn_arith $ac_count + 1 && ac_count=$as_val
5467     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5468       # Best one so far, save it but keep looking for a better one
5469       ac_cv_path_GREP="$ac_path_GREP"
5470       ac_path_GREP_max=$ac_count
5471     fi
5472     # 10*(2^10) chars as input seems more than enough
5473     test $ac_count -gt 10 && break
5474   done
5475   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5476 esac
5477
5478       $ac_path_GREP_found && break 3
5479     done
5480   done
5481   done
5482 IFS=$as_save_IFS
5483   if test -z "$ac_cv_path_GREP"; then
5484     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5485   fi
5486 else
5487   ac_cv_path_GREP=$GREP
5488 fi
5489
5490 fi
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5492 $as_echo "$ac_cv_path_GREP" >&6; }
5493  GREP="$ac_cv_path_GREP"
5494
5495
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5497 $as_echo_n "checking for egrep... " >&6; }
5498 if test "${ac_cv_path_EGREP+set}" = set; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5502    then ac_cv_path_EGREP="$GREP -E"
5503    else
5504      if test -z "$EGREP"; then
5505   ac_path_EGREP_found=false
5506   # Loop through the user's path and test for each of PROGNAME-LIST
5507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512     for ac_prog in egrep; do
5513     for ac_exec_ext in '' $ac_executable_extensions; do
5514       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5515       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5516 # Check for GNU ac_path_EGREP and select it if it is found.
5517   # Check for GNU $ac_path_EGREP
5518 case `"$ac_path_EGREP" --version 2>&1` in
5519 *GNU*)
5520   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5521 *)
5522   ac_count=0
5523   $as_echo_n 0123456789 >"conftest.in"
5524   while :
5525   do
5526     cat "conftest.in" "conftest.in" >"conftest.tmp"
5527     mv "conftest.tmp" "conftest.in"
5528     cp "conftest.in" "conftest.nl"
5529     $as_echo 'EGREP' >> "conftest.nl"
5530     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5531     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5532     as_fn_arith $ac_count + 1 && ac_count=$as_val
5533     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5534       # Best one so far, save it but keep looking for a better one
5535       ac_cv_path_EGREP="$ac_path_EGREP"
5536       ac_path_EGREP_max=$ac_count
5537     fi
5538     # 10*(2^10) chars as input seems more than enough
5539     test $ac_count -gt 10 && break
5540   done
5541   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5542 esac
5543
5544       $ac_path_EGREP_found && break 3
5545     done
5546   done
5547   done
5548 IFS=$as_save_IFS
5549   if test -z "$ac_cv_path_EGREP"; then
5550     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5551   fi
5552 else
5553   ac_cv_path_EGREP=$EGREP
5554 fi
5555
5556    fi
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5559 $as_echo "$ac_cv_path_EGREP" >&6; }
5560  EGREP="$ac_cv_path_EGREP"
5561
5562
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5564 $as_echo_n "checking for fgrep... " >&6; }
5565 if test "${ac_cv_path_FGREP+set}" = set; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5569    then ac_cv_path_FGREP="$GREP -F"
5570    else
5571      if test -z "$FGREP"; then
5572   ac_path_FGREP_found=false
5573   # Loop through the user's path and test for each of PROGNAME-LIST
5574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579     for ac_prog in fgrep; do
5580     for ac_exec_ext in '' $ac_executable_extensions; do
5581       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5582       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5583 # Check for GNU ac_path_FGREP and select it if it is found.
5584   # Check for GNU $ac_path_FGREP
5585 case `"$ac_path_FGREP" --version 2>&1` in
5586 *GNU*)
5587   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5588 *)
5589   ac_count=0
5590   $as_echo_n 0123456789 >"conftest.in"
5591   while :
5592   do
5593     cat "conftest.in" "conftest.in" >"conftest.tmp"
5594     mv "conftest.tmp" "conftest.in"
5595     cp "conftest.in" "conftest.nl"
5596     $as_echo 'FGREP' >> "conftest.nl"
5597     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5598     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5599     as_fn_arith $ac_count + 1 && ac_count=$as_val
5600     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5601       # Best one so far, save it but keep looking for a better one
5602       ac_cv_path_FGREP="$ac_path_FGREP"
5603       ac_path_FGREP_max=$ac_count
5604     fi
5605     # 10*(2^10) chars as input seems more than enough
5606     test $ac_count -gt 10 && break
5607   done
5608   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5609 esac
5610
5611       $ac_path_FGREP_found && break 3
5612     done
5613   done
5614   done
5615 IFS=$as_save_IFS
5616   if test -z "$ac_cv_path_FGREP"; then
5617     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5618   fi
5619 else
5620   ac_cv_path_FGREP=$FGREP
5621 fi
5622
5623    fi
5624 fi
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5626 $as_echo "$ac_cv_path_FGREP" >&6; }
5627  FGREP="$ac_cv_path_FGREP"
5628
5629
5630 test -z "$GREP" && GREP=grep
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650 # Check whether --with-gnu-ld was given.
5651 if test "${with_gnu_ld+set}" = set; then :
5652   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5653 else
5654   with_gnu_ld=no
5655 fi
5656
5657 ac_prog=ld
5658 if test "$GCC" = yes; then
5659   # Check if gcc -print-prog-name=ld gives a path.
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5661 $as_echo_n "checking for ld used by $CC... " >&6; }
5662   case $host in
5663   *-*-mingw*)
5664     # gcc leaves a trailing carriage return which upsets mingw
5665     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5666   *)
5667     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5668   esac
5669   case $ac_prog in
5670     # Accept absolute paths.
5671     [\\/]* | ?:[\\/]*)
5672       re_direlt='/[^/][^/]*/\.\./'
5673       # Canonicalize the pathname of ld
5674       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5675       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5676         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5677       done
5678       test -z "$LD" && LD="$ac_prog"
5679       ;;
5680   "")
5681     # If it fails, then pretend we aren't using GCC.
5682     ac_prog=ld
5683     ;;
5684   *)
5685     # If it is relative, then search for the first ld in PATH.
5686     with_gnu_ld=unknown
5687     ;;
5688   esac
5689 elif test "$with_gnu_ld" = yes; then
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5691 $as_echo_n "checking for GNU ld... " >&6; }
5692 else
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5694 $as_echo_n "checking for non-GNU ld... " >&6; }
5695 fi
5696 if test "${lt_cv_path_LD+set}" = set; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699   if test -z "$LD"; then
5700   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5701   for ac_dir in $PATH; do
5702     IFS="$lt_save_ifs"
5703     test -z "$ac_dir" && ac_dir=.
5704     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5705       lt_cv_path_LD="$ac_dir/$ac_prog"
5706       # Check to see if the program is GNU ld.  I'd rather use --version,
5707       # but apparently some variants of GNU ld only accept -v.
5708       # Break only if it was the GNU/non-GNU ld that we prefer.
5709       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5710       *GNU* | *'with BFD'*)
5711         test "$with_gnu_ld" != no && break
5712         ;;
5713       *)
5714         test "$with_gnu_ld" != yes && break
5715         ;;
5716       esac
5717     fi
5718   done
5719   IFS="$lt_save_ifs"
5720 else
5721   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5722 fi
5723 fi
5724
5725 LD="$lt_cv_path_LD"
5726 if test -n "$LD"; then
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5728 $as_echo "$LD" >&6; }
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5732 fi
5733 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5736 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5740 case `$LD -v 2>&1 </dev/null` in
5741 *GNU* | *'with BFD'*)
5742   lt_cv_prog_gnu_ld=yes
5743   ;;
5744 *)
5745   lt_cv_prog_gnu_ld=no
5746   ;;
5747 esac
5748 fi
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5751 with_gnu_ld=$lt_cv_prog_gnu_ld
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5762 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5763 if test "${lt_cv_path_NM+set}" = set; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   if test -n "$NM"; then
5767   # Let the user override the test.
5768   lt_cv_path_NM="$NM"
5769 else
5770   lt_nm_to_check="${ac_tool_prefix}nm"
5771   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5772     lt_nm_to_check="$lt_nm_to_check nm"
5773   fi
5774   for lt_tmp_nm in $lt_nm_to_check; do
5775     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5776     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5777       IFS="$lt_save_ifs"
5778       test -z "$ac_dir" && ac_dir=.
5779       tmp_nm="$ac_dir/$lt_tmp_nm"
5780       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5781         # Check to see if the nm accepts a BSD-compat flag.
5782         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5783         #   nm: unknown option "B" ignored
5784         # Tru64's nm complains that /dev/null is an invalid object file
5785         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5786         */dev/null* | *'Invalid file or object type'*)
5787           lt_cv_path_NM="$tmp_nm -B"
5788           break
5789           ;;
5790         *)
5791           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5792           */dev/null*)
5793             lt_cv_path_NM="$tmp_nm -p"
5794             break
5795             ;;
5796           *)
5797             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5798             continue # so that we can try to find one that supports BSD flags
5799             ;;
5800           esac
5801           ;;
5802         esac
5803       fi
5804     done
5805     IFS="$lt_save_ifs"
5806   done
5807   : ${lt_cv_path_NM=no}
5808 fi
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5811 $as_echo "$lt_cv_path_NM" >&6; }
5812 if test "$lt_cv_path_NM" != "no"; then
5813   NM="$lt_cv_path_NM"
5814 else
5815   # Didn't find any BSD compatible name lister, look for dumpbin.
5816   if test -n "$DUMPBIN"; then :
5817     # Let the user override the test.
5818   else
5819     if test -n "$ac_tool_prefix"; then
5820   for ac_prog in dumpbin "link -dump"
5821   do
5822     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5827   $as_echo_n "(cached) " >&6
5828 else
5829   if test -n "$DUMPBIN"; then
5830   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837     for ac_exec_ext in '' $ac_executable_extensions; do
5838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844   done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 DUMPBIN=$ac_cv_prog_DUMPBIN
5850 if test -n "$DUMPBIN"; then
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5852 $as_echo "$DUMPBIN" >&6; }
5853 else
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857
5858
5859     test -n "$DUMPBIN" && break
5860   done
5861 fi
5862 if test -z "$DUMPBIN"; then
5863   ac_ct_DUMPBIN=$DUMPBIN
5864   for ac_prog in dumpbin "link -dump"
5865 do
5866   # Extract the first word of "$ac_prog", so it can be a program name with args.
5867 set dummy $ac_prog; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5871   $as_echo_n "(cached) " >&6
5872 else
5873   if test -n "$ac_ct_DUMPBIN"; then
5874   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881     for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888   done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5894 if test -n "$ac_ct_DUMPBIN"; then
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5896 $as_echo "$ac_ct_DUMPBIN" >&6; }
5897 else
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901
5902
5903   test -n "$ac_ct_DUMPBIN" && break
5904 done
5905
5906   if test "x$ac_ct_DUMPBIN" = x; then
5907     DUMPBIN=":"
5908   else
5909     case $cross_compiling:$ac_tool_warned in
5910 yes:)
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5913 ac_tool_warned=yes ;;
5914 esac
5915     DUMPBIN=$ac_ct_DUMPBIN
5916   fi
5917 fi
5918
5919     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5920     *COFF*)
5921       DUMPBIN="$DUMPBIN -symbols"
5922       ;;
5923     *)
5924       DUMPBIN=:
5925       ;;
5926     esac
5927   fi
5928
5929   if test "$DUMPBIN" != ":"; then
5930     NM="$DUMPBIN"
5931   fi
5932 fi
5933 test -z "$NM" && NM=nm
5934
5935
5936
5937
5938
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5941 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5942 if test "${lt_cv_nm_interface+set}" = set; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945   lt_cv_nm_interface="BSD nm"
5946   echo "int some_variable = 0;" > conftest.$ac_ext
5947   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5948   (eval "$ac_compile" 2>conftest.err)
5949   cat conftest.err >&5
5950   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5951   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5952   cat conftest.err >&5
5953   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5954   cat conftest.out >&5
5955   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5956     lt_cv_nm_interface="MS dumpbin"
5957   fi
5958   rm -f conftest*
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5961 $as_echo "$lt_cv_nm_interface" >&6; }
5962
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5964 $as_echo_n "checking whether ln -s works... " >&6; }
5965 LN_S=$as_ln_s
5966 if test "$LN_S" = "ln -s"; then
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5968 $as_echo "yes" >&6; }
5969 else
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5971 $as_echo "no, using $LN_S" >&6; }
5972 fi
5973
5974 # find the maximum length of command line arguments
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5976 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5977 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5978   $as_echo_n "(cached) " >&6
5979 else
5980     i=0
5981   teststring="ABCD"
5982
5983   case $build_os in
5984   msdosdjgpp*)
5985     # On DJGPP, this test can blow up pretty badly due to problems in libc
5986     # (any single argument exceeding 2000 bytes causes a buffer overrun
5987     # during glob expansion).  Even if it were fixed, the result of this
5988     # check would be larger than it should be.
5989     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5990     ;;
5991
5992   gnu*)
5993     # Under GNU Hurd, this test is not required because there is
5994     # no limit to the length of command line arguments.
5995     # Libtool will interpret -1 as no limit whatsoever
5996     lt_cv_sys_max_cmd_len=-1;
5997     ;;
5998
5999   cygwin* | mingw* | cegcc*)
6000     # On Win9x/ME, this test blows up -- it succeeds, but takes
6001     # about 5 minutes as the teststring grows exponentially.
6002     # Worse, since 9x/ME are not pre-emptively multitasking,
6003     # you end up with a "frozen" computer, even though with patience
6004     # the test eventually succeeds (with a max line length of 256k).
6005     # Instead, let's just punt: use the minimum linelength reported by
6006     # all of the supported platforms: 8192 (on NT/2K/XP).
6007     lt_cv_sys_max_cmd_len=8192;
6008     ;;
6009
6010   mint*)
6011     # On MiNT this can take a long time and run out of memory.
6012     lt_cv_sys_max_cmd_len=8192;
6013     ;;
6014
6015   amigaos*)
6016     # On AmigaOS with pdksh, this test takes hours, literally.
6017     # So we just punt and use a minimum line length of 8192.
6018     lt_cv_sys_max_cmd_len=8192;
6019     ;;
6020
6021   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6022     # This has been around since 386BSD, at least.  Likely further.
6023     if test -x /sbin/sysctl; then
6024       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6025     elif test -x /usr/sbin/sysctl; then
6026       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6027     else
6028       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6029     fi
6030     # And add a safety zone
6031     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6032     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6033     ;;
6034
6035   interix*)
6036     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6037     lt_cv_sys_max_cmd_len=196608
6038     ;;
6039
6040   osf*)
6041     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6042     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6043     # nice to cause kernel panics so lets avoid the loop below.
6044     # First set a reasonable default.
6045     lt_cv_sys_max_cmd_len=16384
6046     #
6047     if test -x /sbin/sysconfig; then
6048       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6049         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6050       esac
6051     fi
6052     ;;
6053   sco3.2v5*)
6054     lt_cv_sys_max_cmd_len=102400
6055     ;;
6056   sysv5* | sco5v6* | sysv4.2uw2*)
6057     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6058     if test -n "$kargmax"; then
6059       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6060     else
6061       lt_cv_sys_max_cmd_len=32768
6062     fi
6063     ;;
6064   *)
6065     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6066     if test -n "$lt_cv_sys_max_cmd_len"; then
6067       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6068       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6069     else
6070       # Make teststring a little bigger before we do anything with it.
6071       # a 1K string should be a reasonable start.
6072       for i in 1 2 3 4 5 6 7 8 ; do
6073         teststring=$teststring$teststring
6074       done
6075       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6076       # If test is not a shell built-in, we'll probably end up computing a
6077       # maximum length that is only half of the actual maximum length, but
6078       # we can't tell.
6079       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6080                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6081               test $i != 17 # 1/2 MB should be enough
6082       do
6083         i=`expr $i + 1`
6084         teststring=$teststring$teststring
6085       done
6086       # Only check the string length outside the loop.
6087       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6088       teststring=
6089       # Add a significant safety factor because C++ compilers can tack on
6090       # massive amounts of additional arguments before passing them to the
6091       # linker.  It appears as though 1/2 is a usable value.
6092       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6093     fi
6094     ;;
6095   esac
6096
6097 fi
6098
6099 if test -n $lt_cv_sys_max_cmd_len ; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6101 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6104 $as_echo "none" >&6; }
6105 fi
6106 max_cmd_len=$lt_cv_sys_max_cmd_len
6107
6108
6109
6110
6111
6112
6113 : ${CP="cp -f"}
6114 : ${MV="mv -f"}
6115 : ${RM="rm -f"}
6116
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6118 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6119 # Try some XSI features
6120 xsi_shell=no
6121 ( _lt_dummy="a/b/c"
6122   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6123       = c,a/b,, \
6124     && eval 'test $(( 1 + 1 )) -eq 2 \
6125     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6126   && xsi_shell=yes
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6128 $as_echo "$xsi_shell" >&6; }
6129
6130
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6132 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6133 lt_shell_append=no
6134 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6135     >/dev/null 2>&1 \
6136   && lt_shell_append=yes
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6138 $as_echo "$lt_shell_append" >&6; }
6139
6140
6141 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6142   lt_unset=unset
6143 else
6144   lt_unset=false
6145 fi
6146
6147
6148
6149
6150
6151 # test EBCDIC or ASCII
6152 case `echo X|tr X '\101'` in
6153  A) # ASCII based system
6154     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6155   lt_SP2NL='tr \040 \012'
6156   lt_NL2SP='tr \015\012 \040\040'
6157   ;;
6158  *) # EBCDIC based system
6159   lt_SP2NL='tr \100 \n'
6160   lt_NL2SP='tr \r\n \100\100'
6161   ;;
6162 esac
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6173 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6174 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   lt_cv_ld_reload_flag='-r'
6178 fi
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6180 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6181 reload_flag=$lt_cv_ld_reload_flag
6182 case $reload_flag in
6183 "" | " "*) ;;
6184 *) reload_flag=" $reload_flag" ;;
6185 esac
6186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187 case $host_os in
6188   darwin*)
6189     if test "$GCC" = yes; then
6190       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6191     else
6192       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6193     fi
6194     ;;
6195 esac
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205 if test -n "$ac_tool_prefix"; then
6206   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   if test -n "$OBJDUMP"; then
6214   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221     for ac_exec_ext in '' $ac_executable_extensions; do
6222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225     break 2
6226   fi
6227 done
6228   done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 OBJDUMP=$ac_cv_prog_OBJDUMP
6234 if test -n "$OBJDUMP"; then
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6236 $as_echo "$OBJDUMP" >&6; }
6237 else
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242
6243 fi
6244 if test -z "$ac_cv_prog_OBJDUMP"; then
6245   ac_ct_OBJDUMP=$OBJDUMP
6246   # Extract the first word of "objdump", so it can be a program name with args.
6247 set dummy objdump; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6251   $as_echo_n "(cached) " >&6
6252 else
6253   if test -n "$ac_ct_OBJDUMP"; then
6254   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268   done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6274 if test -n "$ac_ct_OBJDUMP"; then
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6276 $as_echo "$ac_ct_OBJDUMP" >&6; }
6277 else
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282   if test "x$ac_ct_OBJDUMP" = x; then
6283     OBJDUMP="false"
6284   else
6285     case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291     OBJDUMP=$ac_ct_OBJDUMP
6292   fi
6293 else
6294   OBJDUMP="$ac_cv_prog_OBJDUMP"
6295 fi
6296
6297 test -z "$OBJDUMP" && OBJDUMP=objdump
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6308 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6309 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6310   $as_echo_n "(cached) " >&6
6311 else
6312   lt_cv_file_magic_cmd='$MAGIC_CMD'
6313 lt_cv_file_magic_test_file=
6314 lt_cv_deplibs_check_method='unknown'
6315 # Need to set the preceding variable on all platforms that support
6316 # interlibrary dependencies.
6317 # 'none' -- dependencies not supported.
6318 # `unknown' -- same as none, but documents that we really don't know.
6319 # 'pass_all' -- all dependencies passed with no checks.
6320 # 'test_compile' -- check by making test program.
6321 # 'file_magic [[regex]]' -- check by looking for files in library path
6322 # which responds to the $file_magic_cmd with a given extended regex.
6323 # If you have `file' or equivalent on your system and you're not sure
6324 # whether `pass_all' will *always* work, you probably want this one.
6325
6326 case $host_os in
6327 aix[4-9]*)
6328   lt_cv_deplibs_check_method=pass_all
6329   ;;
6330
6331 beos*)
6332   lt_cv_deplibs_check_method=pass_all
6333   ;;
6334
6335 bsdi[45]*)
6336   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6337   lt_cv_file_magic_cmd='/usr/bin/file -L'
6338   lt_cv_file_magic_test_file=/shlib/libc.so
6339   ;;
6340
6341 cygwin*)
6342   # func_win32_libid is a shell function defined in ltmain.sh
6343   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6344   lt_cv_file_magic_cmd='func_win32_libid'
6345   ;;
6346
6347 mingw* | pw32*)
6348   # Base MSYS/MinGW do not provide the 'file' command needed by
6349   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6350   # unless we find 'file', for example because we are cross-compiling.
6351   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6352   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6353     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6354     lt_cv_file_magic_cmd='func_win32_libid'
6355   else
6356     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6357     lt_cv_file_magic_cmd='$OBJDUMP -f'
6358   fi
6359   ;;
6360
6361 cegcc*)
6362   # use the weaker test based on 'objdump'. See mingw*.
6363   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6364   lt_cv_file_magic_cmd='$OBJDUMP -f'
6365   ;;
6366
6367 darwin* | rhapsody*)
6368   lt_cv_deplibs_check_method=pass_all
6369   ;;
6370
6371 freebsd* | dragonfly*)
6372   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6373     case $host_cpu in
6374     i*86 )
6375       # Not sure whether the presence of OpenBSD here was a mistake.
6376       # Let's accept both of them until this is cleared up.
6377       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6378       lt_cv_file_magic_cmd=/usr/bin/file
6379       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6380       ;;
6381     esac
6382   else
6383     lt_cv_deplibs_check_method=pass_all
6384   fi
6385   ;;
6386
6387 gnu*)
6388   lt_cv_deplibs_check_method=pass_all
6389   ;;
6390
6391 haiku*)
6392   lt_cv_deplibs_check_method=pass_all
6393   ;;
6394
6395 hpux10.20* | hpux11*)
6396   lt_cv_file_magic_cmd=/usr/bin/file
6397   case $host_cpu in
6398   ia64*)
6399     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6400     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6401     ;;
6402   hppa*64*)
6403     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]'
6404     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6405     ;;
6406   *)
6407     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6408     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6409     ;;
6410   esac
6411   ;;
6412
6413 interix[3-9]*)
6414   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6415   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6416   ;;
6417
6418 irix5* | irix6* | nonstopux*)
6419   case $LD in
6420   *-32|*"-32 ") libmagic=32-bit;;
6421   *-n32|*"-n32 ") libmagic=N32;;
6422   *-64|*"-64 ") libmagic=64-bit;;
6423   *) libmagic=never-match;;
6424   esac
6425   lt_cv_deplibs_check_method=pass_all
6426   ;;
6427
6428 # This must be Linux ELF.
6429 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6430   lt_cv_deplibs_check_method=pass_all
6431   ;;
6432
6433 netbsd*)
6434   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6435     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6436   else
6437     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6438   fi
6439   ;;
6440
6441 newos6*)
6442   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6443   lt_cv_file_magic_cmd=/usr/bin/file
6444   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6445   ;;
6446
6447 *nto* | *qnx*)
6448   lt_cv_deplibs_check_method=pass_all
6449   ;;
6450
6451 openbsd*)
6452   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6453     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6454   else
6455     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6456   fi
6457   ;;
6458
6459 osf3* | osf4* | osf5*)
6460   lt_cv_deplibs_check_method=pass_all
6461   ;;
6462
6463 rdos*)
6464   lt_cv_deplibs_check_method=pass_all
6465   ;;
6466
6467 solaris*)
6468   lt_cv_deplibs_check_method=pass_all
6469   ;;
6470
6471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6472   lt_cv_deplibs_check_method=pass_all
6473   ;;
6474
6475 sysv4 | sysv4.3*)
6476   case $host_vendor in
6477   motorola)
6478     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]'
6479     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6480     ;;
6481   ncr)
6482     lt_cv_deplibs_check_method=pass_all
6483     ;;
6484   sequent)
6485     lt_cv_file_magic_cmd='/bin/file'
6486     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6487     ;;
6488   sni)
6489     lt_cv_file_magic_cmd='/bin/file'
6490     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6491     lt_cv_file_magic_test_file=/lib/libc.so
6492     ;;
6493   siemens)
6494     lt_cv_deplibs_check_method=pass_all
6495     ;;
6496   pc)
6497     lt_cv_deplibs_check_method=pass_all
6498     ;;
6499   esac
6500   ;;
6501
6502 tpf*)
6503   lt_cv_deplibs_check_method=pass_all
6504   ;;
6505 esac
6506
6507 fi
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6509 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6510 file_magic_cmd=$lt_cv_file_magic_cmd
6511 deplibs_check_method=$lt_cv_deplibs_check_method
6512 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525 if test -n "$ac_tool_prefix"; then
6526   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6527 set dummy ${ac_tool_prefix}ar; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if test "${ac_cv_prog_AR+set}" = set; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533   if test -n "$AR"; then
6534   ac_cv_prog_AR="$AR" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541     for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_prog_AR="${ac_tool_prefix}ar"
6544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548   done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 AR=$ac_cv_prog_AR
6554 if test -n "$AR"; then
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6556 $as_echo "$AR" >&6; }
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562
6563 fi
6564 if test -z "$ac_cv_prog_AR"; then
6565   ac_ct_AR=$AR
6566   # Extract the first word of "ar", so it can be a program name with args.
6567 set dummy ar; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   if test -n "$ac_ct_AR"; then
6574   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581     for ac_exec_ext in '' $ac_executable_extensions; do
6582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6583     ac_cv_prog_ac_ct_AR="ar"
6584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588   done
6589 IFS=$as_save_IFS
6590
6591 fi
6592 fi
6593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6594 if test -n "$ac_ct_AR"; then
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6596 $as_echo "$ac_ct_AR" >&6; }
6597 else
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6600 fi
6601
6602   if test "x$ac_ct_AR" = x; then
6603     AR="false"
6604   else
6605     case $cross_compiling:$ac_tool_warned in
6606 yes:)
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6609 ac_tool_warned=yes ;;
6610 esac
6611     AR=$ac_ct_AR
6612   fi
6613 else
6614   AR="$ac_cv_prog_AR"
6615 fi
6616
6617 test -z "$AR" && AR=ar
6618 test -z "$AR_FLAGS" && AR_FLAGS=cru
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630 if test -n "$ac_tool_prefix"; then
6631   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}strip; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_STRIP+set}" = set; then :
6636   $as_echo_n "(cached) " >&6
6637 else
6638   if test -n "$STRIP"; then
6639   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646     for ac_exec_ext in '' $ac_executable_extensions; do
6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653   done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 STRIP=$ac_cv_prog_STRIP
6659 if test -n "$STRIP"; then
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6661 $as_echo "$STRIP" >&6; }
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667
6668 fi
6669 if test -z "$ac_cv_prog_STRIP"; then
6670   ac_ct_STRIP=$STRIP
6671   # Extract the first word of "strip", so it can be a program name with args.
6672 set dummy strip; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6676   $as_echo_n "(cached) " >&6
6677 else
6678   if test -n "$ac_ct_STRIP"; then
6679   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686     for ac_exec_ext in '' $ac_executable_extensions; do
6687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688     ac_cv_prog_ac_ct_STRIP="strip"
6689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693   done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6699 if test -n "$ac_ct_STRIP"; then
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6701 $as_echo "$ac_ct_STRIP" >&6; }
6702 else
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6705 fi
6706
6707   if test "x$ac_ct_STRIP" = x; then
6708     STRIP=":"
6709   else
6710     case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714 ac_tool_warned=yes ;;
6715 esac
6716     STRIP=$ac_ct_STRIP
6717   fi
6718 else
6719   STRIP="$ac_cv_prog_STRIP"
6720 fi
6721
6722 test -z "$STRIP" && STRIP=:
6723
6724
6725
6726
6727
6728
6729 if test -n "$ac_tool_prefix"; then
6730   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6735   $as_echo_n "(cached) " >&6
6736 else
6737   if test -n "$RANLIB"; then
6738   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743   IFS=$as_save_IFS
6744   test -z "$as_dir" && as_dir=.
6745     for ac_exec_ext in '' $ac_executable_extensions; do
6746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749     break 2
6750   fi
6751 done
6752   done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 RANLIB=$ac_cv_prog_RANLIB
6758 if test -n "$RANLIB"; then
6759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6760 $as_echo "$RANLIB" >&6; }
6761 else
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766
6767 fi
6768 if test -z "$ac_cv_prog_RANLIB"; then
6769   ac_ct_RANLIB=$RANLIB
6770   # Extract the first word of "ranlib", so it can be a program name with args.
6771 set dummy ranlib; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777   if test -n "$ac_ct_RANLIB"; then
6778   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785     for ac_exec_ext in '' $ac_executable_extensions; do
6786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787     ac_cv_prog_ac_ct_RANLIB="ranlib"
6788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792   done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6798 if test -n "$ac_ct_RANLIB"; then
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6800 $as_echo "$ac_ct_RANLIB" >&6; }
6801 else
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6804 fi
6805
6806   if test "x$ac_ct_RANLIB" = x; then
6807     RANLIB=":"
6808   else
6809     case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815     RANLIB=$ac_ct_RANLIB
6816   fi
6817 else
6818   RANLIB="$ac_cv_prog_RANLIB"
6819 fi
6820
6821 test -z "$RANLIB" && RANLIB=:
6822
6823
6824
6825
6826
6827
6828 # Determine commands to create old-style static archives.
6829 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6830 old_postinstall_cmds='chmod 644 $oldlib'
6831 old_postuninstall_cmds=
6832
6833 if test -n "$RANLIB"; then
6834   case $host_os in
6835   openbsd*)
6836     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6837     ;;
6838   *)
6839     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6840     ;;
6841   esac
6842   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6843 fi
6844
6845 case $host_os in
6846   darwin*)
6847     lock_old_archive_extraction=yes ;;
6848   *)
6849     lock_old_archive_extraction=no ;;
6850 esac
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890 # If no C compiler was specified, use CC.
6891 LTCC=${LTCC-"$CC"}
6892
6893 # If no C compiler flags were specified, use CFLAGS.
6894 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6895
6896 # Allow CC to be a program name with arguments.
6897 compiler=$CC
6898
6899
6900 # Check for command to grab the raw symbol name followed by C symbol from nm.
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6902 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6903 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906
6907 # These are sane defaults that work on at least a few old systems.
6908 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6909
6910 # Character class describing NM global symbol codes.
6911 symcode='[BCDEGRST]'
6912
6913 # Regexp to match symbols that can be accessed directly from C.
6914 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6915
6916 # Define system-specific variables.
6917 case $host_os in
6918 aix*)
6919   symcode='[BCDT]'
6920   ;;
6921 cygwin* | mingw* | pw32* | cegcc*)
6922   symcode='[ABCDGISTW]'
6923   ;;
6924 hpux*)
6925   if test "$host_cpu" = ia64; then
6926     symcode='[ABCDEGRST]'
6927   fi
6928   ;;
6929 irix* | nonstopux*)
6930   symcode='[BCDEGRST]'
6931   ;;
6932 osf*)
6933   symcode='[BCDEGQRST]'
6934   ;;
6935 solaris*)
6936   symcode='[BDRT]'
6937   ;;
6938 sco3.2v5*)
6939   symcode='[DT]'
6940   ;;
6941 sysv4.2uw2*)
6942   symcode='[DT]'
6943   ;;
6944 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6945   symcode='[ABDT]'
6946   ;;
6947 sysv4)
6948   symcode='[DFNSTU]'
6949   ;;
6950 esac
6951
6952 # If we're using GNU nm, then use its standard symbol codes.
6953 case `$NM -V 2>&1` in
6954 *GNU* | *'with BFD'*)
6955   symcode='[ABCDGIRSTW]' ;;
6956 esac
6957
6958 # Transform an extracted symbol line into a proper C declaration.
6959 # Some systems (esp. on ia64) link data and code symbols differently,
6960 # so use this general approach.
6961 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6962
6963 # Transform an extracted symbol line into symbol name and symbol address
6964 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6965 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'"
6966
6967 # Handle CRLF in mingw tool chain
6968 opt_cr=
6969 case $build_os in
6970 mingw*)
6971   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6972   ;;
6973 esac
6974
6975 # Try without a prefix underscore, then with it.
6976 for ac_symprfx in "" "_"; do
6977
6978   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6979   symxfrm="\\1 $ac_symprfx\\2 \\2"
6980
6981   # Write the raw and C identifiers.
6982   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6983     # Fake it for dumpbin and say T for any non-static function
6984     # and D for any global variable.
6985     # Also find C++ and __fastcall symbols from MSVC++,
6986     # which start with @ or ?.
6987     lt_cv_sys_global_symbol_pipe="$AWK '"\
6988 "     {last_section=section; section=\$ 3};"\
6989 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6990 "     \$ 0!~/External *\|/{next};"\
6991 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6992 "     {if(hide[section]) next};"\
6993 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6994 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6995 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6996 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6997 "     ' prfx=^$ac_symprfx"
6998   else
6999     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7000   fi
7001
7002   # Check to see that the pipe works correctly.
7003   pipe_works=no
7004
7005   rm -f conftest*
7006   cat > conftest.$ac_ext <<_LT_EOF
7007 #ifdef __cplusplus
7008 extern "C" {
7009 #endif
7010 char nm_test_var;
7011 void nm_test_func(void);
7012 void nm_test_func(void){}
7013 #ifdef __cplusplus
7014 }
7015 #endif
7016 int main(){nm_test_var='a';nm_test_func();return(0);}
7017 _LT_EOF
7018
7019   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7020   (eval $ac_compile) 2>&5
7021   ac_status=$?
7022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7023   test $ac_status = 0; }; then
7024     # Now try to grab the symbols.
7025     nlist=conftest.nm
7026     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7027   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7028   ac_status=$?
7029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030   test $ac_status = 0; } && test -s "$nlist"; then
7031       # Try sorting and uniquifying the output.
7032       if sort "$nlist" | uniq > "$nlist"T; then
7033         mv -f "$nlist"T "$nlist"
7034       else
7035         rm -f "$nlist"T
7036       fi
7037
7038       # Make sure that we snagged all the symbols we need.
7039       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7040         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7041           cat <<_LT_EOF > conftest.$ac_ext
7042 #ifdef __cplusplus
7043 extern "C" {
7044 #endif
7045
7046 _LT_EOF
7047           # Now generate the symbol file.
7048           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7049
7050           cat <<_LT_EOF >> conftest.$ac_ext
7051
7052 /* The mapping between symbol names and symbols.  */
7053 const struct {
7054   const char *name;
7055   void       *address;
7056 }
7057 lt__PROGRAM__LTX_preloaded_symbols[] =
7058 {
7059   { "@PROGRAM@", (void *) 0 },
7060 _LT_EOF
7061           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7062           cat <<\_LT_EOF >> conftest.$ac_ext
7063   {0, (void *) 0}
7064 };
7065
7066 /* This works around a problem in FreeBSD linker */
7067 #ifdef FREEBSD_WORKAROUND
7068 static const void *lt_preloaded_setup() {
7069   return lt__PROGRAM__LTX_preloaded_symbols;
7070 }
7071 #endif
7072
7073 #ifdef __cplusplus
7074 }
7075 #endif
7076 _LT_EOF
7077           # Now try linking the two files.
7078           mv conftest.$ac_objext conftstm.$ac_objext
7079           lt_save_LIBS="$LIBS"
7080           lt_save_CFLAGS="$CFLAGS"
7081           LIBS="conftstm.$ac_objext"
7082           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7083           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7084   (eval $ac_link) 2>&5
7085   ac_status=$?
7086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7088             pipe_works=yes
7089           fi
7090           LIBS="$lt_save_LIBS"
7091           CFLAGS="$lt_save_CFLAGS"
7092         else
7093           echo "cannot find nm_test_func in $nlist" >&5
7094         fi
7095       else
7096         echo "cannot find nm_test_var in $nlist" >&5
7097       fi
7098     else
7099       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7100     fi
7101   else
7102     echo "$progname: failed program was:" >&5
7103     cat conftest.$ac_ext >&5
7104   fi
7105   rm -rf conftest* conftst*
7106
7107   # Do not use the global_symbol_pipe unless it works.
7108   if test "$pipe_works" = yes; then
7109     break
7110   else
7111     lt_cv_sys_global_symbol_pipe=
7112   fi
7113 done
7114
7115 fi
7116
7117 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7118   lt_cv_sys_global_symbol_to_cdecl=
7119 fi
7120 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7122 $as_echo "failed" >&6; }
7123 else
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7125 $as_echo "ok" >&6; }
7126 fi
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150 # Check whether --enable-libtool-lock was given.
7151 if test "${enable_libtool_lock+set}" = set; then :
7152   enableval=$enable_libtool_lock;
7153 fi
7154
7155 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7156
7157 # Some flags need to be propagated to the compiler or linker for good
7158 # libtool support.
7159 case $host in
7160 ia64-*-hpux*)
7161   # Find out which ABI we are using.
7162   echo 'int i;' > conftest.$ac_ext
7163   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7164   (eval $ac_compile) 2>&5
7165   ac_status=$?
7166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167   test $ac_status = 0; }; then
7168     case `/usr/bin/file conftest.$ac_objext` in
7169       *ELF-32*)
7170         HPUX_IA64_MODE="32"
7171         ;;
7172       *ELF-64*)
7173         HPUX_IA64_MODE="64"
7174         ;;
7175     esac
7176   fi
7177   rm -rf conftest*
7178   ;;
7179 *-*-irix6*)
7180   # Find out which ABI we are using.
7181   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7182   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7183   (eval $ac_compile) 2>&5
7184   ac_status=$?
7185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7186   test $ac_status = 0; }; then
7187     if test "$lt_cv_prog_gnu_ld" = yes; then
7188       case `/usr/bin/file conftest.$ac_objext` in
7189         *32-bit*)
7190           LD="${LD-ld} -melf32bsmip"
7191           ;;
7192         *N32*)
7193           LD="${LD-ld} -melf32bmipn32"
7194           ;;
7195         *64-bit*)
7196           LD="${LD-ld} -melf64bmip"
7197         ;;
7198       esac
7199     else
7200       case `/usr/bin/file conftest.$ac_objext` in
7201         *32-bit*)
7202           LD="${LD-ld} -32"
7203           ;;
7204         *N32*)
7205           LD="${LD-ld} -n32"
7206           ;;
7207         *64-bit*)
7208           LD="${LD-ld} -64"
7209           ;;
7210       esac
7211     fi
7212   fi
7213   rm -rf conftest*
7214   ;;
7215
7216 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7217 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7218   # Find out which ABI we are using.
7219   echo 'int i;' > conftest.$ac_ext
7220   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7221   (eval $ac_compile) 2>&5
7222   ac_status=$?
7223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7224   test $ac_status = 0; }; then
7225     case `/usr/bin/file conftest.o` in
7226       *32-bit*)
7227         case $host in
7228           x86_64-*kfreebsd*-gnu)
7229             LD="${LD-ld} -m elf_i386_fbsd"
7230             ;;
7231           x86_64-*linux*)
7232             LD="${LD-ld} -m elf_i386"
7233             ;;
7234           ppc64-*linux*|powerpc64-*linux*)
7235             LD="${LD-ld} -m elf32ppclinux"
7236             ;;
7237           s390x-*linux*)
7238             LD="${LD-ld} -m elf_s390"
7239             ;;
7240           sparc64-*linux*)
7241             LD="${LD-ld} -m elf32_sparc"
7242             ;;
7243         esac
7244         ;;
7245       *64-bit*)
7246         case $host in
7247           x86_64-*kfreebsd*-gnu)
7248             LD="${LD-ld} -m elf_x86_64_fbsd"
7249             ;;
7250           x86_64-*linux*)
7251             LD="${LD-ld} -m elf_x86_64"
7252             ;;
7253           ppc*-*linux*|powerpc*-*linux*)
7254             LD="${LD-ld} -m elf64ppc"
7255             ;;
7256           s390*-*linux*|s390*-*tpf*)
7257             LD="${LD-ld} -m elf64_s390"
7258             ;;
7259           sparc*-*linux*)
7260             LD="${LD-ld} -m elf64_sparc"
7261             ;;
7262         esac
7263         ;;
7264     esac
7265   fi
7266   rm -rf conftest*
7267   ;;
7268
7269 *-*-sco3.2v5*)
7270   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7271   SAVE_CFLAGS="$CFLAGS"
7272   CFLAGS="$CFLAGS -belf"
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7274 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7275 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7276   $as_echo_n "(cached) " >&6
7277 else
7278   ac_ext=c
7279 ac_cpp='$CPP $CPPFLAGS'
7280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7283
7284      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286
7287 int
7288 main ()
7289 {
7290
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 if ac_fn_c_try_link "$LINENO"; then :
7296   lt_cv_cc_needs_belf=yes
7297 else
7298   lt_cv_cc_needs_belf=no
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext \
7301     conftest$ac_exeext conftest.$ac_ext
7302      ac_ext=c
7303 ac_cpp='$CPP $CPPFLAGS'
7304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7307
7308 fi
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7310 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7311   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7312     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7313     CFLAGS="$SAVE_CFLAGS"
7314   fi
7315   ;;
7316 sparc*-*solaris*)
7317   # Find out which ABI we are using.
7318   echo 'int i;' > conftest.$ac_ext
7319   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7320   (eval $ac_compile) 2>&5
7321   ac_status=$?
7322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7323   test $ac_status = 0; }; then
7324     case `/usr/bin/file conftest.o` in
7325     *64-bit*)
7326       case $lt_cv_prog_gnu_ld in
7327       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7328       *)
7329         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7330           LD="${LD-ld} -64"
7331         fi
7332         ;;
7333       esac
7334       ;;
7335     esac
7336   fi
7337   rm -rf conftest*
7338   ;;
7339 esac
7340
7341 need_locks="$enable_libtool_lock"
7342
7343
7344   case $host_os in
7345     rhapsody* | darwin*)
7346     if test -n "$ac_tool_prefix"; then
7347   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   if test -n "$DSYMUTIL"; then
7355   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362     for ac_exec_ext in '' $ac_executable_extensions; do
7363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369   done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7375 if test -n "$DSYMUTIL"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7377 $as_echo "$DSYMUTIL" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if test -z "$ac_cv_prog_DSYMUTIL"; then
7386   ac_ct_DSYMUTIL=$DSYMUTIL
7387   # Extract the first word of "dsymutil", so it can be a program name with args.
7388 set dummy dsymutil; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$ac_ct_DSYMUTIL"; then
7395   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7415 if test -n "$ac_ct_DSYMUTIL"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7417 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423   if test "x$ac_ct_DSYMUTIL" = x; then
7424     DSYMUTIL=":"
7425   else
7426     case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432     DSYMUTIL=$ac_ct_DSYMUTIL
7433   fi
7434 else
7435   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7436 fi
7437
7438     if test -n "$ac_tool_prefix"; then
7439   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   if test -n "$NMEDIT"; then
7447   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454     for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461   done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 NMEDIT=$ac_cv_prog_NMEDIT
7467 if test -n "$NMEDIT"; then
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7469 $as_echo "$NMEDIT" >&6; }
7470 else
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475
7476 fi
7477 if test -z "$ac_cv_prog_NMEDIT"; then
7478   ac_ct_NMEDIT=$NMEDIT
7479   # Extract the first word of "nmedit", so it can be a program name with args.
7480 set dummy nmedit; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   if test -n "$ac_ct_NMEDIT"; then
7487   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492   IFS=$as_save_IFS
7493   test -z "$as_dir" && as_dir=.
7494     for ac_exec_ext in '' $ac_executable_extensions; do
7495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498     break 2
7499   fi
7500 done
7501   done
7502 IFS=$as_save_IFS
7503
7504 fi
7505 fi
7506 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7507 if test -n "$ac_ct_NMEDIT"; then
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7509 $as_echo "$ac_ct_NMEDIT" >&6; }
7510 else
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 fi
7514
7515   if test "x$ac_ct_NMEDIT" = x; then
7516     NMEDIT=":"
7517   else
7518     case $cross_compiling:$ac_tool_warned in
7519 yes:)
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522 ac_tool_warned=yes ;;
7523 esac
7524     NMEDIT=$ac_ct_NMEDIT
7525   fi
7526 else
7527   NMEDIT="$ac_cv_prog_NMEDIT"
7528 fi
7529
7530     if test -n "$ac_tool_prefix"; then
7531   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7532 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if test "${ac_cv_prog_LIPO+set}" = set; then :
7536   $as_echo_n "(cached) " >&6
7537 else
7538   if test -n "$LIPO"; then
7539   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544   IFS=$as_save_IFS
7545   test -z "$as_dir" && as_dir=.
7546     for ac_exec_ext in '' $ac_executable_extensions; do
7547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550     break 2
7551   fi
7552 done
7553   done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 LIPO=$ac_cv_prog_LIPO
7559 if test -n "$LIPO"; then
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7561 $as_echo "$LIPO" >&6; }
7562 else
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567
7568 fi
7569 if test -z "$ac_cv_prog_LIPO"; then
7570   ac_ct_LIPO=$LIPO
7571   # Extract the first word of "lipo", so it can be a program name with args.
7572 set dummy lipo; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   if test -n "$ac_ct_LIPO"; then
7579   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586     for ac_exec_ext in '' $ac_executable_extensions; do
7587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7588     ac_cv_prog_ac_ct_LIPO="lipo"
7589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593   done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7599 if test -n "$ac_ct_LIPO"; then
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7601 $as_echo "$ac_ct_LIPO" >&6; }
7602 else
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607   if test "x$ac_ct_LIPO" = x; then
7608     LIPO=":"
7609   else
7610     case $cross_compiling:$ac_tool_warned in
7611 yes:)
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614 ac_tool_warned=yes ;;
7615 esac
7616     LIPO=$ac_ct_LIPO
7617   fi
7618 else
7619   LIPO="$ac_cv_prog_LIPO"
7620 fi
7621
7622     if test -n "$ac_tool_prefix"; then
7623   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7624 set dummy ${ac_tool_prefix}otool; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7628   $as_echo_n "(cached) " >&6
7629 else
7630   if test -n "$OTOOL"; then
7631   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636   IFS=$as_save_IFS
7637   test -z "$as_dir" && as_dir=.
7638     for ac_exec_ext in '' $ac_executable_extensions; do
7639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642     break 2
7643   fi
7644 done
7645   done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 OTOOL=$ac_cv_prog_OTOOL
7651 if test -n "$OTOOL"; then
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7653 $as_echo "$OTOOL" >&6; }
7654 else
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658
7659
7660 fi
7661 if test -z "$ac_cv_prog_OTOOL"; then
7662   ac_ct_OTOOL=$OTOOL
7663   # Extract the first word of "otool", so it can be a program name with args.
7664 set dummy otool; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7668   $as_echo_n "(cached) " >&6
7669 else
7670   if test -n "$ac_ct_OTOOL"; then
7671   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676   IFS=$as_save_IFS
7677   test -z "$as_dir" && as_dir=.
7678     for ac_exec_ext in '' $ac_executable_extensions; do
7679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7680     ac_cv_prog_ac_ct_OTOOL="otool"
7681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682     break 2
7683   fi
7684 done
7685   done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7691 if test -n "$ac_ct_OTOOL"; then
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7693 $as_echo "$ac_ct_OTOOL" >&6; }
7694 else
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 fi
7698
7699   if test "x$ac_ct_OTOOL" = x; then
7700     OTOOL=":"
7701   else
7702     case $cross_compiling:$ac_tool_warned in
7703 yes:)
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706 ac_tool_warned=yes ;;
7707 esac
7708     OTOOL=$ac_ct_OTOOL
7709   fi
7710 else
7711   OTOOL="$ac_cv_prog_OTOOL"
7712 fi
7713
7714     if test -n "$ac_tool_prefix"; then
7715   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   if test -n "$OTOOL64"; then
7723   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730     for ac_exec_ext in '' $ac_executable_extensions; do
7731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737   done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 OTOOL64=$ac_cv_prog_OTOOL64
7743 if test -n "$OTOOL64"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7745 $as_echo "$OTOOL64" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752 fi
7753 if test -z "$ac_cv_prog_OTOOL64"; then
7754   ac_ct_OTOOL64=$OTOOL64
7755   # Extract the first word of "otool64", so it can be a program name with args.
7756 set dummy otool64; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   if test -n "$ac_ct_OTOOL64"; then
7763   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768   IFS=$as_save_IFS
7769   test -z "$as_dir" && as_dir=.
7770     for ac_exec_ext in '' $ac_executable_extensions; do
7771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772     ac_cv_prog_ac_ct_OTOOL64="otool64"
7773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774     break 2
7775   fi
7776 done
7777   done
7778 IFS=$as_save_IFS
7779
7780 fi
7781 fi
7782 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7783 if test -n "$ac_ct_OTOOL64"; then
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7785 $as_echo "$ac_ct_OTOOL64" >&6; }
7786 else
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791   if test "x$ac_ct_OTOOL64" = x; then
7792     OTOOL64=":"
7793   else
7794     case $cross_compiling:$ac_tool_warned in
7795 yes:)
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798 ac_tool_warned=yes ;;
7799 esac
7800     OTOOL64=$ac_ct_OTOOL64
7801   fi
7802 else
7803   OTOOL64="$ac_cv_prog_OTOOL64"
7804 fi
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7833 $as_echo_n "checking for -single_module linker flag... " >&6; }
7834 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   lt_cv_apple_cc_single_mod=no
7838       if test -z "${LT_MULTI_MODULE}"; then
7839         # By default we will add the -single_module flag. You can override
7840         # by either setting the environment variable LT_MULTI_MODULE
7841         # non-empty at configure time, or by adding -multi_module to the
7842         # link flags.
7843         rm -rf libconftest.dylib*
7844         echo "int foo(void){return 1;}" > conftest.c
7845         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7846 -dynamiclib -Wl,-single_module conftest.c" >&5
7847         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7848           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7849         _lt_result=$?
7850         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7851           lt_cv_apple_cc_single_mod=yes
7852         else
7853           cat conftest.err >&5
7854         fi
7855         rm -rf libconftest.dylib*
7856         rm -f conftest.*
7857       fi
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7860 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7862 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7863 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7864   $as_echo_n "(cached) " >&6
7865 else
7866   lt_cv_ld_exported_symbols_list=no
7867       save_LDFLAGS=$LDFLAGS
7868       echo "_main" > conftest.sym
7869       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7870       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h.  */
7872
7873 int
7874 main ()
7875 {
7876
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 if ac_fn_c_try_link "$LINENO"; then :
7882   lt_cv_ld_exported_symbols_list=yes
7883 else
7884   lt_cv_ld_exported_symbols_list=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext \
7887     conftest$ac_exeext conftest.$ac_ext
7888         LDFLAGS="$save_LDFLAGS"
7889
7890 fi
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7892 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7894 $as_echo_n "checking for -force_load linker flag... " >&6; }
7895 if test "${lt_cv_ld_force_load+set}" = set; then :
7896   $as_echo_n "(cached) " >&6
7897 else
7898   lt_cv_ld_force_load=no
7899       cat > conftest.c << _LT_EOF
7900 int forced_loaded() { return 2;}
7901 _LT_EOF
7902       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7903       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7904       echo "$AR cru libconftest.a conftest.o" >&5
7905       $AR cru libconftest.a conftest.o 2>&5
7906       cat > conftest.c << _LT_EOF
7907 int main() { return 0;}
7908 _LT_EOF
7909       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7910       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7911       _lt_result=$?
7912       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7913         lt_cv_ld_force_load=yes
7914       else
7915         cat conftest.err >&5
7916       fi
7917         rm -f conftest.err libconftest.a conftest conftest.c
7918         rm -rf conftest.dSYM
7919
7920 fi
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7922 $as_echo "$lt_cv_ld_force_load" >&6; }
7923     case $host_os in
7924     rhapsody* | darwin1.[012])
7925       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7926     darwin1.*)
7927       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7928     darwin*) # darwin 5.x on
7929       # if running on 10.5 or later, the deployment target defaults
7930       # to the OS version, if on x86, and 10.4, the deployment
7931       # target defaults to 10.4. Don't you love it?
7932       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7933         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7934           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7935         10.[012]*)
7936           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7937         10.*)
7938           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7939       esac
7940     ;;
7941   esac
7942     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7943       _lt_dar_single_mod='$single_module'
7944     fi
7945     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7946       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7947     else
7948       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7949     fi
7950     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7951       _lt_dsymutil='~$DSYMUTIL $lib || :'
7952     else
7953       _lt_dsymutil=
7954     fi
7955     ;;
7956   esac
7957
7958 ac_ext=c
7959 ac_cpp='$CPP $CPPFLAGS'
7960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7964 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7965 # On Suns, sometimes $CPP names a directory.
7966 if test -n "$CPP" && test -d "$CPP"; then
7967   CPP=
7968 fi
7969 if test -z "$CPP"; then
7970   if test "${ac_cv_prog_CPP+set}" = set; then :
7971   $as_echo_n "(cached) " >&6
7972 else
7973       # Double quotes because CPP needs to be expanded
7974     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7975     do
7976       ac_preproc_ok=false
7977 for ac_c_preproc_warn_flag in '' yes
7978 do
7979   # Use a header file that comes with gcc, so configuring glibc
7980   # with a fresh cross-compiler works.
7981   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7982   # <limits.h> exists even on freestanding compilers.
7983   # On the NeXT, cc -E runs the code through the compiler's parser,
7984   # not just through cpp. "Syntax error" is here to catch this case.
7985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h.  */
7987 #ifdef __STDC__
7988 # include <limits.h>
7989 #else
7990 # include <assert.h>
7991 #endif
7992                      Syntax error
7993 _ACEOF
7994 if ac_fn_c_try_cpp "$LINENO"; then :
7995
7996 else
7997   # Broken: fails on valid input.
7998 continue
7999 fi
8000 rm -f conftest.err conftest.$ac_ext
8001
8002   # OK, works on sane cases.  Now check whether nonexistent headers
8003   # can be detected and how.
8004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h.  */
8006 #include <ac_nonexistent.h>
8007 _ACEOF
8008 if ac_fn_c_try_cpp "$LINENO"; then :
8009   # Broken: success on invalid input.
8010 continue
8011 else
8012   # Passes both tests.
8013 ac_preproc_ok=:
8014 break
8015 fi
8016 rm -f conftest.err conftest.$ac_ext
8017
8018 done
8019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8020 rm -f conftest.err conftest.$ac_ext
8021 if $ac_preproc_ok; then :
8022   break
8023 fi
8024
8025     done
8026     ac_cv_prog_CPP=$CPP
8027
8028 fi
8029   CPP=$ac_cv_prog_CPP
8030 else
8031   ac_cv_prog_CPP=$CPP
8032 fi
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8034 $as_echo "$CPP" >&6; }
8035 ac_preproc_ok=false
8036 for ac_c_preproc_warn_flag in '' yes
8037 do
8038   # Use a header file that comes with gcc, so configuring glibc
8039   # with a fresh cross-compiler works.
8040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8041   # <limits.h> exists even on freestanding compilers.
8042   # On the NeXT, cc -E runs the code through the compiler's parser,
8043   # not just through cpp. "Syntax error" is here to catch this case.
8044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h.  */
8046 #ifdef __STDC__
8047 # include <limits.h>
8048 #else
8049 # include <assert.h>
8050 #endif
8051                      Syntax error
8052 _ACEOF
8053 if ac_fn_c_try_cpp "$LINENO"; then :
8054
8055 else
8056   # Broken: fails on valid input.
8057 continue
8058 fi
8059 rm -f conftest.err conftest.$ac_ext
8060
8061   # OK, works on sane cases.  Now check whether nonexistent headers
8062   # can be detected and how.
8063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h.  */
8065 #include <ac_nonexistent.h>
8066 _ACEOF
8067 if ac_fn_c_try_cpp "$LINENO"; then :
8068   # Broken: success on invalid input.
8069 continue
8070 else
8071   # Passes both tests.
8072 ac_preproc_ok=:
8073 break
8074 fi
8075 rm -f conftest.err conftest.$ac_ext
8076
8077 done
8078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8079 rm -f conftest.err conftest.$ac_ext
8080 if $ac_preproc_ok; then :
8081
8082 else
8083   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8085 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8086 See \`config.log' for more details." "$LINENO" 5; }
8087 fi
8088
8089 ac_ext=c
8090 ac_cpp='$CPP $CPPFLAGS'
8091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8094
8095
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8097 $as_echo_n "checking for ANSI C header files... " >&6; }
8098 if test "${ac_cv_header_stdc+set}" = set; then :
8099   $as_echo_n "(cached) " >&6
8100 else
8101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h.  */
8103 #include <stdlib.h>
8104 #include <stdarg.h>
8105 #include <string.h>
8106 #include <float.h>
8107
8108 int
8109 main ()
8110 {
8111
8112   ;
8113   return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_compile "$LINENO"; then :
8117   ac_cv_header_stdc=yes
8118 else
8119   ac_cv_header_stdc=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122
8123 if test $ac_cv_header_stdc = yes; then
8124   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h.  */
8127 #include <string.h>
8128
8129 _ACEOF
8130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8131   $EGREP "memchr" >/dev/null 2>&1; then :
8132
8133 else
8134   ac_cv_header_stdc=no
8135 fi
8136 rm -f conftest*
8137
8138 fi
8139
8140 if test $ac_cv_header_stdc = yes; then
8141   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h.  */
8144 #include <stdlib.h>
8145
8146 _ACEOF
8147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8148   $EGREP "free" >/dev/null 2>&1; then :
8149
8150 else
8151   ac_cv_header_stdc=no
8152 fi
8153 rm -f conftest*
8154
8155 fi
8156
8157 if test $ac_cv_header_stdc = yes; then
8158   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8159   if test "$cross_compiling" = yes; then :
8160   :
8161 else
8162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h.  */
8164 #include <ctype.h>
8165 #include <stdlib.h>
8166 #if ((' ' & 0x0FF) == 0x020)
8167 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8168 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8169 #else
8170 # define ISLOWER(c) \
8171                    (('a' <= (c) && (c) <= 'i') \
8172                      || ('j' <= (c) && (c) <= 'r') \
8173                      || ('s' <= (c) && (c) <= 'z'))
8174 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8175 #endif
8176
8177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8178 int
8179 main ()
8180 {
8181   int i;
8182   for (i = 0; i < 256; i++)
8183     if (XOR (islower (i), ISLOWER (i))
8184         || toupper (i) != TOUPPER (i))
8185       return 2;
8186   return 0;
8187 }
8188 _ACEOF
8189 if ac_fn_c_try_run "$LINENO"; then :
8190
8191 else
8192   ac_cv_header_stdc=no
8193 fi
8194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8195   conftest.$ac_objext conftest.beam conftest.$ac_ext
8196 fi
8197
8198 fi
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8201 $as_echo "$ac_cv_header_stdc" >&6; }
8202 if test $ac_cv_header_stdc = yes; then
8203
8204 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8205
8206 fi
8207
8208 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8209 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8210                   inttypes.h stdint.h unistd.h
8211 do :
8212   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8213 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8214 "
8215 eval as_val=\$$as_ac_Header
8216    if test "x$as_val" = x""yes; then :
8217   cat >>confdefs.h <<_ACEOF
8218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8219 _ACEOF
8220
8221 fi
8222
8223 done
8224
8225
8226 for ac_header in dlfcn.h
8227 do :
8228   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8229 "
8230 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8231   cat >>confdefs.h <<_ACEOF
8232 #define HAVE_DLFCN_H 1
8233 _ACEOF
8234
8235 fi
8236
8237 done
8238
8239
8240
8241
8242
8243
8244 # Set options
8245
8246
8247
8248         enable_dlopen=no
8249
8250
8251   enable_win32_dll=no
8252
8253
8254             # Check whether --enable-shared was given.
8255 if test "${enable_shared+set}" = set; then :
8256   enableval=$enable_shared; p=${PACKAGE-default}
8257     case $enableval in
8258     yes) enable_shared=yes ;;
8259     no) enable_shared=no ;;
8260     *)
8261       enable_shared=no
8262       # Look at the argument we got.  We use all the common list separators.
8263       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8264       for pkg in $enableval; do
8265         IFS="$lt_save_ifs"
8266         if test "X$pkg" = "X$p"; then
8267           enable_shared=yes
8268         fi
8269       done
8270       IFS="$lt_save_ifs"
8271       ;;
8272     esac
8273 else
8274   enable_shared=yes
8275 fi
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285   # Check whether --enable-static was given.
8286 if test "${enable_static+set}" = set; then :
8287   enableval=$enable_static; p=${PACKAGE-default}
8288     case $enableval in
8289     yes) enable_static=yes ;;
8290     no) enable_static=no ;;
8291     *)
8292      enable_static=no
8293       # Look at the argument we got.  We use all the common list separators.
8294       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8295       for pkg in $enableval; do
8296         IFS="$lt_save_ifs"
8297         if test "X$pkg" = "X$p"; then
8298           enable_static=yes
8299         fi
8300       done
8301       IFS="$lt_save_ifs"
8302       ;;
8303     esac
8304 else
8305   enable_static=yes
8306 fi
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317 # Check whether --with-pic was given.
8318 if test "${with_pic+set}" = set; then :
8319   withval=$with_pic; pic_mode="$withval"
8320 else
8321   pic_mode=default
8322 fi
8323
8324
8325 test -z "$pic_mode" && pic_mode=default
8326
8327
8328
8329
8330
8331
8332
8333   # Check whether --enable-fast-install was given.
8334 if test "${enable_fast_install+set}" = set; then :
8335   enableval=$enable_fast_install; p=${PACKAGE-default}
8336     case $enableval in
8337     yes) enable_fast_install=yes ;;
8338     no) enable_fast_install=no ;;
8339     *)
8340       enable_fast_install=no
8341       # Look at the argument we got.  We use all the common list separators.
8342       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8343       for pkg in $enableval; do
8344         IFS="$lt_save_ifs"
8345         if test "X$pkg" = "X$p"; then
8346           enable_fast_install=yes
8347         fi
8348       done
8349       IFS="$lt_save_ifs"
8350       ;;
8351     esac
8352 else
8353   enable_fast_install=yes
8354 fi
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366 # This can be used to rebuild libtool when needed
8367 LIBTOOL_DEPS="$ltmain"
8368
8369 # Always use our own libtool.
8370 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 test -z "$LN_S" && LN_S="ln -s"
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412 if test -n "${ZSH_VERSION+set}" ; then
8413    setopt NO_GLOB_SUBST
8414 fi
8415
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8417 $as_echo_n "checking for objdir... " >&6; }
8418 if test "${lt_cv_objdir+set}" = set; then :
8419   $as_echo_n "(cached) " >&6
8420 else
8421   rm -f .libs 2>/dev/null
8422 mkdir .libs 2>/dev/null
8423 if test -d .libs; then
8424   lt_cv_objdir=.libs
8425 else
8426   # MS-DOS does not allow filenames that begin with a dot.
8427   lt_cv_objdir=_libs
8428 fi
8429 rmdir .libs 2>/dev/null
8430 fi
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8432 $as_echo "$lt_cv_objdir" >&6; }
8433 objdir=$lt_cv_objdir
8434
8435
8436
8437
8438
8439 cat >>confdefs.h <<_ACEOF
8440 #define LT_OBJDIR "$lt_cv_objdir/"
8441 _ACEOF
8442
8443
8444
8445
8446 case $host_os in
8447 aix3*)
8448   # AIX sometimes has problems with the GCC collect2 program.  For some
8449   # reason, if we set the COLLECT_NAMES environment variable, the problems
8450   # vanish in a puff of smoke.
8451   if test "X${COLLECT_NAMES+set}" != Xset; then
8452     COLLECT_NAMES=
8453     export COLLECT_NAMES
8454   fi
8455   ;;
8456 esac
8457
8458 # Global variables:
8459 ofile=libtool
8460 can_build_shared=yes
8461
8462 # All known linkers require a `.a' archive for static linking (except MSVC,
8463 # which needs '.lib').
8464 libext=a
8465
8466 with_gnu_ld="$lt_cv_prog_gnu_ld"
8467
8468 old_CC="$CC"
8469 old_CFLAGS="$CFLAGS"
8470
8471 # Set sane defaults for various variables
8472 test -z "$CC" && CC=cc
8473 test -z "$LTCC" && LTCC=$CC
8474 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8475 test -z "$LD" && LD=ld
8476 test -z "$ac_objext" && ac_objext=o
8477
8478 for cc_temp in $compiler""; do
8479   case $cc_temp in
8480     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8481     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8482     \-*) ;;
8483     *) break;;
8484   esac
8485 done
8486 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8487
8488
8489 # Only perform the check for file, if the check method requires it
8490 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8491 case $deplibs_check_method in
8492 file_magic*)
8493   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8495 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8496 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8497   $as_echo_n "(cached) " >&6
8498 else
8499   case $MAGIC_CMD in
8500 [\\/*] |  ?:[\\/]*)
8501   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8502   ;;
8503 *)
8504   lt_save_MAGIC_CMD="$MAGIC_CMD"
8505   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8506   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8507   for ac_dir in $ac_dummy; do
8508     IFS="$lt_save_ifs"
8509     test -z "$ac_dir" && ac_dir=.
8510     if test -f $ac_dir/${ac_tool_prefix}file; then
8511       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8512       if test -n "$file_magic_test_file"; then
8513         case $deplibs_check_method in
8514         "file_magic "*)
8515           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8516           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8517           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8518             $EGREP "$file_magic_regex" > /dev/null; then
8519             :
8520           else
8521             cat <<_LT_EOF 1>&2
8522
8523 *** Warning: the command libtool uses to detect shared libraries,
8524 *** $file_magic_cmd, produces output that libtool cannot recognize.
8525 *** The result is that libtool may fail to recognize shared libraries
8526 *** as such.  This will affect the creation of libtool libraries that
8527 *** depend on shared libraries, but programs linked with such libtool
8528 *** libraries will work regardless of this problem.  Nevertheless, you
8529 *** may want to report the problem to your system manager and/or to
8530 *** bug-libtool@gnu.org
8531
8532 _LT_EOF
8533           fi ;;
8534         esac
8535       fi
8536       break
8537     fi
8538   done
8539   IFS="$lt_save_ifs"
8540   MAGIC_CMD="$lt_save_MAGIC_CMD"
8541   ;;
8542 esac
8543 fi
8544
8545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8546 if test -n "$MAGIC_CMD"; then
8547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8548 $as_echo "$MAGIC_CMD" >&6; }
8549 else
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8552 fi
8553
8554
8555
8556
8557
8558 if test -z "$lt_cv_path_MAGIC_CMD"; then
8559   if test -n "$ac_tool_prefix"; then
8560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8561 $as_echo_n "checking for file... " >&6; }
8562 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8563   $as_echo_n "(cached) " >&6
8564 else
8565   case $MAGIC_CMD in
8566 [\\/*] |  ?:[\\/]*)
8567   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8568   ;;
8569 *)
8570   lt_save_MAGIC_CMD="$MAGIC_CMD"
8571   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8572   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8573   for ac_dir in $ac_dummy; do
8574     IFS="$lt_save_ifs"
8575     test -z "$ac_dir" && ac_dir=.
8576     if test -f $ac_dir/file; then
8577       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8578       if test -n "$file_magic_test_file"; then
8579         case $deplibs_check_method in
8580         "file_magic "*)
8581           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8582           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8583           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8584             $EGREP "$file_magic_regex" > /dev/null; then
8585             :
8586           else
8587             cat <<_LT_EOF 1>&2
8588
8589 *** Warning: the command libtool uses to detect shared libraries,
8590 *** $file_magic_cmd, produces output that libtool cannot recognize.
8591 *** The result is that libtool may fail to recognize shared libraries
8592 *** as such.  This will affect the creation of libtool libraries that
8593 *** depend on shared libraries, but programs linked with such libtool
8594 *** libraries will work regardless of this problem.  Nevertheless, you
8595 *** may want to report the problem to your system manager and/or to
8596 *** bug-libtool@gnu.org
8597
8598 _LT_EOF
8599           fi ;;
8600         esac
8601       fi
8602       break
8603     fi
8604   done
8605   IFS="$lt_save_ifs"
8606   MAGIC_CMD="$lt_save_MAGIC_CMD"
8607   ;;
8608 esac
8609 fi
8610
8611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8612 if test -n "$MAGIC_CMD"; then
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8614 $as_echo "$MAGIC_CMD" >&6; }
8615 else
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 fi
8619
8620
8621   else
8622     MAGIC_CMD=:
8623   fi
8624 fi
8625
8626   fi
8627   ;;
8628 esac
8629
8630 # Use C for the default configuration in the libtool script
8631
8632 lt_save_CC="$CC"
8633 ac_ext=c
8634 ac_cpp='$CPP $CPPFLAGS'
8635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8638
8639
8640 # Source file extension for C test sources.
8641 ac_ext=c
8642
8643 # Object file extension for compiled C test sources.
8644 objext=o
8645 objext=$objext
8646
8647 # Code to be used in simple compile tests
8648 lt_simple_compile_test_code="int some_variable = 0;"
8649
8650 # Code to be used in simple link tests
8651 lt_simple_link_test_code='int main(){return(0);}'
8652
8653
8654
8655
8656
8657
8658
8659 # If no C compiler was specified, use CC.
8660 LTCC=${LTCC-"$CC"}
8661
8662 # If no C compiler flags were specified, use CFLAGS.
8663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8664
8665 # Allow CC to be a program name with arguments.
8666 compiler=$CC
8667
8668 # Save the default compiler, since it gets overwritten when the other
8669 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8670 compiler_DEFAULT=$CC
8671
8672 # save warnings/boilerplate of simple test code
8673 ac_outfile=conftest.$ac_objext
8674 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8675 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8676 _lt_compiler_boilerplate=`cat conftest.err`
8677 $RM conftest*
8678
8679 ac_outfile=conftest.$ac_objext
8680 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8681 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8682 _lt_linker_boilerplate=`cat conftest.err`
8683 $RM -r conftest*
8684
8685
8686 ## CAVEAT EMPTOR:
8687 ## There is no encapsulation within the following macros, do not change
8688 ## the running order or otherwise move them around unless you know exactly
8689 ## what you are doing...
8690 if test -n "$compiler"; then
8691
8692 lt_prog_compiler_no_builtin_flag=
8693
8694 if test "$GCC" = yes; then
8695   case $cc_basename in
8696   nvcc*)
8697     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8698   *)
8699     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8700   esac
8701
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8703 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8704 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8705   $as_echo_n "(cached) " >&6
8706 else
8707   lt_cv_prog_compiler_rtti_exceptions=no
8708    ac_outfile=conftest.$ac_objext
8709    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8710    lt_compiler_flag="-fno-rtti -fno-exceptions"
8711    # Insert the option either (1) after the last *FLAGS variable, or
8712    # (2) before a word containing "conftest.", or (3) at the end.
8713    # Note that $ac_compile itself does not contain backslashes and begins
8714    # with a dollar sign (not a hyphen), so the echo should work correctly.
8715    # The option is referenced via a variable to avoid confusing sed.
8716    lt_compile=`echo "$ac_compile" | $SED \
8717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8719    -e 's:$: $lt_compiler_flag:'`
8720    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8721    (eval "$lt_compile" 2>conftest.err)
8722    ac_status=$?
8723    cat conftest.err >&5
8724    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725    if (exit $ac_status) && test -s "$ac_outfile"; then
8726      # The compiler can only warn and ignore the option if not recognized
8727      # So say no if there are warnings other than the usual output.
8728      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8729      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8730      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8731        lt_cv_prog_compiler_rtti_exceptions=yes
8732      fi
8733    fi
8734    $RM conftest*
8735
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8738 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8739
8740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8741     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8742 else
8743     :
8744 fi
8745
8746 fi
8747
8748
8749
8750
8751
8752
8753   lt_prog_compiler_wl=
8754 lt_prog_compiler_pic=
8755 lt_prog_compiler_static=
8756
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8758 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8759
8760   if test "$GCC" = yes; then
8761     lt_prog_compiler_wl='-Wl,'
8762     lt_prog_compiler_static='-static'
8763
8764     case $host_os in
8765       aix*)
8766       # All AIX code is PIC.
8767       if test "$host_cpu" = ia64; then
8768         # AIX 5 now supports IA64 processor
8769         lt_prog_compiler_static='-Bstatic'
8770       fi
8771       ;;
8772
8773     amigaos*)
8774       case $host_cpu in
8775       powerpc)
8776             # see comment about AmigaOS4 .so support
8777             lt_prog_compiler_pic='-fPIC'
8778         ;;
8779       m68k)
8780             # FIXME: we need at least 68020 code to build shared libraries, but
8781             # adding the `-m68020' flag to GCC prevents building anything better,
8782             # like `-m68040'.
8783             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8784         ;;
8785       esac
8786       ;;
8787
8788     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8789       # PIC is the default for these OSes.
8790       ;;
8791
8792     mingw* | cygwin* | pw32* | os2* | cegcc*)
8793       # This hack is so that the source file can tell whether it is being
8794       # built for inclusion in a dll (and should export symbols for example).
8795       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8796       # (--disable-auto-import) libraries
8797       lt_prog_compiler_pic='-DDLL_EXPORT'
8798       ;;
8799
8800     darwin* | rhapsody*)
8801       # PIC is the default on this platform
8802       # Common symbols not allowed in MH_DYLIB files
8803       lt_prog_compiler_pic='-fno-common'
8804       ;;
8805
8806     haiku*)
8807       # PIC is the default for Haiku.
8808       # The "-static" flag exists, but is broken.
8809       lt_prog_compiler_static=
8810       ;;
8811
8812     hpux*)
8813       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8814       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8815       # sets the default TLS model and affects inlining.
8816       case $host_cpu in
8817       hppa*64*)
8818         # +Z the default
8819         ;;
8820       *)
8821         lt_prog_compiler_pic='-fPIC'
8822         ;;
8823       esac
8824       ;;
8825
8826     interix[3-9]*)
8827       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8828       # Instead, we relocate shared libraries at runtime.
8829       ;;
8830
8831     msdosdjgpp*)
8832       # Just because we use GCC doesn't mean we suddenly get shared libraries
8833       # on systems that don't support them.
8834       lt_prog_compiler_can_build_shared=no
8835       enable_shared=no
8836       ;;
8837
8838     *nto* | *qnx*)
8839       # QNX uses GNU C++, but need to define -shared option too, otherwise
8840       # it will coredump.
8841       lt_prog_compiler_pic='-fPIC -shared'
8842       ;;
8843
8844     sysv4*MP*)
8845       if test -d /usr/nec; then
8846         lt_prog_compiler_pic=-Kconform_pic
8847       fi
8848       ;;
8849
8850     *)
8851       lt_prog_compiler_pic='-fPIC'
8852       ;;
8853     esac
8854
8855     case $cc_basename in
8856     nvcc*) # Cuda Compiler Driver 2.2
8857       lt_prog_compiler_wl='-Xlinker '
8858       lt_prog_compiler_pic='-Xcompiler -fPIC'
8859       ;;
8860     esac
8861   else
8862     # PORTME Check for flag to pass linker flags through the system compiler.
8863     case $host_os in
8864     aix*)
8865       lt_prog_compiler_wl='-Wl,'
8866       if test "$host_cpu" = ia64; then
8867         # AIX 5 now supports IA64 processor
8868         lt_prog_compiler_static='-Bstatic'
8869       else
8870         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8871       fi
8872       ;;
8873
8874     mingw* | cygwin* | pw32* | os2* | cegcc*)
8875       # This hack is so that the source file can tell whether it is being
8876       # built for inclusion in a dll (and should export symbols for example).
8877       lt_prog_compiler_pic='-DDLL_EXPORT'
8878       ;;
8879
8880     hpux9* | hpux10* | hpux11*)
8881       lt_prog_compiler_wl='-Wl,'
8882       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8883       # not for PA HP-UX.
8884       case $host_cpu in
8885       hppa*64*|ia64*)
8886         # +Z the default
8887         ;;
8888       *)
8889         lt_prog_compiler_pic='+Z'
8890         ;;
8891       esac
8892       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8893       lt_prog_compiler_static='${wl}-a ${wl}archive'
8894       ;;
8895
8896     irix5* | irix6* | nonstopux*)
8897       lt_prog_compiler_wl='-Wl,'
8898       # PIC (with -KPIC) is the default.
8899       lt_prog_compiler_static='-non_shared'
8900       ;;
8901
8902     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8903       case $cc_basename in
8904       # old Intel for x86_64 which still supported -KPIC.
8905       ecc*)
8906         lt_prog_compiler_wl='-Wl,'
8907         lt_prog_compiler_pic='-KPIC'
8908         lt_prog_compiler_static='-static'
8909         ;;
8910       # icc used to be incompatible with GCC.
8911       # ICC 10 doesn't accept -KPIC any more.
8912       icc* | ifort*)
8913         lt_prog_compiler_wl='-Wl,'
8914         lt_prog_compiler_pic='-fPIC'
8915         lt_prog_compiler_static='-static'
8916         ;;
8917       # Lahey Fortran 8.1.
8918       lf95*)
8919         lt_prog_compiler_wl='-Wl,'
8920         lt_prog_compiler_pic='--shared'
8921         lt_prog_compiler_static='--static'
8922         ;;
8923       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8924         # Portland Group compilers (*not* the Pentium gcc compiler,
8925         # which looks to be a dead project)
8926         lt_prog_compiler_wl='-Wl,'
8927         lt_prog_compiler_pic='-fpic'
8928         lt_prog_compiler_static='-Bstatic'
8929         ;;
8930       ccc*)
8931         lt_prog_compiler_wl='-Wl,'
8932         # All Alpha code is PIC.
8933         lt_prog_compiler_static='-non_shared'
8934         ;;
8935       xl* | bgxl* | bgf* | mpixl*)
8936         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8937         lt_prog_compiler_wl='-Wl,'
8938         lt_prog_compiler_pic='-qpic'
8939         lt_prog_compiler_static='-qstaticlink'
8940         ;;
8941       *)
8942         case `$CC -V 2>&1 | sed 5q` in
8943         *Sun\ F* | *Sun*Fortran*)
8944           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8945           lt_prog_compiler_pic='-KPIC'
8946           lt_prog_compiler_static='-Bstatic'
8947           lt_prog_compiler_wl=''
8948           ;;
8949         *Sun\ C*)
8950           # Sun C 5.9
8951           lt_prog_compiler_pic='-KPIC'
8952           lt_prog_compiler_static='-Bstatic'
8953           lt_prog_compiler_wl='-Wl,'
8954           ;;
8955         esac
8956         ;;
8957       esac
8958       ;;
8959
8960     newsos6)
8961       lt_prog_compiler_pic='-KPIC'
8962       lt_prog_compiler_static='-Bstatic'
8963       ;;
8964
8965     *nto* | *qnx*)
8966       # QNX uses GNU C++, but need to define -shared option too, otherwise
8967       # it will coredump.
8968       lt_prog_compiler_pic='-fPIC -shared'
8969       ;;
8970
8971     osf3* | osf4* | osf5*)
8972       lt_prog_compiler_wl='-Wl,'
8973       # All OSF/1 code is PIC.
8974       lt_prog_compiler_static='-non_shared'
8975       ;;
8976
8977     rdos*)
8978       lt_prog_compiler_static='-non_shared'
8979       ;;
8980
8981     solaris*)
8982       lt_prog_compiler_pic='-KPIC'
8983       lt_prog_compiler_static='-Bstatic'
8984       case $cc_basename in
8985       f77* | f90* | f95*)
8986         lt_prog_compiler_wl='-Qoption ld ';;
8987       *)
8988         lt_prog_compiler_wl='-Wl,';;
8989       esac
8990       ;;
8991
8992     sunos4*)
8993       lt_prog_compiler_wl='-Qoption ld '
8994       lt_prog_compiler_pic='-PIC'
8995       lt_prog_compiler_static='-Bstatic'
8996       ;;
8997
8998     sysv4 | sysv4.2uw2* | sysv4.3*)
8999       lt_prog_compiler_wl='-Wl,'
9000       lt_prog_compiler_pic='-KPIC'
9001       lt_prog_compiler_static='-Bstatic'
9002       ;;
9003
9004     sysv4*MP*)
9005       if test -d /usr/nec ;then
9006         lt_prog_compiler_pic='-Kconform_pic'
9007         lt_prog_compiler_static='-Bstatic'
9008       fi
9009       ;;
9010
9011     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9012       lt_prog_compiler_wl='-Wl,'
9013       lt_prog_compiler_pic='-KPIC'
9014       lt_prog_compiler_static='-Bstatic'
9015       ;;
9016
9017     unicos*)
9018       lt_prog_compiler_wl='-Wl,'
9019       lt_prog_compiler_can_build_shared=no
9020       ;;
9021
9022     uts4*)
9023       lt_prog_compiler_pic='-pic'
9024       lt_prog_compiler_static='-Bstatic'
9025       ;;
9026
9027     *)
9028       lt_prog_compiler_can_build_shared=no
9029       ;;
9030     esac
9031   fi
9032
9033 case $host_os in
9034   # For platforms which do not support PIC, -DPIC is meaningless:
9035   *djgpp*)
9036     lt_prog_compiler_pic=
9037     ;;
9038   *)
9039     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9040     ;;
9041 esac
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9043 $as_echo "$lt_prog_compiler_pic" >&6; }
9044
9045
9046
9047
9048
9049
9050 #
9051 # Check to make sure the PIC flag actually works.
9052 #
9053 if test -n "$lt_prog_compiler_pic"; then
9054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9055 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9056 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9057   $as_echo_n "(cached) " >&6
9058 else
9059   lt_cv_prog_compiler_pic_works=no
9060    ac_outfile=conftest.$ac_objext
9061    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9062    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9063    # Insert the option either (1) after the last *FLAGS variable, or
9064    # (2) before a word containing "conftest.", or (3) at the end.
9065    # Note that $ac_compile itself does not contain backslashes and begins
9066    # with a dollar sign (not a hyphen), so the echo should work correctly.
9067    # The option is referenced via a variable to avoid confusing sed.
9068    lt_compile=`echo "$ac_compile" | $SED \
9069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9071    -e 's:$: $lt_compiler_flag:'`
9072    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9073    (eval "$lt_compile" 2>conftest.err)
9074    ac_status=$?
9075    cat conftest.err >&5
9076    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077    if (exit $ac_status) && test -s "$ac_outfile"; then
9078      # The compiler can only warn and ignore the option if not recognized
9079      # So say no if there are warnings other than the usual output.
9080      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9081      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9082      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9083        lt_cv_prog_compiler_pic_works=yes
9084      fi
9085    fi
9086    $RM conftest*
9087
9088 fi
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9090 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9091
9092 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9093     case $lt_prog_compiler_pic in
9094      "" | " "*) ;;
9095      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9096      esac
9097 else
9098     lt_prog_compiler_pic=
9099      lt_prog_compiler_can_build_shared=no
9100 fi
9101
9102 fi
9103
9104
9105
9106
9107
9108
9109 #
9110 # Check to make sure the static flag actually works.
9111 #
9112 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9114 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9115 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9116   $as_echo_n "(cached) " >&6
9117 else
9118   lt_cv_prog_compiler_static_works=no
9119    save_LDFLAGS="$LDFLAGS"
9120    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9121    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9122    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9123      # The linker can only warn and ignore the option if not recognized
9124      # So say no if there are warnings
9125      if test -s conftest.err; then
9126        # Append any errors to the config.log.
9127        cat conftest.err 1>&5
9128        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9129        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9130        if diff conftest.exp conftest.er2 >/dev/null; then
9131          lt_cv_prog_compiler_static_works=yes
9132        fi
9133      else
9134        lt_cv_prog_compiler_static_works=yes
9135      fi
9136    fi
9137    $RM -r conftest*
9138    LDFLAGS="$save_LDFLAGS"
9139
9140 fi
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9142 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9143
9144 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9145     :
9146 else
9147     lt_prog_compiler_static=
9148 fi
9149
9150
9151
9152
9153
9154
9155
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9157 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9158 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9159   $as_echo_n "(cached) " >&6
9160 else
9161   lt_cv_prog_compiler_c_o=no
9162    $RM -r conftest 2>/dev/null
9163    mkdir conftest
9164    cd conftest
9165    mkdir out
9166    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9167
9168    lt_compiler_flag="-o out/conftest2.$ac_objext"
9169    # Insert the option either (1) after the last *FLAGS variable, or
9170    # (2) before a word containing "conftest.", or (3) at the end.
9171    # Note that $ac_compile itself does not contain backslashes and begins
9172    # with a dollar sign (not a hyphen), so the echo should work correctly.
9173    lt_compile=`echo "$ac_compile" | $SED \
9174    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9175    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9176    -e 's:$: $lt_compiler_flag:'`
9177    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9178    (eval "$lt_compile" 2>out/conftest.err)
9179    ac_status=$?
9180    cat out/conftest.err >&5
9181    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9183    then
9184      # The compiler can only warn and ignore the option if not recognized
9185      # So say no if there are warnings
9186      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9187      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9188      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9189        lt_cv_prog_compiler_c_o=yes
9190      fi
9191    fi
9192    chmod u+w . 2>&5
9193    $RM conftest*
9194    # SGI C++ compiler will create directory out/ii_files/ for
9195    # template instantiation
9196    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9197    $RM out/* && rmdir out
9198    cd ..
9199    $RM -r conftest
9200    $RM conftest*
9201
9202 fi
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9204 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9205
9206
9207
9208
9209
9210
9211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9212 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9213 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9214   $as_echo_n "(cached) " >&6
9215 else
9216   lt_cv_prog_compiler_c_o=no
9217    $RM -r conftest 2>/dev/null
9218    mkdir conftest
9219    cd conftest
9220    mkdir out
9221    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9222
9223    lt_compiler_flag="-o out/conftest2.$ac_objext"
9224    # Insert the option either (1) after the last *FLAGS variable, or
9225    # (2) before a word containing "conftest.", or (3) at the end.
9226    # Note that $ac_compile itself does not contain backslashes and begins
9227    # with a dollar sign (not a hyphen), so the echo should work correctly.
9228    lt_compile=`echo "$ac_compile" | $SED \
9229    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9230    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9231    -e 's:$: $lt_compiler_flag:'`
9232    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9233    (eval "$lt_compile" 2>out/conftest.err)
9234    ac_status=$?
9235    cat out/conftest.err >&5
9236    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9238    then
9239      # The compiler can only warn and ignore the option if not recognized
9240      # So say no if there are warnings
9241      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9242      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9243      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9244        lt_cv_prog_compiler_c_o=yes
9245      fi
9246    fi
9247    chmod u+w . 2>&5
9248    $RM conftest*
9249    # SGI C++ compiler will create directory out/ii_files/ for
9250    # template instantiation
9251    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9252    $RM out/* && rmdir out
9253    cd ..
9254    $RM -r conftest
9255    $RM conftest*
9256
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9259 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9260
9261
9262
9263
9264 hard_links="nottested"
9265 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9266   # do not overwrite the value of need_locks provided by the user
9267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9268 $as_echo_n "checking if we can lock with hard links... " >&6; }
9269   hard_links=yes
9270   $RM conftest*
9271   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9272   touch conftest.a
9273   ln conftest.a conftest.b 2>&5 || hard_links=no
9274   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9276 $as_echo "$hard_links" >&6; }
9277   if test "$hard_links" = no; then
9278     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9279 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9280     need_locks=warn
9281   fi
9282 else
9283   need_locks=no
9284 fi
9285
9286
9287
9288
9289
9290
9291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9292 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9293
9294   runpath_var=
9295   allow_undefined_flag=
9296   always_export_symbols=no
9297   archive_cmds=
9298   archive_expsym_cmds=
9299   compiler_needs_object=no
9300   enable_shared_with_static_runtimes=no
9301   export_dynamic_flag_spec=
9302   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9303   hardcode_automatic=no
9304   hardcode_direct=no
9305   hardcode_direct_absolute=no
9306   hardcode_libdir_flag_spec=
9307   hardcode_libdir_flag_spec_ld=
9308   hardcode_libdir_separator=
9309   hardcode_minus_L=no
9310   hardcode_shlibpath_var=unsupported
9311   inherit_rpath=no
9312   link_all_deplibs=unknown
9313   module_cmds=
9314   module_expsym_cmds=
9315   old_archive_from_new_cmds=
9316   old_archive_from_expsyms_cmds=
9317   thread_safe_flag_spec=
9318   whole_archive_flag_spec=
9319   # include_expsyms should be a list of space-separated symbols to be *always*
9320   # included in the symbol list
9321   include_expsyms=
9322   # exclude_expsyms can be an extended regexp of symbols to exclude
9323   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9324   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9325   # as well as any symbol that contains `d'.
9326   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9327   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9328   # platforms (ab)use it in PIC code, but their linkers get confused if
9329   # the symbol is explicitly referenced.  Since portable code cannot
9330   # rely on this symbol name, it's probably fine to never include it in
9331   # preloaded symbol tables.
9332   # Exclude shared library initialization/finalization symbols.
9333   extract_expsyms_cmds=
9334
9335   case $host_os in
9336   cygwin* | mingw* | pw32* | cegcc*)
9337     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9338     # When not using gcc, we currently assume that we are using
9339     # Microsoft Visual C++.
9340     if test "$GCC" != yes; then
9341       with_gnu_ld=no
9342     fi
9343     ;;
9344   interix*)
9345     # we just hope/assume this is gcc and not c89 (= MSVC++)
9346     with_gnu_ld=yes
9347     ;;
9348   openbsd*)
9349     with_gnu_ld=no
9350     ;;
9351   esac
9352
9353   ld_shlibs=yes
9354
9355   # On some targets, GNU ld is compatible enough with the native linker
9356   # that we're better off using the native interface for both.
9357   lt_use_gnu_ld_interface=no
9358   if test "$with_gnu_ld" = yes; then
9359     case $host_os in
9360       aix*)
9361         # The AIX port of GNU ld has always aspired to compatibility
9362         # with the native linker.  However, as the warning in the GNU ld
9363         # block says, versions before 2.19.5* couldn't really create working
9364         # shared libraries, regardless of the interface used.
9365         case `$LD -v 2>&1` in
9366           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9367           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9368           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9369           *)
9370             lt_use_gnu_ld_interface=yes
9371             ;;
9372         esac
9373         ;;
9374       *)
9375         lt_use_gnu_ld_interface=yes
9376         ;;
9377     esac
9378   fi
9379
9380   if test "$lt_use_gnu_ld_interface" = yes; then
9381     # If archive_cmds runs LD, not CC, wlarc should be empty
9382     wlarc='${wl}'
9383
9384     # Set some defaults for GNU ld with shared library support. These
9385     # are reset later if shared libraries are not supported. Putting them
9386     # here allows them to be overridden if necessary.
9387     runpath_var=LD_RUN_PATH
9388     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389     export_dynamic_flag_spec='${wl}--export-dynamic'
9390     # ancient GNU ld didn't support --whole-archive et. al.
9391     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9392       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9393     else
9394       whole_archive_flag_spec=
9395     fi
9396     supports_anon_versioning=no
9397     case `$LD -v 2>&1` in
9398       *GNU\ gold*) supports_anon_versioning=yes ;;
9399       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9400       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9401       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9402       *\ 2.11.*) ;; # other 2.11 versions
9403       *) supports_anon_versioning=yes ;;
9404     esac
9405
9406     # See if GNU ld supports shared libraries.
9407     case $host_os in
9408     aix[3-9]*)
9409       # On AIX/PPC, the GNU linker is very broken
9410       if test "$host_cpu" != ia64; then
9411         ld_shlibs=no
9412         cat <<_LT_EOF 1>&2
9413
9414 *** Warning: the GNU linker, at least up to release 2.19, is reported
9415 *** to be unable to reliably create shared libraries on AIX.
9416 *** Therefore, libtool is disabling shared libraries support.  If you
9417 *** really care for shared libraries, you may want to install binutils
9418 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9419 *** You will then need to restart the configuration process.
9420
9421 _LT_EOF
9422       fi
9423       ;;
9424
9425     amigaos*)
9426       case $host_cpu in
9427       powerpc)
9428             # see comment about AmigaOS4 .so support
9429             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430             archive_expsym_cmds=''
9431         ;;
9432       m68k)
9433             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)'
9434             hardcode_libdir_flag_spec='-L$libdir'
9435             hardcode_minus_L=yes
9436         ;;
9437       esac
9438       ;;
9439
9440     beos*)
9441       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442         allow_undefined_flag=unsupported
9443         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9444         # support --undefined.  This deserves some investigation.  FIXME
9445         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446       else
9447         ld_shlibs=no
9448       fi
9449       ;;
9450
9451     cygwin* | mingw* | pw32* | cegcc*)
9452       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9453       # as there is no search path for DLLs.
9454       hardcode_libdir_flag_spec='-L$libdir'
9455       export_dynamic_flag_spec='${wl}--export-all-symbols'
9456       allow_undefined_flag=unsupported
9457       always_export_symbols=no
9458       enable_shared_with_static_runtimes=yes
9459       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9460
9461       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9462         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9463         # If the export-symbols file already is a .def file (1st line
9464         # is EXPORTS), use it as is; otherwise, prepend...
9465         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9466           cp $export_symbols $output_objdir/$soname.def;
9467         else
9468           echo EXPORTS > $output_objdir/$soname.def;
9469           cat $export_symbols >> $output_objdir/$soname.def;
9470         fi~
9471         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9472       else
9473         ld_shlibs=no
9474       fi
9475       ;;
9476
9477     haiku*)
9478       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479       link_all_deplibs=yes
9480       ;;
9481
9482     interix[3-9]*)
9483       hardcode_direct=no
9484       hardcode_shlibpath_var=no
9485       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9486       export_dynamic_flag_spec='${wl}-E'
9487       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9488       # Instead, shared libraries are loaded at an image base (0x10000000 by
9489       # default) and relocated if they conflict, which is a slow very memory
9490       # consuming and fragmenting process.  To avoid this, we pick a random,
9491       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9492       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9493       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9494       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'
9495       ;;
9496
9497     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9498       tmp_diet=no
9499       if test "$host_os" = linux-dietlibc; then
9500         case $cc_basename in
9501           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9502         esac
9503       fi
9504       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9505          && test "$tmp_diet" = no
9506       then
9507         tmp_addflag=
9508         tmp_sharedflag='-shared'
9509         case $cc_basename,$host_cpu in
9510         pgcc*)                          # Portland Group C compiler
9511           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'
9512           tmp_addflag=' $pic_flag'
9513           ;;
9514         pgf77* | pgf90* | pgf95* | pgfortran*)
9515                                         # Portland Group f77 and f90 compilers
9516           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'
9517           tmp_addflag=' $pic_flag -Mnomain' ;;
9518         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9519           tmp_addflag=' -i_dynamic' ;;
9520         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9521           tmp_addflag=' -i_dynamic -nofor_main' ;;
9522         ifc* | ifort*)                  # Intel Fortran compiler
9523           tmp_addflag=' -nofor_main' ;;
9524         lf95*)                          # Lahey Fortran 8.1
9525           whole_archive_flag_spec=
9526           tmp_sharedflag='--shared' ;;
9527         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9528           tmp_sharedflag='-qmkshrobj'
9529           tmp_addflag= ;;
9530         nvcc*)  # Cuda Compiler Driver 2.2
9531           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'
9532           compiler_needs_object=yes
9533           ;;
9534         esac
9535         case `$CC -V 2>&1 | sed 5q` in
9536         *Sun\ C*)                       # Sun C 5.9
9537           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'
9538           compiler_needs_object=yes
9539           tmp_sharedflag='-G' ;;
9540         *Sun\ F*)                       # Sun Fortran 8.3
9541           tmp_sharedflag='-G' ;;
9542         esac
9543         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544
9545         if test "x$supports_anon_versioning" = xyes; then
9546           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9547             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9548             echo "local: *; };" >> $output_objdir/$libname.ver~
9549             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9550         fi
9551
9552         case $cc_basename in
9553         xlf* | bgf* | bgxlf* | mpixlf*)
9554           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9555           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9556           hardcode_libdir_flag_spec=
9557           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9558           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9559           if test "x$supports_anon_versioning" = xyes; then
9560             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9561               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9562               echo "local: *; };" >> $output_objdir/$libname.ver~
9563               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9564           fi
9565           ;;
9566         esac
9567       else
9568         ld_shlibs=no
9569       fi
9570       ;;
9571
9572     netbsd*)
9573       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9574         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9575         wlarc=
9576       else
9577         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579       fi
9580       ;;
9581
9582     solaris*)
9583       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9584         ld_shlibs=no
9585         cat <<_LT_EOF 1>&2
9586
9587 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9588 *** create shared libraries on Solaris systems.  Therefore, libtool
9589 *** is disabling shared libraries support.  We urge you to upgrade GNU
9590 *** binutils to release 2.9.1 or newer.  Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9593
9594 _LT_EOF
9595       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9596         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9598       else
9599         ld_shlibs=no
9600       fi
9601       ;;
9602
9603     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9604       case `$LD -v 2>&1` in
9605         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9606         ld_shlibs=no
9607         cat <<_LT_EOF 1>&2
9608
9609 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9610 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9611 *** is disabling shared libraries support.  We urge you to upgrade GNU
9612 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9613 *** your PATH or compiler configuration so that the native linker is
9614 *** used, and then restart.
9615
9616 _LT_EOF
9617         ;;
9618         *)
9619           # For security reasons, it is highly recommended that you always
9620           # use absolute paths for naming shared libraries, and exclude the
9621           # DT_RUNPATH tag from executables and libraries.  But doing so
9622           # requires that you compile everything twice, which is a pain.
9623           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9624             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9627           else
9628             ld_shlibs=no
9629           fi
9630         ;;
9631       esac
9632       ;;
9633
9634     sunos4*)
9635       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636       wlarc=
9637       hardcode_direct=yes
9638       hardcode_shlibpath_var=no
9639       ;;
9640
9641     *)
9642       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9645       else
9646         ld_shlibs=no
9647       fi
9648       ;;
9649     esac
9650
9651     if test "$ld_shlibs" = no; then
9652       runpath_var=
9653       hardcode_libdir_flag_spec=
9654       export_dynamic_flag_spec=
9655       whole_archive_flag_spec=
9656     fi
9657   else
9658     # PORTME fill in a description of your system's linker (not GNU ld)
9659     case $host_os in
9660     aix3*)
9661       allow_undefined_flag=unsupported
9662       always_export_symbols=yes
9663       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'
9664       # Note: this linker hardcodes the directories in LIBPATH if there
9665       # are no directories specified by -L.
9666       hardcode_minus_L=yes
9667       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9668         # Neither direct hardcoding nor static linking is supported with a
9669         # broken collect2.
9670         hardcode_direct=unsupported
9671       fi
9672       ;;
9673
9674     aix[4-9]*)
9675       if test "$host_cpu" = ia64; then
9676         # On IA64, the linker does run time linking by default, so we don't
9677         # have to do anything special.
9678         aix_use_runtimelinking=no
9679         exp_sym_flag='-Bexport'
9680         no_entry_flag=""
9681       else
9682         # If we're using GNU nm, then we don't want the "-C" option.
9683         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9684         # Also, AIX nm treats weak defined symbols like other global
9685         # defined symbols, whereas GNU nm marks them as "W".
9686         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9687           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'
9688         else
9689           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'
9690         fi
9691         aix_use_runtimelinking=no
9692
9693         # Test if we are trying to use run time linking or normal
9694         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9695         # need to do runtime linking.
9696         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9697           for ld_flag in $LDFLAGS; do
9698           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9699             aix_use_runtimelinking=yes
9700             break
9701           fi
9702           done
9703           ;;
9704         esac
9705
9706         exp_sym_flag='-bexport'
9707         no_entry_flag='-bnoentry'
9708       fi
9709
9710       # When large executables or shared objects are built, AIX ld can
9711       # have problems creating the table of contents.  If linking a library
9712       # or program results in "error TOC overflow" add -mminimal-toc to
9713       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9714       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9715
9716       archive_cmds=''
9717       hardcode_direct=yes
9718       hardcode_direct_absolute=yes
9719       hardcode_libdir_separator=':'
9720       link_all_deplibs=yes
9721       file_list_spec='${wl}-f,'
9722
9723       if test "$GCC" = yes; then
9724         case $host_os in aix4.[012]|aix4.[012].*)
9725         # We only want to do this on AIX 4.2 and lower, the check
9726         # below for broken collect2 doesn't work under 4.3+
9727           collect2name=`${CC} -print-prog-name=collect2`
9728           if test -f "$collect2name" &&
9729            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9730           then
9731           # We have reworked collect2
9732           :
9733           else
9734           # We have old collect2
9735           hardcode_direct=unsupported
9736           # It fails to find uninstalled libraries when the uninstalled
9737           # path is not listed in the libpath.  Setting hardcode_minus_L
9738           # to unsupported forces relinking
9739           hardcode_minus_L=yes
9740           hardcode_libdir_flag_spec='-L$libdir'
9741           hardcode_libdir_separator=
9742           fi
9743           ;;
9744         esac
9745         shared_flag='-shared'
9746         if test "$aix_use_runtimelinking" = yes; then
9747           shared_flag="$shared_flag "'${wl}-G'
9748         fi
9749       else
9750         # not using gcc
9751         if test "$host_cpu" = ia64; then
9752         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9753         # chokes on -Wl,-G. The following line is correct:
9754           shared_flag='-G'
9755         else
9756           if test "$aix_use_runtimelinking" = yes; then
9757             shared_flag='${wl}-G'
9758           else
9759             shared_flag='${wl}-bM:SRE'
9760           fi
9761         fi
9762       fi
9763
9764       export_dynamic_flag_spec='${wl}-bexpall'
9765       # It seems that -bexpall does not export symbols beginning with
9766       # underscore (_), so it is better to generate a list of symbols to export.
9767       always_export_symbols=yes
9768       if test "$aix_use_runtimelinking" = yes; then
9769         # Warning - without using the other runtime loading flags (-brtl),
9770         # -berok will link without error, but may produce a broken library.
9771         allow_undefined_flag='-berok'
9772         # Determine the default libpath from the value encoded in an
9773         # empty executable.
9774         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h.  */
9776
9777 int
9778 main ()
9779 {
9780
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"; then :
9786
9787 lt_aix_libpath_sed='
9788     /Import File Strings/,/^$/ {
9789         /^0/ {
9790             s/^0  *\(.*\)$/\1/
9791             p
9792         }
9793     }'
9794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795 # Check for a 64-bit object if we didn't find anything.
9796 if test -z "$aix_libpath"; then
9797   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798 fi
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext \
9801     conftest$ac_exeext conftest.$ac_ext
9802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9803
9804         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9805         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"
9806       else
9807         if test "$host_cpu" = ia64; then
9808           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9809           allow_undefined_flag="-z nodefs"
9810           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"
9811         else
9812          # Determine the default libpath from the value encoded in an
9813          # empty executable.
9814          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h.  */
9816
9817 int
9818 main ()
9819 {
9820
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826
9827 lt_aix_libpath_sed='
9828     /Import File Strings/,/^$/ {
9829         /^0/ {
9830             s/^0  *\(.*\)$/\1/
9831             p
9832         }
9833     }'
9834 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9835 # Check for a 64-bit object if we didn't find anything.
9836 if test -z "$aix_libpath"; then
9837   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9838 fi
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext \
9841     conftest$ac_exeext conftest.$ac_ext
9842 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9843
9844          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9845           # Warning - without using the other run time loading flags,
9846           # -berok will link without error, but may produce a broken library.
9847           no_undefined_flag=' ${wl}-bernotok'
9848           allow_undefined_flag=' ${wl}-berok'
9849           if test "$with_gnu_ld" = yes; then
9850             # We only use this code for GNU lds that support --whole-archive.
9851             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9852           else
9853             # Exported symbols can be pulled into shared objects from archives
9854             whole_archive_flag_spec='$convenience'
9855           fi
9856           archive_cmds_need_lc=yes
9857           # This is similar to how AIX traditionally builds its shared libraries.
9858           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'
9859         fi
9860       fi
9861       ;;
9862
9863     amigaos*)
9864       case $host_cpu in
9865       powerpc)
9866             # see comment about AmigaOS4 .so support
9867             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9868             archive_expsym_cmds=''
9869         ;;
9870       m68k)
9871             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)'
9872             hardcode_libdir_flag_spec='-L$libdir'
9873             hardcode_minus_L=yes
9874         ;;
9875       esac
9876       ;;
9877
9878     bsdi[45]*)
9879       export_dynamic_flag_spec=-rdynamic
9880       ;;
9881
9882     cygwin* | mingw* | pw32* | cegcc*)
9883       # When not using gcc, we currently assume that we are using
9884       # Microsoft Visual C++.
9885       # hardcode_libdir_flag_spec is actually meaningless, as there is
9886       # no search path for DLLs.
9887       hardcode_libdir_flag_spec=' '
9888       allow_undefined_flag=unsupported
9889       # Tell ltmain to make .lib files, not .a files.
9890       libext=lib
9891       # Tell ltmain to make .dll files, not .so files.
9892       shrext_cmds=".dll"
9893       # FIXME: Setting linknames here is a bad hack.
9894       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9895       # The linker will automatically build a .lib file if we build a DLL.
9896       old_archive_from_new_cmds='true'
9897       # FIXME: Should let the user specify the lib program.
9898       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9899       fix_srcfile_path='`cygpath -w "$srcfile"`'
9900       enable_shared_with_static_runtimes=yes
9901       ;;
9902
9903     darwin* | rhapsody*)
9904
9905
9906   archive_cmds_need_lc=no
9907   hardcode_direct=no
9908   hardcode_automatic=yes
9909   hardcode_shlibpath_var=unsupported
9910   if test "$lt_cv_ld_force_load" = "yes"; then
9911     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\"`'
9912   else
9913     whole_archive_flag_spec=''
9914   fi
9915   link_all_deplibs=yes
9916   allow_undefined_flag="$_lt_dar_allow_undefined"
9917   case $cc_basename in
9918      ifort*) _lt_dar_can_shared=yes ;;
9919      *) _lt_dar_can_shared=$GCC ;;
9920   esac
9921   if test "$_lt_dar_can_shared" = "yes"; then
9922     output_verbose_link_cmd=func_echo_all
9923     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9924     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9925     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}"
9926     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}"
9927
9928   else
9929   ld_shlibs=no
9930   fi
9931
9932       ;;
9933
9934     dgux*)
9935       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936       hardcode_libdir_flag_spec='-L$libdir'
9937       hardcode_shlibpath_var=no
9938       ;;
9939
9940     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9941     # support.  Future versions do this automatically, but an explicit c++rt0.o
9942     # does not break anything, and helps significantly (at the cost of a little
9943     # extra space).
9944     freebsd2.2*)
9945       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9946       hardcode_libdir_flag_spec='-R$libdir'
9947       hardcode_direct=yes
9948       hardcode_shlibpath_var=no
9949       ;;
9950
9951     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9952     freebsd2*)
9953       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9954       hardcode_direct=yes
9955       hardcode_minus_L=yes
9956       hardcode_shlibpath_var=no
9957       ;;
9958
9959     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9960     freebsd* | dragonfly*)
9961       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9962       hardcode_libdir_flag_spec='-R$libdir'
9963       hardcode_direct=yes
9964       hardcode_shlibpath_var=no
9965       ;;
9966
9967     hpux9*)
9968       if test "$GCC" = yes; then
9969         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9970       else
9971         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'
9972       fi
9973       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9974       hardcode_libdir_separator=:
9975       hardcode_direct=yes
9976
9977       # hardcode_minus_L: Not really in the search PATH,
9978       # but as the default location of the library.
9979       hardcode_minus_L=yes
9980       export_dynamic_flag_spec='${wl}-E'
9981       ;;
9982
9983     hpux10*)
9984       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9985         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9986       else
9987         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9988       fi
9989       if test "$with_gnu_ld" = no; then
9990         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9991         hardcode_libdir_flag_spec_ld='+b $libdir'
9992         hardcode_libdir_separator=:
9993         hardcode_direct=yes
9994         hardcode_direct_absolute=yes
9995         export_dynamic_flag_spec='${wl}-E'
9996         # hardcode_minus_L: Not really in the search PATH,
9997         # but as the default location of the library.
9998         hardcode_minus_L=yes
9999       fi
10000       ;;
10001
10002     hpux11*)
10003       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10004         case $host_cpu in
10005         hppa*64*)
10006           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10007           ;;
10008         ia64*)
10009           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10010           ;;
10011         *)
10012           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10013           ;;
10014         esac
10015       else
10016         case $host_cpu in
10017         hppa*64*)
10018           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10019           ;;
10020         ia64*)
10021           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10022           ;;
10023         *)
10024
10025           # Older versions of the 11.00 compiler do not understand -b yet
10026           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10027           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10028 $as_echo_n "checking if $CC understands -b... " >&6; }
10029 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10030   $as_echo_n "(cached) " >&6
10031 else
10032   lt_cv_prog_compiler__b=no
10033    save_LDFLAGS="$LDFLAGS"
10034    LDFLAGS="$LDFLAGS -b"
10035    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10036    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10037      # The linker can only warn and ignore the option if not recognized
10038      # So say no if there are warnings
10039      if test -s conftest.err; then
10040        # Append any errors to the config.log.
10041        cat conftest.err 1>&5
10042        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10043        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10044        if diff conftest.exp conftest.er2 >/dev/null; then
10045          lt_cv_prog_compiler__b=yes
10046        fi
10047      else
10048        lt_cv_prog_compiler__b=yes
10049      fi
10050    fi
10051    $RM -r conftest*
10052    LDFLAGS="$save_LDFLAGS"
10053
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10056 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10057
10058 if test x"$lt_cv_prog_compiler__b" = xyes; then
10059     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10060 else
10061     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10062 fi
10063
10064           ;;
10065         esac
10066       fi
10067       if test "$with_gnu_ld" = no; then
10068         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10069         hardcode_libdir_separator=:
10070
10071         case $host_cpu in
10072         hppa*64*|ia64*)
10073           hardcode_direct=no
10074           hardcode_shlibpath_var=no
10075           ;;
10076         *)
10077           hardcode_direct=yes
10078           hardcode_direct_absolute=yes
10079           export_dynamic_flag_spec='${wl}-E'
10080
10081           # hardcode_minus_L: Not really in the search PATH,
10082           # but as the default location of the library.
10083           hardcode_minus_L=yes
10084           ;;
10085         esac
10086       fi
10087       ;;
10088
10089     irix5* | irix6* | nonstopux*)
10090       if test "$GCC" = yes; then
10091         archive_cmds='$CC -shared $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'
10092         # Try to use the -exported_symbol ld option, if it does not
10093         # work, assume that -exports_file does not work either and
10094         # implicitly export all symbols.
10095         save_LDFLAGS="$LDFLAGS"
10096         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10097         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h.  */
10099 int foo(void) {}
10100 _ACEOF
10101 if ac_fn_c_try_link "$LINENO"; then :
10102   archive_expsym_cmds='$CC -shared $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'
10103
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext \
10106     conftest$ac_exeext conftest.$ac_ext
10107         LDFLAGS="$save_LDFLAGS"
10108       else
10109         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'
10110         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'
10111       fi
10112       archive_cmds_need_lc='no'
10113       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10114       hardcode_libdir_separator=:
10115       inherit_rpath=yes
10116       link_all_deplibs=yes
10117       ;;
10118
10119     netbsd*)
10120       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10121         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10122       else
10123         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10124       fi
10125       hardcode_libdir_flag_spec='-R$libdir'
10126       hardcode_direct=yes
10127       hardcode_shlibpath_var=no
10128       ;;
10129
10130     newsos6)
10131       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132       hardcode_direct=yes
10133       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10134       hardcode_libdir_separator=:
10135       hardcode_shlibpath_var=no
10136       ;;
10137
10138     *nto* | *qnx*)
10139       ;;
10140
10141     openbsd*)
10142       if test -f /usr/libexec/ld.so; then
10143         hardcode_direct=yes
10144         hardcode_shlibpath_var=no
10145         hardcode_direct_absolute=yes
10146         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10147           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10148           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10149           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10150           export_dynamic_flag_spec='${wl}-E'
10151         else
10152           case $host_os in
10153            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10154              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10155              hardcode_libdir_flag_spec='-R$libdir'
10156              ;;
10157            *)
10158              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10159              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10160              ;;
10161           esac
10162         fi
10163       else
10164         ld_shlibs=no
10165       fi
10166       ;;
10167
10168     os2*)
10169       hardcode_libdir_flag_spec='-L$libdir'
10170       hardcode_minus_L=yes
10171       allow_undefined_flag=unsupported
10172       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'
10173       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10174       ;;
10175
10176     osf3*)
10177       if test "$GCC" = yes; then
10178         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10179         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'
10180       else
10181         allow_undefined_flag=' -expect_unresolved \*'
10182         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'
10183       fi
10184       archive_cmds_need_lc='no'
10185       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10186       hardcode_libdir_separator=:
10187       ;;
10188
10189     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10190       if test "$GCC" = yes; then
10191         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10192         archive_cmds='$CC -shared${allow_undefined_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'
10193         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10194       else
10195         allow_undefined_flag=' -expect_unresolved \*'
10196         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'
10197         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~
10198         $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'
10199
10200         # Both c and cxx compiler support -rpath directly
10201         hardcode_libdir_flag_spec='-rpath $libdir'
10202       fi
10203       archive_cmds_need_lc='no'
10204       hardcode_libdir_separator=:
10205       ;;
10206
10207     solaris*)
10208       no_undefined_flag=' -z defs'
10209       if test "$GCC" = yes; then
10210         wlarc='${wl}'
10211         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10212         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10213           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10214       else
10215         case `$CC -V 2>&1` in
10216         *"Compilers 5.0"*)
10217           wlarc=''
10218           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10220           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10221           ;;
10222         *)
10223           wlarc='${wl}'
10224           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10225           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10226           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10227           ;;
10228         esac
10229       fi
10230       hardcode_libdir_flag_spec='-R$libdir'
10231       hardcode_shlibpath_var=no
10232       case $host_os in
10233       solaris2.[0-5] | solaris2.[0-5].*) ;;
10234       *)
10235         # The compiler driver will combine and reorder linker options,
10236         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10237         # but is careful enough not to reorder.
10238         # Supported since Solaris 2.6 (maybe 2.5.1?)
10239         if test "$GCC" = yes; then
10240           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10241         else
10242           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10243         fi
10244         ;;
10245       esac
10246       link_all_deplibs=yes
10247       ;;
10248
10249     sunos4*)
10250       if test "x$host_vendor" = xsequent; then
10251         # Use $CC to link under sequent, because it throws in some extra .o
10252         # files that make .init and .fini sections work.
10253         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10254       else
10255         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10256       fi
10257       hardcode_libdir_flag_spec='-L$libdir'
10258       hardcode_direct=yes
10259       hardcode_minus_L=yes
10260       hardcode_shlibpath_var=no
10261       ;;
10262
10263     sysv4)
10264       case $host_vendor in
10265         sni)
10266           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267           hardcode_direct=yes # is this really true???
10268         ;;
10269         siemens)
10270           ## LD is ld it makes a PLAMLIB
10271           ## CC just makes a GrossModule.
10272           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10273           reload_cmds='$CC -r -o $output$reload_objs'
10274           hardcode_direct=no
10275         ;;
10276         motorola)
10277           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10279         ;;
10280       esac
10281       runpath_var='LD_RUN_PATH'
10282       hardcode_shlibpath_var=no
10283       ;;
10284
10285     sysv4.3*)
10286       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287       hardcode_shlibpath_var=no
10288       export_dynamic_flag_spec='-Bexport'
10289       ;;
10290
10291     sysv4*MP*)
10292       if test -d /usr/nec; then
10293         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294         hardcode_shlibpath_var=no
10295         runpath_var=LD_RUN_PATH
10296         hardcode_runpath_var=yes
10297         ld_shlibs=yes
10298       fi
10299       ;;
10300
10301     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10302       no_undefined_flag='${wl}-z,text'
10303       archive_cmds_need_lc=no
10304       hardcode_shlibpath_var=no
10305       runpath_var='LD_RUN_PATH'
10306
10307       if test "$GCC" = yes; then
10308         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10309         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310       else
10311         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313       fi
10314       ;;
10315
10316     sysv5* | sco3.2v5* | sco5v6*)
10317       # Note: We can NOT use -z defs as we might desire, because we do not
10318       # link with -lc, and that would cause any symbols used from libc to
10319       # always be unresolved, which means just about no library would
10320       # ever link correctly.  If we're not using GNU ld we use -z text
10321       # though, which does catch some bad symbols but isn't as heavy-handed
10322       # as -z defs.
10323       no_undefined_flag='${wl}-z,text'
10324       allow_undefined_flag='${wl}-z,nodefs'
10325       archive_cmds_need_lc=no
10326       hardcode_shlibpath_var=no
10327       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10328       hardcode_libdir_separator=':'
10329       link_all_deplibs=yes
10330       export_dynamic_flag_spec='${wl}-Bexport'
10331       runpath_var='LD_RUN_PATH'
10332
10333       if test "$GCC" = yes; then
10334         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336       else
10337         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339       fi
10340       ;;
10341
10342     uts4*)
10343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344       hardcode_libdir_flag_spec='-L$libdir'
10345       hardcode_shlibpath_var=no
10346       ;;
10347
10348     *)
10349       ld_shlibs=no
10350       ;;
10351     esac
10352
10353     if test x$host_vendor = xsni; then
10354       case $host in
10355       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10356         export_dynamic_flag_spec='${wl}-Blargedynsym'
10357         ;;
10358       esac
10359     fi
10360   fi
10361
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10363 $as_echo "$ld_shlibs" >&6; }
10364 test "$ld_shlibs" = no && can_build_shared=no
10365
10366 with_gnu_ld=$with_gnu_ld
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382 #
10383 # Do we need to explicitly link libc?
10384 #
10385 case "x$archive_cmds_need_lc" in
10386 x|xyes)
10387   # Assume -lc should be added
10388   archive_cmds_need_lc=yes
10389
10390   if test "$enable_shared" = yes && test "$GCC" = yes; then
10391     case $archive_cmds in
10392     *'~'*)
10393       # FIXME: we may have to deal with multi-command sequences.
10394       ;;
10395     '$CC '*)
10396       # Test whether the compiler implicitly links with -lc since on some
10397       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10398       # to ld, don't add -lc before -lgcc.
10399       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10400 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10401 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10402   $as_echo_n "(cached) " >&6
10403 else
10404   $RM conftest*
10405         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10406
10407         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10408   (eval $ac_compile) 2>&5
10409   ac_status=$?
10410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10411   test $ac_status = 0; } 2>conftest.err; then
10412           soname=conftest
10413           lib=conftest
10414           libobjs=conftest.$ac_objext
10415           deplibs=
10416           wl=$lt_prog_compiler_wl
10417           pic_flag=$lt_prog_compiler_pic
10418           compiler_flags=-v
10419           linker_flags=-v
10420           verstring=
10421           output_objdir=.
10422           libname=conftest
10423           lt_save_allow_undefined_flag=$allow_undefined_flag
10424           allow_undefined_flag=
10425           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10426   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10427   ac_status=$?
10428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10429   test $ac_status = 0; }
10430           then
10431             lt_cv_archive_cmds_need_lc=no
10432           else
10433             lt_cv_archive_cmds_need_lc=yes
10434           fi
10435           allow_undefined_flag=$lt_save_allow_undefined_flag
10436         else
10437           cat conftest.err 1>&5
10438         fi
10439         $RM conftest*
10440
10441 fi
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10443 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10444       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10445       ;;
10446     esac
10447   fi
10448   ;;
10449 esac
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10608 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10609
10610 if test "$GCC" = yes; then
10611   case $host_os in
10612     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10613     *) lt_awk_arg="/^libraries:/" ;;
10614   esac
10615   case $host_os in
10616     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10617     *) lt_sed_strip_eq="s,=/,/,g" ;;
10618   esac
10619   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10620   case $lt_search_path_spec in
10621   *\;*)
10622     # if the path contains ";" then we assume it to be the separator
10623     # otherwise default to the standard path separator (i.e. ":") - it is
10624     # assumed that no part of a normal pathname contains ";" but that should
10625     # okay in the real world where ";" in dirpaths is itself problematic.
10626     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10627     ;;
10628   *)
10629     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10630     ;;
10631   esac
10632   # Ok, now we have the path, separated by spaces, we can step through it
10633   # and add multilib dir if necessary.
10634   lt_tmp_lt_search_path_spec=
10635   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10636   for lt_sys_path in $lt_search_path_spec; do
10637     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10638       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10639     else
10640       test -d "$lt_sys_path" && \
10641         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10642     fi
10643   done
10644   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10645 BEGIN {RS=" "; FS="/|\n";} {
10646   lt_foo="";
10647   lt_count=0;
10648   for (lt_i = NF; lt_i > 0; lt_i--) {
10649     if ($lt_i != "" && $lt_i != ".") {
10650       if ($lt_i == "..") {
10651         lt_count++;
10652       } else {
10653         if (lt_count == 0) {
10654           lt_foo="/" $lt_i lt_foo;
10655         } else {
10656           lt_count--;
10657         }
10658       }
10659     }
10660   }
10661   if (lt_foo != "") { lt_freq[lt_foo]++; }
10662   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10663 }'`
10664   # AWK program above erroneously prepends '/' to C:/dos/paths
10665   # for these hosts.
10666   case $host_os in
10667     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10668       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10669   esac
10670   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10671 else
10672   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10673 fi
10674 library_names_spec=
10675 libname_spec='lib$name'
10676 soname_spec=
10677 shrext_cmds=".so"
10678 postinstall_cmds=
10679 postuninstall_cmds=
10680 finish_cmds=
10681 finish_eval=
10682 shlibpath_var=
10683 shlibpath_overrides_runpath=unknown
10684 version_type=none
10685 dynamic_linker="$host_os ld.so"
10686 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10687 need_lib_prefix=unknown
10688 hardcode_into_libs=no
10689
10690 # when you set need_version to no, make sure it does not cause -set_version
10691 # flags to be left without arguments
10692 need_version=unknown
10693
10694 case $host_os in
10695 aix3*)
10696   version_type=linux
10697   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10698   shlibpath_var=LIBPATH
10699
10700   # AIX 3 has no versioning support, so we append a major version to the name.
10701   soname_spec='${libname}${release}${shared_ext}$major'
10702   ;;
10703
10704 aix[4-9]*)
10705   version_type=linux
10706   need_lib_prefix=no
10707   need_version=no
10708   hardcode_into_libs=yes
10709   if test "$host_cpu" = ia64; then
10710     # AIX 5 supports IA64
10711     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10712     shlibpath_var=LD_LIBRARY_PATH
10713   else
10714     # With GCC up to 2.95.x, collect2 would create an import file
10715     # for dependence libraries.  The import file would start with
10716     # the line `#! .'.  This would cause the generated library to
10717     # depend on `.', always an invalid library.  This was fixed in
10718     # development snapshots of GCC prior to 3.0.
10719     case $host_os in
10720       aix4 | aix4.[01] | aix4.[01].*)
10721       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10722            echo ' yes '
10723            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10724         :
10725       else
10726         can_build_shared=no
10727       fi
10728       ;;
10729     esac
10730     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10731     # soname into executable. Probably we can add versioning support to
10732     # collect2, so additional links can be useful in future.
10733     if test "$aix_use_runtimelinking" = yes; then
10734       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10735       # instead of lib<name>.a to let people know that these are not
10736       # typical AIX shared libraries.
10737       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738     else
10739       # We preserve .a as extension for shared libraries through AIX4.2
10740       # and later when we are not doing run time linking.
10741       library_names_spec='${libname}${release}.a $libname.a'
10742       soname_spec='${libname}${release}${shared_ext}$major'
10743     fi
10744     shlibpath_var=LIBPATH
10745   fi
10746   ;;
10747
10748 amigaos*)
10749   case $host_cpu in
10750   powerpc)
10751     # Since July 2007 AmigaOS4 officially supports .so libraries.
10752     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754     ;;
10755   m68k)
10756     library_names_spec='$libname.ixlibrary $libname.a'
10757     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10758     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'
10759     ;;
10760   esac
10761   ;;
10762
10763 beos*)
10764   library_names_spec='${libname}${shared_ext}'
10765   dynamic_linker="$host_os ld.so"
10766   shlibpath_var=LIBRARY_PATH
10767   ;;
10768
10769 bsdi[45]*)
10770   version_type=linux
10771   need_version=no
10772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773   soname_spec='${libname}${release}${shared_ext}$major'
10774   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10775   shlibpath_var=LD_LIBRARY_PATH
10776   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10777   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10778   # the default ld.so.conf also contains /usr/contrib/lib and
10779   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10780   # libtool to hard-code these into programs
10781   ;;
10782
10783 cygwin* | mingw* | pw32* | cegcc*)
10784   version_type=windows
10785   shrext_cmds=".dll"
10786   need_version=no
10787   need_lib_prefix=no
10788
10789   case $GCC,$host_os in
10790   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10791     library_names_spec='$libname.dll.a'
10792     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10793     postinstall_cmds='base_file=`basename \${file}`~
10794       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10795       dldir=$destdir/`dirname \$dlpath`~
10796       test -d \$dldir || mkdir -p \$dldir~
10797       $install_prog $dir/$dlname \$dldir/$dlname~
10798       chmod a+x \$dldir/$dlname~
10799       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10800         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10801       fi'
10802     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10803       dlpath=$dir/\$dldll~
10804        $RM \$dlpath'
10805     shlibpath_overrides_runpath=yes
10806
10807     case $host_os in
10808     cygwin*)
10809       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10810       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10811
10812       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10813       ;;
10814     mingw* | cegcc*)
10815       # MinGW DLLs use traditional 'lib' prefix
10816       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10817       ;;
10818     pw32*)
10819       # pw32 DLLs use 'pw' prefix rather than 'lib'
10820       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10821       ;;
10822     esac
10823     ;;
10824
10825   *)
10826     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10827     ;;
10828   esac
10829   dynamic_linker='Win32 ld.exe'
10830   # FIXME: first we should search . and the directory the executable is in
10831   shlibpath_var=PATH
10832   ;;
10833
10834 darwin* | rhapsody*)
10835   dynamic_linker="$host_os dyld"
10836   version_type=darwin
10837   need_lib_prefix=no
10838   need_version=no
10839   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10840   soname_spec='${libname}${release}${major}$shared_ext'
10841   shlibpath_overrides_runpath=yes
10842   shlibpath_var=DYLD_LIBRARY_PATH
10843   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10844
10845   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10846   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10847   ;;
10848
10849 dgux*)
10850   version_type=linux
10851   need_lib_prefix=no
10852   need_version=no
10853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10854   soname_spec='${libname}${release}${shared_ext}$major'
10855   shlibpath_var=LD_LIBRARY_PATH
10856   ;;
10857
10858 freebsd* | dragonfly*)
10859   # DragonFly does not have aout.  When/if they implement a new
10860   # versioning mechanism, adjust this.
10861   if test -x /usr/bin/objformat; then
10862     objformat=`/usr/bin/objformat`
10863   else
10864     case $host_os in
10865     freebsd[123]*) objformat=aout ;;
10866     *) objformat=elf ;;
10867     esac
10868   fi
10869   version_type=freebsd-$objformat
10870   case $version_type in
10871     freebsd-elf*)
10872       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10873       need_version=no
10874       need_lib_prefix=no
10875       ;;
10876     freebsd-*)
10877       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10878       need_version=yes
10879       ;;
10880   esac
10881   shlibpath_var=LD_LIBRARY_PATH
10882   case $host_os in
10883   freebsd2*)
10884     shlibpath_overrides_runpath=yes
10885     ;;
10886   freebsd3.[01]* | freebsdelf3.[01]*)
10887     shlibpath_overrides_runpath=yes
10888     hardcode_into_libs=yes
10889     ;;
10890   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10891   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10892     shlibpath_overrides_runpath=no
10893     hardcode_into_libs=yes
10894     ;;
10895   *) # from 4.6 on, and DragonFly
10896     shlibpath_overrides_runpath=yes
10897     hardcode_into_libs=yes
10898     ;;
10899   esac
10900   ;;
10901
10902 gnu*)
10903   version_type=linux
10904   need_lib_prefix=no
10905   need_version=no
10906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10907   soname_spec='${libname}${release}${shared_ext}$major'
10908   shlibpath_var=LD_LIBRARY_PATH
10909   hardcode_into_libs=yes
10910   ;;
10911
10912 haiku*)
10913   version_type=linux
10914   need_lib_prefix=no
10915   need_version=no
10916   dynamic_linker="$host_os runtime_loader"
10917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10918   soname_spec='${libname}${release}${shared_ext}$major'
10919   shlibpath_var=LIBRARY_PATH
10920   shlibpath_overrides_runpath=yes
10921   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10922   hardcode_into_libs=yes
10923   ;;
10924
10925 hpux9* | hpux10* | hpux11*)
10926   # Give a soname corresponding to the major version so that dld.sl refuses to
10927   # link against other versions.
10928   version_type=sunos
10929   need_lib_prefix=no
10930   need_version=no
10931   case $host_cpu in
10932   ia64*)
10933     shrext_cmds='.so'
10934     hardcode_into_libs=yes
10935     dynamic_linker="$host_os dld.so"
10936     shlibpath_var=LD_LIBRARY_PATH
10937     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10938     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939     soname_spec='${libname}${release}${shared_ext}$major'
10940     if test "X$HPUX_IA64_MODE" = X32; then
10941       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10942     else
10943       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10944     fi
10945     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10946     ;;
10947   hppa*64*)
10948     shrext_cmds='.sl'
10949     hardcode_into_libs=yes
10950     dynamic_linker="$host_os dld.sl"
10951     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10952     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10953     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954     soname_spec='${libname}${release}${shared_ext}$major'
10955     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10956     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10957     ;;
10958   *)
10959     shrext_cmds='.sl'
10960     dynamic_linker="$host_os dld.sl"
10961     shlibpath_var=SHLIB_PATH
10962     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964     soname_spec='${libname}${release}${shared_ext}$major'
10965     ;;
10966   esac
10967   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10968   postinstall_cmds='chmod 555 $lib'
10969   # or fails outright, so override atomically:
10970   install_override_mode=555
10971   ;;
10972
10973 interix[3-9]*)
10974   version_type=linux
10975   need_lib_prefix=no
10976   need_version=no
10977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10978   soname_spec='${libname}${release}${shared_ext}$major'
10979   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10980   shlibpath_var=LD_LIBRARY_PATH
10981   shlibpath_overrides_runpath=no
10982   hardcode_into_libs=yes
10983   ;;
10984
10985 irix5* | irix6* | nonstopux*)
10986   case $host_os in
10987     nonstopux*) version_type=nonstopux ;;
10988     *)
10989         if test "$lt_cv_prog_gnu_ld" = yes; then
10990                 version_type=linux
10991         else
10992                 version_type=irix
10993         fi ;;
10994   esac
10995   need_lib_prefix=no
10996   need_version=no
10997   soname_spec='${libname}${release}${shared_ext}$major'
10998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10999   case $host_os in
11000   irix5* | nonstopux*)
11001     libsuff= shlibsuff=
11002     ;;
11003   *)
11004     case $LD in # libtool.m4 will add one of these switches to LD
11005     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11006       libsuff= shlibsuff= libmagic=32-bit;;
11007     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11008       libsuff=32 shlibsuff=N32 libmagic=N32;;
11009     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11010       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11011     *) libsuff= shlibsuff= libmagic=never-match;;
11012     esac
11013     ;;
11014   esac
11015   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11016   shlibpath_overrides_runpath=no
11017   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11018   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11019   hardcode_into_libs=yes
11020   ;;
11021
11022 # No shared lib support for Linux oldld, aout, or coff.
11023 linux*oldld* | linux*aout* | linux*coff*)
11024   dynamic_linker=no
11025   ;;
11026
11027 # This must be Linux ELF.
11028 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11029   version_type=linux
11030   need_lib_prefix=no
11031   need_version=no
11032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033   soname_spec='${libname}${release}${shared_ext}$major'
11034   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11035   shlibpath_var=LD_LIBRARY_PATH
11036   shlibpath_overrides_runpath=no
11037
11038   # Some binutils ld are patched to set DT_RUNPATH
11039   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11040   $as_echo_n "(cached) " >&6
11041 else
11042   lt_cv_shlibpath_overrides_runpath=no
11043     save_LDFLAGS=$LDFLAGS
11044     save_libdir=$libdir
11045     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11046          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11047     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h.  */
11049
11050 int
11051 main ()
11052 {
11053
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11060   lt_cv_shlibpath_overrides_runpath=yes
11061 fi
11062 fi
11063 rm -f core conftest.err conftest.$ac_objext \
11064     conftest$ac_exeext conftest.$ac_ext
11065     LDFLAGS=$save_LDFLAGS
11066     libdir=$save_libdir
11067
11068 fi
11069
11070   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11071
11072   # This implies no fast_install, which is unacceptable.
11073   # Some rework will be needed to allow for fast_install
11074   # before this can be enabled.
11075   hardcode_into_libs=yes
11076
11077   # Append ld.so.conf contents to the search path
11078   if test -f /etc/ld.so.conf; then
11079     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' ' '`
11080     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11081   fi
11082
11083   # We used to test for /lib/ld.so.1 and disable shared libraries on
11084   # powerpc, because MkLinux only supported shared libraries with the
11085   # GNU dynamic linker.  Since this was broken with cross compilers,
11086   # most powerpc-linux boxes support dynamic linking these days and
11087   # people can always --disable-shared, the test was removed, and we
11088   # assume the GNU/Linux dynamic linker is in use.
11089   dynamic_linker='GNU/Linux ld.so'
11090   ;;
11091
11092 netbsd*)
11093   version_type=sunos
11094   need_lib_prefix=no
11095   need_version=no
11096   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11098     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11099     dynamic_linker='NetBSD (a.out) ld.so'
11100   else
11101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11102     soname_spec='${libname}${release}${shared_ext}$major'
11103     dynamic_linker='NetBSD ld.elf_so'
11104   fi
11105   shlibpath_var=LD_LIBRARY_PATH
11106   shlibpath_overrides_runpath=yes
11107   hardcode_into_libs=yes
11108   ;;
11109
11110 newsos6)
11111   version_type=linux
11112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113   shlibpath_var=LD_LIBRARY_PATH
11114   shlibpath_overrides_runpath=yes
11115   ;;
11116
11117 *nto* | *qnx*)
11118   version_type=qnx
11119   need_lib_prefix=no
11120   need_version=no
11121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122   soname_spec='${libname}${release}${shared_ext}$major'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   shlibpath_overrides_runpath=no
11125   hardcode_into_libs=yes
11126   dynamic_linker='ldqnx.so'
11127   ;;
11128
11129 openbsd*)
11130   version_type=sunos
11131   sys_lib_dlsearch_path_spec="/usr/lib"
11132   need_lib_prefix=no
11133   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11134   case $host_os in
11135     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11136     *)                          need_version=no  ;;
11137   esac
11138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11139   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11140   shlibpath_var=LD_LIBRARY_PATH
11141   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11142     case $host_os in
11143       openbsd2.[89] | openbsd2.[89].*)
11144         shlibpath_overrides_runpath=no
11145         ;;
11146       *)
11147         shlibpath_overrides_runpath=yes
11148         ;;
11149       esac
11150   else
11151     shlibpath_overrides_runpath=yes
11152   fi
11153   ;;
11154
11155 os2*)
11156   libname_spec='$name'
11157   shrext_cmds=".dll"
11158   need_lib_prefix=no
11159   library_names_spec='$libname${shared_ext} $libname.a'
11160   dynamic_linker='OS/2 ld.exe'
11161   shlibpath_var=LIBPATH
11162   ;;
11163
11164 osf3* | osf4* | osf5*)
11165   version_type=osf
11166   need_lib_prefix=no
11167   need_version=no
11168   soname_spec='${libname}${release}${shared_ext}$major'
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170   shlibpath_var=LD_LIBRARY_PATH
11171   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11172   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11173   ;;
11174
11175 rdos*)
11176   dynamic_linker=no
11177   ;;
11178
11179 solaris*)
11180   version_type=linux
11181   need_lib_prefix=no
11182   need_version=no
11183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184   soname_spec='${libname}${release}${shared_ext}$major'
11185   shlibpath_var=LD_LIBRARY_PATH
11186   shlibpath_overrides_runpath=yes
11187   hardcode_into_libs=yes
11188   # ldd complains unless libraries are executable
11189   postinstall_cmds='chmod +x $lib'
11190   ;;
11191
11192 sunos4*)
11193   version_type=sunos
11194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11195   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11196   shlibpath_var=LD_LIBRARY_PATH
11197   shlibpath_overrides_runpath=yes
11198   if test "$with_gnu_ld" = yes; then
11199     need_lib_prefix=no
11200   fi
11201   need_version=yes
11202   ;;
11203
11204 sysv4 | sysv4.3*)
11205   version_type=linux
11206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207   soname_spec='${libname}${release}${shared_ext}$major'
11208   shlibpath_var=LD_LIBRARY_PATH
11209   case $host_vendor in
11210     sni)
11211       shlibpath_overrides_runpath=no
11212       need_lib_prefix=no
11213       runpath_var=LD_RUN_PATH
11214       ;;
11215     siemens)
11216       need_lib_prefix=no
11217       ;;
11218     motorola)
11219       need_lib_prefix=no
11220       need_version=no
11221       shlibpath_overrides_runpath=no
11222       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11223       ;;
11224   esac
11225   ;;
11226
11227 sysv4*MP*)
11228   if test -d /usr/nec ;then
11229     version_type=linux
11230     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11231     soname_spec='$libname${shared_ext}.$major'
11232     shlibpath_var=LD_LIBRARY_PATH
11233   fi
11234   ;;
11235
11236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11237   version_type=freebsd-elf
11238   need_lib_prefix=no
11239   need_version=no
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11241   soname_spec='${libname}${release}${shared_ext}$major'
11242   shlibpath_var=LD_LIBRARY_PATH
11243   shlibpath_overrides_runpath=yes
11244   hardcode_into_libs=yes
11245   if test "$with_gnu_ld" = yes; then
11246     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11247   else
11248     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11249     case $host_os in
11250       sco3.2v5*)
11251         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11252         ;;
11253     esac
11254   fi
11255   sys_lib_dlsearch_path_spec='/usr/lib'
11256   ;;
11257
11258 tpf*)
11259   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11260   version_type=linux
11261   need_lib_prefix=no
11262   need_version=no
11263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264   shlibpath_var=LD_LIBRARY_PATH
11265   shlibpath_overrides_runpath=no
11266   hardcode_into_libs=yes
11267   ;;
11268
11269 uts4*)
11270   version_type=linux
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   shlibpath_var=LD_LIBRARY_PATH
11274   ;;
11275
11276 *)
11277   dynamic_linker=no
11278   ;;
11279 esac
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11281 $as_echo "$dynamic_linker" >&6; }
11282 test "$dynamic_linker" = no && can_build_shared=no
11283
11284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11285 if test "$GCC" = yes; then
11286   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11287 fi
11288
11289 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11290   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11291 fi
11292 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11293   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11294 fi
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11388 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11389 hardcode_action=
11390 if test -n "$hardcode_libdir_flag_spec" ||
11391    test -n "$runpath_var" ||
11392    test "X$hardcode_automatic" = "Xyes" ; then
11393
11394   # We can hardcode non-existent directories.
11395   if test "$hardcode_direct" != no &&
11396      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11397      # have to relink, otherwise we might link with an installed library
11398      # when we should be linking with a yet-to-be-installed one
11399      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11400      test "$hardcode_minus_L" != no; then
11401     # Linking always hardcodes the temporary library directory.
11402     hardcode_action=relink
11403   else
11404     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11405     hardcode_action=immediate
11406   fi
11407 else
11408   # We cannot hardcode anything, or else we can only hardcode existing
11409   # directories.
11410   hardcode_action=unsupported
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11413 $as_echo "$hardcode_action" >&6; }
11414
11415 if test "$hardcode_action" = relink ||
11416    test "$inherit_rpath" = yes; then
11417   # Fast installation is not supported
11418   enable_fast_install=no
11419 elif test "$shlibpath_overrides_runpath" = yes ||
11420      test "$enable_shared" = no; then
11421   # Fast installation is not necessary
11422   enable_fast_install=needless
11423 fi
11424
11425
11426
11427
11428
11429
11430   if test "x$enable_dlopen" != xyes; then
11431   enable_dlopen=unknown
11432   enable_dlopen_self=unknown
11433   enable_dlopen_self_static=unknown
11434 else
11435   lt_cv_dlopen=no
11436   lt_cv_dlopen_libs=
11437
11438   case $host_os in
11439   beos*)
11440     lt_cv_dlopen="load_add_on"
11441     lt_cv_dlopen_libs=
11442     lt_cv_dlopen_self=yes
11443     ;;
11444
11445   mingw* | pw32* | cegcc*)
11446     lt_cv_dlopen="LoadLibrary"
11447     lt_cv_dlopen_libs=
11448     ;;
11449
11450   cygwin*)
11451     lt_cv_dlopen="dlopen"
11452     lt_cv_dlopen_libs=
11453     ;;
11454
11455   darwin*)
11456   # if libdl is installed we need to link against it
11457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11458 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11460   $as_echo_n "(cached) " >&6
11461 else
11462   ac_check_lib_save_LIBS=$LIBS
11463 LIBS="-ldl  $LIBS"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h.  */
11466
11467 /* Override any GCC internal prototype to avoid an error.
11468    Use char because int might match the return type of a GCC
11469    builtin and then its argument prototype would still apply.  */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char dlopen ();
11474 int
11475 main ()
11476 {
11477 return dlopen ();
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483   ac_cv_lib_dl_dlopen=yes
11484 else
11485   ac_cv_lib_dl_dlopen=no
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext \
11488     conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11492 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11493 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11494   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11495 else
11496
11497     lt_cv_dlopen="dyld"
11498     lt_cv_dlopen_libs=
11499     lt_cv_dlopen_self=yes
11500
11501 fi
11502
11503     ;;
11504
11505   *)
11506     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11507 if test "x$ac_cv_func_shl_load" = x""yes; then :
11508   lt_cv_dlopen="shl_load"
11509 else
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11511 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11512 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11513   $as_echo_n "(cached) " >&6
11514 else
11515   ac_check_lib_save_LIBS=$LIBS
11516 LIBS="-ldld  $LIBS"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h.  */
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521    Use char because int might match the return type of a GCC
11522    builtin and then its argument prototype would still apply.  */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char shl_load ();
11527 int
11528 main ()
11529 {
11530 return shl_load ();
11531   ;
11532   return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536   ac_cv_lib_dld_shl_load=yes
11537 else
11538   ac_cv_lib_dld_shl_load=no
11539 fi
11540 rm -f core conftest.err conftest.$ac_objext \
11541     conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11545 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11546 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11547   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11548 else
11549   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11550 if test "x$ac_cv_func_dlopen" = x""yes; then :
11551   lt_cv_dlopen="dlopen"
11552 else
11553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11554 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11555 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11556   $as_echo_n "(cached) " >&6
11557 else
11558   ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-ldl  $LIBS"
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h.  */
11562
11563 /* Override any GCC internal prototype to avoid an error.
11564    Use char because int might match the return type of a GCC
11565    builtin and then its argument prototype would still apply.  */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 char dlopen ();
11570 int
11571 main ()
11572 {
11573 return dlopen ();
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_link "$LINENO"; then :
11579   ac_cv_lib_dl_dlopen=yes
11580 else
11581   ac_cv_lib_dl_dlopen=no
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext \
11584     conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11588 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11589 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11590   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11591 else
11592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11593 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11594 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11595   $as_echo_n "(cached) " >&6
11596 else
11597   ac_check_lib_save_LIBS=$LIBS
11598 LIBS="-lsvld  $LIBS"
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h.  */
11601
11602 /* Override any GCC internal prototype to avoid an error.
11603    Use char because int might match the return type of a GCC
11604    builtin and then its argument prototype would still apply.  */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 char dlopen ();
11609 int
11610 main ()
11611 {
11612 return dlopen ();
11613   ;
11614   return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"; then :
11618   ac_cv_lib_svld_dlopen=yes
11619 else
11620   ac_cv_lib_svld_dlopen=no
11621 fi
11622 rm -f core conftest.err conftest.$ac_objext \
11623     conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11627 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11628 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11629   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11630 else
11631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11632 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11633 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11634   $as_echo_n "(cached) " >&6
11635 else
11636   ac_check_lib_save_LIBS=$LIBS
11637 LIBS="-ldld  $LIBS"
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h.  */
11640
11641 /* Override any GCC internal prototype to avoid an error.
11642    Use char because int might match the return type of a GCC
11643    builtin and then its argument prototype would still apply.  */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 char dld_link ();
11648 int
11649 main ()
11650 {
11651 return dld_link ();
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657   ac_cv_lib_dld_dld_link=yes
11658 else
11659   ac_cv_lib_dld_dld_link=no
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext \
11662     conftest$ac_exeext conftest.$ac_ext
11663 LIBS=$ac_check_lib_save_LIBS
11664 fi
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11666 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11667 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11668   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11669 fi
11670
11671
11672 fi
11673
11674
11675 fi
11676
11677
11678 fi
11679
11680
11681 fi
11682
11683
11684 fi
11685
11686     ;;
11687   esac
11688
11689   if test "x$lt_cv_dlopen" != xno; then
11690     enable_dlopen=yes
11691   else
11692     enable_dlopen=no
11693   fi
11694
11695   case $lt_cv_dlopen in
11696   dlopen)
11697     save_CPPFLAGS="$CPPFLAGS"
11698     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11699
11700     save_LDFLAGS="$LDFLAGS"
11701     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11702
11703     save_LIBS="$LIBS"
11704     LIBS="$lt_cv_dlopen_libs $LIBS"
11705
11706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11707 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11708 if test "${lt_cv_dlopen_self+set}" = set; then :
11709   $as_echo_n "(cached) " >&6
11710 else
11711           if test "$cross_compiling" = yes; then :
11712   lt_cv_dlopen_self=cross
11713 else
11714   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11715   lt_status=$lt_dlunknown
11716   cat > conftest.$ac_ext <<_LT_EOF
11717 #line 11717 "configure"
11718 #include "confdefs.h"
11719
11720 #if HAVE_DLFCN_H
11721 #include <dlfcn.h>
11722 #endif
11723
11724 #include <stdio.h>
11725
11726 #ifdef RTLD_GLOBAL
11727 #  define LT_DLGLOBAL           RTLD_GLOBAL
11728 #else
11729 #  ifdef DL_GLOBAL
11730 #    define LT_DLGLOBAL         DL_GLOBAL
11731 #  else
11732 #    define LT_DLGLOBAL         0
11733 #  endif
11734 #endif
11735
11736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11737    find out it does not work in some platform. */
11738 #ifndef LT_DLLAZY_OR_NOW
11739 #  ifdef RTLD_LAZY
11740 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11741 #  else
11742 #    ifdef DL_LAZY
11743 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11744 #    else
11745 #      ifdef RTLD_NOW
11746 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11747 #      else
11748 #        ifdef DL_NOW
11749 #          define LT_DLLAZY_OR_NOW      DL_NOW
11750 #        else
11751 #          define LT_DLLAZY_OR_NOW      0
11752 #        endif
11753 #      endif
11754 #    endif
11755 #  endif
11756 #endif
11757
11758 /* When -fvisbility=hidden is used, assume the code has been annotated
11759    correspondingly for the symbols needed.  */
11760 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11761 void fnord () __attribute__((visibility("default")));
11762 #endif
11763
11764 void fnord () { int i=42; }
11765 int main ()
11766 {
11767   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11768   int status = $lt_dlunknown;
11769
11770   if (self)
11771     {
11772       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11773       else
11774         {
11775           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11776           else puts (dlerror ());
11777         }
11778       /* dlclose (self); */
11779     }
11780   else
11781     puts (dlerror ());
11782
11783   return status;
11784 }
11785 _LT_EOF
11786   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11787   (eval $ac_link) 2>&5
11788   ac_status=$?
11789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11790   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11791     (./conftest; exit; ) >&5 2>/dev/null
11792     lt_status=$?
11793     case x$lt_status in
11794       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11795       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11796       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11797     esac
11798   else :
11799     # compilation failed
11800     lt_cv_dlopen_self=no
11801   fi
11802 fi
11803 rm -fr conftest*
11804
11805
11806 fi
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11808 $as_echo "$lt_cv_dlopen_self" >&6; }
11809
11810     if test "x$lt_cv_dlopen_self" = xyes; then
11811       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11812       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11813 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11814 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11815   $as_echo_n "(cached) " >&6
11816 else
11817           if test "$cross_compiling" = yes; then :
11818   lt_cv_dlopen_self_static=cross
11819 else
11820   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11821   lt_status=$lt_dlunknown
11822   cat > conftest.$ac_ext <<_LT_EOF
11823 #line 11823 "configure"
11824 #include "confdefs.h"
11825
11826 #if HAVE_DLFCN_H
11827 #include <dlfcn.h>
11828 #endif
11829
11830 #include <stdio.h>
11831
11832 #ifdef RTLD_GLOBAL
11833 #  define LT_DLGLOBAL           RTLD_GLOBAL
11834 #else
11835 #  ifdef DL_GLOBAL
11836 #    define LT_DLGLOBAL         DL_GLOBAL
11837 #  else
11838 #    define LT_DLGLOBAL         0
11839 #  endif
11840 #endif
11841
11842 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11843    find out it does not work in some platform. */
11844 #ifndef LT_DLLAZY_OR_NOW
11845 #  ifdef RTLD_LAZY
11846 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11847 #  else
11848 #    ifdef DL_LAZY
11849 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11850 #    else
11851 #      ifdef RTLD_NOW
11852 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11853 #      else
11854 #        ifdef DL_NOW
11855 #          define LT_DLLAZY_OR_NOW      DL_NOW
11856 #        else
11857 #          define LT_DLLAZY_OR_NOW      0
11858 #        endif
11859 #      endif
11860 #    endif
11861 #  endif
11862 #endif
11863
11864 /* When -fvisbility=hidden is used, assume the code has been annotated
11865    correspondingly for the symbols needed.  */
11866 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11867 void fnord () __attribute__((visibility("default")));
11868 #endif
11869
11870 void fnord () { int i=42; }
11871 int main ()
11872 {
11873   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11874   int status = $lt_dlunknown;
11875
11876   if (self)
11877     {
11878       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11879       else
11880         {
11881           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11882           else puts (dlerror ());
11883         }
11884       /* dlclose (self); */
11885     }
11886   else
11887     puts (dlerror ());
11888
11889   return status;
11890 }
11891 _LT_EOF
11892   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11893   (eval $ac_link) 2>&5
11894   ac_status=$?
11895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11896   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11897     (./conftest; exit; ) >&5 2>/dev/null
11898     lt_status=$?
11899     case x$lt_status in
11900       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11901       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11902       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11903     esac
11904   else :
11905     # compilation failed
11906     lt_cv_dlopen_self_static=no
11907   fi
11908 fi
11909 rm -fr conftest*
11910
11911
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11914 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11915     fi
11916
11917     CPPFLAGS="$save_CPPFLAGS"
11918     LDFLAGS="$save_LDFLAGS"
11919     LIBS="$save_LIBS"
11920     ;;
11921   esac
11922
11923   case $lt_cv_dlopen_self in
11924   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11925   *) enable_dlopen_self=unknown ;;
11926   esac
11927
11928   case $lt_cv_dlopen_self_static in
11929   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11930   *) enable_dlopen_self_static=unknown ;;
11931   esac
11932 fi
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950 striplib=
11951 old_striplib=
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11953 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11954 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11955   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11956   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958 $as_echo "yes" >&6; }
11959 else
11960 # FIXME - insert some real tests, host_os isn't really good enough
11961   case $host_os in
11962   darwin*)
11963     if test -n "$STRIP" ; then
11964       striplib="$STRIP -x"
11965       old_striplib="$STRIP -S"
11966       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967 $as_echo "yes" >&6; }
11968     else
11969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11971     fi
11972     ;;
11973   *)
11974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11976     ;;
11977   esac
11978 fi
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991   # Report which library types will actually be built
11992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11993 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11995 $as_echo "$can_build_shared" >&6; }
11996
11997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11998 $as_echo_n "checking whether to build shared libraries... " >&6; }
11999   test "$can_build_shared" = "no" && enable_shared=no
12000
12001   # On AIX, shared libraries and static libraries use the same namespace, and
12002   # are all built from PIC.
12003   case $host_os in
12004   aix3*)
12005     test "$enable_shared" = yes && enable_static=no
12006     if test -n "$RANLIB"; then
12007       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12008       postinstall_cmds='$RANLIB $lib'
12009     fi
12010     ;;
12011
12012   aix[4-9]*)
12013     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12014       test "$enable_shared" = yes && enable_static=no
12015     fi
12016     ;;
12017   esac
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12019 $as_echo "$enable_shared" >&6; }
12020
12021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12022 $as_echo_n "checking whether to build static libraries... " >&6; }
12023   # Make sure either enable_shared or enable_static is yes.
12024   test "$enable_shared" = yes || enable_static=yes
12025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12026 $as_echo "$enable_static" >&6; }
12027
12028
12029
12030
12031 fi
12032 ac_ext=c
12033 ac_cpp='$CPP $CPPFLAGS'
12034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12037
12038 CC="$lt_save_CC"
12039
12040       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12041     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12042     (test "X$CXX" != "Xg++"))) ; then
12043   ac_ext=cpp
12044 ac_cpp='$CXXCPP $CPPFLAGS'
12045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12049 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12050 if test -z "$CXXCPP"; then
12051   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12052   $as_echo_n "(cached) " >&6
12053 else
12054       # Double quotes because CXXCPP needs to be expanded
12055     for CXXCPP in "$CXX -E" "/lib/cpp"
12056     do
12057       ac_preproc_ok=false
12058 for ac_cxx_preproc_warn_flag in '' yes
12059 do
12060   # Use a header file that comes with gcc, so configuring glibc
12061   # with a fresh cross-compiler works.
12062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063   # <limits.h> exists even on freestanding compilers.
12064   # On the NeXT, cc -E runs the code through the compiler's parser,
12065   # not just through cpp. "Syntax error" is here to catch this case.
12066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h.  */
12068 #ifdef __STDC__
12069 # include <limits.h>
12070 #else
12071 # include <assert.h>
12072 #endif
12073                      Syntax error
12074 _ACEOF
12075 if ac_fn_cxx_try_cpp "$LINENO"; then :
12076
12077 else
12078   # Broken: fails on valid input.
12079 continue
12080 fi
12081 rm -f conftest.err conftest.$ac_ext
12082
12083   # OK, works on sane cases.  Now check whether nonexistent headers
12084   # can be detected and how.
12085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h.  */
12087 #include <ac_nonexistent.h>
12088 _ACEOF
12089 if ac_fn_cxx_try_cpp "$LINENO"; then :
12090   # Broken: success on invalid input.
12091 continue
12092 else
12093   # Passes both tests.
12094 ac_preproc_ok=:
12095 break
12096 fi
12097 rm -f conftest.err conftest.$ac_ext
12098
12099 done
12100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12101 rm -f conftest.err conftest.$ac_ext
12102 if $ac_preproc_ok; then :
12103   break
12104 fi
12105
12106     done
12107     ac_cv_prog_CXXCPP=$CXXCPP
12108
12109 fi
12110   CXXCPP=$ac_cv_prog_CXXCPP
12111 else
12112   ac_cv_prog_CXXCPP=$CXXCPP
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12115 $as_echo "$CXXCPP" >&6; }
12116 ac_preproc_ok=false
12117 for ac_cxx_preproc_warn_flag in '' yes
12118 do
12119   # Use a header file that comes with gcc, so configuring glibc
12120   # with a fresh cross-compiler works.
12121   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122   # <limits.h> exists even on freestanding compilers.
12123   # On the NeXT, cc -E runs the code through the compiler's parser,
12124   # not just through cpp. "Syntax error" is here to catch this case.
12125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h.  */
12127 #ifdef __STDC__
12128 # include <limits.h>
12129 #else
12130 # include <assert.h>
12131 #endif
12132                      Syntax error
12133 _ACEOF
12134 if ac_fn_cxx_try_cpp "$LINENO"; then :
12135
12136 else
12137   # Broken: fails on valid input.
12138 continue
12139 fi
12140 rm -f conftest.err conftest.$ac_ext
12141
12142   # OK, works on sane cases.  Now check whether nonexistent headers
12143   # can be detected and how.
12144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12146 #include <ac_nonexistent.h>
12147 _ACEOF
12148 if ac_fn_cxx_try_cpp "$LINENO"; then :
12149   # Broken: success on invalid input.
12150 continue
12151 else
12152   # Passes both tests.
12153 ac_preproc_ok=:
12154 break
12155 fi
12156 rm -f conftest.err conftest.$ac_ext
12157
12158 done
12159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12160 rm -f conftest.err conftest.$ac_ext
12161 if $ac_preproc_ok; then :
12162
12163 else
12164   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12166 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12167 See \`config.log' for more details." "$LINENO" 5; }
12168 fi
12169
12170 ac_ext=c
12171 ac_cpp='$CPP $CPPFLAGS'
12172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12175
12176 else
12177   _lt_caught_CXX_error=yes
12178 fi
12179
12180 ac_ext=cpp
12181 ac_cpp='$CXXCPP $CPPFLAGS'
12182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12185
12186 archive_cmds_need_lc_CXX=no
12187 allow_undefined_flag_CXX=
12188 always_export_symbols_CXX=no
12189 archive_expsym_cmds_CXX=
12190 compiler_needs_object_CXX=no
12191 export_dynamic_flag_spec_CXX=
12192 hardcode_direct_CXX=no
12193 hardcode_direct_absolute_CXX=no
12194 hardcode_libdir_flag_spec_CXX=
12195 hardcode_libdir_flag_spec_ld_CXX=
12196 hardcode_libdir_separator_CXX=
12197 hardcode_minus_L_CXX=no
12198 hardcode_shlibpath_var_CXX=unsupported
12199 hardcode_automatic_CXX=no
12200 inherit_rpath_CXX=no
12201 module_cmds_CXX=
12202 module_expsym_cmds_CXX=
12203 link_all_deplibs_CXX=unknown
12204 old_archive_cmds_CXX=$old_archive_cmds
12205 reload_flag_CXX=$reload_flag
12206 reload_cmds_CXX=$reload_cmds
12207 no_undefined_flag_CXX=
12208 whole_archive_flag_spec_CXX=
12209 enable_shared_with_static_runtimes_CXX=no
12210
12211 # Source file extension for C++ test sources.
12212 ac_ext=cpp
12213
12214 # Object file extension for compiled C++ test sources.
12215 objext=o
12216 objext_CXX=$objext
12217
12218 # No sense in running all these tests if we already determined that
12219 # the CXX compiler isn't working.  Some variables (like enable_shared)
12220 # are currently assumed to apply to all compilers on this platform,
12221 # and will be corrupted by setting them based on a non-working compiler.
12222 if test "$_lt_caught_CXX_error" != yes; then
12223   # Code to be used in simple compile tests
12224   lt_simple_compile_test_code="int some_variable = 0;"
12225
12226   # Code to be used in simple link tests
12227   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12228
12229   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12230
12231
12232
12233
12234
12235
12236 # If no C compiler was specified, use CC.
12237 LTCC=${LTCC-"$CC"}
12238
12239 # If no C compiler flags were specified, use CFLAGS.
12240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12241
12242 # Allow CC to be a program name with arguments.
12243 compiler=$CC
12244
12245
12246   # save warnings/boilerplate of simple test code
12247   ac_outfile=conftest.$ac_objext
12248 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12250 _lt_compiler_boilerplate=`cat conftest.err`
12251 $RM conftest*
12252
12253   ac_outfile=conftest.$ac_objext
12254 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12256 _lt_linker_boilerplate=`cat conftest.err`
12257 $RM -r conftest*
12258
12259
12260   # Allow CC to be a program name with arguments.
12261   lt_save_CC=$CC
12262   lt_save_LD=$LD
12263   lt_save_GCC=$GCC
12264   GCC=$GXX
12265   lt_save_with_gnu_ld=$with_gnu_ld
12266   lt_save_path_LD=$lt_cv_path_LD
12267   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12268     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12269   else
12270     $as_unset lt_cv_prog_gnu_ld
12271   fi
12272   if test -n "${lt_cv_path_LDCXX+set}"; then
12273     lt_cv_path_LD=$lt_cv_path_LDCXX
12274   else
12275     $as_unset lt_cv_path_LD
12276   fi
12277   test -z "${LDCXX+set}" || LD=$LDCXX
12278   CC=${CXX-"c++"}
12279   compiler=$CC
12280   compiler_CXX=$CC
12281   for cc_temp in $compiler""; do
12282   case $cc_temp in
12283     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12284     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12285     \-*) ;;
12286     *) break;;
12287   esac
12288 done
12289 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12290
12291
12292   if test -n "$compiler"; then
12293     # We don't want -fno-exception when compiling C++ code, so set the
12294     # no_builtin_flag separately
12295     if test "$GXX" = yes; then
12296       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12297     else
12298       lt_prog_compiler_no_builtin_flag_CXX=
12299     fi
12300
12301     if test "$GXX" = yes; then
12302       # Set up default GNU C++ configuration
12303
12304
12305
12306 # Check whether --with-gnu-ld was given.
12307 if test "${with_gnu_ld+set}" = set; then :
12308   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12309 else
12310   with_gnu_ld=no
12311 fi
12312
12313 ac_prog=ld
12314 if test "$GCC" = yes; then
12315   # Check if gcc -print-prog-name=ld gives a path.
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12317 $as_echo_n "checking for ld used by $CC... " >&6; }
12318   case $host in
12319   *-*-mingw*)
12320     # gcc leaves a trailing carriage return which upsets mingw
12321     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12322   *)
12323     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12324   esac
12325   case $ac_prog in
12326     # Accept absolute paths.
12327     [\\/]* | ?:[\\/]*)
12328       re_direlt='/[^/][^/]*/\.\./'
12329       # Canonicalize the pathname of ld
12330       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12331       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12332         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12333       done
12334       test -z "$LD" && LD="$ac_prog"
12335       ;;
12336   "")
12337     # If it fails, then pretend we aren't using GCC.
12338     ac_prog=ld
12339     ;;
12340   *)
12341     # If it is relative, then search for the first ld in PATH.
12342     with_gnu_ld=unknown
12343     ;;
12344   esac
12345 elif test "$with_gnu_ld" = yes; then
12346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12347 $as_echo_n "checking for GNU ld... " >&6; }
12348 else
12349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12350 $as_echo_n "checking for non-GNU ld... " >&6; }
12351 fi
12352 if test "${lt_cv_path_LD+set}" = set; then :
12353   $as_echo_n "(cached) " >&6
12354 else
12355   if test -z "$LD"; then
12356   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12357   for ac_dir in $PATH; do
12358     IFS="$lt_save_ifs"
12359     test -z "$ac_dir" && ac_dir=.
12360     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12361       lt_cv_path_LD="$ac_dir/$ac_prog"
12362       # Check to see if the program is GNU ld.  I'd rather use --version,
12363       # but apparently some variants of GNU ld only accept -v.
12364       # Break only if it was the GNU/non-GNU ld that we prefer.
12365       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12366       *GNU* | *'with BFD'*)
12367         test "$with_gnu_ld" != no && break
12368         ;;
12369       *)
12370         test "$with_gnu_ld" != yes && break
12371         ;;
12372       esac
12373     fi
12374   done
12375   IFS="$lt_save_ifs"
12376 else
12377   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12378 fi
12379 fi
12380
12381 LD="$lt_cv_path_LD"
12382 if test -n "$LD"; then
12383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12384 $as_echo "$LD" >&6; }
12385 else
12386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12388 fi
12389 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12391 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12392 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12393   $as_echo_n "(cached) " >&6
12394 else
12395   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12396 case `$LD -v 2>&1 </dev/null` in
12397 *GNU* | *'with BFD'*)
12398   lt_cv_prog_gnu_ld=yes
12399   ;;
12400 *)
12401   lt_cv_prog_gnu_ld=no
12402   ;;
12403 esac
12404 fi
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12406 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12407 with_gnu_ld=$lt_cv_prog_gnu_ld
12408
12409
12410
12411
12412
12413
12414
12415       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12416       # archiving commands below assume that GNU ld is being used.
12417       if test "$with_gnu_ld" = yes; then
12418         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12419         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12420
12421         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12422         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12423
12424         # If archive_cmds runs LD, not CC, wlarc should be empty
12425         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12426         #     investigate it a little bit more. (MM)
12427         wlarc='${wl}'
12428
12429         # ancient GNU ld didn't support --whole-archive et. al.
12430         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12431           $GREP 'no-whole-archive' > /dev/null; then
12432           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12433         else
12434           whole_archive_flag_spec_CXX=
12435         fi
12436       else
12437         with_gnu_ld=no
12438         wlarc=
12439
12440         # A generic and very simple default shared library creation
12441         # command for GNU C++ for the case where it uses the native
12442         # linker, instead of GNU ld.  If possible, this setting should
12443         # overridden to take advantage of the native linker features on
12444         # the platform it is being used on.
12445         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12446       fi
12447
12448       # Commands to make compiler produce verbose output that lists
12449       # what "hidden" libraries, object files and flags are used when
12450       # linking a shared library.
12451       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12452
12453     else
12454       GXX=no
12455       with_gnu_ld=no
12456       wlarc=
12457     fi
12458
12459     # PORTME: fill in a description of your system's C++ link characteristics
12460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12461 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12462     ld_shlibs_CXX=yes
12463     case $host_os in
12464       aix3*)
12465         # FIXME: insert proper C++ library support
12466         ld_shlibs_CXX=no
12467         ;;
12468       aix[4-9]*)
12469         if test "$host_cpu" = ia64; then
12470           # On IA64, the linker does run time linking by default, so we don't
12471           # have to do anything special.
12472           aix_use_runtimelinking=no
12473           exp_sym_flag='-Bexport'
12474           no_entry_flag=""
12475         else
12476           aix_use_runtimelinking=no
12477
12478           # Test if we are trying to use run time linking or normal
12479           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12480           # need to do runtime linking.
12481           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12482             for ld_flag in $LDFLAGS; do
12483               case $ld_flag in
12484               *-brtl*)
12485                 aix_use_runtimelinking=yes
12486                 break
12487                 ;;
12488               esac
12489             done
12490             ;;
12491           esac
12492
12493           exp_sym_flag='-bexport'
12494           no_entry_flag='-bnoentry'
12495         fi
12496
12497         # When large executables or shared objects are built, AIX ld can
12498         # have problems creating the table of contents.  If linking a library
12499         # or program results in "error TOC overflow" add -mminimal-toc to
12500         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12501         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12502
12503         archive_cmds_CXX=''
12504         hardcode_direct_CXX=yes
12505         hardcode_direct_absolute_CXX=yes
12506         hardcode_libdir_separator_CXX=':'
12507         link_all_deplibs_CXX=yes
12508         file_list_spec_CXX='${wl}-f,'
12509
12510         if test "$GXX" = yes; then
12511           case $host_os in aix4.[012]|aix4.[012].*)
12512           # We only want to do this on AIX 4.2 and lower, the check
12513           # below for broken collect2 doesn't work under 4.3+
12514           collect2name=`${CC} -print-prog-name=collect2`
12515           if test -f "$collect2name" &&
12516              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12517           then
12518             # We have reworked collect2
12519             :
12520           else
12521             # We have old collect2
12522             hardcode_direct_CXX=unsupported
12523             # It fails to find uninstalled libraries when the uninstalled
12524             # path is not listed in the libpath.  Setting hardcode_minus_L
12525             # to unsupported forces relinking
12526             hardcode_minus_L_CXX=yes
12527             hardcode_libdir_flag_spec_CXX='-L$libdir'
12528             hardcode_libdir_separator_CXX=
12529           fi
12530           esac
12531           shared_flag='-shared'
12532           if test "$aix_use_runtimelinking" = yes; then
12533             shared_flag="$shared_flag "'${wl}-G'
12534           fi
12535         else
12536           # not using gcc
12537           if test "$host_cpu" = ia64; then
12538           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12539           # chokes on -Wl,-G. The following line is correct:
12540           shared_flag='-G'
12541           else
12542             if test "$aix_use_runtimelinking" = yes; then
12543               shared_flag='${wl}-G'
12544             else
12545               shared_flag='${wl}-bM:SRE'
12546             fi
12547           fi
12548         fi
12549
12550         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12551         # It seems that -bexpall does not export symbols beginning with
12552         # underscore (_), so it is better to generate a list of symbols to
12553         # export.
12554         always_export_symbols_CXX=yes
12555         if test "$aix_use_runtimelinking" = yes; then
12556           # Warning - without using the other runtime loading flags (-brtl),
12557           # -berok will link without error, but may produce a broken library.
12558           allow_undefined_flag_CXX='-berok'
12559           # Determine the default libpath from the value encoded in an empty
12560           # executable.
12561           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h.  */
12563
12564 int
12565 main ()
12566 {
12567
12568   ;
12569   return 0;
12570 }
12571 _ACEOF
12572 if ac_fn_cxx_try_link "$LINENO"; then :
12573
12574 lt_aix_libpath_sed='
12575     /Import File Strings/,/^$/ {
12576         /^0/ {
12577             s/^0  *\(.*\)$/\1/
12578             p
12579         }
12580     }'
12581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12582 # Check for a 64-bit object if we didn't find anything.
12583 if test -z "$aix_libpath"; then
12584   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12585 fi
12586 fi
12587 rm -f core conftest.err conftest.$ac_objext \
12588     conftest$ac_exeext conftest.$ac_ext
12589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12590
12591           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12592
12593           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"
12594         else
12595           if test "$host_cpu" = ia64; then
12596             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12597             allow_undefined_flag_CXX="-z nodefs"
12598             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"
12599           else
12600             # Determine the default libpath from the value encoded in an
12601             # empty executable.
12602             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h.  */
12604
12605 int
12606 main ()
12607 {
12608
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_cxx_try_link "$LINENO"; then :
12614
12615 lt_aix_libpath_sed='
12616     /Import File Strings/,/^$/ {
12617         /^0/ {
12618             s/^0  *\(.*\)$/\1/
12619             p
12620         }
12621     }'
12622 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12623 # Check for a 64-bit object if we didn't find anything.
12624 if test -z "$aix_libpath"; then
12625   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12626 fi
12627 fi
12628 rm -f core conftest.err conftest.$ac_objext \
12629     conftest$ac_exeext conftest.$ac_ext
12630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12631
12632             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12633             # Warning - without using the other run time loading flags,
12634             # -berok will link without error, but may produce a broken library.
12635             no_undefined_flag_CXX=' ${wl}-bernotok'
12636             allow_undefined_flag_CXX=' ${wl}-berok'
12637             if test "$with_gnu_ld" = yes; then
12638               # We only use this code for GNU lds that support --whole-archive.
12639               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12640             else
12641               # Exported symbols can be pulled into shared objects from archives
12642               whole_archive_flag_spec_CXX='$convenience'
12643             fi
12644             archive_cmds_need_lc_CXX=yes
12645             # This is similar to how AIX traditionally builds its shared
12646             # libraries.
12647             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'
12648           fi
12649         fi
12650         ;;
12651
12652       beos*)
12653         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12654           allow_undefined_flag_CXX=unsupported
12655           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12656           # support --undefined.  This deserves some investigation.  FIXME
12657           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12658         else
12659           ld_shlibs_CXX=no
12660         fi
12661         ;;
12662
12663       chorus*)
12664         case $cc_basename in
12665           *)
12666           # FIXME: insert proper C++ library support
12667           ld_shlibs_CXX=no
12668           ;;
12669         esac
12670         ;;
12671
12672       cygwin* | mingw* | pw32* | cegcc*)
12673         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12674         # as there is no search path for DLLs.
12675         hardcode_libdir_flag_spec_CXX='-L$libdir'
12676         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12677         allow_undefined_flag_CXX=unsupported
12678         always_export_symbols_CXX=no
12679         enable_shared_with_static_runtimes_CXX=yes
12680
12681         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12682           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'
12683           # If the export-symbols file already is a .def file (1st line
12684           # is EXPORTS), use it as is; otherwise, prepend...
12685           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12686             cp $export_symbols $output_objdir/$soname.def;
12687           else
12688             echo EXPORTS > $output_objdir/$soname.def;
12689             cat $export_symbols >> $output_objdir/$soname.def;
12690           fi~
12691           $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'
12692         else
12693           ld_shlibs_CXX=no
12694         fi
12695         ;;
12696       darwin* | rhapsody*)
12697
12698
12699   archive_cmds_need_lc_CXX=no
12700   hardcode_direct_CXX=no
12701   hardcode_automatic_CXX=yes
12702   hardcode_shlibpath_var_CXX=unsupported
12703   if test "$lt_cv_ld_force_load" = "yes"; then
12704     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\"`'
12705   else
12706     whole_archive_flag_spec_CXX=''
12707   fi
12708   link_all_deplibs_CXX=yes
12709   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12710   case $cc_basename in
12711      ifort*) _lt_dar_can_shared=yes ;;
12712      *) _lt_dar_can_shared=$GCC ;;
12713   esac
12714   if test "$_lt_dar_can_shared" = "yes"; then
12715     output_verbose_link_cmd=func_echo_all
12716     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}"
12717     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12718     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}"
12719     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}"
12720        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12721       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}"
12722       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}"
12723     fi
12724
12725   else
12726   ld_shlibs_CXX=no
12727   fi
12728
12729         ;;
12730
12731       dgux*)
12732         case $cc_basename in
12733           ec++*)
12734             # FIXME: insert proper C++ library support
12735             ld_shlibs_CXX=no
12736             ;;
12737           ghcx*)
12738             # Green Hills C++ Compiler
12739             # FIXME: insert proper C++ library support
12740             ld_shlibs_CXX=no
12741             ;;
12742           *)
12743             # FIXME: insert proper C++ library support
12744             ld_shlibs_CXX=no
12745             ;;
12746         esac
12747         ;;
12748
12749       freebsd[12]*)
12750         # C++ shared libraries reported to be fairly broken before
12751         # switch to ELF
12752         ld_shlibs_CXX=no
12753         ;;
12754
12755       freebsd-elf*)
12756         archive_cmds_need_lc_CXX=no
12757         ;;
12758
12759       freebsd* | dragonfly*)
12760         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12761         # conventions
12762         ld_shlibs_CXX=yes
12763         ;;
12764
12765       gnu*)
12766         ;;
12767
12768       haiku*)
12769         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12770         link_all_deplibs_CXX=yes
12771         ;;
12772
12773       hpux9*)
12774         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12775         hardcode_libdir_separator_CXX=:
12776         export_dynamic_flag_spec_CXX='${wl}-E'
12777         hardcode_direct_CXX=yes
12778         hardcode_minus_L_CXX=yes # Not in the search PATH,
12779                                              # but as the default
12780                                              # location of the library.
12781
12782         case $cc_basename in
12783           CC*)
12784             # FIXME: insert proper C++ library support
12785             ld_shlibs_CXX=no
12786             ;;
12787           aCC*)
12788             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'
12789             # Commands to make compiler produce verbose output that lists
12790             # what "hidden" libraries, object files and flags are used when
12791             # linking a shared library.
12792             #
12793             # There doesn't appear to be a way to prevent this compiler from
12794             # explicitly linking system object files so we need to strip them
12795             # from the output so that they don't get included in the library
12796             # dependencies.
12797             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"'
12798             ;;
12799           *)
12800             if test "$GXX" = yes; then
12801               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12802             else
12803               # FIXME: insert proper C++ library support
12804               ld_shlibs_CXX=no
12805             fi
12806             ;;
12807         esac
12808         ;;
12809
12810       hpux10*|hpux11*)
12811         if test $with_gnu_ld = no; then
12812           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12813           hardcode_libdir_separator_CXX=:
12814
12815           case $host_cpu in
12816             hppa*64*|ia64*)
12817               ;;
12818             *)
12819               export_dynamic_flag_spec_CXX='${wl}-E'
12820               ;;
12821           esac
12822         fi
12823         case $host_cpu in
12824           hppa*64*|ia64*)
12825             hardcode_direct_CXX=no
12826             hardcode_shlibpath_var_CXX=no
12827             ;;
12828           *)
12829             hardcode_direct_CXX=yes
12830             hardcode_direct_absolute_CXX=yes
12831             hardcode_minus_L_CXX=yes # Not in the search PATH,
12832                                                  # but as the default
12833                                                  # location of the library.
12834             ;;
12835         esac
12836
12837         case $cc_basename in
12838           CC*)
12839             # FIXME: insert proper C++ library support
12840             ld_shlibs_CXX=no
12841             ;;
12842           aCC*)
12843             case $host_cpu in
12844               hppa*64*)
12845                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12846                 ;;
12847               ia64*)
12848                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849                 ;;
12850               *)
12851                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12852                 ;;
12853             esac
12854             # Commands to make compiler produce verbose output that lists
12855             # what "hidden" libraries, object files and flags are used when
12856             # linking a shared library.
12857             #
12858             # There doesn't appear to be a way to prevent this compiler from
12859             # explicitly linking system object files so we need to strip them
12860             # from the output so that they don't get included in the library
12861             # dependencies.
12862             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"'
12863             ;;
12864           *)
12865             if test "$GXX" = yes; then
12866               if test $with_gnu_ld = no; then
12867                 case $host_cpu in
12868                   hppa*64*)
12869                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12870                     ;;
12871                   ia64*)
12872                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873                     ;;
12874                   *)
12875                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876                     ;;
12877                 esac
12878               fi
12879             else
12880               # FIXME: insert proper C++ library support
12881               ld_shlibs_CXX=no
12882             fi
12883             ;;
12884         esac
12885         ;;
12886
12887       interix[3-9]*)
12888         hardcode_direct_CXX=no
12889         hardcode_shlibpath_var_CXX=no
12890         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12891         export_dynamic_flag_spec_CXX='${wl}-E'
12892         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12893         # Instead, shared libraries are loaded at an image base (0x10000000 by
12894         # default) and relocated if they conflict, which is a slow very memory
12895         # consuming and fragmenting process.  To avoid this, we pick a random,
12896         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12897         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12898         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'
12899         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'
12900         ;;
12901       irix5* | irix6*)
12902         case $cc_basename in
12903           CC*)
12904             # SGI C++
12905             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'
12906
12907             # Archives containing C++ object files must be created using
12908             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12909             # necessary to make sure instantiated templates are included
12910             # in the archive.
12911             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12912             ;;
12913           *)
12914             if test "$GXX" = yes; then
12915               if test "$with_gnu_ld" = no; then
12916                 archive_cmds_CXX='$CC -shared -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'
12917               else
12918                 archive_cmds_CXX='$CC -shared -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'
12919               fi
12920             fi
12921             link_all_deplibs_CXX=yes
12922             ;;
12923         esac
12924         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12925         hardcode_libdir_separator_CXX=:
12926         inherit_rpath_CXX=yes
12927         ;;
12928
12929       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12930         case $cc_basename in
12931           KCC*)
12932             # Kuck and Associates, Inc. (KAI) C++ Compiler
12933
12934             # KCC will only create a shared library if the output file
12935             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12936             # to its proper name (with version) after linking.
12937             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'
12938             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'
12939             # Commands to make compiler produce verbose output that lists
12940             # what "hidden" libraries, object files and flags are used when
12941             # linking a shared library.
12942             #
12943             # There doesn't appear to be a way to prevent this compiler from
12944             # explicitly linking system object files so we need to strip them
12945             # from the output so that they don't get included in the library
12946             # dependencies.
12947             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"'
12948
12949             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12950             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12951
12952             # Archives containing C++ object files must be created using
12953             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12954             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12955             ;;
12956           icpc* | ecpc* )
12957             # Intel C++
12958             with_gnu_ld=yes
12959             # version 8.0 and above of icpc choke on multiply defined symbols
12960             # if we add $predep_objects and $postdep_objects, however 7.1 and
12961             # earlier do not add the objects themselves.
12962             case `$CC -V 2>&1` in
12963               *"Version 7."*)
12964                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12965                 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'
12966                 ;;
12967               *)  # Version 8.0 or newer
12968                 tmp_idyn=
12969                 case $host_cpu in
12970                   ia64*) tmp_idyn=' -i_dynamic';;
12971                 esac
12972                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12973                 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'
12974                 ;;
12975             esac
12976             archive_cmds_need_lc_CXX=no
12977             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12978             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12979             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12980             ;;
12981           pgCC* | pgcpp*)
12982             # Portland Group C++ compiler
12983             case `$CC -V` in
12984             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12985               prelink_cmds_CXX='tpldir=Template.dir~
12986                 rm -rf $tpldir~
12987                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12988                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12989               old_archive_cmds_CXX='tpldir=Template.dir~
12990                 rm -rf $tpldir~
12991                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12992                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12993                 $RANLIB $oldlib'
12994               archive_cmds_CXX='tpldir=Template.dir~
12995                 rm -rf $tpldir~
12996                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12997                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12998               archive_expsym_cmds_CXX='tpldir=Template.dir~
12999                 rm -rf $tpldir~
13000                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13001                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13002               ;;
13003             *) # Version 6 and above use weak symbols
13004               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13005               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'
13006               ;;
13007             esac
13008
13009             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13010             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13011             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'
13012             ;;
13013           cxx*)
13014             # Compaq C++
13015             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016             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'
13017
13018             runpath_var=LD_RUN_PATH
13019             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13020             hardcode_libdir_separator_CXX=:
13021
13022             # Commands to make compiler produce verbose output that lists
13023             # what "hidden" libraries, object files and flags are used when
13024             # linking a shared library.
13025             #
13026             # There doesn't appear to be a way to prevent this compiler from
13027             # explicitly linking system object files so we need to strip them
13028             # from the output so that they don't get included in the library
13029             # dependencies.
13030             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'
13031             ;;
13032           xl* | mpixl* | bgxl*)
13033             # IBM XL 8.0 on PPC, with GNU ld
13034             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13035             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13036             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13037             if test "x$supports_anon_versioning" = xyes; then
13038               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13039                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13040                 echo "local: *; };" >> $output_objdir/$libname.ver~
13041                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13042             fi
13043             ;;
13044           *)
13045             case `$CC -V 2>&1 | sed 5q` in
13046             *Sun\ C*)
13047               # Sun C++ 5.9
13048               no_undefined_flag_CXX=' -zdefs'
13049               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13050               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'
13051               hardcode_libdir_flag_spec_CXX='-R$libdir'
13052               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'
13053               compiler_needs_object_CXX=yes
13054
13055               # Not sure whether something based on
13056               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13057               # would be better.
13058               output_verbose_link_cmd='func_echo_all'
13059
13060               # Archives containing C++ object files must be created using
13061               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13062               # necessary to make sure instantiated templates are included
13063               # in the archive.
13064               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13065               ;;
13066             esac
13067             ;;
13068         esac
13069         ;;
13070
13071       lynxos*)
13072         # FIXME: insert proper C++ library support
13073         ld_shlibs_CXX=no
13074         ;;
13075
13076       m88k*)
13077         # FIXME: insert proper C++ library support
13078         ld_shlibs_CXX=no
13079         ;;
13080
13081       mvs*)
13082         case $cc_basename in
13083           cxx*)
13084             # FIXME: insert proper C++ library support
13085             ld_shlibs_CXX=no
13086             ;;
13087           *)
13088             # FIXME: insert proper C++ library support
13089             ld_shlibs_CXX=no
13090             ;;
13091         esac
13092         ;;
13093
13094       netbsd*)
13095         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13096           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13097           wlarc=
13098           hardcode_libdir_flag_spec_CXX='-R$libdir'
13099           hardcode_direct_CXX=yes
13100           hardcode_shlibpath_var_CXX=no
13101         fi
13102         # Workaround some broken pre-1.5 toolchains
13103         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13104         ;;
13105
13106       *nto* | *qnx*)
13107         ld_shlibs_CXX=yes
13108         ;;
13109
13110       openbsd2*)
13111         # C++ shared libraries are fairly broken
13112         ld_shlibs_CXX=no
13113         ;;
13114
13115       openbsd*)
13116         if test -f /usr/libexec/ld.so; then
13117           hardcode_direct_CXX=yes
13118           hardcode_shlibpath_var_CXX=no
13119           hardcode_direct_absolute_CXX=yes
13120           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13121           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13122           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13123             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13124             export_dynamic_flag_spec_CXX='${wl}-E'
13125             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13126           fi
13127           output_verbose_link_cmd=func_echo_all
13128         else
13129           ld_shlibs_CXX=no
13130         fi
13131         ;;
13132
13133       osf3* | osf4* | osf5*)
13134         case $cc_basename in
13135           KCC*)
13136             # Kuck and Associates, Inc. (KAI) C++ Compiler
13137
13138             # KCC will only create a shared library if the output file
13139             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13140             # to its proper name (with version) after linking.
13141             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'
13142
13143             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13144             hardcode_libdir_separator_CXX=:
13145
13146             # Archives containing C++ object files must be created using
13147             # the KAI C++ compiler.
13148             case $host in
13149               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13150               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13151             esac
13152             ;;
13153           RCC*)
13154             # Rational C++ 2.4.1
13155             # FIXME: insert proper C++ library support
13156             ld_shlibs_CXX=no
13157             ;;
13158           cxx*)
13159             case $host in
13160               osf3*)
13161                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13162                 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'
13163                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13164                 ;;
13165               *)
13166                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13167                 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'
13168                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13169                   echo "-hidden">> $lib.exp~
13170                   $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~
13171                   $RM $lib.exp'
13172                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13173                 ;;
13174             esac
13175
13176             hardcode_libdir_separator_CXX=:
13177
13178             # Commands to make compiler produce verbose output that lists
13179             # what "hidden" libraries, object files and flags are used when
13180             # linking a shared library.
13181             #
13182             # There doesn't appear to be a way to prevent this compiler from
13183             # explicitly linking system object files so we need to strip them
13184             # from the output so that they don't get included in the library
13185             # dependencies.
13186             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"'
13187             ;;
13188           *)
13189             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13190               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13191               case $host in
13192                 osf3*)
13193                   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'
13194                   ;;
13195                 *)
13196                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13197                   ;;
13198               esac
13199
13200               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13201               hardcode_libdir_separator_CXX=:
13202
13203               # Commands to make compiler produce verbose output that lists
13204               # what "hidden" libraries, object files and flags are used when
13205               # linking a shared library.
13206               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13207
13208             else
13209               # FIXME: insert proper C++ library support
13210               ld_shlibs_CXX=no
13211             fi
13212             ;;
13213         esac
13214         ;;
13215
13216       psos*)
13217         # FIXME: insert proper C++ library support
13218         ld_shlibs_CXX=no
13219         ;;
13220
13221       sunos4*)
13222         case $cc_basename in
13223           CC*)
13224             # Sun C++ 4.x
13225             # FIXME: insert proper C++ library support
13226             ld_shlibs_CXX=no
13227             ;;
13228           lcc*)
13229             # Lucid
13230             # FIXME: insert proper C++ library support
13231             ld_shlibs_CXX=no
13232             ;;
13233           *)
13234             # FIXME: insert proper C++ library support
13235             ld_shlibs_CXX=no
13236             ;;
13237         esac
13238         ;;
13239
13240       solaris*)
13241         case $cc_basename in
13242           CC*)
13243             # Sun C++ 4.2, 5.x and Centerline C++
13244             archive_cmds_need_lc_CXX=yes
13245             no_undefined_flag_CXX=' -zdefs'
13246             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13247             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13248               $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'
13249
13250             hardcode_libdir_flag_spec_CXX='-R$libdir'
13251             hardcode_shlibpath_var_CXX=no
13252             case $host_os in
13253               solaris2.[0-5] | solaris2.[0-5].*) ;;
13254               *)
13255                 # The compiler driver will combine and reorder linker options,
13256                 # but understands `-z linker_flag'.
13257                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13258                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13259                 ;;
13260             esac
13261             link_all_deplibs_CXX=yes
13262
13263             output_verbose_link_cmd='func_echo_all'
13264
13265             # Archives containing C++ object files must be created using
13266             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13267             # necessary to make sure instantiated templates are included
13268             # in the archive.
13269             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13270             ;;
13271           gcx*)
13272             # Green Hills C++ Compiler
13273             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13274
13275             # The C++ compiler must be used to create the archive.
13276             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13277             ;;
13278           *)
13279             # GNU C++ compiler with Solaris linker
13280             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13281               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13282               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13283                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13284                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13285                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13286
13287                 # Commands to make compiler produce verbose output that lists
13288                 # what "hidden" libraries, object files and flags are used when
13289                 # linking a shared library.
13290                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13291               else
13292                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13293                 # platform.
13294                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13295                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13296                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13297
13298                 # Commands to make compiler produce verbose output that lists
13299                 # what "hidden" libraries, object files and flags are used when
13300                 # linking a shared library.
13301                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13302               fi
13303
13304               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13305               case $host_os in
13306                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13307                 *)
13308                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13309                   ;;
13310               esac
13311             fi
13312             ;;
13313         esac
13314         ;;
13315
13316     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13317       no_undefined_flag_CXX='${wl}-z,text'
13318       archive_cmds_need_lc_CXX=no
13319       hardcode_shlibpath_var_CXX=no
13320       runpath_var='LD_RUN_PATH'
13321
13322       case $cc_basename in
13323         CC*)
13324           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13325           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326           ;;
13327         *)
13328           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330           ;;
13331       esac
13332       ;;
13333
13334       sysv5* | sco3.2v5* | sco5v6*)
13335         # Note: We can NOT use -z defs as we might desire, because we do not
13336         # link with -lc, and that would cause any symbols used from libc to
13337         # always be unresolved, which means just about no library would
13338         # ever link correctly.  If we're not using GNU ld we use -z text
13339         # though, which does catch some bad symbols but isn't as heavy-handed
13340         # as -z defs.
13341         no_undefined_flag_CXX='${wl}-z,text'
13342         allow_undefined_flag_CXX='${wl}-z,nodefs'
13343         archive_cmds_need_lc_CXX=no
13344         hardcode_shlibpath_var_CXX=no
13345         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13346         hardcode_libdir_separator_CXX=':'
13347         link_all_deplibs_CXX=yes
13348         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13349         runpath_var='LD_RUN_PATH'
13350
13351         case $cc_basename in
13352           CC*)
13353             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13354             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13355             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13356               '"$old_archive_cmds_CXX"
13357             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13358               '"$reload_cmds_CXX"
13359             ;;
13360           *)
13361             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13362             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13363             ;;
13364         esac
13365       ;;
13366
13367       tandem*)
13368         case $cc_basename in
13369           NCC*)
13370             # NonStop-UX NCC 3.20
13371             # FIXME: insert proper C++ library support
13372             ld_shlibs_CXX=no
13373             ;;
13374           *)
13375             # FIXME: insert proper C++ library support
13376             ld_shlibs_CXX=no
13377             ;;
13378         esac
13379         ;;
13380
13381       vxworks*)
13382         # FIXME: insert proper C++ library support
13383         ld_shlibs_CXX=no
13384         ;;
13385
13386       *)
13387         # FIXME: insert proper C++ library support
13388         ld_shlibs_CXX=no
13389         ;;
13390     esac
13391
13392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13393 $as_echo "$ld_shlibs_CXX" >&6; }
13394     test "$ld_shlibs_CXX" = no && can_build_shared=no
13395
13396     GCC_CXX="$GXX"
13397     LD_CXX="$LD"
13398
13399     ## CAVEAT EMPTOR:
13400     ## There is no encapsulation within the following macros, do not change
13401     ## the running order or otherwise move them around unless you know exactly
13402     ## what you are doing...
13403     # Dependencies to place before and after the object being linked:
13404 predep_objects_CXX=
13405 postdep_objects_CXX=
13406 predeps_CXX=
13407 postdeps_CXX=
13408 compiler_lib_search_path_CXX=
13409
13410 cat > conftest.$ac_ext <<_LT_EOF
13411 class Foo
13412 {
13413 public:
13414   Foo (void) { a = 0; }
13415 private:
13416   int a;
13417 };
13418 _LT_EOF
13419
13420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13421   (eval $ac_compile) 2>&5
13422   ac_status=$?
13423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13424   test $ac_status = 0; }; then
13425   # Parse the compiler output and extract the necessary
13426   # objects, libraries and library flags.
13427
13428   # Sentinel used to keep track of whether or not we are before
13429   # the conftest object file.
13430   pre_test_object_deps_done=no
13431
13432   for p in `eval "$output_verbose_link_cmd"`; do
13433     case $p in
13434
13435     -L* | -R* | -l*)
13436        # Some compilers place space between "-{L,R}" and the path.
13437        # Remove the space.
13438        if test $p = "-L" ||
13439           test $p = "-R"; then
13440          prev=$p
13441          continue
13442        else
13443          prev=
13444        fi
13445
13446        if test "$pre_test_object_deps_done" = no; then
13447          case $p in
13448          -L* | -R*)
13449            # Internal compiler library paths should come after those
13450            # provided the user.  The postdeps already come after the
13451            # user supplied libs so there is no need to process them.
13452            if test -z "$compiler_lib_search_path_CXX"; then
13453              compiler_lib_search_path_CXX="${prev}${p}"
13454            else
13455              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13456            fi
13457            ;;
13458          # The "-l" case would never come before the object being
13459          # linked, so don't bother handling this case.
13460          esac
13461        else
13462          if test -z "$postdeps_CXX"; then
13463            postdeps_CXX="${prev}${p}"
13464          else
13465            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13466          fi
13467        fi
13468        ;;
13469
13470     *.$objext)
13471        # This assumes that the test object file only shows up
13472        # once in the compiler output.
13473        if test "$p" = "conftest.$objext"; then
13474          pre_test_object_deps_done=yes
13475          continue
13476        fi
13477
13478        if test "$pre_test_object_deps_done" = no; then
13479          if test -z "$predep_objects_CXX"; then
13480            predep_objects_CXX="$p"
13481          else
13482            predep_objects_CXX="$predep_objects_CXX $p"
13483          fi
13484        else
13485          if test -z "$postdep_objects_CXX"; then
13486            postdep_objects_CXX="$p"
13487          else
13488            postdep_objects_CXX="$postdep_objects_CXX $p"
13489          fi
13490        fi
13491        ;;
13492
13493     *) ;; # Ignore the rest.
13494
13495     esac
13496   done
13497
13498   # Clean up.
13499   rm -f a.out a.exe
13500 else
13501   echo "libtool.m4: error: problem compiling CXX test program"
13502 fi
13503
13504 $RM -f confest.$objext
13505
13506 # PORTME: override above test on systems where it is broken
13507 case $host_os in
13508 interix[3-9]*)
13509   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13510   # hack all around it, let's just trust "g++" to DTRT.
13511   predep_objects_CXX=
13512   postdep_objects_CXX=
13513   postdeps_CXX=
13514   ;;
13515
13516 linux*)
13517   case `$CC -V 2>&1 | sed 5q` in
13518   *Sun\ C*)
13519     # Sun C++ 5.9
13520
13521     # The more standards-conforming stlport4 library is
13522     # incompatible with the Cstd library. Avoid specifying
13523     # it if it's in CXXFLAGS. Ignore libCrun as
13524     # -library=stlport4 depends on it.
13525     case " $CXX $CXXFLAGS " in
13526     *" -library=stlport4 "*)
13527       solaris_use_stlport4=yes
13528       ;;
13529     esac
13530
13531     if test "$solaris_use_stlport4" != yes; then
13532       postdeps_CXX='-library=Cstd -library=Crun'
13533     fi
13534     ;;
13535   esac
13536   ;;
13537
13538 solaris*)
13539   case $cc_basename in
13540   CC*)
13541     # The more standards-conforming stlport4 library is
13542     # incompatible with the Cstd library. Avoid specifying
13543     # it if it's in CXXFLAGS. Ignore libCrun as
13544     # -library=stlport4 depends on it.
13545     case " $CXX $CXXFLAGS " in
13546     *" -library=stlport4 "*)
13547       solaris_use_stlport4=yes
13548       ;;
13549     esac
13550
13551     # Adding this requires a known-good setup of shared libraries for
13552     # Sun compiler versions before 5.6, else PIC objects from an old
13553     # archive will be linked into the output, leading to subtle bugs.
13554     if test "$solaris_use_stlport4" != yes; then
13555       postdeps_CXX='-library=Cstd -library=Crun'
13556     fi
13557     ;;
13558   esac
13559   ;;
13560 esac
13561
13562
13563 case " $postdeps_CXX " in
13564 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13565 esac
13566  compiler_lib_search_dirs_CXX=
13567 if test -n "${compiler_lib_search_path_CXX}"; then
13568  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13569 fi
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601     lt_prog_compiler_wl_CXX=
13602 lt_prog_compiler_pic_CXX=
13603 lt_prog_compiler_static_CXX=
13604
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13607
13608   # C++ specific cases for pic, static, wl, etc.
13609   if test "$GXX" = yes; then
13610     lt_prog_compiler_wl_CXX='-Wl,'
13611     lt_prog_compiler_static_CXX='-static'
13612
13613     case $host_os in
13614     aix*)
13615       # All AIX code is PIC.
13616       if test "$host_cpu" = ia64; then
13617         # AIX 5 now supports IA64 processor
13618         lt_prog_compiler_static_CXX='-Bstatic'
13619       fi
13620       ;;
13621
13622     amigaos*)
13623       case $host_cpu in
13624       powerpc)
13625             # see comment about AmigaOS4 .so support
13626             lt_prog_compiler_pic_CXX='-fPIC'
13627         ;;
13628       m68k)
13629             # FIXME: we need at least 68020 code to build shared libraries, but
13630             # adding the `-m68020' flag to GCC prevents building anything better,
13631             # like `-m68040'.
13632             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13633         ;;
13634       esac
13635       ;;
13636
13637     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13638       # PIC is the default for these OSes.
13639       ;;
13640     mingw* | cygwin* | os2* | pw32* | cegcc*)
13641       # This hack is so that the source file can tell whether it is being
13642       # built for inclusion in a dll (and should export symbols for example).
13643       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13644       # (--disable-auto-import) libraries
13645       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13646       ;;
13647     darwin* | rhapsody*)
13648       # PIC is the default on this platform
13649       # Common symbols not allowed in MH_DYLIB files
13650       lt_prog_compiler_pic_CXX='-fno-common'
13651       ;;
13652     *djgpp*)
13653       # DJGPP does not support shared libraries at all
13654       lt_prog_compiler_pic_CXX=
13655       ;;
13656     haiku*)
13657       # PIC is the default for Haiku.
13658       # The "-static" flag exists, but is broken.
13659       lt_prog_compiler_static_CXX=
13660       ;;
13661     interix[3-9]*)
13662       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13663       # Instead, we relocate shared libraries at runtime.
13664       ;;
13665     sysv4*MP*)
13666       if test -d /usr/nec; then
13667         lt_prog_compiler_pic_CXX=-Kconform_pic
13668       fi
13669       ;;
13670     hpux*)
13671       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13672       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13673       # sets the default TLS model and affects inlining.
13674       case $host_cpu in
13675       hppa*64*)
13676         ;;
13677       *)
13678         lt_prog_compiler_pic_CXX='-fPIC'
13679         ;;
13680       esac
13681       ;;
13682     *qnx* | *nto*)
13683       # QNX uses GNU C++, but need to define -shared option too, otherwise
13684       # it will coredump.
13685       lt_prog_compiler_pic_CXX='-fPIC -shared'
13686       ;;
13687     *)
13688       lt_prog_compiler_pic_CXX='-fPIC'
13689       ;;
13690     esac
13691   else
13692     case $host_os in
13693       aix[4-9]*)
13694         # All AIX code is PIC.
13695         if test "$host_cpu" = ia64; then
13696           # AIX 5 now supports IA64 processor
13697           lt_prog_compiler_static_CXX='-Bstatic'
13698         else
13699           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13700         fi
13701         ;;
13702       chorus*)
13703         case $cc_basename in
13704         cxch68*)
13705           # Green Hills C++ Compiler
13706           # _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"
13707           ;;
13708         esac
13709         ;;
13710       dgux*)
13711         case $cc_basename in
13712           ec++*)
13713             lt_prog_compiler_pic_CXX='-KPIC'
13714             ;;
13715           ghcx*)
13716             # Green Hills C++ Compiler
13717             lt_prog_compiler_pic_CXX='-pic'
13718             ;;
13719           *)
13720             ;;
13721         esac
13722         ;;
13723       freebsd* | dragonfly*)
13724         # FreeBSD uses GNU C++
13725         ;;
13726       hpux9* | hpux10* | hpux11*)
13727         case $cc_basename in
13728           CC*)
13729             lt_prog_compiler_wl_CXX='-Wl,'
13730             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13731             if test "$host_cpu" != ia64; then
13732               lt_prog_compiler_pic_CXX='+Z'
13733             fi
13734             ;;
13735           aCC*)
13736             lt_prog_compiler_wl_CXX='-Wl,'
13737             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13738             case $host_cpu in
13739             hppa*64*|ia64*)
13740               # +Z the default
13741               ;;
13742             *)
13743               lt_prog_compiler_pic_CXX='+Z'
13744               ;;
13745             esac
13746             ;;
13747           *)
13748             ;;
13749         esac
13750         ;;
13751       interix*)
13752         # This is c89, which is MS Visual C++ (no shared libs)
13753         # Anyone wants to do a port?
13754         ;;
13755       irix5* | irix6* | nonstopux*)
13756         case $cc_basename in
13757           CC*)
13758             lt_prog_compiler_wl_CXX='-Wl,'
13759             lt_prog_compiler_static_CXX='-non_shared'
13760             # CC pic flag -KPIC is the default.
13761             ;;
13762           *)
13763             ;;
13764         esac
13765         ;;
13766       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13767         case $cc_basename in
13768           KCC*)
13769             # KAI C++ Compiler
13770             lt_prog_compiler_wl_CXX='--backend -Wl,'
13771             lt_prog_compiler_pic_CXX='-fPIC'
13772             ;;
13773           ecpc* )
13774             # old Intel C++ for x86_64 which still supported -KPIC.
13775             lt_prog_compiler_wl_CXX='-Wl,'
13776             lt_prog_compiler_pic_CXX='-KPIC'
13777             lt_prog_compiler_static_CXX='-static'
13778             ;;
13779           icpc* )
13780             # Intel C++, used to be incompatible with GCC.
13781             # ICC 10 doesn't accept -KPIC any more.
13782             lt_prog_compiler_wl_CXX='-Wl,'
13783             lt_prog_compiler_pic_CXX='-fPIC'
13784             lt_prog_compiler_static_CXX='-static'
13785             ;;
13786           pgCC* | pgcpp*)
13787             # Portland Group C++ compiler
13788             lt_prog_compiler_wl_CXX='-Wl,'
13789             lt_prog_compiler_pic_CXX='-fpic'
13790             lt_prog_compiler_static_CXX='-Bstatic'
13791             ;;
13792           cxx*)
13793             # Compaq C++
13794             # Make sure the PIC flag is empty.  It appears that all Alpha
13795             # Linux and Compaq Tru64 Unix objects are PIC.
13796             lt_prog_compiler_pic_CXX=
13797             lt_prog_compiler_static_CXX='-non_shared'
13798             ;;
13799           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13800             # IBM XL 8.0, 9.0 on PPC and BlueGene
13801             lt_prog_compiler_wl_CXX='-Wl,'
13802             lt_prog_compiler_pic_CXX='-qpic'
13803             lt_prog_compiler_static_CXX='-qstaticlink'
13804             ;;
13805           *)
13806             case `$CC -V 2>&1 | sed 5q` in
13807             *Sun\ C*)
13808               # Sun C++ 5.9
13809               lt_prog_compiler_pic_CXX='-KPIC'
13810               lt_prog_compiler_static_CXX='-Bstatic'
13811               lt_prog_compiler_wl_CXX='-Qoption ld '
13812               ;;
13813             esac
13814             ;;
13815         esac
13816         ;;
13817       lynxos*)
13818         ;;
13819       m88k*)
13820         ;;
13821       mvs*)
13822         case $cc_basename in
13823           cxx*)
13824             lt_prog_compiler_pic_CXX='-W c,exportall'
13825             ;;
13826           *)
13827             ;;
13828         esac
13829         ;;
13830       netbsd*)
13831         ;;
13832       *qnx* | *nto*)
13833         # QNX uses GNU C++, but need to define -shared option too, otherwise
13834         # it will coredump.
13835         lt_prog_compiler_pic_CXX='-fPIC -shared'
13836         ;;
13837       osf3* | osf4* | osf5*)
13838         case $cc_basename in
13839           KCC*)
13840             lt_prog_compiler_wl_CXX='--backend -Wl,'
13841             ;;
13842           RCC*)
13843             # Rational C++ 2.4.1
13844             lt_prog_compiler_pic_CXX='-pic'
13845             ;;
13846           cxx*)
13847             # Digital/Compaq C++
13848             lt_prog_compiler_wl_CXX='-Wl,'
13849             # Make sure the PIC flag is empty.  It appears that all Alpha
13850             # Linux and Compaq Tru64 Unix objects are PIC.
13851             lt_prog_compiler_pic_CXX=
13852             lt_prog_compiler_static_CXX='-non_shared'
13853             ;;
13854           *)
13855             ;;
13856         esac
13857         ;;
13858       psos*)
13859         ;;
13860       solaris*)
13861         case $cc_basename in
13862           CC*)
13863             # Sun C++ 4.2, 5.x and Centerline C++
13864             lt_prog_compiler_pic_CXX='-KPIC'
13865             lt_prog_compiler_static_CXX='-Bstatic'
13866             lt_prog_compiler_wl_CXX='-Qoption ld '
13867             ;;
13868           gcx*)
13869             # Green Hills C++ Compiler
13870             lt_prog_compiler_pic_CXX='-PIC'
13871             ;;
13872           *)
13873             ;;
13874         esac
13875         ;;
13876       sunos4*)
13877         case $cc_basename in
13878           CC*)
13879             # Sun C++ 4.x
13880             lt_prog_compiler_pic_CXX='-pic'
13881             lt_prog_compiler_static_CXX='-Bstatic'
13882             ;;
13883           lcc*)
13884             # Lucid
13885             lt_prog_compiler_pic_CXX='-pic'
13886             ;;
13887           *)
13888             ;;
13889         esac
13890         ;;
13891       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13892         case $cc_basename in
13893           CC*)
13894             lt_prog_compiler_wl_CXX='-Wl,'
13895             lt_prog_compiler_pic_CXX='-KPIC'
13896             lt_prog_compiler_static_CXX='-Bstatic'
13897             ;;
13898         esac
13899         ;;
13900       tandem*)
13901         case $cc_basename in
13902           NCC*)
13903             # NonStop-UX NCC 3.20
13904             lt_prog_compiler_pic_CXX='-KPIC'
13905             ;;
13906           *)
13907             ;;
13908         esac
13909         ;;
13910       vxworks*)
13911         ;;
13912       *)
13913         lt_prog_compiler_can_build_shared_CXX=no
13914         ;;
13915     esac
13916   fi
13917
13918 case $host_os in
13919   # For platforms which do not support PIC, -DPIC is meaningless:
13920   *djgpp*)
13921     lt_prog_compiler_pic_CXX=
13922     ;;
13923   *)
13924     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13925     ;;
13926 esac
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13928 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13929
13930
13931
13932 #
13933 # Check to make sure the PIC flag actually works.
13934 #
13935 if test -n "$lt_prog_compiler_pic_CXX"; then
13936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13937 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13938 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13939   $as_echo_n "(cached) " >&6
13940 else
13941   lt_cv_prog_compiler_pic_works_CXX=no
13942    ac_outfile=conftest.$ac_objext
13943    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13944    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13945    # Insert the option either (1) after the last *FLAGS variable, or
13946    # (2) before a word containing "conftest.", or (3) at the end.
13947    # Note that $ac_compile itself does not contain backslashes and begins
13948    # with a dollar sign (not a hyphen), so the echo should work correctly.
13949    # The option is referenced via a variable to avoid confusing sed.
13950    lt_compile=`echo "$ac_compile" | $SED \
13951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13953    -e 's:$: $lt_compiler_flag:'`
13954    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13955    (eval "$lt_compile" 2>conftest.err)
13956    ac_status=$?
13957    cat conftest.err >&5
13958    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959    if (exit $ac_status) && test -s "$ac_outfile"; then
13960      # The compiler can only warn and ignore the option if not recognized
13961      # So say no if there are warnings other than the usual output.
13962      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13963      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13964      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13965        lt_cv_prog_compiler_pic_works_CXX=yes
13966      fi
13967    fi
13968    $RM conftest*
13969
13970 fi
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13972 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13973
13974 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13975     case $lt_prog_compiler_pic_CXX in
13976      "" | " "*) ;;
13977      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13978      esac
13979 else
13980     lt_prog_compiler_pic_CXX=
13981      lt_prog_compiler_can_build_shared_CXX=no
13982 fi
13983
13984 fi
13985
13986
13987
13988 #
13989 # Check to make sure the static flag actually works.
13990 #
13991 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13993 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13994 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13995   $as_echo_n "(cached) " >&6
13996 else
13997   lt_cv_prog_compiler_static_works_CXX=no
13998    save_LDFLAGS="$LDFLAGS"
13999    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14000    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14001    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14002      # The linker can only warn and ignore the option if not recognized
14003      # So say no if there are warnings
14004      if test -s conftest.err; then
14005        # Append any errors to the config.log.
14006        cat conftest.err 1>&5
14007        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14008        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14009        if diff conftest.exp conftest.er2 >/dev/null; then
14010          lt_cv_prog_compiler_static_works_CXX=yes
14011        fi
14012      else
14013        lt_cv_prog_compiler_static_works_CXX=yes
14014      fi
14015    fi
14016    $RM -r conftest*
14017    LDFLAGS="$save_LDFLAGS"
14018
14019 fi
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14021 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14022
14023 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14024     :
14025 else
14026     lt_prog_compiler_static_CXX=
14027 fi
14028
14029
14030
14031
14032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14033 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14034 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14035   $as_echo_n "(cached) " >&6
14036 else
14037   lt_cv_prog_compiler_c_o_CXX=no
14038    $RM -r conftest 2>/dev/null
14039    mkdir conftest
14040    cd conftest
14041    mkdir out
14042    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14043
14044    lt_compiler_flag="-o out/conftest2.$ac_objext"
14045    # Insert the option either (1) after the last *FLAGS variable, or
14046    # (2) before a word containing "conftest.", or (3) at the end.
14047    # Note that $ac_compile itself does not contain backslashes and begins
14048    # with a dollar sign (not a hyphen), so the echo should work correctly.
14049    lt_compile=`echo "$ac_compile" | $SED \
14050    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14052    -e 's:$: $lt_compiler_flag:'`
14053    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14054    (eval "$lt_compile" 2>out/conftest.err)
14055    ac_status=$?
14056    cat out/conftest.err >&5
14057    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14059    then
14060      # The compiler can only warn and ignore the option if not recognized
14061      # So say no if there are warnings
14062      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14063      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14064      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14065        lt_cv_prog_compiler_c_o_CXX=yes
14066      fi
14067    fi
14068    chmod u+w . 2>&5
14069    $RM conftest*
14070    # SGI C++ compiler will create directory out/ii_files/ for
14071    # template instantiation
14072    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14073    $RM out/* && rmdir out
14074    cd ..
14075    $RM -r conftest
14076    $RM conftest*
14077
14078 fi
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14080 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14081
14082
14083
14084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14086 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14087   $as_echo_n "(cached) " >&6
14088 else
14089   lt_cv_prog_compiler_c_o_CXX=no
14090    $RM -r conftest 2>/dev/null
14091    mkdir conftest
14092    cd conftest
14093    mkdir out
14094    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14095
14096    lt_compiler_flag="-o out/conftest2.$ac_objext"
14097    # Insert the option either (1) after the last *FLAGS variable, or
14098    # (2) before a word containing "conftest.", or (3) at the end.
14099    # Note that $ac_compile itself does not contain backslashes and begins
14100    # with a dollar sign (not a hyphen), so the echo should work correctly.
14101    lt_compile=`echo "$ac_compile" | $SED \
14102    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14104    -e 's:$: $lt_compiler_flag:'`
14105    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14106    (eval "$lt_compile" 2>out/conftest.err)
14107    ac_status=$?
14108    cat out/conftest.err >&5
14109    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14111    then
14112      # The compiler can only warn and ignore the option if not recognized
14113      # So say no if there are warnings
14114      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14115      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14116      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14117        lt_cv_prog_compiler_c_o_CXX=yes
14118      fi
14119    fi
14120    chmod u+w . 2>&5
14121    $RM conftest*
14122    # SGI C++ compiler will create directory out/ii_files/ for
14123    # template instantiation
14124    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14125    $RM out/* && rmdir out
14126    cd ..
14127    $RM -r conftest
14128    $RM conftest*
14129
14130 fi
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14132 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14133
14134
14135
14136
14137 hard_links="nottested"
14138 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14139   # do not overwrite the value of need_locks provided by the user
14140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14141 $as_echo_n "checking if we can lock with hard links... " >&6; }
14142   hard_links=yes
14143   $RM conftest*
14144   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14145   touch conftest.a
14146   ln conftest.a conftest.b 2>&5 || hard_links=no
14147   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14149 $as_echo "$hard_links" >&6; }
14150   if test "$hard_links" = no; then
14151     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14152 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14153     need_locks=warn
14154   fi
14155 else
14156   need_locks=no
14157 fi
14158
14159
14160
14161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14162 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14163
14164   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14165   case $host_os in
14166   aix[4-9]*)
14167     # If we're using GNU nm, then we don't want the "-C" option.
14168     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14169     # Also, AIX nm treats weak defined symbols like other global defined
14170     # symbols, whereas GNU nm marks them as "W".
14171     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14172       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'
14173     else
14174       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'
14175     fi
14176     ;;
14177   pw32*)
14178     export_symbols_cmds_CXX="$ltdll_cmds"
14179   ;;
14180   cygwin* | mingw* | cegcc*)
14181     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14182   ;;
14183   *)
14184     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14185   ;;
14186   esac
14187   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14190 $as_echo "$ld_shlibs_CXX" >&6; }
14191 test "$ld_shlibs_CXX" = no && can_build_shared=no
14192
14193 with_gnu_ld_CXX=$with_gnu_ld
14194
14195
14196
14197
14198
14199
14200 #
14201 # Do we need to explicitly link libc?
14202 #
14203 case "x$archive_cmds_need_lc_CXX" in
14204 x|xyes)
14205   # Assume -lc should be added
14206   archive_cmds_need_lc_CXX=yes
14207
14208   if test "$enable_shared" = yes && test "$GCC" = yes; then
14209     case $archive_cmds_CXX in
14210     *'~'*)
14211       # FIXME: we may have to deal with multi-command sequences.
14212       ;;
14213     '$CC '*)
14214       # Test whether the compiler implicitly links with -lc since on some
14215       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14216       # to ld, don't add -lc before -lgcc.
14217       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14218 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14219 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14220   $as_echo_n "(cached) " >&6
14221 else
14222   $RM conftest*
14223         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14224
14225         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14226   (eval $ac_compile) 2>&5
14227   ac_status=$?
14228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14229   test $ac_status = 0; } 2>conftest.err; then
14230           soname=conftest
14231           lib=conftest
14232           libobjs=conftest.$ac_objext
14233           deplibs=
14234           wl=$lt_prog_compiler_wl_CXX
14235           pic_flag=$lt_prog_compiler_pic_CXX
14236           compiler_flags=-v
14237           linker_flags=-v
14238           verstring=
14239           output_objdir=.
14240           libname=conftest
14241           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14242           allow_undefined_flag_CXX=
14243           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14244   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14245   ac_status=$?
14246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14247   test $ac_status = 0; }
14248           then
14249             lt_cv_archive_cmds_need_lc_CXX=no
14250           else
14251             lt_cv_archive_cmds_need_lc_CXX=yes
14252           fi
14253           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14254         else
14255           cat conftest.err 1>&5
14256         fi
14257         $RM conftest*
14258
14259 fi
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14261 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14262       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14263       ;;
14264     esac
14265   fi
14266   ;;
14267 esac
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14333 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14334
14335 library_names_spec=
14336 libname_spec='lib$name'
14337 soname_spec=
14338 shrext_cmds=".so"
14339 postinstall_cmds=
14340 postuninstall_cmds=
14341 finish_cmds=
14342 finish_eval=
14343 shlibpath_var=
14344 shlibpath_overrides_runpath=unknown
14345 version_type=none
14346 dynamic_linker="$host_os ld.so"
14347 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14348 need_lib_prefix=unknown
14349 hardcode_into_libs=no
14350
14351 # when you set need_version to no, make sure it does not cause -set_version
14352 # flags to be left without arguments
14353 need_version=unknown
14354
14355 case $host_os in
14356 aix3*)
14357   version_type=linux
14358   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14359   shlibpath_var=LIBPATH
14360
14361   # AIX 3 has no versioning support, so we append a major version to the name.
14362   soname_spec='${libname}${release}${shared_ext}$major'
14363   ;;
14364
14365 aix[4-9]*)
14366   version_type=linux
14367   need_lib_prefix=no
14368   need_version=no
14369   hardcode_into_libs=yes
14370   if test "$host_cpu" = ia64; then
14371     # AIX 5 supports IA64
14372     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14373     shlibpath_var=LD_LIBRARY_PATH
14374   else
14375     # With GCC up to 2.95.x, collect2 would create an import file
14376     # for dependence libraries.  The import file would start with
14377     # the line `#! .'.  This would cause the generated library to
14378     # depend on `.', always an invalid library.  This was fixed in
14379     # development snapshots of GCC prior to 3.0.
14380     case $host_os in
14381       aix4 | aix4.[01] | aix4.[01].*)
14382       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14383            echo ' yes '
14384            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14385         :
14386       else
14387         can_build_shared=no
14388       fi
14389       ;;
14390     esac
14391     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14392     # soname into executable. Probably we can add versioning support to
14393     # collect2, so additional links can be useful in future.
14394     if test "$aix_use_runtimelinking" = yes; then
14395       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14396       # instead of lib<name>.a to let people know that these are not
14397       # typical AIX shared libraries.
14398       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399     else
14400       # We preserve .a as extension for shared libraries through AIX4.2
14401       # and later when we are not doing run time linking.
14402       library_names_spec='${libname}${release}.a $libname.a'
14403       soname_spec='${libname}${release}${shared_ext}$major'
14404     fi
14405     shlibpath_var=LIBPATH
14406   fi
14407   ;;
14408
14409 amigaos*)
14410   case $host_cpu in
14411   powerpc)
14412     # Since July 2007 AmigaOS4 officially supports .so libraries.
14413     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14415     ;;
14416   m68k)
14417     library_names_spec='$libname.ixlibrary $libname.a'
14418     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14419     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'
14420     ;;
14421   esac
14422   ;;
14423
14424 beos*)
14425   library_names_spec='${libname}${shared_ext}'
14426   dynamic_linker="$host_os ld.so"
14427   shlibpath_var=LIBRARY_PATH
14428   ;;
14429
14430 bsdi[45]*)
14431   version_type=linux
14432   need_version=no
14433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434   soname_spec='${libname}${release}${shared_ext}$major'
14435   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14436   shlibpath_var=LD_LIBRARY_PATH
14437   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14438   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14439   # the default ld.so.conf also contains /usr/contrib/lib and
14440   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14441   # libtool to hard-code these into programs
14442   ;;
14443
14444 cygwin* | mingw* | pw32* | cegcc*)
14445   version_type=windows
14446   shrext_cmds=".dll"
14447   need_version=no
14448   need_lib_prefix=no
14449
14450   case $GCC,$host_os in
14451   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14452     library_names_spec='$libname.dll.a'
14453     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14454     postinstall_cmds='base_file=`basename \${file}`~
14455       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14456       dldir=$destdir/`dirname \$dlpath`~
14457       test -d \$dldir || mkdir -p \$dldir~
14458       $install_prog $dir/$dlname \$dldir/$dlname~
14459       chmod a+x \$dldir/$dlname~
14460       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14461         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14462       fi'
14463     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14464       dlpath=$dir/\$dldll~
14465        $RM \$dlpath'
14466     shlibpath_overrides_runpath=yes
14467
14468     case $host_os in
14469     cygwin*)
14470       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14471       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14472
14473       ;;
14474     mingw* | cegcc*)
14475       # MinGW DLLs use traditional 'lib' prefix
14476       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14477       ;;
14478     pw32*)
14479       # pw32 DLLs use 'pw' prefix rather than 'lib'
14480       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14481       ;;
14482     esac
14483     ;;
14484
14485   *)
14486     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14487     ;;
14488   esac
14489   dynamic_linker='Win32 ld.exe'
14490   # FIXME: first we should search . and the directory the executable is in
14491   shlibpath_var=PATH
14492   ;;
14493
14494 darwin* | rhapsody*)
14495   dynamic_linker="$host_os dyld"
14496   version_type=darwin
14497   need_lib_prefix=no
14498   need_version=no
14499   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14500   soname_spec='${libname}${release}${major}$shared_ext'
14501   shlibpath_overrides_runpath=yes
14502   shlibpath_var=DYLD_LIBRARY_PATH
14503   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14504
14505   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14506   ;;
14507
14508 dgux*)
14509   version_type=linux
14510   need_lib_prefix=no
14511   need_version=no
14512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14513   soname_spec='${libname}${release}${shared_ext}$major'
14514   shlibpath_var=LD_LIBRARY_PATH
14515   ;;
14516
14517 freebsd* | dragonfly*)
14518   # DragonFly does not have aout.  When/if they implement a new
14519   # versioning mechanism, adjust this.
14520   if test -x /usr/bin/objformat; then
14521     objformat=`/usr/bin/objformat`
14522   else
14523     case $host_os in
14524     freebsd[123]*) objformat=aout ;;
14525     *) objformat=elf ;;
14526     esac
14527   fi
14528   version_type=freebsd-$objformat
14529   case $version_type in
14530     freebsd-elf*)
14531       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14532       need_version=no
14533       need_lib_prefix=no
14534       ;;
14535     freebsd-*)
14536       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14537       need_version=yes
14538       ;;
14539   esac
14540   shlibpath_var=LD_LIBRARY_PATH
14541   case $host_os in
14542   freebsd2*)
14543     shlibpath_overrides_runpath=yes
14544     ;;
14545   freebsd3.[01]* | freebsdelf3.[01]*)
14546     shlibpath_overrides_runpath=yes
14547     hardcode_into_libs=yes
14548     ;;
14549   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14550   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14551     shlibpath_overrides_runpath=no
14552     hardcode_into_libs=yes
14553     ;;
14554   *) # from 4.6 on, and DragonFly
14555     shlibpath_overrides_runpath=yes
14556     hardcode_into_libs=yes
14557     ;;
14558   esac
14559   ;;
14560
14561 gnu*)
14562   version_type=linux
14563   need_lib_prefix=no
14564   need_version=no
14565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14566   soname_spec='${libname}${release}${shared_ext}$major'
14567   shlibpath_var=LD_LIBRARY_PATH
14568   hardcode_into_libs=yes
14569   ;;
14570
14571 haiku*)
14572   version_type=linux
14573   need_lib_prefix=no
14574   need_version=no
14575   dynamic_linker="$host_os runtime_loader"
14576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14577   soname_spec='${libname}${release}${shared_ext}$major'
14578   shlibpath_var=LIBRARY_PATH
14579   shlibpath_overrides_runpath=yes
14580   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14581   hardcode_into_libs=yes
14582   ;;
14583
14584 hpux9* | hpux10* | hpux11*)
14585   # Give a soname corresponding to the major version so that dld.sl refuses to
14586   # link against other versions.
14587   version_type=sunos
14588   need_lib_prefix=no
14589   need_version=no
14590   case $host_cpu in
14591   ia64*)
14592     shrext_cmds='.so'
14593     hardcode_into_libs=yes
14594     dynamic_linker="$host_os dld.so"
14595     shlibpath_var=LD_LIBRARY_PATH
14596     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14597     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598     soname_spec='${libname}${release}${shared_ext}$major'
14599     if test "X$HPUX_IA64_MODE" = X32; then
14600       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14601     else
14602       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14603     fi
14604     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14605     ;;
14606   hppa*64*)
14607     shrext_cmds='.sl'
14608     hardcode_into_libs=yes
14609     dynamic_linker="$host_os dld.sl"
14610     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14611     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613     soname_spec='${libname}${release}${shared_ext}$major'
14614     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14615     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14616     ;;
14617   *)
14618     shrext_cmds='.sl'
14619     dynamic_linker="$host_os dld.sl"
14620     shlibpath_var=SHLIB_PATH
14621     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623     soname_spec='${libname}${release}${shared_ext}$major'
14624     ;;
14625   esac
14626   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14627   postinstall_cmds='chmod 555 $lib'
14628   # or fails outright, so override atomically:
14629   install_override_mode=555
14630   ;;
14631
14632 interix[3-9]*)
14633   version_type=linux
14634   need_lib_prefix=no
14635   need_version=no
14636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14637   soname_spec='${libname}${release}${shared_ext}$major'
14638   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14639   shlibpath_var=LD_LIBRARY_PATH
14640   shlibpath_overrides_runpath=no
14641   hardcode_into_libs=yes
14642   ;;
14643
14644 irix5* | irix6* | nonstopux*)
14645   case $host_os in
14646     nonstopux*) version_type=nonstopux ;;
14647     *)
14648         if test "$lt_cv_prog_gnu_ld" = yes; then
14649                 version_type=linux
14650         else
14651                 version_type=irix
14652         fi ;;
14653   esac
14654   need_lib_prefix=no
14655   need_version=no
14656   soname_spec='${libname}${release}${shared_ext}$major'
14657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14658   case $host_os in
14659   irix5* | nonstopux*)
14660     libsuff= shlibsuff=
14661     ;;
14662   *)
14663     case $LD in # libtool.m4 will add one of these switches to LD
14664     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14665       libsuff= shlibsuff= libmagic=32-bit;;
14666     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14667       libsuff=32 shlibsuff=N32 libmagic=N32;;
14668     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14669       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14670     *) libsuff= shlibsuff= libmagic=never-match;;
14671     esac
14672     ;;
14673   esac
14674   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14675   shlibpath_overrides_runpath=no
14676   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14677   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14678   hardcode_into_libs=yes
14679   ;;
14680
14681 # No shared lib support for Linux oldld, aout, or coff.
14682 linux*oldld* | linux*aout* | linux*coff*)
14683   dynamic_linker=no
14684   ;;
14685
14686 # This must be Linux ELF.
14687 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14688   version_type=linux
14689   need_lib_prefix=no
14690   need_version=no
14691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692   soname_spec='${libname}${release}${shared_ext}$major'
14693   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14694   shlibpath_var=LD_LIBRARY_PATH
14695   shlibpath_overrides_runpath=no
14696
14697   # Some binutils ld are patched to set DT_RUNPATH
14698   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14699   $as_echo_n "(cached) " >&6
14700 else
14701   lt_cv_shlibpath_overrides_runpath=no
14702     save_LDFLAGS=$LDFLAGS
14703     save_libdir=$libdir
14704     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14705          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14706     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h.  */
14708
14709 int
14710 main ()
14711 {
14712
14713   ;
14714   return 0;
14715 }
14716 _ACEOF
14717 if ac_fn_cxx_try_link "$LINENO"; then :
14718   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14719   lt_cv_shlibpath_overrides_runpath=yes
14720 fi
14721 fi
14722 rm -f core conftest.err conftest.$ac_objext \
14723     conftest$ac_exeext conftest.$ac_ext
14724     LDFLAGS=$save_LDFLAGS
14725     libdir=$save_libdir
14726
14727 fi
14728
14729   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14730
14731   # This implies no fast_install, which is unacceptable.
14732   # Some rework will be needed to allow for fast_install
14733   # before this can be enabled.
14734   hardcode_into_libs=yes
14735
14736   # Append ld.so.conf contents to the search path
14737   if test -f /etc/ld.so.conf; then
14738     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' ' '`
14739     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14740   fi
14741
14742   # We used to test for /lib/ld.so.1 and disable shared libraries on
14743   # powerpc, because MkLinux only supported shared libraries with the
14744   # GNU dynamic linker.  Since this was broken with cross compilers,
14745   # most powerpc-linux boxes support dynamic linking these days and
14746   # people can always --disable-shared, the test was removed, and we
14747   # assume the GNU/Linux dynamic linker is in use.
14748   dynamic_linker='GNU/Linux ld.so'
14749   ;;
14750
14751 netbsd*)
14752   version_type=sunos
14753   need_lib_prefix=no
14754   need_version=no
14755   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14757     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14758     dynamic_linker='NetBSD (a.out) ld.so'
14759   else
14760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14761     soname_spec='${libname}${release}${shared_ext}$major'
14762     dynamic_linker='NetBSD ld.elf_so'
14763   fi
14764   shlibpath_var=LD_LIBRARY_PATH
14765   shlibpath_overrides_runpath=yes
14766   hardcode_into_libs=yes
14767   ;;
14768
14769 newsos6)
14770   version_type=linux
14771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772   shlibpath_var=LD_LIBRARY_PATH
14773   shlibpath_overrides_runpath=yes
14774   ;;
14775
14776 *nto* | *qnx*)
14777   version_type=qnx
14778   need_lib_prefix=no
14779   need_version=no
14780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781   soname_spec='${libname}${release}${shared_ext}$major'
14782   shlibpath_var=LD_LIBRARY_PATH
14783   shlibpath_overrides_runpath=no
14784   hardcode_into_libs=yes
14785   dynamic_linker='ldqnx.so'
14786   ;;
14787
14788 openbsd*)
14789   version_type=sunos
14790   sys_lib_dlsearch_path_spec="/usr/lib"
14791   need_lib_prefix=no
14792   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14793   case $host_os in
14794     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14795     *)                          need_version=no  ;;
14796   esac
14797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14798   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14799   shlibpath_var=LD_LIBRARY_PATH
14800   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14801     case $host_os in
14802       openbsd2.[89] | openbsd2.[89].*)
14803         shlibpath_overrides_runpath=no
14804         ;;
14805       *)
14806         shlibpath_overrides_runpath=yes
14807         ;;
14808       esac
14809   else
14810     shlibpath_overrides_runpath=yes
14811   fi
14812   ;;
14813
14814 os2*)
14815   libname_spec='$name'
14816   shrext_cmds=".dll"
14817   need_lib_prefix=no
14818   library_names_spec='$libname${shared_ext} $libname.a'
14819   dynamic_linker='OS/2 ld.exe'
14820   shlibpath_var=LIBPATH
14821   ;;
14822
14823 osf3* | osf4* | osf5*)
14824   version_type=osf
14825   need_lib_prefix=no
14826   need_version=no
14827   soname_spec='${libname}${release}${shared_ext}$major'
14828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829   shlibpath_var=LD_LIBRARY_PATH
14830   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14831   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14832   ;;
14833
14834 rdos*)
14835   dynamic_linker=no
14836   ;;
14837
14838 solaris*)
14839   version_type=linux
14840   need_lib_prefix=no
14841   need_version=no
14842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843   soname_spec='${libname}${release}${shared_ext}$major'
14844   shlibpath_var=LD_LIBRARY_PATH
14845   shlibpath_overrides_runpath=yes
14846   hardcode_into_libs=yes
14847   # ldd complains unless libraries are executable
14848   postinstall_cmds='chmod +x $lib'
14849   ;;
14850
14851 sunos4*)
14852   version_type=sunos
14853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14854   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14855   shlibpath_var=LD_LIBRARY_PATH
14856   shlibpath_overrides_runpath=yes
14857   if test "$with_gnu_ld" = yes; then
14858     need_lib_prefix=no
14859   fi
14860   need_version=yes
14861   ;;
14862
14863 sysv4 | sysv4.3*)
14864   version_type=linux
14865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866   soname_spec='${libname}${release}${shared_ext}$major'
14867   shlibpath_var=LD_LIBRARY_PATH
14868   case $host_vendor in
14869     sni)
14870       shlibpath_overrides_runpath=no
14871       need_lib_prefix=no
14872       runpath_var=LD_RUN_PATH
14873       ;;
14874     siemens)
14875       need_lib_prefix=no
14876       ;;
14877     motorola)
14878       need_lib_prefix=no
14879       need_version=no
14880       shlibpath_overrides_runpath=no
14881       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14882       ;;
14883   esac
14884   ;;
14885
14886 sysv4*MP*)
14887   if test -d /usr/nec ;then
14888     version_type=linux
14889     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14890     soname_spec='$libname${shared_ext}.$major'
14891     shlibpath_var=LD_LIBRARY_PATH
14892   fi
14893   ;;
14894
14895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14896   version_type=freebsd-elf
14897   need_lib_prefix=no
14898   need_version=no
14899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14900   soname_spec='${libname}${release}${shared_ext}$major'
14901   shlibpath_var=LD_LIBRARY_PATH
14902   shlibpath_overrides_runpath=yes
14903   hardcode_into_libs=yes
14904   if test "$with_gnu_ld" = yes; then
14905     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14906   else
14907     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14908     case $host_os in
14909       sco3.2v5*)
14910         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14911         ;;
14912     esac
14913   fi
14914   sys_lib_dlsearch_path_spec='/usr/lib'
14915   ;;
14916
14917 tpf*)
14918   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14919   version_type=linux
14920   need_lib_prefix=no
14921   need_version=no
14922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923   shlibpath_var=LD_LIBRARY_PATH
14924   shlibpath_overrides_runpath=no
14925   hardcode_into_libs=yes
14926   ;;
14927
14928 uts4*)
14929   version_type=linux
14930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931   soname_spec='${libname}${release}${shared_ext}$major'
14932   shlibpath_var=LD_LIBRARY_PATH
14933   ;;
14934
14935 *)
14936   dynamic_linker=no
14937   ;;
14938 esac
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14940 $as_echo "$dynamic_linker" >&6; }
14941 test "$dynamic_linker" = no && can_build_shared=no
14942
14943 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14944 if test "$GCC" = yes; then
14945   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14946 fi
14947
14948 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14949   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14950 fi
14951 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14952   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14953 fi
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14993 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14994 hardcode_action_CXX=
14995 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14996    test -n "$runpath_var_CXX" ||
14997    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14998
14999   # We can hardcode non-existent directories.
15000   if test "$hardcode_direct_CXX" != no &&
15001      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15002      # have to relink, otherwise we might link with an installed library
15003      # when we should be linking with a yet-to-be-installed one
15004      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15005      test "$hardcode_minus_L_CXX" != no; then
15006     # Linking always hardcodes the temporary library directory.
15007     hardcode_action_CXX=relink
15008   else
15009     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15010     hardcode_action_CXX=immediate
15011   fi
15012 else
15013   # We cannot hardcode anything, or else we can only hardcode existing
15014   # directories.
15015   hardcode_action_CXX=unsupported
15016 fi
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15018 $as_echo "$hardcode_action_CXX" >&6; }
15019
15020 if test "$hardcode_action_CXX" = relink ||
15021    test "$inherit_rpath_CXX" = yes; then
15022   # Fast installation is not supported
15023   enable_fast_install=no
15024 elif test "$shlibpath_overrides_runpath" = yes ||
15025      test "$enable_shared" = no; then
15026   # Fast installation is not necessary
15027   enable_fast_install=needless
15028 fi
15029
15030
15031
15032
15033
15034
15035
15036   fi # test -n "$compiler"
15037
15038   CC=$lt_save_CC
15039   LDCXX=$LD
15040   LD=$lt_save_LD
15041   GCC=$lt_save_GCC
15042   with_gnu_ld=$lt_save_with_gnu_ld
15043   lt_cv_path_LDCXX=$lt_cv_path_LD
15044   lt_cv_path_LD=$lt_save_path_LD
15045   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15046   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15047 fi # test "$_lt_caught_CXX_error" != yes
15048
15049 ac_ext=c
15050 ac_cpp='$CPP $CPPFLAGS'
15051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067         ac_config_commands="$ac_config_commands libtool"
15068
15069
15070
15071
15072 # Only expand once:
15073
15074
15075
15076
15077
15078
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15080 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15081     # Check whether --enable-maintainer-mode was given.
15082 if test "${enable_maintainer_mode+set}" = set; then :
15083   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15084 else
15085   USE_MAINTAINER_MODE=no
15086 fi
15087
15088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15089 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15090    if test $USE_MAINTAINER_MODE = yes; then
15091   MAINTAINER_MODE_TRUE=
15092   MAINTAINER_MODE_FALSE='#'
15093 else
15094   MAINTAINER_MODE_TRUE='#'
15095   MAINTAINER_MODE_FALSE=
15096 fi
15097
15098   MAINT=$MAINTAINER_MODE_TRUE
15099
15100
15101
15102 # For libtool versioning info, format is CURRENT:REVISION:AGE
15103 libtool_VERSION=1:0:0
15104
15105
15106 # Check header files.
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15108 $as_echo_n "checking for ANSI C header files... " >&6; }
15109 if test "${ac_cv_header_stdc+set}" = set; then :
15110   $as_echo_n "(cached) " >&6
15111 else
15112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h.  */
15114 #include <stdlib.h>
15115 #include <stdarg.h>
15116 #include <string.h>
15117 #include <float.h>
15118
15119 int
15120 main ()
15121 {
15122
15123   ;
15124   return 0;
15125 }
15126 _ACEOF
15127 if ac_fn_c_try_compile "$LINENO"; then :
15128   ac_cv_header_stdc=yes
15129 else
15130   ac_cv_header_stdc=no
15131 fi
15132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15133
15134 if test $ac_cv_header_stdc = yes; then
15135   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h.  */
15138 #include <string.h>
15139
15140 _ACEOF
15141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15142   $EGREP "memchr" >/dev/null 2>&1; then :
15143
15144 else
15145   ac_cv_header_stdc=no
15146 fi
15147 rm -f conftest*
15148
15149 fi
15150
15151 if test $ac_cv_header_stdc = yes; then
15152   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h.  */
15155 #include <stdlib.h>
15156
15157 _ACEOF
15158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15159   $EGREP "free" >/dev/null 2>&1; then :
15160
15161 else
15162   ac_cv_header_stdc=no
15163 fi
15164 rm -f conftest*
15165
15166 fi
15167
15168 if test $ac_cv_header_stdc = yes; then
15169   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15170   if test "$cross_compiling" = yes; then :
15171   :
15172 else
15173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h.  */
15175 #include <ctype.h>
15176 #include <stdlib.h>
15177 #if ((' ' & 0x0FF) == 0x020)
15178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15180 #else
15181 # define ISLOWER(c) \
15182                    (('a' <= (c) && (c) <= 'i') \
15183                      || ('j' <= (c) && (c) <= 'r') \
15184                      || ('s' <= (c) && (c) <= 'z'))
15185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15186 #endif
15187
15188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15189 int
15190 main ()
15191 {
15192   int i;
15193   for (i = 0; i < 256; i++)
15194     if (XOR (islower (i), ISLOWER (i))
15195         || toupper (i) != TOUPPER (i))
15196       return 2;
15197   return 0;
15198 }
15199 _ACEOF
15200 if ac_fn_c_try_run "$LINENO"; then :
15201
15202 else
15203   ac_cv_header_stdc=no
15204 fi
15205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15206   conftest.$ac_objext conftest.beam conftest.$ac_ext
15207 fi
15208
15209 fi
15210 fi
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15212 $as_echo "$ac_cv_header_stdc" >&6; }
15213 if test $ac_cv_header_stdc = yes; then
15214
15215 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15216
15217 fi
15218
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15220 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15221 if test "${ac_cv_header_time+set}" = set; then :
15222   $as_echo_n "(cached) " >&6
15223 else
15224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h.  */
15226 #include <sys/types.h>
15227 #include <sys/time.h>
15228 #include <time.h>
15229
15230 int
15231 main ()
15232 {
15233 if ((struct tm *) 0)
15234 return 0;
15235   ;
15236   return 0;
15237 }
15238 _ACEOF
15239 if ac_fn_c_try_compile "$LINENO"; then :
15240   ac_cv_header_time=yes
15241 else
15242   ac_cv_header_time=no
15243 fi
15244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15245 fi
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15247 $as_echo "$ac_cv_header_time" >&6; }
15248 if test $ac_cv_header_time = yes; then
15249
15250 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15251
15252 fi
15253
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15255 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15256 if test "${gcc_cv_header_string+set}" = set; then :
15257   $as_echo_n "(cached) " >&6
15258 else
15259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h.  */
15261 #include <string.h>
15262 #include <strings.h>
15263 int
15264 main ()
15265 {
15266
15267   ;
15268   return 0;
15269 }
15270 _ACEOF
15271 if ac_fn_c_try_compile "$LINENO"; then :
15272   gcc_cv_header_string=yes
15273 else
15274   gcc_cv_header_string=no
15275 fi
15276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15277 fi
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15279 $as_echo "$gcc_cv_header_string" >&6; }
15280 if test $gcc_cv_header_string = yes; then
15281
15282 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15283
15284 fi
15285
15286 for ac_header in unistd.h semaphore.h sys/time.h malloc.h
15287 do :
15288   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15289 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15290 eval as_val=\$$as_ac_Header
15291    if test "x$as_val" = x""yes; then :
15292   cat >>confdefs.h <<_ACEOF
15293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15294 _ACEOF
15295
15296 fi
15297
15298 done
15299
15300
15301
15302
15303 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
15304
15305 acx_cv_header_stdint=stddef.h
15306 acx_cv_header_stdint_kind="(already complete)"
15307 for i in stdint.h $inttype_headers; do
15308   unset ac_cv_type_uintptr_t
15309   unset ac_cv_type_uintmax_t
15310   unset ac_cv_type_int_least32_t
15311   unset ac_cv_type_int_fast32_t
15312   unset ac_cv_type_uint64_t
15313   $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15314   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15315 #include <$i>
15316 "
15317 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15318   acx_cv_header_stdint=$i
15319 else
15320   continue
15321 fi
15322
15323   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15324 #include <$i>
15325 "
15326 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15327
15328 else
15329   acx_cv_header_stdint_kind="(mostly complete)"
15330 fi
15331
15332   ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15333 #include <$i>
15334 "
15335 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15336
15337 else
15338   acx_cv_header_stdint_kind="(mostly complete)"
15339 fi
15340
15341   ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15342 #include <$i>
15343 "
15344 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15345
15346 else
15347   acx_cv_header_stdint_kind="(mostly complete)"
15348 fi
15349
15350   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15351 #include <$i>
15352 "
15353 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15354
15355 else
15356   acx_cv_header_stdint_kind="(lacks uint64_t)"
15357 fi
15358
15359   break
15360 done
15361 if test "$acx_cv_header_stdint" = stddef.h; then
15362   acx_cv_header_stdint_kind="(lacks uintmax_t)"
15363   for i in stdint.h $inttype_headers; do
15364     unset ac_cv_type_uintptr_t
15365     unset ac_cv_type_uint32_t
15366     unset ac_cv_type_uint64_t
15367     $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15368     ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15369 #include <$i>
15370 "
15371 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15372   acx_cv_header_stdint=$i
15373 else
15374   continue
15375 fi
15376
15377     ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15378 #include <$i>
15379 "
15380 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15381
15382 fi
15383
15384     ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15385 #include <$i>
15386 "
15387 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15388
15389 fi
15390
15391     break
15392   done
15393 fi
15394 if test "$acx_cv_header_stdint" = stddef.h; then
15395   acx_cv_header_stdint_kind="(u_intXX_t style)"
15396   for i in sys/types.h $inttype_headers; do
15397     unset ac_cv_type_u_int32_t
15398     unset ac_cv_type_u_int64_t
15399     $as_echo_n "looking for u_intXX_t types in $i, " >&6
15400     ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15401 #include <$i>
15402 "
15403 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15404   acx_cv_header_stdint=$i
15405 else
15406   continue
15407 fi
15408
15409     ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15410 #include <$i>
15411 "
15412 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15413
15414 fi
15415
15416     break
15417   done
15418 fi
15419 if test "$acx_cv_header_stdint" = stddef.h; then
15420   acx_cv_header_stdint_kind="(using manual detection)"
15421 fi
15422
15423 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15424 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15425 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15426 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15427 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15428
15429 # ----------------- Summarize what we found so far
15430
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15432 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15433
15434 case `$as_basename -- gstdint.h ||
15435 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15436          Xgstdint.h : 'X\(//\)$' \| \
15437          Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15438 $as_echo X/gstdint.h |
15439     sed '/^.*\/\([^/][^/]*\)\/*$/{
15440             s//\1/
15441             q
15442           }
15443           /^X\/\(\/\/\)$/{
15444             s//\1/
15445             q
15446           }
15447           /^X\/\(\/\).*/{
15448             s//\1/
15449             q
15450           }
15451           s/.*/./; q'` in
15452   stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15453 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15454   inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15455 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15456   *) ;;
15457 esac
15458
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15460 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15461
15462 # ----------------- done included file, check C basic types --------
15463
15464 # Lacking an uintptr_t?  Test size of void *
15465 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15466   stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15469 # This bug is HP SR number 8606223364.
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15471 $as_echo_n "checking size of void *... " >&6; }
15472 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15473   $as_echo_n "(cached) " >&6
15474 else
15475   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15476
15477 else
15478   if test "$ac_cv_type_void_p" = yes; then
15479      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15481 { as_fn_set_status 77
15482 as_fn_error "cannot compute sizeof (void *)
15483 See \`config.log' for more details." "$LINENO" 5; }; }
15484    else
15485      ac_cv_sizeof_void_p=0
15486    fi
15487 fi
15488
15489 fi
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15491 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15492
15493
15494
15495 cat >>confdefs.h <<_ACEOF
15496 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15497 _ACEOF
15498
15499  ;;
15500 esac
15501
15502 # Lacking an uint64_t?  Test size of long
15503 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15504   stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15507 # This bug is HP SR number 8606223364.
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15509 $as_echo_n "checking size of long... " >&6; }
15510 if test "${ac_cv_sizeof_long+set}" = set; then :
15511   $as_echo_n "(cached) " >&6
15512 else
15513   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15514
15515 else
15516   if test "$ac_cv_type_long" = yes; then
15517      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15519 { as_fn_set_status 77
15520 as_fn_error "cannot compute sizeof (long)
15521 See \`config.log' for more details." "$LINENO" 5; }; }
15522    else
15523      ac_cv_sizeof_long=0
15524    fi
15525 fi
15526
15527 fi
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15529 $as_echo "$ac_cv_sizeof_long" >&6; }
15530
15531
15532
15533 cat >>confdefs.h <<_ACEOF
15534 #define SIZEOF_LONG $ac_cv_sizeof_long
15535 _ACEOF
15536
15537  ;;
15538 esac
15539
15540 if test $acx_cv_header_stdint = stddef.h; then
15541   # Lacking a good header?  Test size of everything and deduce all types.
15542   # The cast to long int works around a bug in the HP C Compiler
15543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15545 # This bug is HP SR number 8606223364.
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15547 $as_echo_n "checking size of int... " >&6; }
15548 if test "${ac_cv_sizeof_int+set}" = set; then :
15549   $as_echo_n "(cached) " >&6
15550 else
15551   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15552
15553 else
15554   if test "$ac_cv_type_int" = yes; then
15555      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15557 { as_fn_set_status 77
15558 as_fn_error "cannot compute sizeof (int)
15559 See \`config.log' for more details." "$LINENO" 5; }; }
15560    else
15561      ac_cv_sizeof_int=0
15562    fi
15563 fi
15564
15565 fi
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15567 $as_echo "$ac_cv_sizeof_int" >&6; }
15568
15569
15570
15571 cat >>confdefs.h <<_ACEOF
15572 #define SIZEOF_INT $ac_cv_sizeof_int
15573 _ACEOF
15574
15575
15576   # The cast to long int works around a bug in the HP C Compiler
15577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15579 # This bug is HP SR number 8606223364.
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15581 $as_echo_n "checking size of short... " >&6; }
15582 if test "${ac_cv_sizeof_short+set}" = set; then :
15583   $as_echo_n "(cached) " >&6
15584 else
15585   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15586
15587 else
15588   if test "$ac_cv_type_short" = yes; then
15589      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15591 { as_fn_set_status 77
15592 as_fn_error "cannot compute sizeof (short)
15593 See \`config.log' for more details." "$LINENO" 5; }; }
15594    else
15595      ac_cv_sizeof_short=0
15596    fi
15597 fi
15598
15599 fi
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15601 $as_echo "$ac_cv_sizeof_short" >&6; }
15602
15603
15604
15605 cat >>confdefs.h <<_ACEOF
15606 #define SIZEOF_SHORT $ac_cv_sizeof_short
15607 _ACEOF
15608
15609
15610   # The cast to long int works around a bug in the HP C Compiler
15611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15613 # This bug is HP SR number 8606223364.
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15615 $as_echo_n "checking size of char... " >&6; }
15616 if test "${ac_cv_sizeof_char+set}" = set; then :
15617   $as_echo_n "(cached) " >&6
15618 else
15619   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
15620
15621 else
15622   if test "$ac_cv_type_char" = yes; then
15623      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15625 { as_fn_set_status 77
15626 as_fn_error "cannot compute sizeof (char)
15627 See \`config.log' for more details." "$LINENO" 5; }; }
15628    else
15629      ac_cv_sizeof_char=0
15630    fi
15631 fi
15632
15633 fi
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15635 $as_echo "$ac_cv_sizeof_char" >&6; }
15636
15637
15638
15639 cat >>confdefs.h <<_ACEOF
15640 #define SIZEOF_CHAR $ac_cv_sizeof_char
15641 _ACEOF
15642
15643
15644
15645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15646 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15647   case "$ac_cv_sizeof_char" in
15648     1) acx_cv_type_int8_t=char ;;
15649     *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15650   esac
15651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15652 $as_echo "$acx_cv_type_int8_t" >&6; }
15653
15654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15655 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15656   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15657     2:*) acx_cv_type_int16_t=int ;;
15658     *:2) acx_cv_type_int16_t=short ;;
15659     *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15660   esac
15661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15662 $as_echo "$acx_cv_type_int16_t" >&6; }
15663
15664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15665 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15666   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15667     4:*) acx_cv_type_int32_t=int ;;
15668     *:4) acx_cv_type_int32_t=long ;;
15669     *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15670   esac
15671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15672 $as_echo "$acx_cv_type_int32_t" >&6; }
15673 fi
15674
15675 # These tests are here to make the output prettier
15676
15677 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15678   case "$ac_cv_sizeof_long" in
15679     8) acx_cv_type_int64_t=long ;;
15680   esac
15681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15682 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15684 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15685 fi
15686
15687 # Now we can use the above types
15688
15689 if test "$ac_cv_type_uintptr_t" != yes; then
15690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15691 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15692   case $ac_cv_sizeof_void_p in
15693     2) acx_cv_type_intptr_t=int16_t ;;
15694     4) acx_cv_type_intptr_t=int32_t ;;
15695     8) acx_cv_type_intptr_t=int64_t ;;
15696     *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15697   esac
15698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15699 $as_echo "$acx_cv_type_intptr_t" >&6; }
15700 fi
15701
15702 # ----------------- done all checks, emit header -------------
15703 ac_config_commands="$ac_config_commands gstdint.h"
15704
15705
15706
15707
15708
15709 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15710 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15711   gcc_header_sys_mman_h=yes
15712 else
15713   gcc_header_sys_mman_h=no
15714 fi
15715
15716
15717 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15718 if test "x$ac_cv_func_mmap" = x""yes; then :
15719   gcc_func_mmap=yes
15720 else
15721   gcc_func_mmap=no
15722 fi
15723
15724 if test "$gcc_header_sys_mman_h" != yes \
15725  || test "$gcc_func_mmap" != yes; then
15726    gcc_cv_func_mmap_file=no
15727    gcc_cv_func_mmap_dev_zero=no
15728    gcc_cv_func_mmap_anon=no
15729 else
15730    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15731 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15732 if test "${gcc_cv_func_mmap_file+set}" = set; then :
15733   $as_echo_n "(cached) " >&6
15734 else
15735   # Add a system to this blacklist if
15736    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15737    # memory area containing the same data that you'd get if you applied
15738    # read() to the same fd.  The only system known to have a problem here
15739    # is VMS, where text files have record structure.
15740    case "$host_os" in
15741      vms* | ultrix*)
15742         gcc_cv_func_mmap_file=no ;;
15743      *)
15744         gcc_cv_func_mmap_file=yes;;
15745    esac
15746 fi
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15748 $as_echo "$gcc_cv_func_mmap_file" >&6; }
15749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15750 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15751 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15752   $as_echo_n "(cached) " >&6
15753 else
15754   # Add a system to this blacklist if it has mmap() but /dev/zero
15755    # does not exist, or if mmapping /dev/zero does not give anonymous
15756    # zeroed pages with both the following properties:
15757    # 1. If you map N consecutive pages in with one call, and then
15758    #    unmap any subset of those pages, the pages that were not
15759    #    explicitly unmapped remain accessible.
15760    # 2. If you map two adjacent blocks of memory and then unmap them
15761    #    both at once, they must both go away.
15762    # Systems known to be in this category are Windows (all variants),
15763    # VMS, and Darwin.
15764    case "$host_os" in
15765      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15766         gcc_cv_func_mmap_dev_zero=no ;;
15767      *)
15768         gcc_cv_func_mmap_dev_zero=yes;;
15769    esac
15770 fi
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15772 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15773
15774    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15775    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15776 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15777 if test "${gcc_cv_decl_map_anon+set}" = set; then :
15778   $as_echo_n "(cached) " >&6
15779 else
15780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h.  */
15782 #include <sys/types.h>
15783 #include <sys/mman.h>
15784 #include <unistd.h>
15785
15786 #ifndef MAP_ANONYMOUS
15787 #define MAP_ANONYMOUS MAP_ANON
15788 #endif
15789
15790 int
15791 main ()
15792 {
15793 int n = MAP_ANONYMOUS;
15794   ;
15795   return 0;
15796 }
15797 _ACEOF
15798 if ac_fn_c_try_compile "$LINENO"; then :
15799   gcc_cv_decl_map_anon=yes
15800 else
15801   gcc_cv_decl_map_anon=no
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804 fi
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15806 $as_echo "$gcc_cv_decl_map_anon" >&6; }
15807
15808    if test $gcc_cv_decl_map_anon = no; then
15809      gcc_cv_func_mmap_anon=no
15810    else
15811      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15812 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15813 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15814   $as_echo_n "(cached) " >&6
15815 else
15816   # Add a system to this blacklist if it has mmap() and MAP_ANON or
15817    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15818    # doesn't give anonymous zeroed pages with the same properties listed
15819    # above for use of /dev/zero.
15820    # Systems known to be in this category are Windows, VMS, and SCO Unix.
15821    case "$host_os" in
15822      vms* | cygwin* | pe | mingw* | sco* | udk* )
15823         gcc_cv_func_mmap_anon=no ;;
15824      *)
15825         gcc_cv_func_mmap_anon=yes;;
15826    esac
15827 fi
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15829 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
15830    fi
15831 fi
15832
15833 if test $gcc_cv_func_mmap_file = yes; then
15834
15835 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15836
15837 fi
15838 if test $gcc_cv_func_mmap_dev_zero = yes; then
15839
15840 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15841
15842 fi
15843 if test $gcc_cv_func_mmap_anon = yes; then
15844
15845 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15846
15847 fi
15848
15849
15850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15851 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15852 if test "${ac_cv_c_bigendian+set}" = set; then :
15853   $as_echo_n "(cached) " >&6
15854 else
15855   ac_cv_c_bigendian=unknown
15856     # See if we're dealing with a universal compiler.
15857     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h.  */
15859 #ifndef __APPLE_CC__
15860                not a universal capable compiler
15861              #endif
15862              typedef int dummy;
15863
15864 _ACEOF
15865 if ac_fn_c_try_compile "$LINENO"; then :
15866
15867         # Check for potential -arch flags.  It is not universal unless
15868         # there are at least two -arch flags with different values.
15869         ac_arch=
15870         ac_prev=
15871         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15872          if test -n "$ac_prev"; then
15873            case $ac_word in
15874              i?86 | x86_64 | ppc | ppc64)
15875                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15876                  ac_arch=$ac_word
15877                else
15878                  ac_cv_c_bigendian=universal
15879                  break
15880                fi
15881                ;;
15882            esac
15883            ac_prev=
15884          elif test "x$ac_word" = "x-arch"; then
15885            ac_prev=arch
15886          fi
15887        done
15888 fi
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890     if test $ac_cv_c_bigendian = unknown; then
15891       # See if sys/param.h defines the BYTE_ORDER macro.
15892       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15893 /* end confdefs.h.  */
15894 #include <sys/types.h>
15895              #include <sys/param.h>
15896
15897 int
15898 main ()
15899 {
15900 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15901                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15902                      && LITTLE_ENDIAN)
15903               bogus endian macros
15904              #endif
15905
15906   ;
15907   return 0;
15908 }
15909 _ACEOF
15910 if ac_fn_c_try_compile "$LINENO"; then :
15911   # It does; now see whether it defined to BIG_ENDIAN or not.
15912          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h.  */
15914 #include <sys/types.h>
15915                 #include <sys/param.h>
15916
15917 int
15918 main ()
15919 {
15920 #if BYTE_ORDER != BIG_ENDIAN
15921                  not big endian
15922                 #endif
15923
15924   ;
15925   return 0;
15926 }
15927 _ACEOF
15928 if ac_fn_c_try_compile "$LINENO"; then :
15929   ac_cv_c_bigendian=yes
15930 else
15931   ac_cv_c_bigendian=no
15932 fi
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934 fi
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936     fi
15937     if test $ac_cv_c_bigendian = unknown; then
15938       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15939       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h.  */
15941 #include <limits.h>
15942
15943 int
15944 main ()
15945 {
15946 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15947               bogus endian macros
15948              #endif
15949
15950   ;
15951   return 0;
15952 }
15953 _ACEOF
15954 if ac_fn_c_try_compile "$LINENO"; then :
15955   # It does; now see whether it defined to _BIG_ENDIAN or not.
15956          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957 /* end confdefs.h.  */
15958 #include <limits.h>
15959
15960 int
15961 main ()
15962 {
15963 #ifndef _BIG_ENDIAN
15964                  not big endian
15965                 #endif
15966
15967   ;
15968   return 0;
15969 }
15970 _ACEOF
15971 if ac_fn_c_try_compile "$LINENO"; then :
15972   ac_cv_c_bigendian=yes
15973 else
15974   ac_cv_c_bigendian=no
15975 fi
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979     fi
15980     if test $ac_cv_c_bigendian = unknown; then
15981       # Compile a test program.
15982       if test "$cross_compiling" = yes; then :
15983   # Try to guess by grepping values from an object file.
15984          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h.  */
15986 short int ascii_mm[] =
15987                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15988                 short int ascii_ii[] =
15989                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15990                 int use_ascii (int i) {
15991                   return ascii_mm[i] + ascii_ii[i];
15992                 }
15993                 short int ebcdic_ii[] =
15994                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15995                 short int ebcdic_mm[] =
15996                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15997                 int use_ebcdic (int i) {
15998                   return ebcdic_mm[i] + ebcdic_ii[i];
15999                 }
16000                 extern int foo;
16001
16002 int
16003 main ()
16004 {
16005 return use_ascii (foo) == use_ebcdic (foo);
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_compile "$LINENO"; then :
16011   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16012               ac_cv_c_bigendian=yes
16013             fi
16014             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16015               if test "$ac_cv_c_bigendian" = unknown; then
16016                 ac_cv_c_bigendian=no
16017               else
16018                 # finding both strings is unlikely to happen, but who knows?
16019                 ac_cv_c_bigendian=unknown
16020               fi
16021             fi
16022 fi
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024 else
16025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026 /* end confdefs.h.  */
16027 $ac_includes_default
16028 int
16029 main ()
16030 {
16031
16032              /* Are we little or big endian?  From Harbison&Steele.  */
16033              union
16034              {
16035                long int l;
16036                char c[sizeof (long int)];
16037              } u;
16038              u.l = 1;
16039              return u.c[sizeof (long int) - 1] == 1;
16040
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 if ac_fn_c_try_run "$LINENO"; then :
16046   ac_cv_c_bigendian=no
16047 else
16048   ac_cv_c_bigendian=yes
16049 fi
16050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16051   conftest.$ac_objext conftest.beam conftest.$ac_ext
16052 fi
16053
16054     fi
16055 fi
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16057 $as_echo "$ac_cv_c_bigendian" >&6; }
16058  case $ac_cv_c_bigendian in #(
16059    yes)
16060      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16061 ;; #(
16062    no)
16063       ;; #(
16064    universal)
16065
16066 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16067
16068      ;; #(
16069    *)
16070      as_fn_error "unknown endianness
16071  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16072  esac
16073
16074 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16075
16076
16077 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
16078 # In case the pthread.h system header is not found, this test will fail.
16079 XPCFLAGS=""
16080 CFLAGS="$CFLAGS -pthread"
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h.  */
16083 #include <pthread.h>
16084    void *g(void *d) { return NULL; }
16085 int
16086 main ()
16087 {
16088 pthread_t t; pthread_create(&t,NULL,g,NULL);
16089   ;
16090   return 0;
16091 }
16092 _ACEOF
16093 if ac_fn_c_try_link "$LINENO"; then :
16094   XPCFLAGS=" -Wc,-pthread"
16095 else
16096   CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098 /* end confdefs.h.  */
16099 #include <pthread.h>
16100      void *g(void *d) { return NULL; }
16101 int
16102 main ()
16103 {
16104 pthread_t t; pthread_create(&t,NULL,g,NULL);
16105   ;
16106   return 0;
16107 }
16108 _ACEOF
16109 if ac_fn_c_try_link "$LINENO"; then :
16110
16111 else
16112   as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16113 fi
16114 rm -f core conftest.err conftest.$ac_objext \
16115     conftest$ac_exeext conftest.$ac_ext
16116 fi
16117 rm -f core conftest.err conftest.$ac_objext \
16118     conftest$ac_exeext conftest.$ac_ext
16119
16120 # Check for functions needed.
16121 for ac_func in strtoull memalign posix_memalign
16122 do :
16123   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16124 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16125 eval as_val=\$$as_ac_var
16126    if test "x$as_val" = x""yes; then :
16127   cat >>confdefs.h <<_ACEOF
16128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16129 _ACEOF
16130
16131 fi
16132 done
16133
16134
16135 # Check for broken semaphore implementation on darwin.
16136 # sem_init returns: sem_init error: Function not implemented.
16137 case "$host" in
16138   *-darwin*)
16139
16140 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16141
16142     ;;
16143 esac
16144
16145  # Check whether --enable-linux-futex was given.
16146 if test "${enable_linux_futex+set}" = set; then :
16147   enableval=$enable_linux_futex;
16148       case "$enableval" in
16149        yes|no|default) ;;
16150        *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16151                           esac
16152
16153 else
16154   enable_linux_futex=default
16155 fi
16156
16157
16158 case "$target" in
16159   *-linux*)
16160     case "$enable_linux_futex" in
16161       default)
16162         # If headers don't have gettid/futex syscalls definition, then
16163         # default to no, otherwise there will be compile time failures.
16164         # Otherwise, default to yes.  If we don't detect we are
16165         # compiled/linked against NPTL and not cross-compiling, check
16166         # if programs are run by default against NPTL and if not, issue
16167         # a warning.
16168         enable_linux_futex=no
16169         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h.  */
16171 #include <sys/syscall.h>
16172            int lk;
16173 int
16174 main ()
16175 {
16176 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16177   ;
16178   return 0;
16179 }
16180 _ACEOF
16181 if ac_fn_c_try_link "$LINENO"; then :
16182   save_LIBS="$LIBS"
16183            LIBS="-lpthread $LIBS"
16184            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h.  */
16186 #ifndef _GNU_SOURCE
16187              #define _GNU_SOURCE 1
16188              #endif
16189              #include <pthread.h>
16190              pthread_t th; void *status;
16191 int
16192 main ()
16193 {
16194 pthread_tryjoin_np (th, &status);
16195   ;
16196   return 0;
16197 }
16198 _ACEOF
16199 if ac_fn_c_try_link "$LINENO"; then :
16200   enable_linux_futex=yes
16201 else
16202   if test x$cross_compiling = xno; then
16203                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16204                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16205                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16206 If so, please configure with --disable-linux-futex" >&5
16207 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16208 If so, please configure with --disable-linux-futex" >&2;}
16209                fi
16210              fi
16211              enable_linux_futex=yes
16212 fi
16213 rm -f core conftest.err conftest.$ac_objext \
16214     conftest$ac_exeext conftest.$ac_ext
16215            LIBS="$save_LIBS"
16216 fi
16217 rm -f core conftest.err conftest.$ac_objext \
16218     conftest$ac_exeext conftest.$ac_ext
16219         ;;
16220       yes)
16221         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h.  */
16223 #include <sys/syscall.h>
16224            int lk;
16225 int
16226 main ()
16227 {
16228 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16229   ;
16230   return 0;
16231 }
16232 _ACEOF
16233 if ac_fn_c_try_link "$LINENO"; then :
16234
16235 else
16236   as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16237 fi
16238 rm -f core conftest.err conftest.$ac_objext \
16239     conftest$ac_exeext conftest.$ac_ext
16240         ;;
16241     esac
16242     ;;
16243   *)
16244     enable_linux_futex=no
16245     ;;
16246 esac
16247 if test x$enable_linux_futex = xyes; then
16248   :
16249 fi
16250
16251
16252 # See if we support thread-local storage.
16253
16254
16255    # Check whether --enable-tls was given.
16256 if test "${enable_tls+set}" = set; then :
16257   enableval=$enable_tls;
16258       case "$enableval" in
16259        yes|no) ;;
16260        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16261       esac
16262
16263 else
16264   enable_tls=yes
16265 fi
16266
16267
16268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16269 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16270 if test "${gcc_cv_have_tls+set}" = set; then :
16271   $as_echo_n "(cached) " >&6
16272 else
16273
16274     if test "$cross_compiling" = yes; then :
16275                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h.  */
16277 __thread int a; int b; int main() { return a = b; }
16278 _ACEOF
16279 if ac_fn_c_try_link "$LINENO"; then :
16280   chktls_save_LDFLAGS="$LDFLAGS"
16281                           case $host in
16282             *-*-linux*)
16283               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16284               ;;
16285           esac
16286           chktls_save_CFLAGS="$CFLAGS"
16287           CFLAGS="-fPIC $CFLAGS"
16288                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289 /* end confdefs.h.  */
16290 int f() { return 0; }
16291 _ACEOF
16292 if ac_fn_c_try_link "$LINENO"; then :
16293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294 /* end confdefs.h.  */
16295 __thread int a; int b; int f() { return a = b; }
16296 _ACEOF
16297 if ac_fn_c_try_link "$LINENO"; then :
16298   gcc_cv_have_tls=yes
16299 else
16300   gcc_cv_have_tls=no
16301 fi
16302 rm -f core conftest.err conftest.$ac_objext \
16303     conftest$ac_exeext conftest.$ac_ext
16304 else
16305   gcc_cv_have_tls=yes
16306 fi
16307 rm -f core conftest.err conftest.$ac_objext \
16308     conftest$ac_exeext conftest.$ac_ext
16309           CFLAGS="$chktls_save_CFLAGS"
16310           LDFLAGS="$chktls_save_LDFLAGS"
16311 else
16312   gcc_cv_have_tls=no
16313 fi
16314 rm -f core conftest.err conftest.$ac_objext \
16315     conftest$ac_exeext conftest.$ac_ext
16316
16317
16318 else
16319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h.  */
16321 __thread int a; int b; int main() { return a = b; }
16322 _ACEOF
16323 if ac_fn_c_try_run "$LINENO"; then :
16324                       chktls_save_LDFLAGS="$LDFLAGS"
16325       LDFLAGS="-static $LDFLAGS"
16326       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h.  */
16328 int main() { return 0; }
16329 _ACEOF
16330 if ac_fn_c_try_link "$LINENO"; then :
16331   if test "$cross_compiling" = yes; then :
16332   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16334 as_fn_error "cannot run test program while cross compiling
16335 See \`config.log' for more details." "$LINENO" 5; }
16336 else
16337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h.  */
16339 __thread int a; int b; int main() { return a = b; }
16340 _ACEOF
16341 if ac_fn_c_try_run "$LINENO"; then :
16342   gcc_cv_have_tls=yes
16343 else
16344   gcc_cv_have_tls=no
16345 fi
16346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16347   conftest.$ac_objext conftest.beam conftest.$ac_ext
16348 fi
16349
16350 else
16351   gcc_cv_have_tls=yes
16352 fi
16353 rm -f core conftest.err conftest.$ac_objext \
16354     conftest$ac_exeext conftest.$ac_ext
16355       LDFLAGS="$chktls_save_LDFLAGS"
16356       if test $gcc_cv_have_tls = yes; then
16357                                                 chktls_save_CFLAGS="$CFLAGS"
16358         thread_CFLAGS=failed
16359         for flag in '' '-pthread' '-lpthread'; do
16360           CFLAGS="$flag $chktls_save_CFLAGS"
16361           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h.  */
16363 #include <pthread.h>
16364                 void *g(void *d) { return NULL; }
16365 int
16366 main ()
16367 {
16368 pthread_t t; pthread_create(&t,NULL,g,NULL);
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 if ac_fn_c_try_link "$LINENO"; then :
16374   thread_CFLAGS="$flag"
16375 fi
16376 rm -f core conftest.err conftest.$ac_objext \
16377     conftest$ac_exeext conftest.$ac_ext
16378           if test "X$thread_CFLAGS" != Xfailed; then
16379             break
16380           fi
16381         done
16382         CFLAGS="$chktls_save_CFLAGS"
16383         if test "X$thread_CFLAGS" != Xfailed; then
16384           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16385                                                   if test "$cross_compiling" = yes; then :
16386   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16388 as_fn_error "cannot run test program while cross compiling
16389 See \`config.log' for more details." "$LINENO" 5; }
16390 else
16391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h.  */
16393 #include <pthread.h>
16394                 __thread int a;
16395                 static int *volatile a_in_other_thread;
16396                 static void *
16397                 thread_func (void *arg)
16398                 {
16399                   a_in_other_thread = &a;
16400                   return (void *)0;
16401                 }
16402 int
16403 main ()
16404 {
16405 pthread_t thread;
16406                 void *thread_retval;
16407                 int *volatile a_in_main_thread;
16408                 a_in_main_thread = &a;
16409                 if (pthread_create (&thread, (pthread_attr_t *)0,
16410                                     thread_func, (void *)0))
16411                   return 0;
16412                 if (pthread_join (thread, &thread_retval))
16413                   return 0;
16414                 return (a_in_other_thread == a_in_main_thread);
16415   ;
16416   return 0;
16417 }
16418 _ACEOF
16419 if ac_fn_c_try_run "$LINENO"; then :
16420   gcc_cv_have_tls=yes
16421 else
16422   gcc_cv_have_tls=no
16423 fi
16424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16425   conftest.$ac_objext conftest.beam conftest.$ac_ext
16426 fi
16427
16428           CFLAGS="$chktls_save_CFLAGS"
16429         fi
16430       fi
16431 else
16432   gcc_cv_have_tls=no
16433 fi
16434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16435   conftest.$ac_objext conftest.beam conftest.$ac_ext
16436 fi
16437
16438 fi
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16440 $as_echo "$gcc_cv_have_tls" >&6; }
16441   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16442
16443 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16444
16445   fi
16446
16447 # See what sort of export controls are availible.
16448
16449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16450 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16451 if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16452   $as_echo_n "(cached) " >&6
16453 else
16454
16455   save_CFLAGS="$CFLAGS"
16456   CFLAGS="$CFLAGS -Werror"
16457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h.  */
16459 void __attribute__((visibility("hidden"))) foo(void) { }
16460 int
16461 main ()
16462 {
16463
16464   ;
16465   return 0;
16466 }
16467 _ACEOF
16468 if ac_fn_c_try_compile "$LINENO"; then :
16469   libitm_cv_have_attribute_visibility=yes
16470 else
16471   libitm_cv_have_attribute_visibility=no
16472 fi
16473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16474   CFLAGS="$save_CFLAGS"
16475 fi
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16477 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16478   if test $libitm_cv_have_attribute_visibility = yes; then
16479
16480 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16481
16482   fi
16483
16484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16485 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16486 if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16487   $as_echo_n "(cached) " >&6
16488 else
16489
16490   save_CFLAGS="$CFLAGS"
16491   CFLAGS="$CFLAGS -Werror"
16492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h.  */
16494 void __attribute__((dllexport)) foo(void) { }
16495 int
16496 main ()
16497 {
16498
16499   ;
16500   return 0;
16501 }
16502 _ACEOF
16503 if ac_fn_c_try_compile "$LINENO"; then :
16504   libitm_cv_have_attribute_dllexport=yes
16505 else
16506   libitm_cv_have_attribute_dllexport=no
16507 fi
16508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509   CFLAGS="$save_CFLAGS"
16510 fi
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16512 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16513   if test $libitm_cv_have_attribute_dllexport = yes; then
16514
16515 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16516
16517   fi
16518
16519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16520 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16521 if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16522   $as_echo_n "(cached) " >&6
16523 else
16524
16525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h.  */
16527
16528 void foo(void) { }
16529 extern void bar(void) __attribute__((alias("foo")));
16530 int
16531 main ()
16532 {
16533 bar();
16534   ;
16535   return 0;
16536 }
16537 _ACEOF
16538 if ac_fn_c_try_link "$LINENO"; then :
16539   libitm_cv_have_attribute_alias=yes
16540 else
16541   libitm_cv_have_attribute_alias=no
16542 fi
16543 rm -f core conftest.err conftest.$ac_objext \
16544     conftest$ac_exeext conftest.$ac_ext
16545 fi
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16547 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16548   if test $libitm_cv_have_attribute_alias = yes; then
16549
16550 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16551
16552   fi
16553
16554
16555 # Check whether --with-gnu-ld was given.
16556 if test "${with_gnu_ld+set}" = set; then :
16557   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16558 else
16559   with_gnu_ld=no
16560 fi
16561
16562 ac_prog=ld
16563 if test "$GCC" = yes; then
16564   # Check if gcc -print-prog-name=ld gives a path.
16565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16566 $as_echo_n "checking for ld used by $CC... " >&6; }
16567   case $host in
16568   *-*-mingw*)
16569     # gcc leaves a trailing carriage return which upsets mingw
16570     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16571   *)
16572     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16573   esac
16574   case $ac_prog in
16575     # Accept absolute paths.
16576     [\\/]* | ?:[\\/]*)
16577       re_direlt='/[^/][^/]*/\.\./'
16578       # Canonicalize the pathname of ld
16579       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16580       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16581         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16582       done
16583       test -z "$LD" && LD="$ac_prog"
16584       ;;
16585   "")
16586     # If it fails, then pretend we aren't using GCC.
16587     ac_prog=ld
16588     ;;
16589   *)
16590     # If it is relative, then search for the first ld in PATH.
16591     with_gnu_ld=unknown
16592     ;;
16593   esac
16594 elif test "$with_gnu_ld" = yes; then
16595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16596 $as_echo_n "checking for GNU ld... " >&6; }
16597 else
16598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16599 $as_echo_n "checking for non-GNU ld... " >&6; }
16600 fi
16601 if test "${lt_cv_path_LD+set}" = set; then :
16602   $as_echo_n "(cached) " >&6
16603 else
16604   if test -z "$LD"; then
16605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16606   for ac_dir in $PATH; do
16607     IFS="$lt_save_ifs"
16608     test -z "$ac_dir" && ac_dir=.
16609     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16610       lt_cv_path_LD="$ac_dir/$ac_prog"
16611       # Check to see if the program is GNU ld.  I'd rather use --version,
16612       # but apparently some variants of GNU ld only accept -v.
16613       # Break only if it was the GNU/non-GNU ld that we prefer.
16614       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16615       *GNU* | *'with BFD'*)
16616         test "$with_gnu_ld" != no && break
16617         ;;
16618       *)
16619         test "$with_gnu_ld" != yes && break
16620         ;;
16621       esac
16622     fi
16623   done
16624   IFS="$lt_save_ifs"
16625 else
16626   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16627 fi
16628 fi
16629
16630 LD="$lt_cv_path_LD"
16631 if test -n "$LD"; then
16632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16633 $as_echo "$LD" >&6; }
16634 else
16635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16636 $as_echo "no" >&6; }
16637 fi
16638 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16640 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16641 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16642   $as_echo_n "(cached) " >&6
16643 else
16644   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16645 case `$LD -v 2>&1 </dev/null` in
16646 *GNU* | *'with BFD'*)
16647   lt_cv_prog_gnu_ld=yes
16648   ;;
16649 *)
16650   lt_cv_prog_gnu_ld=no
16651   ;;
16652 esac
16653 fi
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16655 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16656 with_gnu_ld=$lt_cv_prog_gnu_ld
16657
16658
16659
16660
16661
16662
16663
16664   # If we're not using GNU ld, then there's no point in even trying these
16665   # tests.  Check for that first.  We should have already tested for gld
16666   # by now (in libtool), but require it now just to be safe...
16667   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16668   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16669
16670
16671
16672   # The name set by libtool depends on the version of libtool.  Shame on us
16673   # for depending on an impl detail, but c'est la vie.  Older versions used
16674   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16675   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16676   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
16677   # set (hence we're using an older libtool), then set it.
16678   if test x${with_gnu_ld+set} != xset; then
16679     if test x${ac_cv_prog_gnu_ld+set} != xset; then
16680       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
16681       with_gnu_ld=no
16682     else
16683       with_gnu_ld=$ac_cv_prog_gnu_ld
16684     fi
16685   fi
16686
16687   # Start by getting the version number.  I think the libtool test already
16688   # does some of this, but throws away the result.
16689
16690   ldver=`$LD --version 2>/dev/null | head -1 | \
16691          sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
16692
16693   libitm_gnu_ld_version=`echo $ldver | \
16694          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16695
16696   # Set --gc-sections.
16697   if test "$with_gnu_ld" = "notbroken"; then
16698     # GNU ld it is!  Joy and bunny rabbits!
16699
16700     # All these tests are for C++; save the language and the compiler flags.
16701     # Need to do this so that g++ won't try to link in libstdc++
16702     ac_test_CFLAGS="${CFLAGS+set}"
16703     ac_save_CFLAGS="$CFLAGS"
16704     CFLAGS='-x c++  -Wl,--gc-sections'
16705
16706     # Check for -Wl,--gc-sections
16707     # XXX This test is broken at the moment, as symbols required for linking
16708     # are now in libsupc++ (not built yet).  In addition, this test has
16709     # cored on solaris in the past.  In addition, --gc-sections doesn't
16710     # really work at the moment (keeps on discarding used sections, first
16711     # .eh_frame and now some of the glibc sections for iconv).
16712     # Bzzzzt.  Thanks for playing, maybe next time.
16713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16714 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16715     if test "$cross_compiling" = yes; then :
16716   ac_sectionLDflags=yes
16717 else
16718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719 /* end confdefs.h.  */
16720
16721      int main(void)
16722      {
16723        try { throw 1; }
16724        catch (...) { };
16725        return 0;
16726      }
16727
16728 _ACEOF
16729 if ac_fn_c_try_run "$LINENO"; then :
16730   ac_sectionLDflags=yes
16731 else
16732   ac_sectionLDflags=no
16733 fi
16734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16735   conftest.$ac_objext conftest.beam conftest.$ac_ext
16736 fi
16737
16738     if test "$ac_test_CFLAGS" = set; then
16739       CFLAGS="$ac_save_CFLAGS"
16740     else
16741       # this is the suspicious part
16742       CFLAGS=''
16743     fi
16744     if test "$ac_sectionLDflags" = "yes"; then
16745       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16746     fi
16747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16748 $as_echo "$ac_sectionLDflags" >&6; }
16749   fi
16750
16751   # Set linker optimization flags.
16752   if test x"$with_gnu_ld" = x"yes"; then
16753     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16754   fi
16755
16756
16757
16758
16759
16760
16761  # Check whether --enable-symvers was given.
16762 if test "${enable_symvers+set}" = set; then :
16763   enableval=$enable_symvers;
16764       case "$enableval" in
16765        yes|no|gnu) ;;
16766        *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16767                           esac
16768
16769 else
16770   enable_symvers=yes
16771 fi
16772
16773
16774
16775 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16776 # don't know enough about $LD to do tricks...
16777
16778 # FIXME  The following test is too strict, in theory.
16779 if test $enable_shared = no ||
16780         test "x$LD" = x ||
16781         test x$libitm_gnu_ld_version = x; then
16782   enable_symvers=no
16783 fi
16784
16785 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16786 if test $enable_symvers != no; then
16787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16788 $as_echo_n "checking for shared libgcc... " >&6; }
16789   ac_save_CFLAGS="$CFLAGS"
16790   CFLAGS=' -lgcc_s'
16791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h.  */
16793
16794 int
16795 main ()
16796 {
16797 return 0;
16798   ;
16799   return 0;
16800 }
16801 _ACEOF
16802 if ac_fn_c_try_link "$LINENO"; then :
16803   libitm_shared_libgcc=yes
16804 else
16805   libitm_shared_libgcc=no
16806 fi
16807 rm -f core conftest.err conftest.$ac_objext \
16808     conftest$ac_exeext conftest.$ac_ext
16809   CFLAGS="$ac_save_CFLAGS"
16810   if test $libitm_shared_libgcc = no; then
16811     cat > conftest.c <<EOF
16812 int main (void) { return 0; }
16813 EOF
16814     libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16815                              -shared -shared-libgcc -o conftest.so \
16816                              conftest.c -v 2>&1 >/dev/null \
16817                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16818     rm -f conftest.c conftest.so
16819     if test x${libitm_libgcc_s_suffix+set} = xset; then
16820       CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16821       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822 /* end confdefs.h.  */
16823
16824 int
16825 main ()
16826 {
16827 return 0;
16828   ;
16829   return 0;
16830 }
16831 _ACEOF
16832 if ac_fn_c_try_link "$LINENO"; then :
16833   libitm_shared_libgcc=yes
16834 fi
16835 rm -f core conftest.err conftest.$ac_objext \
16836     conftest$ac_exeext conftest.$ac_ext
16837       CFLAGS="$ac_save_CFLAGS"
16838     fi
16839   fi
16840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
16841 $as_echo "$libitm_shared_libgcc" >&6; }
16842 fi
16843
16844 # For GNU ld, we need at least this version.  The format is described in
16845 # LIBITM_CHECK_LINKER_FEATURES above.
16846 libitm_min_gnu_ld_version=21400
16847 # XXXXXXXXXXX libitm_gnu_ld_version=21390
16848
16849 # Check to see if unspecified "yes" value can win, given results above.
16850 # Change "yes" into either "no" or a style name.
16851 if test $enable_symvers = yes; then
16852   if test $with_gnu_ld = yes &&
16853      test $libitm_shared_libgcc = yes;
16854   then
16855     if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
16856       enable_symvers=gnu
16857     else
16858       # The right tools, the right setup, but too old.  Fallbacks?
16859       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
16860 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
16861       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16862 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16863       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16864 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16865       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
16866 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
16867       if test $libitm_gnu_ld_version -ge 21200 ; then
16868         # Globbing fix is present, proper block support is not.
16869                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16870 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16871         enable_symvers=no
16872       else
16873         # 2.11 or older.
16874         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16875 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16876         enable_symvers=no
16877       fi
16878     fi
16879   else
16880     # just fail for now
16881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16882 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16883     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16884 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16885     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16886 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16888 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16889     enable_symvers=no
16890   fi
16891 fi
16892
16893  if test $enable_symvers != no; then
16894   LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
16895   LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
16896 else
16897   LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
16898   LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
16899 fi
16900
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16902 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16903
16904
16905 if test $enable_symvers = gnu; then
16906
16907 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16908
16909 fi
16910
16911 # See if we can emit unwind info in the sjlj stub.
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
16913 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
16914 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
16915   $as_echo_n "(cached) " >&6
16916 else
16917
16918     gcc_cv_as_cfi_pseudo_op=unknown
16919     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h.  */
16921 asm (".cfi_startproc\n\t.cfi_endproc");
16922 int
16923 main ()
16924 {
16925
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 if ac_fn_c_try_compile "$LINENO"; then :
16931   gcc_cv_as_cfi_pseudo_op=yes
16932 else
16933   gcc_cv_as_cfi_pseudo_op=no
16934 fi
16935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16936
16937 fi
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
16939 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
16940  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
16941
16942 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
16943
16944  fi
16945
16946
16947 # Determine the proper ABI type for size_t.
16948
16949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
16950 $as_echo_n "checking how size_t is mangled... " >&6; }
16951 if test "${libitm_cv_size_t_mangling+set}" = set; then :
16952   $as_echo_n "(cached) " >&6
16953 else
16954
16955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h.  */
16957
16958 int
16959 main ()
16960 {
16961 extern __SIZE_TYPE__ x; extern unsigned long x;
16962   ;
16963   return 0;
16964 }
16965 _ACEOF
16966 if ac_fn_c_try_compile "$LINENO"; then :
16967   libitm_cv_size_t_mangling=m
16968 else
16969
16970       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h.  */
16972
16973 int
16974 main ()
16975 {
16976 extern __SIZE_TYPE__ x; extern unsigned int x;
16977   ;
16978   return 0;
16979 }
16980 _ACEOF
16981 if ac_fn_c_try_compile "$LINENO"; then :
16982   libitm_cv_size_t_mangling=j
16983 else
16984
16985         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h.  */
16987
16988 int
16989 main ()
16990 {
16991 extern __SIZE_TYPE__ x; extern unsigned long long x;
16992   ;
16993   return 0;
16994 }
16995 _ACEOF
16996 if ac_fn_c_try_compile "$LINENO"; then :
16997   libitm_cv_size_t_mangling=y
16998 else
16999
17000           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h.  */
17002
17003 int
17004 main ()
17005 {
17006 extern __SIZE_TYPE__ x; extern unsigned short x;
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 if ac_fn_c_try_compile "$LINENO"; then :
17012   libitm_cv_size_t_mangling=t
17013 else
17014   libitm_cv_size_t_mangling=x
17015 fi
17016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017
17018 fi
17019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17020
17021 fi
17022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023
17024 fi
17025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026
17027 fi
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17029 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17030   if test $libitm_cv_size_t_mangling = x; then
17031     as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17032   fi
17033
17034 cat >>confdefs.h <<_ACEOF
17035 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17036 _ACEOF
17037
17038
17039
17040 # Get target configury.
17041 . ${srcdir}/configure.tgt
17042 if test -n "$UNSUPPORTED"; then
17043   as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17044 fi
17045
17046 CFLAGS="$save_CFLAGS $XCFLAGS"
17047
17048 # Check for __sync_val_compare_and_swap, but only after the target has
17049 # had a chance to set XCFLAGS.
17050
17051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17052 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17053 if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17054   $as_echo_n "(cached) " >&6
17055 else
17056
17057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h.  */
17059
17060 int
17061 main ()
17062 {
17063 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17064   ;
17065   return 0;
17066 }
17067 _ACEOF
17068 if ac_fn_c_try_link "$LINENO"; then :
17069   libitm_cv_have_sync_builtins=yes
17070 else
17071   libitm_cv_have_sync_builtins=no
17072 fi
17073 rm -f core conftest.err conftest.$ac_objext \
17074     conftest$ac_exeext conftest.$ac_ext
17075 fi
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17077 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17078   if test $libitm_cv_have_sync_builtins = yes; then
17079
17080 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17081
17082   fi
17083
17084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17085 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17086 if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17087   $as_echo_n "(cached) " >&6
17088 else
17089
17090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17091 /* end confdefs.h.  */
17092 #include <stdint.h>
17093 int
17094 main ()
17095 {
17096 uint64_t foo, bar;
17097      bar = __sync_val_compare_and_swap(&foo, 0, 1);
17098   ;
17099   return 0;
17100 }
17101 _ACEOF
17102 if ac_fn_c_try_link "$LINENO"; then :
17103   libitm_cv_have_64bit_sync_builtins=yes
17104 else
17105   libitm_cv_have_64bit_sync_builtins=no
17106 fi
17107 rm -f core conftest.err conftest.$ac_objext \
17108     conftest$ac_exeext conftest.$ac_ext
17109 fi
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17111 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17112     if test $libitm_cv_have_64bit_sync_builtins = yes; then
17113
17114 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17115
17116   fi
17117
17118 # Cleanup and exit.
17119 CFLAGS="$save_CFLAGS"
17120 cat >confcache <<\_ACEOF
17121 # This file is a shell script that caches the results of configure
17122 # tests run on this system so they can be shared between configure
17123 # scripts and configure runs, see configure's option --config-cache.
17124 # It is not useful on other systems.  If it contains results you don't
17125 # want to keep, you may remove or edit it.
17126 #
17127 # config.status only pays attention to the cache file if you give it
17128 # the --recheck option to rerun configure.
17129 #
17130 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17131 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17132 # following values.
17133
17134 _ACEOF
17135
17136 # The following way of writing the cache mishandles newlines in values,
17137 # but we know of no workaround that is simple, portable, and efficient.
17138 # So, we kill variables containing newlines.
17139 # Ultrix sh set writes to stderr and can't be redirected directly,
17140 # and sets the high bit in the cache file unless we assign to the vars.
17141 (
17142   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17143     eval ac_val=\$$ac_var
17144     case $ac_val in #(
17145     *${as_nl}*)
17146       case $ac_var in #(
17147       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17148 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17149       esac
17150       case $ac_var in #(
17151       _ | IFS | as_nl) ;; #(
17152       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17153       *) { eval $ac_var=; unset $ac_var;} ;;
17154       esac ;;
17155     esac
17156   done
17157
17158   (set) 2>&1 |
17159     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17160     *${as_nl}ac_space=\ *)
17161       # `set' does not quote correctly, so add quotes: double-quote
17162       # substitution turns \\\\ into \\, and sed turns \\ into \.
17163       sed -n \
17164         "s/'/'\\\\''/g;
17165           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17166       ;; #(
17167     *)
17168       # `set' quotes correctly as required by POSIX, so do not add quotes.
17169       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17170       ;;
17171     esac |
17172     sort
17173 ) |
17174   sed '
17175      /^ac_cv_env_/b end
17176      t clear
17177      :clear
17178      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17179      t end
17180      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17181      :end' >>confcache
17182 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17183   if test -w "$cache_file"; then
17184     test "x$cache_file" != "x/dev/null" &&
17185       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17186 $as_echo "$as_me: updating cache $cache_file" >&6;}
17187     cat confcache >$cache_file
17188   else
17189     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17190 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17191   fi
17192 fi
17193 rm -f confcache
17194
17195 # Add -Wall -Werror if we are using GCC.
17196 if test "x$GCC" = "xyes"; then
17197   XCFLAGS="$XCFLAGS -Wall -Werror"
17198 fi
17199
17200 XCFLAGS="$XCFLAGS $XPCFLAGS"
17201
17202
17203
17204
17205
17206 if test ${multilib} = yes; then
17207   multilib_arg="--enable-multilib"
17208 else
17209   multilib_arg=
17210 fi
17211
17212 # Set up the set of libraries that we need to link against for libitm.
17213 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
17214 # which will force linkage against -lpthread (or equivalent for the system).
17215 # That's not 100% ideal, but about the best we can do easily.
17216 if test $enable_shared = yes; then
17217   link_itm="-litm %{static: $LIBS}"
17218 else
17219   link_itm="-litm $LIBS"
17220 fi
17221
17222
17223  if test "$ARCH" = x86; then
17224   ARCH_X86_TRUE=
17225   ARCH_X86_FALSE='#'
17226 else
17227   ARCH_X86_TRUE='#'
17228   ARCH_X86_FALSE=
17229 fi
17230
17231  if test $enable_linux_futex = yes; then
17232   ARCH_FUTEX_TRUE=
17233   ARCH_FUTEX_FALSE='#'
17234 else
17235   ARCH_FUTEX_TRUE='#'
17236   ARCH_FUTEX_FALSE=
17237 fi
17238
17239
17240 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17241
17242 cat >confcache <<\_ACEOF
17243 # This file is a shell script that caches the results of configure
17244 # tests run on this system so they can be shared between configure
17245 # scripts and configure runs, see configure's option --config-cache.
17246 # It is not useful on other systems.  If it contains results you don't
17247 # want to keep, you may remove or edit it.
17248 #
17249 # config.status only pays attention to the cache file if you give it
17250 # the --recheck option to rerun configure.
17251 #
17252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17254 # following values.
17255
17256 _ACEOF
17257
17258 # The following way of writing the cache mishandles newlines in values,
17259 # but we know of no workaround that is simple, portable, and efficient.
17260 # So, we kill variables containing newlines.
17261 # Ultrix sh set writes to stderr and can't be redirected directly,
17262 # and sets the high bit in the cache file unless we assign to the vars.
17263 (
17264   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17265     eval ac_val=\$$ac_var
17266     case $ac_val in #(
17267     *${as_nl}*)
17268       case $ac_var in #(
17269       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17270 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17271       esac
17272       case $ac_var in #(
17273       _ | IFS | as_nl) ;; #(
17274       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17275       *) { eval $ac_var=; unset $ac_var;} ;;
17276       esac ;;
17277     esac
17278   done
17279
17280   (set) 2>&1 |
17281     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17282     *${as_nl}ac_space=\ *)
17283       # `set' does not quote correctly, so add quotes: double-quote
17284       # substitution turns \\\\ into \\, and sed turns \\ into \.
17285       sed -n \
17286         "s/'/'\\\\''/g;
17287           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17288       ;; #(
17289     *)
17290       # `set' quotes correctly as required by POSIX, so do not add quotes.
17291       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17292       ;;
17293     esac |
17294     sort
17295 ) |
17296   sed '
17297      /^ac_cv_env_/b end
17298      t clear
17299      :clear
17300      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17301      t end
17302      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17303      :end' >>confcache
17304 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17305   if test -w "$cache_file"; then
17306     test "x$cache_file" != "x/dev/null" &&
17307       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17308 $as_echo "$as_me: updating cache $cache_file" >&6;}
17309     cat confcache >$cache_file
17310   else
17311     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17312 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17313   fi
17314 fi
17315 rm -f confcache
17316
17317 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17318 # Let make expand exec_prefix.
17319 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17320
17321 DEFS=-DHAVE_CONFIG_H
17322
17323 ac_libobjs=
17324 ac_ltlibobjs=
17325 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17326   # 1. Remove the extension, and $U if already installed.
17327   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17328   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17329   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17330   #    will be set to the directory where LIBOBJS objects are built.
17331   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17332   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17333 done
17334 LIBOBJS=$ac_libobjs
17335
17336 LTLIBOBJS=$ac_ltlibobjs
17337
17338
17339 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17340   as_fn_error "conditional \"GENINSRC\" was never defined.
17341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17342 fi
17343  if test -n "$EXEEXT"; then
17344   am__EXEEXT_TRUE=
17345   am__EXEEXT_FALSE='#'
17346 else
17347   am__EXEEXT_TRUE='#'
17348   am__EXEEXT_FALSE=
17349 fi
17350
17351 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17352   as_fn_error "conditional \"AMDEP\" was never defined.
17353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17354 fi
17355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17356   as_fn_error "conditional \"am__fastdepCC\" was never defined.
17357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17358 fi
17359 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17360   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17362 fi
17363 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17364   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17366 fi
17367 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17368   as_fn_error "conditional \"BUILD_INFO\" was never defined.
17369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17370 fi
17371 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17372   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17374 fi
17375
17376 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17377   as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17379 fi
17380 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17381   as_fn_error "conditional \"ARCH_X86\" was never defined.
17382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17383 fi
17384 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17385   as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17387 fi
17388
17389 : ${CONFIG_STATUS=./config.status}
17390 ac_write_fail=0
17391 ac_clean_files_save=$ac_clean_files
17392 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17394 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17395 as_write_fail=0
17396 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17397 #! $SHELL
17398 # Generated by $as_me.
17399 # Run this file to recreate the current configuration.
17400 # Compiler output produced by configure, useful for debugging
17401 # configure, is in config.log if it exists.
17402
17403 debug=false
17404 ac_cs_recheck=false
17405 ac_cs_silent=false
17406
17407 SHELL=\${CONFIG_SHELL-$SHELL}
17408 export SHELL
17409 _ASEOF
17410 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17411 ## -------------------- ##
17412 ## M4sh Initialization. ##
17413 ## -------------------- ##
17414
17415 # Be more Bourne compatible
17416 DUALCASE=1; export DUALCASE # for MKS sh
17417 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17418   emulate sh
17419   NULLCMD=:
17420   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17421   # is contrary to our usage.  Disable this feature.
17422   alias -g '${1+"$@"}'='"$@"'
17423   setopt NO_GLOB_SUBST
17424 else
17425   case `(set -o) 2>/dev/null` in #(
17426   *posix*) :
17427     set -o posix ;; #(
17428   *) :
17429      ;;
17430 esac
17431 fi
17432
17433
17434 as_nl='
17435 '
17436 export as_nl
17437 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17438 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17439 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17440 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17441 # Prefer a ksh shell builtin over an external printf program on Solaris,
17442 # but without wasting forks for bash or zsh.
17443 if test -z "$BASH_VERSION$ZSH_VERSION" \
17444     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17445   as_echo='print -r --'
17446   as_echo_n='print -rn --'
17447 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17448   as_echo='printf %s\n'
17449   as_echo_n='printf %s'
17450 else
17451   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17452     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17453     as_echo_n='/usr/ucb/echo -n'
17454   else
17455     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17456     as_echo_n_body='eval
17457       arg=$1;
17458       case $arg in #(
17459       *"$as_nl"*)
17460         expr "X$arg" : "X\\(.*\\)$as_nl";
17461         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17462       esac;
17463       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17464     '
17465     export as_echo_n_body
17466     as_echo_n='sh -c $as_echo_n_body as_echo'
17467   fi
17468   export as_echo_body
17469   as_echo='sh -c $as_echo_body as_echo'
17470 fi
17471
17472 # The user is always right.
17473 if test "${PATH_SEPARATOR+set}" != set; then
17474   PATH_SEPARATOR=:
17475   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17476     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17477       PATH_SEPARATOR=';'
17478   }
17479 fi
17480
17481
17482 # IFS
17483 # We need space, tab and new line, in precisely that order.  Quoting is
17484 # there to prevent editors from complaining about space-tab.
17485 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17486 # splitting by setting IFS to empty value.)
17487 IFS=" ""        $as_nl"
17488
17489 # Find who we are.  Look in the path if we contain no directory separator.
17490 case $0 in #((
17491   *[\\/]* ) as_myself=$0 ;;
17492   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17493 for as_dir in $PATH
17494 do
17495   IFS=$as_save_IFS
17496   test -z "$as_dir" && as_dir=.
17497     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17498   done
17499 IFS=$as_save_IFS
17500
17501      ;;
17502 esac
17503 # We did not find ourselves, most probably we were run as `sh COMMAND'
17504 # in which case we are not to be found in the path.
17505 if test "x$as_myself" = x; then
17506   as_myself=$0
17507 fi
17508 if test ! -f "$as_myself"; then
17509   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17510   exit 1
17511 fi
17512
17513 # Unset variables that we do not need and which cause bugs (e.g. in
17514 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17515 # suppresses any "Segmentation fault" message there.  '((' could
17516 # trigger a bug in pdksh 5.2.14.
17517 for as_var in BASH_ENV ENV MAIL MAILPATH
17518 do eval test x\${$as_var+set} = xset \
17519   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17520 done
17521 PS1='$ '
17522 PS2='> '
17523 PS4='+ '
17524
17525 # NLS nuisances.
17526 LC_ALL=C
17527 export LC_ALL
17528 LANGUAGE=C
17529 export LANGUAGE
17530
17531 # CDPATH.
17532 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17533
17534
17535 # as_fn_error ERROR [LINENO LOG_FD]
17536 # ---------------------------------
17537 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17538 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17539 # script with status $?, using 1 if that was 0.
17540 as_fn_error ()
17541 {
17542   as_status=$?; test $as_status -eq 0 && as_status=1
17543   if test "$3"; then
17544     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17545     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17546   fi
17547   $as_echo "$as_me: error: $1" >&2
17548   as_fn_exit $as_status
17549 } # as_fn_error
17550
17551
17552 # as_fn_set_status STATUS
17553 # -----------------------
17554 # Set $? to STATUS, without forking.
17555 as_fn_set_status ()
17556 {
17557   return $1
17558 } # as_fn_set_status
17559
17560 # as_fn_exit STATUS
17561 # -----------------
17562 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17563 as_fn_exit ()
17564 {
17565   set +e
17566   as_fn_set_status $1
17567   exit $1
17568 } # as_fn_exit
17569
17570 # as_fn_unset VAR
17571 # ---------------
17572 # Portably unset VAR.
17573 as_fn_unset ()
17574 {
17575   { eval $1=; unset $1;}
17576 }
17577 as_unset=as_fn_unset
17578 # as_fn_append VAR VALUE
17579 # ----------------------
17580 # Append the text in VALUE to the end of the definition contained in VAR. Take
17581 # advantage of any shell optimizations that allow amortized linear growth over
17582 # repeated appends, instead of the typical quadratic growth present in naive
17583 # implementations.
17584 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17585   eval 'as_fn_append ()
17586   {
17587     eval $1+=\$2
17588   }'
17589 else
17590   as_fn_append ()
17591   {
17592     eval $1=\$$1\$2
17593   }
17594 fi # as_fn_append
17595
17596 # as_fn_arith ARG...
17597 # ------------------
17598 # Perform arithmetic evaluation on the ARGs, and store the result in the
17599 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17600 # must be portable across $(()) and expr.
17601 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17602   eval 'as_fn_arith ()
17603   {
17604     as_val=$(( $* ))
17605   }'
17606 else
17607   as_fn_arith ()
17608   {
17609     as_val=`expr "$@" || test $? -eq 1`
17610   }
17611 fi # as_fn_arith
17612
17613
17614 if expr a : '\(a\)' >/dev/null 2>&1 &&
17615    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17616   as_expr=expr
17617 else
17618   as_expr=false
17619 fi
17620
17621 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17622   as_basename=basename
17623 else
17624   as_basename=false
17625 fi
17626
17627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17628   as_dirname=dirname
17629 else
17630   as_dirname=false
17631 fi
17632
17633 as_me=`$as_basename -- "$0" ||
17634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17635          X"$0" : 'X\(//\)$' \| \
17636          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17637 $as_echo X/"$0" |
17638     sed '/^.*\/\([^/][^/]*\)\/*$/{
17639             s//\1/
17640             q
17641           }
17642           /^X\/\(\/\/\)$/{
17643             s//\1/
17644             q
17645           }
17646           /^X\/\(\/\).*/{
17647             s//\1/
17648             q
17649           }
17650           s/.*/./; q'`
17651
17652 # Avoid depending upon Character Ranges.
17653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17656 as_cr_digits='0123456789'
17657 as_cr_alnum=$as_cr_Letters$as_cr_digits
17658
17659 ECHO_C= ECHO_N= ECHO_T=
17660 case `echo -n x` in #(((((
17661 -n*)
17662   case `echo 'xy\c'` in
17663   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17664   xy)  ECHO_C='\c';;
17665   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17666        ECHO_T=' ';;
17667   esac;;
17668 *)
17669   ECHO_N='-n';;
17670 esac
17671
17672 rm -f conf$$ conf$$.exe conf$$.file
17673 if test -d conf$$.dir; then
17674   rm -f conf$$.dir/conf$$.file
17675 else
17676   rm -f conf$$.dir
17677   mkdir conf$$.dir 2>/dev/null
17678 fi
17679 if (echo >conf$$.file) 2>/dev/null; then
17680   if ln -s conf$$.file conf$$ 2>/dev/null; then
17681     as_ln_s='ln -s'
17682     # ... but there are two gotchas:
17683     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17684     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17685     # In both cases, we have to default to `cp -p'.
17686     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17687       as_ln_s='cp -p'
17688   elif ln conf$$.file conf$$ 2>/dev/null; then
17689     as_ln_s=ln
17690   else
17691     as_ln_s='cp -p'
17692   fi
17693 else
17694   as_ln_s='cp -p'
17695 fi
17696 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17697 rmdir conf$$.dir 2>/dev/null
17698
17699
17700 # as_fn_mkdir_p
17701 # -------------
17702 # Create "$as_dir" as a directory, including parents if necessary.
17703 as_fn_mkdir_p ()
17704 {
17705
17706   case $as_dir in #(
17707   -*) as_dir=./$as_dir;;
17708   esac
17709   test -d "$as_dir" || eval $as_mkdir_p || {
17710     as_dirs=
17711     while :; do
17712       case $as_dir in #(
17713       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17714       *) as_qdir=$as_dir;;
17715       esac
17716       as_dirs="'$as_qdir' $as_dirs"
17717       as_dir=`$as_dirname -- "$as_dir" ||
17718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17719          X"$as_dir" : 'X\(//\)[^/]' \| \
17720          X"$as_dir" : 'X\(//\)$' \| \
17721          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17722 $as_echo X"$as_dir" |
17723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17724             s//\1/
17725             q
17726           }
17727           /^X\(\/\/\)[^/].*/{
17728             s//\1/
17729             q
17730           }
17731           /^X\(\/\/\)$/{
17732             s//\1/
17733             q
17734           }
17735           /^X\(\/\).*/{
17736             s//\1/
17737             q
17738           }
17739           s/.*/./; q'`
17740       test -d "$as_dir" && break
17741     done
17742     test -z "$as_dirs" || eval "mkdir $as_dirs"
17743   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17744
17745
17746 } # as_fn_mkdir_p
17747 if mkdir -p . 2>/dev/null; then
17748   as_mkdir_p='mkdir -p "$as_dir"'
17749 else
17750   test -d ./-p && rmdir ./-p
17751   as_mkdir_p=false
17752 fi
17753
17754 if test -x / >/dev/null 2>&1; then
17755   as_test_x='test -x'
17756 else
17757   if ls -dL / >/dev/null 2>&1; then
17758     as_ls_L_option=L
17759   else
17760     as_ls_L_option=
17761   fi
17762   as_test_x='
17763     eval sh -c '\''
17764       if test -d "$1"; then
17765         test -d "$1/.";
17766       else
17767         case $1 in #(
17768         -*)set "./$1";;
17769         esac;
17770         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17771         ???[sx]*):;;*)false;;esac;fi
17772     '\'' sh
17773   '
17774 fi
17775 as_executable_p=$as_test_x
17776
17777 # Sed expression to map a string onto a valid CPP name.
17778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17779
17780 # Sed expression to map a string onto a valid variable name.
17781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17782
17783
17784 exec 6>&1
17785 ## ----------------------------------- ##
17786 ## Main body of $CONFIG_STATUS script. ##
17787 ## ----------------------------------- ##
17788 _ASEOF
17789 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17790
17791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17792 # Save the log message, to keep $0 and so on meaningful, and to
17793 # report actual input values of CONFIG_FILES etc. instead of their
17794 # values after options handling.
17795 ac_log="
17796 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
17797 generated by GNU Autoconf 2.64.  Invocation command line was
17798
17799   CONFIG_FILES    = $CONFIG_FILES
17800   CONFIG_HEADERS  = $CONFIG_HEADERS
17801   CONFIG_LINKS    = $CONFIG_LINKS
17802   CONFIG_COMMANDS = $CONFIG_COMMANDS
17803   $ $0 $@
17804
17805 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17806 "
17807
17808 _ACEOF
17809
17810 case $ac_config_files in *"
17811 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17812 esac
17813
17814 case $ac_config_headers in *"
17815 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17816 esac
17817
17818
17819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17820 # Files that config.status was made for.
17821 config_files="$ac_config_files"
17822 config_headers="$ac_config_headers"
17823 config_commands="$ac_config_commands"
17824
17825 _ACEOF
17826
17827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828 ac_cs_usage="\
17829 \`$as_me' instantiates files and other configuration actions
17830 from templates according to the current configuration.  Unless the files
17831 and actions are specified as TAGs, all are instantiated by default.
17832
17833 Usage: $0 [OPTION]... [TAG]...
17834
17835   -h, --help       print this help, then exit
17836   -V, --version    print version number and configuration settings, then exit
17837   -q, --quiet, --silent
17838                    do not print progress messages
17839   -d, --debug      don't remove temporary files
17840       --recheck    update $as_me by reconfiguring in the same conditions
17841       --file=FILE[:TEMPLATE]
17842                    instantiate the configuration file FILE
17843       --header=FILE[:TEMPLATE]
17844                    instantiate the configuration header FILE
17845
17846 Configuration files:
17847 $config_files
17848
17849 Configuration headers:
17850 $config_headers
17851
17852 Configuration commands:
17853 $config_commands
17854
17855 Report bugs to the package provider.
17856 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
17857 General help using GNU software: <http://www.gnu.org/gethelp/>."
17858
17859 _ACEOF
17860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17861 ac_cs_version="\\
17862 GNU TM Runtime Library config.status 1.0
17863 configured by $0, generated by GNU Autoconf 2.64,
17864   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17865
17866 Copyright (C) 2009 Free Software Foundation, Inc.
17867 This config.status script is free software; the Free Software Foundation
17868 gives unlimited permission to copy, distribute and modify it."
17869
17870 ac_pwd='$ac_pwd'
17871 srcdir='$srcdir'
17872 INSTALL='$INSTALL'
17873 MKDIR_P='$MKDIR_P'
17874 AWK='$AWK'
17875 test -n "\$AWK" || AWK=awk
17876 _ACEOF
17877
17878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17879 # The default lists apply if the user does not specify any file.
17880 ac_need_defaults=:
17881 while test $# != 0
17882 do
17883   case $1 in
17884   --*=*)
17885     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17886     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17887     ac_shift=:
17888     ;;
17889   *)
17890     ac_option=$1
17891     ac_optarg=$2
17892     ac_shift=shift
17893     ;;
17894   esac
17895
17896   case $ac_option in
17897   # Handling of the options.
17898   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17899     ac_cs_recheck=: ;;
17900   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17901     $as_echo "$ac_cs_version"; exit ;;
17902   --debug | --debu | --deb | --de | --d | -d )
17903     debug=: ;;
17904   --file | --fil | --fi | --f )
17905     $ac_shift
17906     case $ac_optarg in
17907     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17908     esac
17909     as_fn_append CONFIG_FILES " '$ac_optarg'"
17910     ac_need_defaults=false;;
17911   --header | --heade | --head | --hea )
17912     $ac_shift
17913     case $ac_optarg in
17914     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17915     esac
17916     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17917     ac_need_defaults=false;;
17918   --he | --h)
17919     # Conflict between --help and --header
17920     as_fn_error "ambiguous option: \`$1'
17921 Try \`$0 --help' for more information.";;
17922   --help | --hel | -h )
17923     $as_echo "$ac_cs_usage"; exit ;;
17924   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17925   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17926     ac_cs_silent=: ;;
17927
17928   # This is an error.
17929   -*) as_fn_error "unrecognized option: \`$1'
17930 Try \`$0 --help' for more information." ;;
17931
17932   *) as_fn_append ac_config_targets " $1"
17933      ac_need_defaults=false ;;
17934
17935   esac
17936   shift
17937 done
17938
17939 ac_configure_extra_args=
17940
17941 if $ac_cs_silent; then
17942   exec 6>/dev/null
17943   ac_configure_extra_args="$ac_configure_extra_args --silent"
17944 fi
17945
17946 _ACEOF
17947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17948 if \$ac_cs_recheck; then
17949   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17950   shift
17951   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17952   CONFIG_SHELL='$SHELL'
17953   export CONFIG_SHELL
17954   exec "\$@"
17955 fi
17956
17957 _ACEOF
17958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17959 exec 5>>config.log
17960 {
17961   echo
17962   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17963 ## Running $as_me. ##
17964 _ASBOX
17965   $as_echo "$ac_log"
17966 } >&5
17967
17968 _ACEOF
17969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17970 #
17971 # INIT-COMMANDS
17972 #
17973
17974 srcdir="$srcdir"
17975 host="$host"
17976 target="$target"
17977 with_multisubdir="$with_multisubdir"
17978 with_multisrctop="$with_multisrctop"
17979 with_target_subdir="$with_target_subdir"
17980 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17981 multi_basedir="$multi_basedir"
17982 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17983 CC="$CC"
17984 CXX="$CXX"
17985 GFORTRAN="$GFORTRAN"
17986 GCJ="$GCJ"
17987 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17988
17989
17990 # The HP-UX ksh and POSIX shell print the target directory to stdout
17991 # if CDPATH is set.
17992 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17993
17994 sed_quote_subst='$sed_quote_subst'
17995 double_quote_subst='$double_quote_subst'
17996 delay_variable_subst='$delay_variable_subst'
17997 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17998 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17999 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18000 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18001 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18002 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18003 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18004 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18005 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18006 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18007 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18008 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18009 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18010 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18011 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18012 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18013 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18014 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18015 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18016 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18017 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18018 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18019 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18020 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18021 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18022 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18023 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18024 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18025 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18026 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18027 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18028 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18029 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18030 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18031 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18032 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18033 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18034 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18035 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18036 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18037 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18038 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18039 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18040 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18041 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18042 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18043 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18044 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18045 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"`'
18046 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18047 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18048 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18049 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18050 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18051 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18052 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18053 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18054 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18055 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18056 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18057 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18058 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18059 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18060 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18061 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18062 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18063 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18064 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18065 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18066 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18067 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18068 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18069 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18070 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18071 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18072 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18073 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18074 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18075 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18076 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18077 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18078 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18079 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18080 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18081 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18082 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18083 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18084 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18085 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18086 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18087 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18088 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18089 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18090 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18091 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18092 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18093 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18094 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18095 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18096 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18097 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18098 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18099 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18100 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18101 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18102 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18103 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18104 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18105 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18106 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18107 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18108 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18109 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18110 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18111 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18112 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18113 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18114 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18115 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18116 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18117 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18118 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18119 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18120 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18121 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18122 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18123 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18124 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18125 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18126 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18127 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18128 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18129 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18130 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18131 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18132 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18133 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18134 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18135 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18136 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18137 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18138 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18139 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18140 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18141 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18142 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18143 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18144 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18145 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18146 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18147 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18148 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18149 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18150 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18151 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18152 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18153 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18154 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18155 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18156 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18157 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18158 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18159 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18160 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18161 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18162 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18163 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18164 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18165 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18166 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18167 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18168 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18169 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18170 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18171 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18172
18173 LTCC='$LTCC'
18174 LTCFLAGS='$LTCFLAGS'
18175 compiler='$compiler_DEFAULT'
18176
18177 # A function that is used when there is no print builtin or printf.
18178 func_fallback_echo ()
18179 {
18180   eval 'cat <<_LTECHO_EOF
18181 \$1
18182 _LTECHO_EOF'
18183 }
18184
18185 # Quote evaled strings.
18186 for var in SHELL \
18187 ECHO \
18188 SED \
18189 GREP \
18190 EGREP \
18191 FGREP \
18192 LD \
18193 NM \
18194 LN_S \
18195 lt_SP2NL \
18196 lt_NL2SP \
18197 reload_flag \
18198 OBJDUMP \
18199 deplibs_check_method \
18200 file_magic_cmd \
18201 AR \
18202 AR_FLAGS \
18203 STRIP \
18204 RANLIB \
18205 CC \
18206 CFLAGS \
18207 compiler \
18208 lt_cv_sys_global_symbol_pipe \
18209 lt_cv_sys_global_symbol_to_cdecl \
18210 lt_cv_sys_global_symbol_to_c_name_address \
18211 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18212 lt_prog_compiler_no_builtin_flag \
18213 lt_prog_compiler_wl \
18214 lt_prog_compiler_pic \
18215 lt_prog_compiler_static \
18216 lt_cv_prog_compiler_c_o \
18217 need_locks \
18218 DSYMUTIL \
18219 NMEDIT \
18220 LIPO \
18221 OTOOL \
18222 OTOOL64 \
18223 shrext_cmds \
18224 export_dynamic_flag_spec \
18225 whole_archive_flag_spec \
18226 compiler_needs_object \
18227 with_gnu_ld \
18228 allow_undefined_flag \
18229 no_undefined_flag \
18230 hardcode_libdir_flag_spec \
18231 hardcode_libdir_flag_spec_ld \
18232 hardcode_libdir_separator \
18233 fix_srcfile_path \
18234 exclude_expsyms \
18235 include_expsyms \
18236 file_list_spec \
18237 variables_saved_for_relink \
18238 libname_spec \
18239 library_names_spec \
18240 soname_spec \
18241 install_override_mode \
18242 finish_eval \
18243 old_striplib \
18244 striplib \
18245 compiler_lib_search_dirs \
18246 predep_objects \
18247 postdep_objects \
18248 predeps \
18249 postdeps \
18250 compiler_lib_search_path \
18251 LD_CXX \
18252 reload_flag_CXX \
18253 compiler_CXX \
18254 lt_prog_compiler_no_builtin_flag_CXX \
18255 lt_prog_compiler_wl_CXX \
18256 lt_prog_compiler_pic_CXX \
18257 lt_prog_compiler_static_CXX \
18258 lt_cv_prog_compiler_c_o_CXX \
18259 export_dynamic_flag_spec_CXX \
18260 whole_archive_flag_spec_CXX \
18261 compiler_needs_object_CXX \
18262 with_gnu_ld_CXX \
18263 allow_undefined_flag_CXX \
18264 no_undefined_flag_CXX \
18265 hardcode_libdir_flag_spec_CXX \
18266 hardcode_libdir_flag_spec_ld_CXX \
18267 hardcode_libdir_separator_CXX \
18268 fix_srcfile_path_CXX \
18269 exclude_expsyms_CXX \
18270 include_expsyms_CXX \
18271 file_list_spec_CXX \
18272 compiler_lib_search_dirs_CXX \
18273 predep_objects_CXX \
18274 postdep_objects_CXX \
18275 predeps_CXX \
18276 postdeps_CXX \
18277 compiler_lib_search_path_CXX; do
18278     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18279     *[\\\\\\\`\\"\\\$]*)
18280       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18281       ;;
18282     *)
18283       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18284       ;;
18285     esac
18286 done
18287
18288 # Double-quote double-evaled strings.
18289 for var in reload_cmds \
18290 old_postinstall_cmds \
18291 old_postuninstall_cmds \
18292 old_archive_cmds \
18293 extract_expsyms_cmds \
18294 old_archive_from_new_cmds \
18295 old_archive_from_expsyms_cmds \
18296 archive_cmds \
18297 archive_expsym_cmds \
18298 module_cmds \
18299 module_expsym_cmds \
18300 export_symbols_cmds \
18301 prelink_cmds \
18302 postinstall_cmds \
18303 postuninstall_cmds \
18304 finish_cmds \
18305 sys_lib_search_path_spec \
18306 sys_lib_dlsearch_path_spec \
18307 reload_cmds_CXX \
18308 old_archive_cmds_CXX \
18309 old_archive_from_new_cmds_CXX \
18310 old_archive_from_expsyms_cmds_CXX \
18311 archive_cmds_CXX \
18312 archive_expsym_cmds_CXX \
18313 module_cmds_CXX \
18314 module_expsym_cmds_CXX \
18315 export_symbols_cmds_CXX \
18316 prelink_cmds_CXX; do
18317     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18318     *[\\\\\\\`\\"\\\$]*)
18319       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18320       ;;
18321     *)
18322       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18323       ;;
18324     esac
18325 done
18326
18327 ac_aux_dir='$ac_aux_dir'
18328 xsi_shell='$xsi_shell'
18329 lt_shell_append='$lt_shell_append'
18330
18331 # See if we are running on zsh, and set the options which allow our
18332 # commands through without removal of \ escapes INIT.
18333 if test -n "\${ZSH_VERSION+set}" ; then
18334    setopt NO_GLOB_SUBST
18335 fi
18336
18337
18338     PACKAGE='$PACKAGE'
18339     VERSION='$VERSION'
18340     TIMESTAMP='$TIMESTAMP'
18341     RM='$RM'
18342     ofile='$ofile'
18343
18344
18345
18346
18347
18348
18349 GCC="$GCC"
18350 CC="$CC"
18351 acx_cv_header_stdint="$acx_cv_header_stdint"
18352 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18353 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18354 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18355 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18356 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18357 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18358 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18359 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18360 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18361 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18362 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18363 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18364 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18365
18366
18367 _ACEOF
18368
18369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18370
18371 # Handling of arguments.
18372 for ac_config_target in $ac_config_targets
18373 do
18374   case $ac_config_target in
18375     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18376     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18377     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18378     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18379     "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18380     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18381     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18382     "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18383
18384   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18385   esac
18386 done
18387
18388
18389 # If the user did not use the arguments to specify the items to instantiate,
18390 # then the envvar interface is used.  Set only those that are not.
18391 # We use the long form for the default assignment because of an extremely
18392 # bizarre bug on SunOS 4.1.3.
18393 if $ac_need_defaults; then
18394   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18395   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18396   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18397 fi
18398
18399 # Have a temporary directory for convenience.  Make it in the build tree
18400 # simply because there is no reason against having it here, and in addition,
18401 # creating and moving files from /tmp can sometimes cause problems.
18402 # Hook for its removal unless debugging.
18403 # Note that there is a small window in which the directory will not be cleaned:
18404 # after its creation but before its name has been assigned to `$tmp'.
18405 $debug ||
18406 {
18407   tmp=
18408   trap 'exit_status=$?
18409   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18410 ' 0
18411   trap 'as_fn_exit 1' 1 2 13 15
18412 }
18413 # Create a (secure) tmp directory for tmp files.
18414
18415 {
18416   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18417   test -n "$tmp" && test -d "$tmp"
18418 }  ||
18419 {
18420   tmp=./conf$$-$RANDOM
18421   (umask 077 && mkdir "$tmp")
18422 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18423
18424 # Set up the scripts for CONFIG_FILES section.
18425 # No need to generate them if there are no CONFIG_FILES.
18426 # This happens for instance with `./config.status config.h'.
18427 if test -n "$CONFIG_FILES"; then
18428
18429
18430 ac_cr=`echo X | tr X '\015'`
18431 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18432 # But we know of no other shell where ac_cr would be empty at this
18433 # point, so we can use a bashism as a fallback.
18434 if test "x$ac_cr" = x; then
18435   eval ac_cr=\$\'\\r\'
18436 fi
18437 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18438 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18439   ac_cs_awk_cr='\r'
18440 else
18441   ac_cs_awk_cr=$ac_cr
18442 fi
18443
18444 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18445 _ACEOF
18446
18447
18448 {
18449   echo "cat >conf$$subs.awk <<_ACEOF" &&
18450   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18451   echo "_ACEOF"
18452 } >conf$$subs.sh ||
18453   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18454 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18455 ac_delim='%!_!# '
18456 for ac_last_try in false false false false false :; do
18457   . ./conf$$subs.sh ||
18458     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18459
18460   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18461   if test $ac_delim_n = $ac_delim_num; then
18462     break
18463   elif $ac_last_try; then
18464     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18465   else
18466     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18467   fi
18468 done
18469 rm -f conf$$subs.sh
18470
18471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18472 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18473 _ACEOF
18474 sed -n '
18475 h
18476 s/^/S["/; s/!.*/"]=/
18477 p
18478 g
18479 s/^[^!]*!//
18480 :repl
18481 t repl
18482 s/'"$ac_delim"'$//
18483 t delim
18484 :nl
18485 h
18486 s/\(.\{148\}\).*/\1/
18487 t more1
18488 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18489 p
18490 n
18491 b repl
18492 :more1
18493 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18494 p
18495 g
18496 s/.\{148\}//
18497 t nl
18498 :delim
18499 h
18500 s/\(.\{148\}\).*/\1/
18501 t more2
18502 s/["\\]/\\&/g; s/^/"/; s/$/"/
18503 p
18504 b
18505 :more2
18506 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18507 p
18508 g
18509 s/.\{148\}//
18510 t delim
18511 ' <conf$$subs.awk | sed '
18512 /^[^""]/{
18513   N
18514   s/\n//
18515 }
18516 ' >>$CONFIG_STATUS || ac_write_fail=1
18517 rm -f conf$$subs.awk
18518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18519 _ACAWK
18520 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18521   for (key in S) S_is_set[key] = 1
18522   FS = "\a"
18523
18524 }
18525 {
18526   line = $ 0
18527   nfields = split(line, field, "@")
18528   substed = 0
18529   len = length(field[1])
18530   for (i = 2; i < nfields; i++) {
18531     key = field[i]
18532     keylen = length(key)
18533     if (S_is_set[key]) {
18534       value = S[key]
18535       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18536       len += length(value) + length(field[++i])
18537       substed = 1
18538     } else
18539       len += 1 + keylen
18540   }
18541
18542   print line
18543 }
18544
18545 _ACAWK
18546 _ACEOF
18547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18548 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18549   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18550 else
18551   cat
18552 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18553   || as_fn_error "could not setup config files machinery" "$LINENO" 5
18554 _ACEOF
18555
18556 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18557 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18558 # trailing colons and then remove the whole line if VPATH becomes empty
18559 # (actually we leave an empty line to preserve line numbers).
18560 if test "x$srcdir" = x.; then
18561   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18562 s/:*\$(srcdir):*/:/
18563 s/:*\${srcdir}:*/:/
18564 s/:*@srcdir@:*/:/
18565 s/^\([^=]*=[     ]*\):*/\1/
18566 s/:*$//
18567 s/^[^=]*=[       ]*$//
18568 }'
18569 fi
18570
18571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18572 fi # test -n "$CONFIG_FILES"
18573
18574 # Set up the scripts for CONFIG_HEADERS section.
18575 # No need to generate them if there are no CONFIG_HEADERS.
18576 # This happens for instance with `./config.status Makefile'.
18577 if test -n "$CONFIG_HEADERS"; then
18578 cat >"$tmp/defines.awk" <<\_ACAWK ||
18579 BEGIN {
18580 _ACEOF
18581
18582 # Transform confdefs.h into an awk script `defines.awk', embedded as
18583 # here-document in config.status, that substitutes the proper values into
18584 # config.h.in to produce config.h.
18585
18586 # Create a delimiter string that does not exist in confdefs.h, to ease
18587 # handling of long lines.
18588 ac_delim='%!_!# '
18589 for ac_last_try in false false :; do
18590   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18591   if test -z "$ac_t"; then
18592     break
18593   elif $ac_last_try; then
18594     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18595   else
18596     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18597   fi
18598 done
18599
18600 # For the awk script, D is an array of macro values keyed by name,
18601 # likewise P contains macro parameters if any.  Preserve backslash
18602 # newline sequences.
18603
18604 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18605 sed -n '
18606 s/.\{148\}/&'"$ac_delim"'/g
18607 t rset
18608 :rset
18609 s/^[     ]*#[    ]*define[       ][      ]*/ /
18610 t def
18611 d
18612 :def
18613 s/\\$//
18614 t bsnl
18615 s/["\\]/\\&/g
18616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18617 D["\1"]=" \3"/p
18618 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18619 d
18620 :bsnl
18621 s/["\\]/\\&/g
18622 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18623 D["\1"]=" \3\\\\\\n"\\/p
18624 t cont
18625 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18626 t cont
18627 d
18628 :cont
18629 n
18630 s/.\{148\}/&'"$ac_delim"'/g
18631 t clear
18632 :clear
18633 s/\\$//
18634 t bsnlc
18635 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18636 d
18637 :bsnlc
18638 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18639 b cont
18640 ' <confdefs.h | sed '
18641 s/'"$ac_delim"'/"\\\
18642 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18643
18644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18645   for (key in D) D_is_set[key] = 1
18646   FS = "\a"
18647 }
18648 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18649   line = \$ 0
18650   split(line, arg, " ")
18651   if (arg[1] == "#") {
18652     defundef = arg[2]
18653     mac1 = arg[3]
18654   } else {
18655     defundef = substr(arg[1], 2)
18656     mac1 = arg[2]
18657   }
18658   split(mac1, mac2, "(") #)
18659   macro = mac2[1]
18660   prefix = substr(line, 1, index(line, defundef) - 1)
18661   if (D_is_set[macro]) {
18662     # Preserve the white space surrounding the "#".
18663     print prefix "define", macro P[macro] D[macro]
18664     next
18665   } else {
18666     # Replace #undef with comments.  This is necessary, for example,
18667     # in the case of _POSIX_SOURCE, which is predefined and required
18668     # on some systems where configure will not decide to define it.
18669     if (defundef == "undef") {
18670       print "/*", prefix defundef, macro, "*/"
18671       next
18672     }
18673   }
18674 }
18675 { print }
18676 _ACAWK
18677 _ACEOF
18678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18679   as_fn_error "could not setup config headers machinery" "$LINENO" 5
18680 fi # test -n "$CONFIG_HEADERS"
18681
18682
18683 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18684 shift
18685 for ac_tag
18686 do
18687   case $ac_tag in
18688   :[FHLC]) ac_mode=$ac_tag; continue;;
18689   esac
18690   case $ac_mode$ac_tag in
18691   :[FHL]*:*);;
18692   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18693   :[FH]-) ac_tag=-:-;;
18694   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18695   esac
18696   ac_save_IFS=$IFS
18697   IFS=:
18698   set x $ac_tag
18699   IFS=$ac_save_IFS
18700   shift
18701   ac_file=$1
18702   shift
18703
18704   case $ac_mode in
18705   :L) ac_source=$1;;
18706   :[FH])
18707     ac_file_inputs=
18708     for ac_f
18709     do
18710       case $ac_f in
18711       -) ac_f="$tmp/stdin";;
18712       *) # Look for the file first in the build tree, then in the source tree
18713          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18714          # because $ac_f cannot contain `:'.
18715          test -f "$ac_f" ||
18716            case $ac_f in
18717            [\\/$]*) false;;
18718            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18719            esac ||
18720            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18721       esac
18722       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18723       as_fn_append ac_file_inputs " '$ac_f'"
18724     done
18725
18726     # Let's still pretend it is `configure' which instantiates (i.e., don't
18727     # use $as_me), people would be surprised to read:
18728     #    /* config.h.  Generated by config.status.  */
18729     configure_input='Generated from '`
18730           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18731         `' by configure.'
18732     if test x"$ac_file" != x-; then
18733       configure_input="$ac_file.  $configure_input"
18734       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18735 $as_echo "$as_me: creating $ac_file" >&6;}
18736     fi
18737     # Neutralize special characters interpreted by sed in replacement strings.
18738     case $configure_input in #(
18739     *\&* | *\|* | *\\* )
18740        ac_sed_conf_input=`$as_echo "$configure_input" |
18741        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18742     *) ac_sed_conf_input=$configure_input;;
18743     esac
18744
18745     case $ac_tag in
18746     *:-:* | *:-) cat >"$tmp/stdin" \
18747       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18748     esac
18749     ;;
18750   esac
18751
18752   ac_dir=`$as_dirname -- "$ac_file" ||
18753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18754          X"$ac_file" : 'X\(//\)[^/]' \| \
18755          X"$ac_file" : 'X\(//\)$' \| \
18756          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18757 $as_echo X"$ac_file" |
18758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18759             s//\1/
18760             q
18761           }
18762           /^X\(\/\/\)[^/].*/{
18763             s//\1/
18764             q
18765           }
18766           /^X\(\/\/\)$/{
18767             s//\1/
18768             q
18769           }
18770           /^X\(\/\).*/{
18771             s//\1/
18772             q
18773           }
18774           s/.*/./; q'`
18775   as_dir="$ac_dir"; as_fn_mkdir_p
18776   ac_builddir=.
18777
18778 case "$ac_dir" in
18779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18780 *)
18781   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18782   # A ".." for each directory in $ac_dir_suffix.
18783   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18784   case $ac_top_builddir_sub in
18785   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18786   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18787   esac ;;
18788 esac
18789 ac_abs_top_builddir=$ac_pwd
18790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18791 # for backward compatibility:
18792 ac_top_builddir=$ac_top_build_prefix
18793
18794 case $srcdir in
18795   .)  # We are building in place.
18796     ac_srcdir=.
18797     ac_top_srcdir=$ac_top_builddir_sub
18798     ac_abs_top_srcdir=$ac_pwd ;;
18799   [\\/]* | ?:[\\/]* )  # Absolute name.
18800     ac_srcdir=$srcdir$ac_dir_suffix;
18801     ac_top_srcdir=$srcdir
18802     ac_abs_top_srcdir=$srcdir ;;
18803   *) # Relative name.
18804     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18805     ac_top_srcdir=$ac_top_build_prefix$srcdir
18806     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18807 esac
18808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18809
18810
18811   case $ac_mode in
18812   :F)
18813   #
18814   # CONFIG_FILE
18815   #
18816
18817   case $INSTALL in
18818   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18819   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18820   esac
18821   ac_MKDIR_P=$MKDIR_P
18822   case $MKDIR_P in
18823   [\\/$]* | ?:[\\/]* ) ;;
18824   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18825   esac
18826 _ACEOF
18827
18828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18829 # If the template does not know about datarootdir, expand it.
18830 # FIXME: This hack should be removed a few years after 2.60.
18831 ac_datarootdir_hack=; ac_datarootdir_seen=
18832 ac_sed_dataroot='
18833 /datarootdir/ {
18834   p
18835   q
18836 }
18837 /@datadir@/p
18838 /@docdir@/p
18839 /@infodir@/p
18840 /@localedir@/p
18841 /@mandir@/p'
18842 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18843 *datarootdir*) ac_datarootdir_seen=yes;;
18844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18845   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18846 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18847 _ACEOF
18848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18849   ac_datarootdir_hack='
18850   s&@datadir@&$datadir&g
18851   s&@docdir@&$docdir&g
18852   s&@infodir@&$infodir&g
18853   s&@localedir@&$localedir&g
18854   s&@mandir@&$mandir&g
18855   s&\\\${datarootdir}&$datarootdir&g' ;;
18856 esac
18857 _ACEOF
18858
18859 # Neutralize VPATH when `$srcdir' = `.'.
18860 # Shell code in configure.ac might set extrasub.
18861 # FIXME: do we really want to maintain this feature?
18862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18863 ac_sed_extra="$ac_vpsub
18864 $extrasub
18865 _ACEOF
18866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18867 :t
18868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18869 s|@configure_input@|$ac_sed_conf_input|;t t
18870 s&@top_builddir@&$ac_top_builddir_sub&;t t
18871 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18872 s&@srcdir@&$ac_srcdir&;t t
18873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18874 s&@top_srcdir@&$ac_top_srcdir&;t t
18875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18876 s&@builddir@&$ac_builddir&;t t
18877 s&@abs_builddir@&$ac_abs_builddir&;t t
18878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18879 s&@INSTALL@&$ac_INSTALL&;t t
18880 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18881 $ac_datarootdir_hack
18882 "
18883 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18884   || as_fn_error "could not create $ac_file" "$LINENO" 5
18885
18886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18887   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18888   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18889   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18890 which seems to be undefined.  Please make sure it is defined." >&5
18891 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18892 which seems to be undefined.  Please make sure it is defined." >&2;}
18893
18894   rm -f "$tmp/stdin"
18895   case $ac_file in
18896   -) cat "$tmp/out" && rm -f "$tmp/out";;
18897   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18898   esac \
18899   || as_fn_error "could not create $ac_file" "$LINENO" 5
18900  ;;
18901   :H)
18902   #
18903   # CONFIG_HEADER
18904   #
18905   if test x"$ac_file" != x-; then
18906     {
18907       $as_echo "/* $configure_input  */" \
18908       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18909     } >"$tmp/config.h" \
18910       || as_fn_error "could not create $ac_file" "$LINENO" 5
18911     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18912       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18913 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18914     else
18915       rm -f "$ac_file"
18916       mv "$tmp/config.h" "$ac_file" \
18917         || as_fn_error "could not create $ac_file" "$LINENO" 5
18918     fi
18919   else
18920     $as_echo "/* $configure_input  */" \
18921       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18922       || as_fn_error "could not create -" "$LINENO" 5
18923   fi
18924 # Compute "$ac_file"'s index in $config_headers.
18925 _am_arg="$ac_file"
18926 _am_stamp_count=1
18927 for _am_header in $config_headers :; do
18928   case $_am_header in
18929     $_am_arg | $_am_arg:* )
18930       break ;;
18931     * )
18932       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18933   esac
18934 done
18935 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18936 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18937          X"$_am_arg" : 'X\(//\)[^/]' \| \
18938          X"$_am_arg" : 'X\(//\)$' \| \
18939          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18940 $as_echo X"$_am_arg" |
18941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18942             s//\1/
18943             q
18944           }
18945           /^X\(\/\/\)[^/].*/{
18946             s//\1/
18947             q
18948           }
18949           /^X\(\/\/\)$/{
18950             s//\1/
18951             q
18952           }
18953           /^X\(\/\).*/{
18954             s//\1/
18955             q
18956           }
18957           s/.*/./; q'`/stamp-h$_am_stamp_count
18958  ;;
18959
18960   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18961 $as_echo "$as_me: executing $ac_file commands" >&6;}
18962  ;;
18963   esac
18964
18965
18966   case $ac_file$ac_mode in
18967     "default-1":C)
18968 # Only add multilib support code if we just rebuilt the top-level
18969 # Makefile.
18970 case " $CONFIG_FILES " in
18971  *" Makefile "*)
18972    ac_file=Makefile . ${multi_basedir}/config-ml.in
18973    ;;
18974 esac ;;
18975     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18976   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18977   # are listed without --file.  Let's play safe and only enable the eval
18978   # if we detect the quoting.
18979   case $CONFIG_FILES in
18980   *\'*) eval set x "$CONFIG_FILES" ;;
18981   *)   set x $CONFIG_FILES ;;
18982   esac
18983   shift
18984   for mf
18985   do
18986     # Strip MF so we end up with the name of the file.
18987     mf=`echo "$mf" | sed -e 's/:.*$//'`
18988     # Check whether this is an Automake generated Makefile or not.
18989     # We used to match only the files named `Makefile.in', but
18990     # some people rename them; so instead we look at the file content.
18991     # Grep'ing the first line is not enough: some people post-process
18992     # each Makefile.in and add a new line on top of each file to say so.
18993     # Grep'ing the whole file is not good either: AIX grep has a line
18994     # limit of 2048, but all sed's we know have understand at least 4000.
18995     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18996       dirpart=`$as_dirname -- "$mf" ||
18997 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18998          X"$mf" : 'X\(//\)[^/]' \| \
18999          X"$mf" : 'X\(//\)$' \| \
19000          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19001 $as_echo X"$mf" |
19002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19003             s//\1/
19004             q
19005           }
19006           /^X\(\/\/\)[^/].*/{
19007             s//\1/
19008             q
19009           }
19010           /^X\(\/\/\)$/{
19011             s//\1/
19012             q
19013           }
19014           /^X\(\/\).*/{
19015             s//\1/
19016             q
19017           }
19018           s/.*/./; q'`
19019     else
19020       continue
19021     fi
19022     # Extract the definition of DEPDIR, am__include, and am__quote
19023     # from the Makefile without running `make'.
19024     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19025     test -z "$DEPDIR" && continue
19026     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19027     test -z "am__include" && continue
19028     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19029     # When using ansi2knr, U may be empty or an underscore; expand it
19030     U=`sed -n 's/^U = //p' < "$mf"`
19031     # Find all dependency output files, they are included files with
19032     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19033     # simplest approach to changing $(DEPDIR) to its actual value in the
19034     # expansion.
19035     for file in `sed -n "
19036       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19037          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19038       # Make sure the directory exists.
19039       test -f "$dirpart/$file" && continue
19040       fdir=`$as_dirname -- "$file" ||
19041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19042          X"$file" : 'X\(//\)[^/]' \| \
19043          X"$file" : 'X\(//\)$' \| \
19044          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19045 $as_echo X"$file" |
19046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19047             s//\1/
19048             q
19049           }
19050           /^X\(\/\/\)[^/].*/{
19051             s//\1/
19052             q
19053           }
19054           /^X\(\/\/\)$/{
19055             s//\1/
19056             q
19057           }
19058           /^X\(\/\).*/{
19059             s//\1/
19060             q
19061           }
19062           s/.*/./; q'`
19063       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19064       # echo "creating $dirpart/$file"
19065       echo '# dummy' > "$dirpart/$file"
19066     done
19067   done
19068 }
19069  ;;
19070     "libtool":C)
19071
19072     # See if we are running on zsh, and set the options which allow our
19073     # commands through without removal of \ escapes.
19074     if test -n "${ZSH_VERSION+set}" ; then
19075       setopt NO_GLOB_SUBST
19076     fi
19077
19078     cfgfile="${ofile}T"
19079     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19080     $RM "$cfgfile"
19081
19082     cat <<_LT_EOF >> "$cfgfile"
19083 #! $SHELL
19084
19085 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19086 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19087 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19088 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19089 #
19090 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19091 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19092 #   Written by Gordon Matzigkeit, 1996
19093 #
19094 #   This file is part of GNU Libtool.
19095 #
19096 # GNU Libtool is free software; you can redistribute it and/or
19097 # modify it under the terms of the GNU General Public License as
19098 # published by the Free Software Foundation; either version 2 of
19099 # the License, or (at your option) any later version.
19100 #
19101 # As a special exception to the GNU General Public License,
19102 # if you distribute this file as part of a program or library that
19103 # is built using GNU Libtool, you may include this file under the
19104 # same distribution terms that you use for the rest of that program.
19105 #
19106 # GNU Libtool is distributed in the hope that it will be useful,
19107 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19108 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19109 # GNU General Public License for more details.
19110 #
19111 # You should have received a copy of the GNU General Public License
19112 # along with GNU Libtool; see the file COPYING.  If not, a copy
19113 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19114 # obtained by writing to the Free Software Foundation, Inc.,
19115 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19116
19117
19118 # The names of the tagged configurations supported by this script.
19119 available_tags="CXX "
19120
19121 # ### BEGIN LIBTOOL CONFIG
19122
19123 # Which release of libtool.m4 was used?
19124 macro_version=$macro_version
19125 macro_revision=$macro_revision
19126
19127 # Whether or not to build shared libraries.
19128 build_libtool_libs=$enable_shared
19129
19130 # Whether or not to build static libraries.
19131 build_old_libs=$enable_static
19132
19133 # What type of objects to build.
19134 pic_mode=$pic_mode
19135
19136 # Whether or not to optimize for fast installation.
19137 fast_install=$enable_fast_install
19138
19139 # Shell to use when invoking shell scripts.
19140 SHELL=$lt_SHELL
19141
19142 # An echo program that protects backslashes.
19143 ECHO=$lt_ECHO
19144
19145 # The host system.
19146 host_alias=$host_alias
19147 host=$host
19148 host_os=$host_os
19149
19150 # The build system.
19151 build_alias=$build_alias
19152 build=$build
19153 build_os=$build_os
19154
19155 # A sed program that does not truncate output.
19156 SED=$lt_SED
19157
19158 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19159 Xsed="\$SED -e 1s/^X//"
19160
19161 # A grep program that handles long lines.
19162 GREP=$lt_GREP
19163
19164 # An ERE matcher.
19165 EGREP=$lt_EGREP
19166
19167 # A literal string matcher.
19168 FGREP=$lt_FGREP
19169
19170 # A BSD- or MS-compatible name lister.
19171 NM=$lt_NM
19172
19173 # Whether we need soft or hard links.
19174 LN_S=$lt_LN_S
19175
19176 # What is the maximum length of a command?
19177 max_cmd_len=$max_cmd_len
19178
19179 # Object file suffix (normally "o").
19180 objext=$ac_objext
19181
19182 # Executable file suffix (normally "").
19183 exeext=$exeext
19184
19185 # whether the shell understands "unset".
19186 lt_unset=$lt_unset
19187
19188 # turn spaces into newlines.
19189 SP2NL=$lt_lt_SP2NL
19190
19191 # turn newlines into spaces.
19192 NL2SP=$lt_lt_NL2SP
19193
19194 # An object symbol dumper.
19195 OBJDUMP=$lt_OBJDUMP
19196
19197 # Method to check whether dependent libraries are shared objects.
19198 deplibs_check_method=$lt_deplibs_check_method
19199
19200 # Command to use when deplibs_check_method == "file_magic".
19201 file_magic_cmd=$lt_file_magic_cmd
19202
19203 # The archiver.
19204 AR=$lt_AR
19205 AR_FLAGS=$lt_AR_FLAGS
19206
19207 # A symbol stripping program.
19208 STRIP=$lt_STRIP
19209
19210 # Commands used to install an old-style archive.
19211 RANLIB=$lt_RANLIB
19212 old_postinstall_cmds=$lt_old_postinstall_cmds
19213 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19214
19215 # Whether to use a lock for old archive extraction.
19216 lock_old_archive_extraction=$lock_old_archive_extraction
19217
19218 # A C compiler.
19219 LTCC=$lt_CC
19220
19221 # LTCC compiler flags.
19222 LTCFLAGS=$lt_CFLAGS
19223
19224 # Take the output of nm and produce a listing of raw symbols and C names.
19225 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19226
19227 # Transform the output of nm in a proper C declaration.
19228 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19229
19230 # Transform the output of nm in a C name address pair.
19231 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19232
19233 # Transform the output of nm in a C name address pair when lib prefix is needed.
19234 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19235
19236 # The name of the directory that contains temporary libtool files.
19237 objdir=$objdir
19238
19239 # Used to examine libraries when file_magic_cmd begins with "file".
19240 MAGIC_CMD=$MAGIC_CMD
19241
19242 # Must we lock files when doing compilation?
19243 need_locks=$lt_need_locks
19244
19245 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19246 DSYMUTIL=$lt_DSYMUTIL
19247
19248 # Tool to change global to local symbols on Mac OS X.
19249 NMEDIT=$lt_NMEDIT
19250
19251 # Tool to manipulate fat objects and archives on Mac OS X.
19252 LIPO=$lt_LIPO
19253
19254 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19255 OTOOL=$lt_OTOOL
19256
19257 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19258 OTOOL64=$lt_OTOOL64
19259
19260 # Old archive suffix (normally "a").
19261 libext=$libext
19262
19263 # Shared library suffix (normally ".so").
19264 shrext_cmds=$lt_shrext_cmds
19265
19266 # The commands to extract the exported symbol list from a shared archive.
19267 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19268
19269 # Variables whose values should be saved in libtool wrapper scripts and
19270 # restored at link time.
19271 variables_saved_for_relink=$lt_variables_saved_for_relink
19272
19273 # Do we need the "lib" prefix for modules?
19274 need_lib_prefix=$need_lib_prefix
19275
19276 # Do we need a version for libraries?
19277 need_version=$need_version
19278
19279 # Library versioning type.
19280 version_type=$version_type
19281
19282 # Shared library runtime path variable.
19283 runpath_var=$runpath_var
19284
19285 # Shared library path variable.
19286 shlibpath_var=$shlibpath_var
19287
19288 # Is shlibpath searched before the hard-coded library search path?
19289 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19290
19291 # Format of library name prefix.
19292 libname_spec=$lt_libname_spec
19293
19294 # List of archive names.  First name is the real one, the rest are links.
19295 # The last name is the one that the linker finds with -lNAME
19296 library_names_spec=$lt_library_names_spec
19297
19298 # The coded name of the library, if different from the real name.
19299 soname_spec=$lt_soname_spec
19300
19301 # Permission mode override for installation of shared libraries.
19302 install_override_mode=$lt_install_override_mode
19303
19304 # Command to use after installation of a shared archive.
19305 postinstall_cmds=$lt_postinstall_cmds
19306
19307 # Command to use after uninstallation of a shared archive.
19308 postuninstall_cmds=$lt_postuninstall_cmds
19309
19310 # Commands used to finish a libtool library installation in a directory.
19311 finish_cmds=$lt_finish_cmds
19312
19313 # As "finish_cmds", except a single script fragment to be evaled but
19314 # not shown.
19315 finish_eval=$lt_finish_eval
19316
19317 # Whether we should hardcode library paths into libraries.
19318 hardcode_into_libs=$hardcode_into_libs
19319
19320 # Compile-time system search path for libraries.
19321 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19322
19323 # Run-time system search path for libraries.
19324 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19325
19326 # Whether dlopen is supported.
19327 dlopen_support=$enable_dlopen
19328
19329 # Whether dlopen of programs is supported.
19330 dlopen_self=$enable_dlopen_self
19331
19332 # Whether dlopen of statically linked programs is supported.
19333 dlopen_self_static=$enable_dlopen_self_static
19334
19335 # Commands to strip libraries.
19336 old_striplib=$lt_old_striplib
19337 striplib=$lt_striplib
19338
19339
19340 # The linker used to build libraries.
19341 LD=$lt_LD
19342
19343 # How to create reloadable object files.
19344 reload_flag=$lt_reload_flag
19345 reload_cmds=$lt_reload_cmds
19346
19347 # Commands used to build an old-style archive.
19348 old_archive_cmds=$lt_old_archive_cmds
19349
19350 # A language specific compiler.
19351 CC=$lt_compiler
19352
19353 # Is the compiler the GNU compiler?
19354 with_gcc=$GCC
19355
19356 # Compiler flag to turn off builtin functions.
19357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19358
19359 # How to pass a linker flag through the compiler.
19360 wl=$lt_lt_prog_compiler_wl
19361
19362 # Additional compiler flags for building library objects.
19363 pic_flag=$lt_lt_prog_compiler_pic
19364
19365 # Compiler flag to prevent dynamic linking.
19366 link_static_flag=$lt_lt_prog_compiler_static
19367
19368 # Does compiler simultaneously support -c and -o options?
19369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19370
19371 # Whether or not to add -lc for building shared libraries.
19372 build_libtool_need_lc=$archive_cmds_need_lc
19373
19374 # Whether or not to disallow shared libs when runtime libs are static.
19375 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19376
19377 # Compiler flag to allow reflexive dlopens.
19378 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19379
19380 # Compiler flag to generate shared objects directly from archives.
19381 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19382
19383 # Whether the compiler copes with passing no objects directly.
19384 compiler_needs_object=$lt_compiler_needs_object
19385
19386 # Create an old-style archive from a shared archive.
19387 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19388
19389 # Create a temporary old-style archive to link instead of a shared archive.
19390 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19391
19392 # Commands used to build a shared archive.
19393 archive_cmds=$lt_archive_cmds
19394 archive_expsym_cmds=$lt_archive_expsym_cmds
19395
19396 # Commands used to build a loadable module if different from building
19397 # a shared archive.
19398 module_cmds=$lt_module_cmds
19399 module_expsym_cmds=$lt_module_expsym_cmds
19400
19401 # Whether we are building with GNU ld or not.
19402 with_gnu_ld=$lt_with_gnu_ld
19403
19404 # Flag that allows shared libraries with undefined symbols to be built.
19405 allow_undefined_flag=$lt_allow_undefined_flag
19406
19407 # Flag that enforces no undefined symbols.
19408 no_undefined_flag=$lt_no_undefined_flag
19409
19410 # Flag to hardcode \$libdir into a binary during linking.
19411 # This must work even if \$libdir does not exist
19412 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19413
19414 # If ld is used when linking, flag to hardcode \$libdir into a binary
19415 # during linking.  This must work even if \$libdir does not exist.
19416 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19417
19418 # Whether we need a single "-rpath" flag with a separated argument.
19419 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19420
19421 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19422 # DIR into the resulting binary.
19423 hardcode_direct=$hardcode_direct
19424
19425 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19426 # DIR into the resulting binary and the resulting library dependency is
19427 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19428 # library is relocated.
19429 hardcode_direct_absolute=$hardcode_direct_absolute
19430
19431 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19432 # into the resulting binary.
19433 hardcode_minus_L=$hardcode_minus_L
19434
19435 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19436 # into the resulting binary.
19437 hardcode_shlibpath_var=$hardcode_shlibpath_var
19438
19439 # Set to "yes" if building a shared library automatically hardcodes DIR
19440 # into the library and all subsequent libraries and executables linked
19441 # against it.
19442 hardcode_automatic=$hardcode_automatic
19443
19444 # Set to yes if linker adds runtime paths of dependent libraries
19445 # to runtime path list.
19446 inherit_rpath=$inherit_rpath
19447
19448 # Whether libtool must link a program against all its dependency libraries.
19449 link_all_deplibs=$link_all_deplibs
19450
19451 # Fix the shell variable \$srcfile for the compiler.
19452 fix_srcfile_path=$lt_fix_srcfile_path
19453
19454 # Set to "yes" if exported symbols are required.
19455 always_export_symbols=$always_export_symbols
19456
19457 # The commands to list exported symbols.
19458 export_symbols_cmds=$lt_export_symbols_cmds
19459
19460 # Symbols that should not be listed in the preloaded symbols.
19461 exclude_expsyms=$lt_exclude_expsyms
19462
19463 # Symbols that must always be exported.
19464 include_expsyms=$lt_include_expsyms
19465
19466 # Commands necessary for linking programs (against libraries) with templates.
19467 prelink_cmds=$lt_prelink_cmds
19468
19469 # Specify filename containing input files.
19470 file_list_spec=$lt_file_list_spec
19471
19472 # How to hardcode a shared library path into an executable.
19473 hardcode_action=$hardcode_action
19474
19475 # The directories searched by this compiler when creating a shared library.
19476 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19477
19478 # Dependencies to place before and after the objects being linked to
19479 # create a shared library.
19480 predep_objects=$lt_predep_objects
19481 postdep_objects=$lt_postdep_objects
19482 predeps=$lt_predeps
19483 postdeps=$lt_postdeps
19484
19485 # The library search path used internally by the compiler when linking
19486 # a shared library.
19487 compiler_lib_search_path=$lt_compiler_lib_search_path
19488
19489 # ### END LIBTOOL CONFIG
19490
19491 _LT_EOF
19492
19493   case $host_os in
19494   aix3*)
19495     cat <<\_LT_EOF >> "$cfgfile"
19496 # AIX sometimes has problems with the GCC collect2 program.  For some
19497 # reason, if we set the COLLECT_NAMES environment variable, the problems
19498 # vanish in a puff of smoke.
19499 if test "X${COLLECT_NAMES+set}" != Xset; then
19500   COLLECT_NAMES=
19501   export COLLECT_NAMES
19502 fi
19503 _LT_EOF
19504     ;;
19505   esac
19506
19507
19508 ltmain="$ac_aux_dir/ltmain.sh"
19509
19510
19511   # We use sed instead of cat because bash on DJGPP gets confused if
19512   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19513   # text mode, it properly converts lines to CR/LF.  This bash problem
19514   # is reportedly fixed, but why not run on old versions too?
19515   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19516     || (rm -f "$cfgfile"; exit 1)
19517
19518   case $xsi_shell in
19519   yes)
19520     cat << \_LT_EOF >> "$cfgfile"
19521
19522 # func_dirname file append nondir_replacement
19523 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19524 # otherwise set result to NONDIR_REPLACEMENT.
19525 func_dirname ()
19526 {
19527   case ${1} in
19528     */*) func_dirname_result="${1%/*}${2}" ;;
19529     *  ) func_dirname_result="${3}" ;;
19530   esac
19531 }
19532
19533 # func_basename file
19534 func_basename ()
19535 {
19536   func_basename_result="${1##*/}"
19537 }
19538
19539 # func_dirname_and_basename file append nondir_replacement
19540 # perform func_basename and func_dirname in a single function
19541 # call:
19542 #   dirname:  Compute the dirname of FILE.  If nonempty,
19543 #             add APPEND to the result, otherwise set result
19544 #             to NONDIR_REPLACEMENT.
19545 #             value returned in "$func_dirname_result"
19546 #   basename: Compute filename of FILE.
19547 #             value retuned in "$func_basename_result"
19548 # Implementation must be kept synchronized with func_dirname
19549 # and func_basename. For efficiency, we do not delegate to
19550 # those functions but instead duplicate the functionality here.
19551 func_dirname_and_basename ()
19552 {
19553   case ${1} in
19554     */*) func_dirname_result="${1%/*}${2}" ;;
19555     *  ) func_dirname_result="${3}" ;;
19556   esac
19557   func_basename_result="${1##*/}"
19558 }
19559
19560 # func_stripname prefix suffix name
19561 # strip PREFIX and SUFFIX off of NAME.
19562 # PREFIX and SUFFIX must not contain globbing or regex special
19563 # characters, hashes, percent signs, but SUFFIX may contain a leading
19564 # dot (in which case that matches only a dot).
19565 func_stripname ()
19566 {
19567   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19568   # positional parameters, so assign one to ordinary parameter first.
19569   func_stripname_result=${3}
19570   func_stripname_result=${func_stripname_result#"${1}"}
19571   func_stripname_result=${func_stripname_result%"${2}"}
19572 }
19573
19574 # func_opt_split
19575 func_opt_split ()
19576 {
19577   func_opt_split_opt=${1%%=*}
19578   func_opt_split_arg=${1#*=}
19579 }
19580
19581 # func_lo2o object
19582 func_lo2o ()
19583 {
19584   case ${1} in
19585     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19586     *)    func_lo2o_result=${1} ;;
19587   esac
19588 }
19589
19590 # func_xform libobj-or-source
19591 func_xform ()
19592 {
19593   func_xform_result=${1%.*}.lo
19594 }
19595
19596 # func_arith arithmetic-term...
19597 func_arith ()
19598 {
19599   func_arith_result=$(( $* ))
19600 }
19601
19602 # func_len string
19603 # STRING may not start with a hyphen.
19604 func_len ()
19605 {
19606   func_len_result=${#1}
19607 }
19608
19609 _LT_EOF
19610     ;;
19611   *) # Bourne compatible functions.
19612     cat << \_LT_EOF >> "$cfgfile"
19613
19614 # func_dirname file append nondir_replacement
19615 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19616 # otherwise set result to NONDIR_REPLACEMENT.
19617 func_dirname ()
19618 {
19619   # Extract subdirectory from the argument.
19620   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19621   if test "X$func_dirname_result" = "X${1}"; then
19622     func_dirname_result="${3}"
19623   else
19624     func_dirname_result="$func_dirname_result${2}"
19625   fi
19626 }
19627
19628 # func_basename file
19629 func_basename ()
19630 {
19631   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19632 }
19633
19634
19635 # func_stripname prefix suffix name
19636 # strip PREFIX and SUFFIX off of NAME.
19637 # PREFIX and SUFFIX must not contain globbing or regex special
19638 # characters, hashes, percent signs, but SUFFIX may contain a leading
19639 # dot (in which case that matches only a dot).
19640 # func_strip_suffix prefix name
19641 func_stripname ()
19642 {
19643   case ${2} in
19644     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19645     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19646   esac
19647 }
19648
19649 # sed scripts:
19650 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19651 my_sed_long_arg='1s/^-[^=]*=//'
19652
19653 # func_opt_split
19654 func_opt_split ()
19655 {
19656   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19657   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19658 }
19659
19660 # func_lo2o object
19661 func_lo2o ()
19662 {
19663   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19664 }
19665
19666 # func_xform libobj-or-source
19667 func_xform ()
19668 {
19669   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19670 }
19671
19672 # func_arith arithmetic-term...
19673 func_arith ()
19674 {
19675   func_arith_result=`expr "$@"`
19676 }
19677
19678 # func_len string
19679 # STRING may not start with a hyphen.
19680 func_len ()
19681 {
19682   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19683 }
19684
19685 _LT_EOF
19686 esac
19687
19688 case $lt_shell_append in
19689   yes)
19690     cat << \_LT_EOF >> "$cfgfile"
19691
19692 # func_append var value
19693 # Append VALUE to the end of shell variable VAR.
19694 func_append ()
19695 {
19696   eval "$1+=\$2"
19697 }
19698 _LT_EOF
19699     ;;
19700   *)
19701     cat << \_LT_EOF >> "$cfgfile"
19702
19703 # func_append var value
19704 # Append VALUE to the end of shell variable VAR.
19705 func_append ()
19706 {
19707   eval "$1=\$$1\$2"
19708 }
19709
19710 _LT_EOF
19711     ;;
19712   esac
19713
19714
19715   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19716     || (rm -f "$cfgfile"; exit 1)
19717
19718   mv -f "$cfgfile" "$ofile" ||
19719     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19720   chmod +x "$ofile"
19721
19722
19723     cat <<_LT_EOF >> "$ofile"
19724
19725 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19726
19727 # The linker used to build libraries.
19728 LD=$lt_LD_CXX
19729
19730 # How to create reloadable object files.
19731 reload_flag=$lt_reload_flag_CXX
19732 reload_cmds=$lt_reload_cmds_CXX
19733
19734 # Commands used to build an old-style archive.
19735 old_archive_cmds=$lt_old_archive_cmds_CXX
19736
19737 # A language specific compiler.
19738 CC=$lt_compiler_CXX
19739
19740 # Is the compiler the GNU compiler?
19741 with_gcc=$GCC_CXX
19742
19743 # Compiler flag to turn off builtin functions.
19744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19745
19746 # How to pass a linker flag through the compiler.
19747 wl=$lt_lt_prog_compiler_wl_CXX
19748
19749 # Additional compiler flags for building library objects.
19750 pic_flag=$lt_lt_prog_compiler_pic_CXX
19751
19752 # Compiler flag to prevent dynamic linking.
19753 link_static_flag=$lt_lt_prog_compiler_static_CXX
19754
19755 # Does compiler simultaneously support -c and -o options?
19756 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19757
19758 # Whether or not to add -lc for building shared libraries.
19759 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19760
19761 # Whether or not to disallow shared libs when runtime libs are static.
19762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19763
19764 # Compiler flag to allow reflexive dlopens.
19765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19766
19767 # Compiler flag to generate shared objects directly from archives.
19768 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19769
19770 # Whether the compiler copes with passing no objects directly.
19771 compiler_needs_object=$lt_compiler_needs_object_CXX
19772
19773 # Create an old-style archive from a shared archive.
19774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19775
19776 # Create a temporary old-style archive to link instead of a shared archive.
19777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19778
19779 # Commands used to build a shared archive.
19780 archive_cmds=$lt_archive_cmds_CXX
19781 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19782
19783 # Commands used to build a loadable module if different from building
19784 # a shared archive.
19785 module_cmds=$lt_module_cmds_CXX
19786 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19787
19788 # Whether we are building with GNU ld or not.
19789 with_gnu_ld=$lt_with_gnu_ld_CXX
19790
19791 # Flag that allows shared libraries with undefined symbols to be built.
19792 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19793
19794 # Flag that enforces no undefined symbols.
19795 no_undefined_flag=$lt_no_undefined_flag_CXX
19796
19797 # Flag to hardcode \$libdir into a binary during linking.
19798 # This must work even if \$libdir does not exist
19799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19800
19801 # If ld is used when linking, flag to hardcode \$libdir into a binary
19802 # during linking.  This must work even if \$libdir does not exist.
19803 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19804
19805 # Whether we need a single "-rpath" flag with a separated argument.
19806 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19807
19808 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19809 # DIR into the resulting binary.
19810 hardcode_direct=$hardcode_direct_CXX
19811
19812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19813 # DIR into the resulting binary and the resulting library dependency is
19814 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19815 # library is relocated.
19816 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19817
19818 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19819 # into the resulting binary.
19820 hardcode_minus_L=$hardcode_minus_L_CXX
19821
19822 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19823 # into the resulting binary.
19824 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19825
19826 # Set to "yes" if building a shared library automatically hardcodes DIR
19827 # into the library and all subsequent libraries and executables linked
19828 # against it.
19829 hardcode_automatic=$hardcode_automatic_CXX
19830
19831 # Set to yes if linker adds runtime paths of dependent libraries
19832 # to runtime path list.
19833 inherit_rpath=$inherit_rpath_CXX
19834
19835 # Whether libtool must link a program against all its dependency libraries.
19836 link_all_deplibs=$link_all_deplibs_CXX
19837
19838 # Fix the shell variable \$srcfile for the compiler.
19839 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19840
19841 # Set to "yes" if exported symbols are required.
19842 always_export_symbols=$always_export_symbols_CXX
19843
19844 # The commands to list exported symbols.
19845 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19846
19847 # Symbols that should not be listed in the preloaded symbols.
19848 exclude_expsyms=$lt_exclude_expsyms_CXX
19849
19850 # Symbols that must always be exported.
19851 include_expsyms=$lt_include_expsyms_CXX
19852
19853 # Commands necessary for linking programs (against libraries) with templates.
19854 prelink_cmds=$lt_prelink_cmds_CXX
19855
19856 # Specify filename containing input files.
19857 file_list_spec=$lt_file_list_spec_CXX
19858
19859 # How to hardcode a shared library path into an executable.
19860 hardcode_action=$hardcode_action_CXX
19861
19862 # The directories searched by this compiler when creating a shared library.
19863 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19864
19865 # Dependencies to place before and after the objects being linked to
19866 # create a shared library.
19867 predep_objects=$lt_predep_objects_CXX
19868 postdep_objects=$lt_postdep_objects_CXX
19869 predeps=$lt_predeps_CXX
19870 postdeps=$lt_postdeps_CXX
19871
19872 # The library search path used internally by the compiler when linking
19873 # a shared library.
19874 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19875
19876 # ### END LIBTOOL TAG CONFIG: CXX
19877 _LT_EOF
19878
19879  ;;
19880     "gstdint.h":C)
19881 if test "$GCC" = yes; then
19882   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19883 else
19884   echo "/* generated for $CC */" > tmp-stdint.h
19885 fi
19886
19887 sed 's/^ *//' >> tmp-stdint.h <<EOF
19888
19889   #ifndef GCC_GENERATED_STDINT_H
19890   #define GCC_GENERATED_STDINT_H 1
19891
19892   #include <sys/types.h>
19893 EOF
19894
19895 if test "$acx_cv_header_stdint" != stdint.h; then
19896   echo "#include <stddef.h>" >> tmp-stdint.h
19897 fi
19898 if test "$acx_cv_header_stdint" != stddef.h; then
19899   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19900 fi
19901
19902 sed 's/^ *//' >> tmp-stdint.h <<EOF
19903   /* glibc uses these symbols as guards to prevent redefinitions.  */
19904   #ifdef __int8_t_defined
19905   #define _INT8_T
19906   #define _INT16_T
19907   #define _INT32_T
19908   #endif
19909   #ifdef __uint32_t_defined
19910   #define _UINT32_T
19911   #endif
19912
19913 EOF
19914
19915 # ----------------- done header, emit basic int types -------------
19916 if test "$acx_cv_header_stdint" = stddef.h; then
19917   sed 's/^ *//' >> tmp-stdint.h <<EOF
19918
19919     #ifndef _UINT8_T
19920     #define _UINT8_T
19921     #ifndef __uint8_t_defined
19922     #define __uint8_t_defined
19923     #ifndef uint8_t
19924     typedef unsigned $acx_cv_type_int8_t uint8_t;
19925     #endif
19926     #endif
19927     #endif
19928
19929     #ifndef _UINT16_T
19930     #define _UINT16_T
19931     #ifndef __uint16_t_defined
19932     #define __uint16_t_defined
19933     #ifndef uint16_t
19934     typedef unsigned $acx_cv_type_int16_t uint16_t;
19935     #endif
19936     #endif
19937     #endif
19938
19939     #ifndef _UINT32_T
19940     #define _UINT32_T
19941     #ifndef __uint32_t_defined
19942     #define __uint32_t_defined
19943     #ifndef uint32_t
19944     typedef unsigned $acx_cv_type_int32_t uint32_t;
19945     #endif
19946     #endif
19947     #endif
19948
19949     #ifndef _INT8_T
19950     #define _INT8_T
19951     #ifndef __int8_t_defined
19952     #define __int8_t_defined
19953     #ifndef int8_t
19954     typedef $acx_cv_type_int8_t int8_t;
19955     #endif
19956     #endif
19957     #endif
19958
19959     #ifndef _INT16_T
19960     #define _INT16_T
19961     #ifndef __int16_t_defined
19962     #define __int16_t_defined
19963     #ifndef int16_t
19964     typedef $acx_cv_type_int16_t int16_t;
19965     #endif
19966     #endif
19967     #endif
19968
19969     #ifndef _INT32_T
19970     #define _INT32_T
19971     #ifndef __int32_t_defined
19972     #define __int32_t_defined
19973     #ifndef int32_t
19974     typedef $acx_cv_type_int32_t int32_t;
19975     #endif
19976     #endif
19977     #endif
19978 EOF
19979 elif test "$ac_cv_type_u_int32_t" = yes; then
19980   sed 's/^ *//' >> tmp-stdint.h <<EOF
19981
19982     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19983     #ifndef _INT8_T
19984     #define _INT8_T
19985     #endif
19986     #ifndef _INT16_T
19987     #define _INT16_T
19988     #endif
19989     #ifndef _INT32_T
19990     #define _INT32_T
19991     #endif
19992
19993     #ifndef _UINT8_T
19994     #define _UINT8_T
19995     #ifndef __uint8_t_defined
19996     #define __uint8_t_defined
19997     #ifndef uint8_t
19998     typedef u_int8_t uint8_t;
19999     #endif
20000     #endif
20001     #endif
20002
20003     #ifndef _UINT16_T
20004     #define _UINT16_T
20005     #ifndef __uint16_t_defined
20006     #define __uint16_t_defined
20007     #ifndef uint16_t
20008     typedef u_int16_t uint16_t;
20009     #endif
20010     #endif
20011     #endif
20012
20013     #ifndef _UINT32_T
20014     #define _UINT32_T
20015     #ifndef __uint32_t_defined
20016     #define __uint32_t_defined
20017     #ifndef uint32_t
20018     typedef u_int32_t uint32_t;
20019     #endif
20020     #endif
20021     #endif
20022 EOF
20023 else
20024   sed 's/^ *//' >> tmp-stdint.h <<EOF
20025
20026     /* Some systems have guard macros to prevent redefinitions, define them.  */
20027     #ifndef _INT8_T
20028     #define _INT8_T
20029     #endif
20030     #ifndef _INT16_T
20031     #define _INT16_T
20032     #endif
20033     #ifndef _INT32_T
20034     #define _INT32_T
20035     #endif
20036     #ifndef _UINT8_T
20037     #define _UINT8_T
20038     #endif
20039     #ifndef _UINT16_T
20040     #define _UINT16_T
20041     #endif
20042     #ifndef _UINT32_T
20043     #define _UINT32_T
20044     #endif
20045 EOF
20046 fi
20047
20048 # ------------- done basic int types, emit int64_t types ------------
20049 if test "$ac_cv_type_uint64_t" = yes; then
20050   sed 's/^ *//' >> tmp-stdint.h <<EOF
20051
20052     /* system headers have good uint64_t and int64_t */
20053     #ifndef _INT64_T
20054     #define _INT64_T
20055     #endif
20056     #ifndef _UINT64_T
20057     #define _UINT64_T
20058     #endif
20059 EOF
20060 elif test "$ac_cv_type_u_int64_t" = yes; then
20061   sed 's/^ *//' >> tmp-stdint.h <<EOF
20062
20063     /* system headers have an u_int64_t (and int64_t) */
20064     #ifndef _INT64_T
20065     #define _INT64_T
20066     #endif
20067     #ifndef _UINT64_T
20068     #define _UINT64_T
20069     #ifndef __uint64_t_defined
20070     #define __uint64_t_defined
20071     #ifndef uint64_t
20072     typedef u_int64_t uint64_t;
20073     #endif
20074     #endif
20075     #endif
20076 EOF
20077 elif test -n "$acx_cv_type_int64_t"; then
20078   sed 's/^ *//' >> tmp-stdint.h <<EOF
20079
20080     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20081     #ifndef _INT64_T
20082     #define _INT64_T
20083     #ifndef int64_t
20084     typedef $acx_cv_type_int64_t int64_t;
20085     #endif
20086     #endif
20087     #ifndef _UINT64_T
20088     #define _UINT64_T
20089     #ifndef __uint64_t_defined
20090     #define __uint64_t_defined
20091     #ifndef uint64_t
20092     typedef unsigned $acx_cv_type_int64_t uint64_t;
20093     #endif
20094     #endif
20095     #endif
20096 EOF
20097 else
20098   sed 's/^ *//' >> tmp-stdint.h <<EOF
20099
20100     /* some common heuristics for int64_t, using compiler-specific tests */
20101     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20102     #ifndef _INT64_T
20103     #define _INT64_T
20104     #ifndef __int64_t_defined
20105     #ifndef int64_t
20106     typedef long long int64_t;
20107     #endif
20108     #endif
20109     #endif
20110     #ifndef _UINT64_T
20111     #define _UINT64_T
20112     #ifndef uint64_t
20113     typedef unsigned long long uint64_t;
20114     #endif
20115     #endif
20116
20117     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20118     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20119        does not implement __extension__.  But that compiler doesn't define
20120        __GNUC_MINOR__.  */
20121     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20122     # define __extension__
20123     # endif
20124
20125     # ifndef _INT64_T
20126     # define _INT64_T
20127     # ifndef int64_t
20128     __extension__ typedef long long int64_t;
20129     # endif
20130     # endif
20131     # ifndef _UINT64_T
20132     # define _UINT64_T
20133     # ifndef uint64_t
20134     __extension__ typedef unsigned long long uint64_t;
20135     # endif
20136     # endif
20137
20138     #elif !defined __STRICT_ANSI__
20139     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20140
20141     #  ifndef _INT64_T
20142     #  define _INT64_T
20143     #  ifndef int64_t
20144     typedef __int64 int64_t;
20145     #  endif
20146     #  endif
20147     #  ifndef _UINT64_T
20148     #  define _UINT64_T
20149     #  ifndef uint64_t
20150     typedef unsigned __int64 uint64_t;
20151     #  endif
20152     #  endif
20153     # endif /* compiler */
20154
20155     #endif /* ANSI version */
20156 EOF
20157 fi
20158
20159 # ------------- done int64_t types, emit intptr types ------------
20160 if test "$ac_cv_type_uintptr_t" != yes; then
20161   sed 's/^ *//' >> tmp-stdint.h <<EOF
20162
20163     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20164     #ifndef __uintptr_t_defined
20165     #ifndef uintptr_t
20166     typedef u$acx_cv_type_intptr_t uintptr_t;
20167     #endif
20168     #endif
20169     #ifndef __intptr_t_defined
20170     #ifndef intptr_t
20171     typedef $acx_cv_type_intptr_t  intptr_t;
20172     #endif
20173     #endif
20174 EOF
20175 fi
20176
20177 # ------------- done intptr types, emit int_least types ------------
20178 if test "$ac_cv_type_int_least32_t" != yes; then
20179   sed 's/^ *//' >> tmp-stdint.h <<EOF
20180
20181     /* Define int_least types */
20182     typedef int8_t     int_least8_t;
20183     typedef int16_t    int_least16_t;
20184     typedef int32_t    int_least32_t;
20185     #ifdef _INT64_T
20186     typedef int64_t    int_least64_t;
20187     #endif
20188
20189     typedef uint8_t    uint_least8_t;
20190     typedef uint16_t   uint_least16_t;
20191     typedef uint32_t   uint_least32_t;
20192     #ifdef _UINT64_T
20193     typedef uint64_t   uint_least64_t;
20194     #endif
20195 EOF
20196 fi
20197
20198 # ------------- done intptr types, emit int_fast types ------------
20199 if test "$ac_cv_type_int_fast32_t" != yes; then
20200       sed 's/^ *//' >> tmp-stdint.h <<EOF
20201
20202     /* Define int_fast types.  short is often slow */
20203     typedef int8_t       int_fast8_t;
20204     typedef int          int_fast16_t;
20205     typedef int32_t      int_fast32_t;
20206     #ifdef _INT64_T
20207     typedef int64_t      int_fast64_t;
20208     #endif
20209
20210     typedef uint8_t      uint_fast8_t;
20211     typedef unsigned int uint_fast16_t;
20212     typedef uint32_t     uint_fast32_t;
20213     #ifdef _UINT64_T
20214     typedef uint64_t     uint_fast64_t;
20215     #endif
20216 EOF
20217 fi
20218
20219 if test "$ac_cv_type_uintmax_t" != yes; then
20220   sed 's/^ *//' >> tmp-stdint.h <<EOF
20221
20222     /* Define intmax based on what we found */
20223     #ifndef intmax_t
20224     #ifdef _INT64_T
20225     typedef int64_t       intmax_t;
20226     #else
20227     typedef long          intmax_t;
20228     #endif
20229     #endif
20230     #ifndef uintmax_t
20231     #ifdef _UINT64_T
20232     typedef uint64_t      uintmax_t;
20233     #else
20234     typedef unsigned long uintmax_t;
20235     #endif
20236     #endif
20237 EOF
20238 fi
20239
20240 sed 's/^ *//' >> tmp-stdint.h <<EOF
20241
20242   #endif /* GCC_GENERATED_STDINT_H */
20243 EOF
20244
20245 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20246   rm -f tmp-stdint.h
20247 else
20248   mv -f tmp-stdint.h gstdint.h
20249 fi
20250
20251  ;;
20252
20253   esac
20254 done # for ac_tag
20255
20256
20257 as_fn_exit 0
20258 _ACEOF
20259 ac_clean_files=$ac_clean_files_save
20260
20261 test $ac_write_fail = 0 ||
20262   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20263
20264
20265 # configure is writing to config.log, and then calls config.status.
20266 # config.status does its own redirection, appending to config.log.
20267 # Unfortunately, on DOS this fails, as config.log is still kept open
20268 # by configure, so config.status won't be able to write to it; its
20269 # output is simply discarded.  So we exec the FD to /dev/null,
20270 # effectively closing config.log, so it can be properly (re)opened and
20271 # appended to by config.status.  When coming back to configure, we
20272 # need to make the FD available again.
20273 if test "$no_create" != yes; then
20274   ac_cs_success=:
20275   ac_config_status_args=
20276   test "$silent" = yes &&
20277     ac_config_status_args="$ac_config_status_args --quiet"
20278   exec 5>/dev/null
20279   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20280   exec 5>>config.log
20281   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20282   # would make configure fail if this is the last instruction.
20283   $ac_cs_success || as_fn_exit $?
20284 fi
20285 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20286   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20287 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20288 fi
20289