1512ad184ccfe741f618bf14cab84397eab889ab
[platform/upstream/linaro-gcc.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_AVX_FALSE
607 ARCH_X86_AVX_TRUE
608 ARCH_X86_FALSE
609 ARCH_X86_TRUE
610 link_itm
611 XLDFLAGS
612 XCFLAGS
613 config_path
614 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
615 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
616 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
617 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
618 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
619 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
620 OPT_LDFLAGS
621 SECTION_LDFLAGS
622 libtool_VERSION
623 MAINT
624 MAINTAINER_MODE_FALSE
625 MAINTAINER_MODE_TRUE
626 enable_static
627 enable_shared
628 CXXCPP
629 CPP
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 OBJDUMP
636 LN_S
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LD
640 FGREP
641 EGREP
642 GREP
643 SED
644 LIBTOOL
645 BUILD_INFO_FALSE
646 BUILD_INFO_TRUE
647 PERL
648 RANLIB
649 NM
650 AR
651 am__fastdepCCAS_FALSE
652 am__fastdepCCAS_TRUE
653 CCASDEPMODE
654 CCASFLAGS
655 CCAS
656 am__fastdepCXX_FALSE
657 am__fastdepCXX_TRUE
658 CXXDEPMODE
659 ac_ct_CXX
660 CXXFLAGS
661 CXX
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 AMDEPBACKSLASH
666 AMDEP_FALSE
667 AMDEP_TRUE
668 am__quote
669 am__include
670 DEPDIR
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
677 CC
678 toolexeclibdir
679 toolexecdir
680 multi_basedir
681 am__untar
682 am__tar
683 AMTAR
684 am__leading_dot
685 SET_MAKE
686 AWK
687 mkdir_p
688 MKDIR_P
689 INSTALL_STRIP_PROGRAM
690 STRIP
691 install_sh
692 MAKEINFO
693 AUTOHEADER
694 AUTOMAKE
695 AUTOCONF
696 ACLOCAL
697 VERSION
698 PACKAGE
699 CYGPATH_W
700 am__isrc
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 target_os
705 target_vendor
706 target_cpu
707 target
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 GENINSRC_FALSE
717 GENINSRC_TRUE
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_version_specific_runtime_libs
760 enable_generated_files_in_srcdir
761 enable_multilib
762 enable_dependency_tracking
763 enable_shared
764 enable_static
765 with_pic
766 enable_fast_install
767 with_gnu_ld
768 enable_libtool_lock
769 enable_maintainer_mode
770 enable_linux_futex
771 enable_tls
772 enable_symvers
773 '
774       ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CPP
778 CPPFLAGS
779 CXXCPP'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834   # If the previous option needs an argument, assign it.
835   if test -n "$ac_prev"; then
836     eval $ac_prev=\$ac_option
837     ac_prev=
838     continue
839   fi
840
841   case $ac_option in
842   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843   *)    ac_optarg=yes ;;
844   esac
845
846   # Accept the important Cygnus configure options, so we can diagnose typos.
847
848   case $ac_dashdash$ac_option in
849   --)
850     ac_dashdash=yes ;;
851
852   -bindir | --bindir | --bindi | --bind | --bin | --bi)
853     ac_prev=bindir ;;
854   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855     bindir=$ac_optarg ;;
856
857   -build | --build | --buil | --bui | --bu)
858     ac_prev=build_alias ;;
859   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860     build_alias=$ac_optarg ;;
861
862   -cache-file | --cache-file | --cache-fil | --cache-fi \
863   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864     ac_prev=cache_file ;;
865   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867     cache_file=$ac_optarg ;;
868
869   --config-cache | -C)
870     cache_file=config.cache ;;
871
872   -datadir | --datadir | --datadi | --datad)
873     ac_prev=datadir ;;
874   -datadir=* | --datadir=* | --datadi=* | --datad=*)
875     datadir=$ac_optarg ;;
876
877   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878   | --dataroo | --dataro | --datar)
879     ac_prev=datarootdir ;;
880   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882     datarootdir=$ac_optarg ;;
883
884   -disable-* | --disable-*)
885     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886     # Reject names that are not valid shell variable names.
887     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888       as_fn_error "invalid feature name: $ac_useropt"
889     ac_useropt_orig=$ac_useropt
890     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891     case $ac_user_opts in
892       *"
893 "enable_$ac_useropt"
894 "*) ;;
895       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896          ac_unrecognized_sep=', ';;
897     esac
898     eval enable_$ac_useropt=no ;;
899
900   -docdir | --docdir | --docdi | --doc | --do)
901     ac_prev=docdir ;;
902   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903     docdir=$ac_optarg ;;
904
905   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906     ac_prev=dvidir ;;
907   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908     dvidir=$ac_optarg ;;
909
910   -enable-* | --enable-*)
911     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912     # Reject names that are not valid shell variable names.
913     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914       as_fn_error "invalid feature name: $ac_useropt"
915     ac_useropt_orig=$ac_useropt
916     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917     case $ac_user_opts in
918       *"
919 "enable_$ac_useropt"
920 "*) ;;
921       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922          ac_unrecognized_sep=', ';;
923     esac
924     eval enable_$ac_useropt=\$ac_optarg ;;
925
926   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928   | --exec | --exe | --ex)
929     ac_prev=exec_prefix ;;
930   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932   | --exec=* | --exe=* | --ex=*)
933     exec_prefix=$ac_optarg ;;
934
935   -gas | --gas | --ga | --g)
936     # Obsolete; use --with-gas.
937     with_gas=yes ;;
938
939   -help | --help | --hel | --he | -h)
940     ac_init_help=long ;;
941   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942     ac_init_help=recursive ;;
943   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944     ac_init_help=short ;;
945
946   -host | --host | --hos | --ho)
947     ac_prev=host_alias ;;
948   -host=* | --host=* | --hos=* | --ho=*)
949     host_alias=$ac_optarg ;;
950
951   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952     ac_prev=htmldir ;;
953   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954   | --ht=*)
955     htmldir=$ac_optarg ;;
956
957   -includedir | --includedir | --includedi | --included | --include \
958   | --includ | --inclu | --incl | --inc)
959     ac_prev=includedir ;;
960   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961   | --includ=* | --inclu=* | --incl=* | --inc=*)
962     includedir=$ac_optarg ;;
963
964   -infodir | --infodir | --infodi | --infod | --info | --inf)
965     ac_prev=infodir ;;
966   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967     infodir=$ac_optarg ;;
968
969   -libdir | --libdir | --libdi | --libd)
970     ac_prev=libdir ;;
971   -libdir=* | --libdir=* | --libdi=* | --libd=*)
972     libdir=$ac_optarg ;;
973
974   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975   | --libexe | --libex | --libe)
976     ac_prev=libexecdir ;;
977   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978   | --libexe=* | --libex=* | --libe=*)
979     libexecdir=$ac_optarg ;;
980
981   -localedir | --localedir | --localedi | --localed | --locale)
982     ac_prev=localedir ;;
983   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984     localedir=$ac_optarg ;;
985
986   -localstatedir | --localstatedir | --localstatedi | --localstated \
987   | --localstate | --localstat | --localsta | --localst | --locals)
988     ac_prev=localstatedir ;;
989   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991     localstatedir=$ac_optarg ;;
992
993   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994     ac_prev=mandir ;;
995   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996     mandir=$ac_optarg ;;
997
998   -nfp | --nfp | --nf)
999     # Obsolete; use --without-fp.
1000     with_fp=no ;;
1001
1002   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003   | --no-cr | --no-c | -n)
1004     no_create=yes ;;
1005
1006   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008     no_recursion=yes ;;
1009
1010   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012   | --oldin | --oldi | --old | --ol | --o)
1013     ac_prev=oldincludedir ;;
1014   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017     oldincludedir=$ac_optarg ;;
1018
1019   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020     ac_prev=prefix ;;
1021   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022     prefix=$ac_optarg ;;
1023
1024   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025   | --program-pre | --program-pr | --program-p)
1026     ac_prev=program_prefix ;;
1027   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029     program_prefix=$ac_optarg ;;
1030
1031   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032   | --program-suf | --program-su | --program-s)
1033     ac_prev=program_suffix ;;
1034   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036     program_suffix=$ac_optarg ;;
1037
1038   -program-transform-name | --program-transform-name \
1039   | --program-transform-nam | --program-transform-na \
1040   | --program-transform-n | --program-transform- \
1041   | --program-transform | --program-transfor \
1042   | --program-transfo | --program-transf \
1043   | --program-trans | --program-tran \
1044   | --progr-tra | --program-tr | --program-t)
1045     ac_prev=program_transform_name ;;
1046   -program-transform-name=* | --program-transform-name=* \
1047   | --program-transform-nam=* | --program-transform-na=* \
1048   | --program-transform-n=* | --program-transform-=* \
1049   | --program-transform=* | --program-transfor=* \
1050   | --program-transfo=* | --program-transf=* \
1051   | --program-trans=* | --program-tran=* \
1052   | --progr-tra=* | --program-tr=* | --program-t=*)
1053     program_transform_name=$ac_optarg ;;
1054
1055   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056     ac_prev=pdfdir ;;
1057   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058     pdfdir=$ac_optarg ;;
1059
1060   -psdir | --psdir | --psdi | --psd | --ps)
1061     ac_prev=psdir ;;
1062   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063     psdir=$ac_optarg ;;
1064
1065   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066   | -silent | --silent | --silen | --sile | --sil)
1067     silent=yes ;;
1068
1069   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070     ac_prev=sbindir ;;
1071   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072   | --sbi=* | --sb=*)
1073     sbindir=$ac_optarg ;;
1074
1075   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077   | --sharedst | --shareds | --shared | --share | --shar \
1078   | --sha | --sh)
1079     ac_prev=sharedstatedir ;;
1080   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083   | --sha=* | --sh=*)
1084     sharedstatedir=$ac_optarg ;;
1085
1086   -site | --site | --sit)
1087     ac_prev=site ;;
1088   -site=* | --site=* | --sit=*)
1089     site=$ac_optarg ;;
1090
1091   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092     ac_prev=srcdir ;;
1093   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094     srcdir=$ac_optarg ;;
1095
1096   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097   | --syscon | --sysco | --sysc | --sys | --sy)
1098     ac_prev=sysconfdir ;;
1099   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101     sysconfdir=$ac_optarg ;;
1102
1103   -target | --target | --targe | --targ | --tar | --ta | --t)
1104     ac_prev=target_alias ;;
1105   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106     target_alias=$ac_optarg ;;
1107
1108   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109     verbose=yes ;;
1110
1111   -version | --version | --versio | --versi | --vers | -V)
1112     ac_init_version=: ;;
1113
1114   -with-* | --with-*)
1115     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118       as_fn_error "invalid package name: $ac_useropt"
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval with_$ac_useropt=\$ac_optarg ;;
1129
1130   -without-* | --without-*)
1131     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134       as_fn_error "invalid package name: $ac_useropt"
1135     ac_useropt_orig=$ac_useropt
1136     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137     case $ac_user_opts in
1138       *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142          ac_unrecognized_sep=', ';;
1143     esac
1144     eval with_$ac_useropt=no ;;
1145
1146   --x)
1147     # Obsolete; use --with-x.
1148     with_x=yes ;;
1149
1150   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151   | --x-incl | --x-inc | --x-in | --x-i)
1152     ac_prev=x_includes ;;
1153   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155     x_includes=$ac_optarg ;;
1156
1157   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159     ac_prev=x_libraries ;;
1160   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162     x_libraries=$ac_optarg ;;
1163
1164   -*) as_fn_error "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information."
1166     ;;
1167
1168   *=*)
1169     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170     # Reject names that are not valid shell variable names.
1171     case $ac_envvar in #(
1172       '' | [0-9]* | *[!_$as_cr_alnum]* )
1173       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1174     esac
1175     eval $ac_envvar=\$ac_optarg
1176     export $ac_envvar ;;
1177
1178   *)
1179     # FIXME: should be removed in autoconf 3.0.
1180     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184     ;;
1185
1186   esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191   as_fn_error "missing argument to $ac_option"
1192 fi
1193
1194 if test -n "$ac_unrecognized_opts"; then
1195   case $enable_option_checking in
1196     no) ;;
1197     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1198     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199   esac
1200 fi
1201
1202 # Check all directory arguments for consistency.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   # Remove trailing slashes.
1210   case $ac_val in
1211     */ )
1212       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213       eval $ac_var=\$ac_val;;
1214   esac
1215   # Be sure to have absolute directory names.
1216   case $ac_val in
1217     [\\/$]* | ?:[\\/]* )  continue;;
1218     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219   esac
1220   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235     If a cross compiler is detected then cross compile mode will be used." >&2
1236   elif test "x$build_alias" != "x$host_alias"; then
1237     cross_compiling=yes
1238   fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250   as_fn_error "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252   as_fn_error "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257   ac_srcdir_defaulted=yes
1258   # Try the directory containing this script, then the parent directory.
1259   ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261          X"$as_myself" : 'X\(//\)[^/]' \| \
1262          X"$as_myself" : 'X\(//\)$' \| \
1263          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)[^/].*/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\/\)$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\).*/{
1278             s//\1/
1279             q
1280           }
1281           s/.*/./; q'`
1282   srcdir=$ac_confdir
1283   if test ! -r "$srcdir/$ac_unique_file"; then
1284     srcdir=..
1285   fi
1286 else
1287   ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296         pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299   srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_env_${ac_var}_value=\$${ac_var}
1310   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318   # Omit some internal or obsolete options to make the list less imposing.
1319   # This message is too long to be a string in the A/UX 3.1 sh.
1320   cat <<_ACEOF
1321 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331   -h, --help              display this help and exit
1332       --help=short        display options specific to this package
1333       --help=recursive    display the short help of all the included packages
1334   -V, --version           display version information and exit
1335   -q, --quiet, --silent   do not print \`checking...' messages
1336       --cache-file=FILE   cache test results in FILE [disabled]
1337   -C, --config-cache      alias for \`--cache-file=config.cache'
1338   -n, --no-create         do not create output files
1339       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342   --prefix=PREFIX         install architecture-independent files in PREFIX
1343                           [$ac_default_prefix]
1344   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                           [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355   --bindir=DIR            user executables [EPREFIX/bin]
1356   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1357   --libexecdir=DIR        program executables [EPREFIX/libexec]
1358   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1359   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1360   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1361   --libdir=DIR            object code libraries [EPREFIX/lib]
1362   --includedir=DIR        C header files [PREFIX/include]
1363   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1364   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1365   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1366   --infodir=DIR           info documentation [DATAROOTDIR/info]
1367   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1368   --mandir=DIR            man documentation [DATAROOTDIR/man]
1369   --docdir=DIR            documentation root [DATAROOTDIR/doc/libitm]
1370   --htmldir=DIR           html documentation [DOCDIR]
1371   --dvidir=DIR            dvi documentation [DOCDIR]
1372   --pdfdir=DIR            pdf documentation [DOCDIR]
1373   --psdir=DIR             ps documentation [DOCDIR]
1374 _ACEOF
1375
1376   cat <<\_ACEOF
1377
1378 Program names:
1379   --program-prefix=PREFIX            prepend PREFIX to installed program names
1380   --program-suffix=SUFFIX            append SUFFIX to installed program names
1381   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1382
1383 System types:
1384   --build=BUILD     configure for building on BUILD [guessed]
1385   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1386   --target=TARGET   configure for building compilers for TARGET [HOST]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391   case $ac_init_help in
1392      short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1393    esac
1394   cat <<\_ACEOF
1395
1396 Optional Features:
1397   --disable-option-checking  ignore unrecognized --enable/--with options
1398   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400   --enable-version-specific-runtime-libs
1401                           Specify that runtime libraries should be installed
1402                           in a compiler-specific directory [default=no]
1403   --enable-generated-files-in-srcdir
1404                           put copies of generated files in source dir intended
1405                           for creating source tarballs for users without
1406                           texinfo bison or flex. [default=no]
1407   --enable-multilib       build many library versions (default)
1408   --disable-dependency-tracking  speeds up one-time build
1409   --enable-dependency-tracking   do not reject slow dependency extractors
1410   --enable-shared[=PKGS]  build shared libraries [default=yes]
1411   --enable-static[=PKGS]  build static libraries [default=yes]
1412   --enable-fast-install[=PKGS]
1413                           optimize for fast installation [default=yes]
1414   --disable-libtool-lock  avoid locking (might break parallel builds)
1415   --enable-maintainer-mode  enable make rules and dependencies not useful
1416                           (and sometimes confusing) to the casual installer
1417   --enable-linux-futex    use the Linux futex system call [default=default]
1418   --enable-tls            Use thread-local storage [default=yes]
1419   --enable-symvers=STYLE  enables symbol versioning of the shared library
1420                           [default=yes]
1421
1422 Optional Packages:
1423   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1424   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1425   --with-pic              try to use only PIC/non-PIC objects [default=use
1426                           both]
1427   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1428
1429 Some influential environment variables:
1430   CC          C compiler command
1431   CFLAGS      C compiler flags
1432   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1433               nonstandard directory <lib dir>
1434   LIBS        libraries to pass to the linker, e.g. -l<library>
1435   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1436               you have headers in a nonstandard directory <include dir>
1437   CXX         C++ compiler command
1438   CXXFLAGS    C++ compiler flags
1439   CCAS        assembler compiler command (defaults to CC)
1440   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1441   CPP         C preprocessor
1442   CXXCPP      C++ preprocessor
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to the package provider.
1448 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1449 General help using GNU software: <http://www.gnu.org/gethelp/>.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455   # If there are subdirs, report their specific --help.
1456   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457     test -d "$ac_dir" ||
1458       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459       continue
1460     ac_builddir=.
1461
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *)
1465   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466   # A ".." for each directory in $ac_dir_suffix.
1467   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468   case $ac_top_builddir_sub in
1469   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471   esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1477
1478 case $srcdir in
1479   .)  # We are building in place.
1480     ac_srcdir=.
1481     ac_top_srcdir=$ac_top_builddir_sub
1482     ac_abs_top_srcdir=$ac_pwd ;;
1483   [\\/]* | ?:[\\/]* )  # Absolute name.
1484     ac_srcdir=$srcdir$ac_dir_suffix;
1485     ac_top_srcdir=$srcdir
1486     ac_abs_top_srcdir=$srcdir ;;
1487   *) # Relative name.
1488     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489     ac_top_srcdir=$ac_top_build_prefix$srcdir
1490     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494     cd "$ac_dir" || { ac_status=$?; continue; }
1495     # Check for guested configure.
1496     if test -f "$ac_srcdir/configure.gnu"; then
1497       echo &&
1498       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499     elif test -f "$ac_srcdir/configure"; then
1500       echo &&
1501       $SHELL "$ac_srcdir/configure" --help=recursive
1502     else
1503       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504     fi || ac_status=$?
1505     cd "$ac_pwd" || { ac_status=$?; break; }
1506   done
1507 fi
1508
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511   cat <<\_ACEOF
1512 GNU TM Runtime Library configure 1.0
1513 generated by GNU Autoconf 2.64
1514
1515 Copyright (C) 2009 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519   exit
1520 fi
1521
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532   rm -f conftest.$ac_objext
1533   if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536   *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540   (eval "$ac_compile") 2>conftest.err
1541   ac_status=$?
1542   if test -s conftest.err; then
1543     grep -v '^ *+' conftest.err >conftest.er1
1544     cat conftest.er1 >&5
1545     mv -f conftest.er1 conftest.err
1546   fi
1547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548   test $ac_status = 0; } && {
1549          test -z "$ac_c_werror_flag" ||
1550          test ! -s conftest.err
1551        } && test -s conftest.$ac_objext; then :
1552   ac_retval=0
1553 else
1554   $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557         ac_retval=1
1558 fi
1559   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560   return $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_cxx_try_compile LINENO
1565 # ----------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_cxx_try_compile ()
1568 {
1569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570   rm -f conftest.$ac_objext
1571   if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574   *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578   (eval "$ac_compile") 2>conftest.err
1579   ac_status=$?
1580   if test -s conftest.err; then
1581     grep -v '^ *+' conftest.err >conftest.er1
1582     cat conftest.er1 >&5
1583     mv -f conftest.er1 conftest.err
1584   fi
1585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586   test $ac_status = 0; } && {
1587          test -z "$ac_cxx_werror_flag" ||
1588          test ! -s conftest.err
1589        } && test -s conftest.$ac_objext; then :
1590   ac_retval=0
1591 else
1592   $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595         ac_retval=1
1596 fi
1597   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598   return $ac_retval
1599
1600 } # ac_fn_cxx_try_compile
1601
1602 # ac_fn_c_try_link LINENO
1603 # -----------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_link ()
1606 {
1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608   rm -f conftest.$ac_objext conftest$ac_exeext
1609   if { { ac_try="$ac_link"
1610 case "(($ac_try" in
1611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612   *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616   (eval "$ac_link") 2>conftest.err
1617   ac_status=$?
1618   if test -s conftest.err; then
1619     grep -v '^ *+' conftest.err >conftest.er1
1620     cat conftest.er1 >&5
1621     mv -f conftest.er1 conftest.err
1622   fi
1623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624   test $ac_status = 0; } && {
1625          test -z "$ac_c_werror_flag" ||
1626          test ! -s conftest.err
1627        } && test -s conftest$ac_exeext && {
1628          test "$cross_compiling" = yes ||
1629          $as_test_x conftest$ac_exeext
1630        }; then :
1631   ac_retval=0
1632 else
1633   $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636         ac_retval=1
1637 fi
1638   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640   # interfere with the next link command; also delete a directory that is
1641   # left behind by Apple's compiler.  We do this before executing the actions.
1642   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644   return $ac_retval
1645
1646 } # ac_fn_c_try_link
1647
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1653 {
1654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658   $as_echo_n "(cached) " >&6
1659 else
1660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h.  */
1662 $4
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666   eval "$3=yes"
1667 else
1668   eval "$3=no"
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 fi
1672 eval ac_res=\$$3
1673                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676
1677 } # ac_fn_c_check_header_compile
1678
1679 # ac_fn_c_try_cpp LINENO
1680 # ----------------------
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_cpp ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 case "(($ac_try" in
1687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688   *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693   ac_status=$?
1694   if test -s conftest.err; then
1695     grep -v '^ *+' conftest.err >conftest.er1
1696     cat conftest.er1 >&5
1697     mv -f conftest.er1 conftest.err
1698   fi
1699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700   test $ac_status = 0; } >/dev/null && {
1701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702          test ! -s conftest.err
1703        }; then :
1704   ac_retval=0
1705 else
1706   $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709     ac_retval=1
1710 fi
1711   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712   return $ac_retval
1713
1714 } # ac_fn_c_try_cpp
1715
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_link") 2>&5
1731   ac_status=$?
1732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734   { { case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_try") 2>&5
1741   ac_status=$?
1742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743   test $ac_status = 0; }; }; then :
1744   ac_retval=0
1745 else
1746   $as_echo "$as_me: program exited with status $ac_status" >&5
1747        $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750        ac_retval=$ac_status
1751 fi
1752   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754   return $ac_retval
1755
1756 } # ac_fn_c_try_run
1757
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1767   $as_echo_n "(cached) " >&6
1768 else
1769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h.  */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1773 #define $2 innocuous_$2
1774
1775 /* System header to define __stub macros and hopefully few prototypes,
1776     which can conflict with char $2 (); below.
1777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778     <limits.h> exists even on freestanding compilers.  */
1779
1780 #ifdef __STDC__
1781 # include <limits.h>
1782 #else
1783 # include <assert.h>
1784 #endif
1785
1786 #undef $2
1787
1788 /* Override any GCC internal prototype to avoid an error.
1789    Use char because int might match the return type of a GCC
1790    builtin and then its argument prototype would still apply.  */
1791 #ifdef __cplusplus
1792 extern "C"
1793 #endif
1794 char $2 ();
1795 /* The GNU C library defines this for functions which it implements
1796     to always fail with ENOSYS.  Some functions are actually named
1797     something starting with __ and the normal name is an alias.  */
1798 #if defined __stub_$2 || defined __stub___$2
1799 choke me
1800 #endif
1801
1802 int
1803 main ()
1804 {
1805 return $2 ();
1806   ;
1807   return 0;
1808 }
1809 _ACEOF
1810 if ac_fn_c_try_link "$LINENO"; then :
1811   eval "$3=yes"
1812 else
1813   eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext \
1816     conftest$ac_exeext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822
1823 } # ac_fn_c_check_func
1824
1825 # ac_fn_cxx_try_cpp LINENO
1826 # ------------------------
1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_cpp ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   if { { ac_try="$ac_cpp conftest.$ac_ext"
1832 case "(($ac_try" in
1833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834   *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839   ac_status=$?
1840   if test -s conftest.err; then
1841     grep -v '^ *+' conftest.err >conftest.er1
1842     cat conftest.er1 >&5
1843     mv -f conftest.er1 conftest.err
1844   fi
1845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846   test $ac_status = 0; } >/dev/null && {
1847          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1848          test ! -s conftest.err
1849        }; then :
1850   ac_retval=0
1851 else
1852   $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855     ac_retval=1
1856 fi
1857   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858   return $ac_retval
1859
1860 } # ac_fn_cxx_try_cpp
1861
1862 # ac_fn_cxx_try_link LINENO
1863 # -------------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_link ()
1866 {
1867   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868   rm -f conftest.$ac_objext conftest$ac_exeext
1869   if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872   *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876   (eval "$ac_link") 2>conftest.err
1877   ac_status=$?
1878   if test -s conftest.err; then
1879     grep -v '^ *+' conftest.err >conftest.er1
1880     cat conftest.er1 >&5
1881     mv -f conftest.er1 conftest.err
1882   fi
1883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884   test $ac_status = 0; } && {
1885          test -z "$ac_cxx_werror_flag" ||
1886          test ! -s conftest.err
1887        } && test -s conftest$ac_exeext && {
1888          test "$cross_compiling" = yes ||
1889          $as_test_x conftest$ac_exeext
1890        }; then :
1891   ac_retval=0
1892 else
1893   $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896         ac_retval=1
1897 fi
1898   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900   # interfere with the next link command; also delete a directory that is
1901   # left behind by Apple's compiler.  We do this before executing the actions.
1902   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904   return $ac_retval
1905
1906 } # ac_fn_cxx_try_link
1907
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911 # the include files in INCLUDES and setting the cache variable VAR
1912 # accordingly.
1913 ac_fn_c_check_header_mongrel ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920   $as_echo_n "(cached) " >&6
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 else
1926   # Is the header compilable?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928 $as_echo_n "checking $2 usability... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 $4
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935   ac_header_compiler=yes
1936 else
1937   ac_header_compiler=no
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941 $as_echo "$ac_header_compiler" >&6; }
1942
1943 # Is the header present?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945 $as_echo_n "checking $2 presence... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h.  */
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951   ac_header_preproc=yes
1952 else
1953   ac_header_preproc=no
1954 fi
1955 rm -f conftest.err conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957 $as_echo "$ac_header_preproc" >&6; }
1958
1959 # So?  What about this header?
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1961   yes:no: )
1962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966     ;;
1967   no:yes:* )
1968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1971 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1975 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978     ;;
1979 esac
1980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983   $as_echo_n "(cached) " >&6
1984 else
1985   eval "$3=\$ac_header_compiler"
1986 fi
1987 eval ac_res=\$$3
1988                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 fi
1991   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992
1993 } # ac_fn_c_check_header_mongrel
1994
1995 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996 # -------------------------------------------
1997 # Tests whether TYPE exists after having included INCLUDES, setting cache
1998 # variable VAR accordingly.
1999 ac_fn_c_check_type ()
2000 {
2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005   $as_echo_n "(cached) " >&6
2006 else
2007   eval "$3=no"
2008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $4
2011 int
2012 main ()
2013 {
2014 if (sizeof ($2))
2015          return 0;
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 int
2025 main ()
2026 {
2027 if (sizeof (($2)))
2028             return 0;
2029   ;
2030   return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034
2035 else
2036   eval "$3=yes"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$3
2043                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046
2047 } # ac_fn_c_check_type
2048
2049 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2050 # --------------------------------------------
2051 # Tries to find the compile-time value of EXPR in a program that includes
2052 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2053 # computed
2054 ac_fn_c_compute_int ()
2055 {
2056   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057   if test "$cross_compiling" = yes; then
2058     # Depending upon the size, compute the lo and hi bounds.
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h.  */
2061 $4
2062 int
2063 main ()
2064 {
2065 static int test_array [1 - 2 * !(($2) >= 0)];
2066 test_array [0] = 0
2067
2068   ;
2069   return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073   ac_lo=0 ac_mid=0
2074   while :; do
2075     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h.  */
2077 $4
2078 int
2079 main ()
2080 {
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 test_array [0] = 0
2083
2084   ;
2085   return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089   ac_hi=$ac_mid; break
2090 else
2091   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2092                         if test $ac_lo -le $ac_mid; then
2093                           ac_lo= ac_hi=
2094                           break
2095                         fi
2096                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099   done
2100 else
2101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 $4
2104 int
2105 main ()
2106 {
2107 static int test_array [1 - 2 * !(($2) < 0)];
2108 test_array [0] = 0
2109
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115   ac_hi=-1 ac_mid=-1
2116   while :; do
2117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h.  */
2119 $4
2120 int
2121 main ()
2122 {
2123 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2124 test_array [0] = 0
2125
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131   ac_lo=$ac_mid; break
2132 else
2133   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2134                         if test $ac_mid -le $ac_hi; then
2135                           ac_lo= ac_hi=
2136                           break
2137                         fi
2138                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141   done
2142 else
2143   ac_lo= ac_hi=
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 # Binary search between lo and hi bounds.
2149 while test "x$ac_lo" != "x$ac_hi"; do
2150   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h.  */
2153 $4
2154 int
2155 main ()
2156 {
2157 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2158 test_array [0] = 0
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165   ac_hi=$ac_mid
2166 else
2167   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 done
2171 case $ac_lo in #((
2172 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2173 '') ac_retval=1 ;;
2174 esac
2175   else
2176     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h.  */
2178 $4
2179 static long int longval () { return $2; }
2180 static unsigned long int ulongval () { return $2; }
2181 #include <stdio.h>
2182 #include <stdlib.h>
2183 int
2184 main ()
2185 {
2186
2187   FILE *f = fopen ("conftest.val", "w");
2188   if (! f)
2189     return 1;
2190   if (($2) < 0)
2191     {
2192       long int i = longval ();
2193       if (i != ($2))
2194         return 1;
2195       fprintf (f, "%ld", i);
2196     }
2197   else
2198     {
2199       unsigned long int i = ulongval ();
2200       if (i != ($2))
2201         return 1;
2202       fprintf (f, "%lu", i);
2203     }
2204   /* Do not output a trailing newline, as this causes \r\n confusion
2205      on some platforms.  */
2206   return ferror (f) || fclose (f) != 0;
2207
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_run "$LINENO"; then :
2213   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2214 else
2215   ac_retval=1
2216 fi
2217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2218   conftest.$ac_objext conftest.beam conftest.$ac_ext
2219 rm -f conftest.val
2220
2221   fi
2222   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223   return $ac_retval
2224
2225 } # ac_fn_c_compute_int
2226 cat >config.log <<_ACEOF
2227 This file contains any messages produced by compilers while
2228 running configure, to aid debugging if configure makes a mistake.
2229
2230 It was created by GNU TM Runtime Library $as_me 1.0, which was
2231 generated by GNU Autoconf 2.64.  Invocation command line was
2232
2233   $ $0 $@
2234
2235 _ACEOF
2236 exec 5>>config.log
2237 {
2238 cat <<_ASUNAME
2239 ## --------- ##
2240 ## Platform. ##
2241 ## --------- ##
2242
2243 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2244 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2245 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2246 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2247 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2248
2249 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2250 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2251
2252 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2253 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2254 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2255 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2256 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2257 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2258 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2259
2260 _ASUNAME
2261
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265   IFS=$as_save_IFS
2266   test -z "$as_dir" && as_dir=.
2267     $as_echo "PATH: $as_dir"
2268   done
2269 IFS=$as_save_IFS
2270
2271 } >&5
2272
2273 cat >&5 <<_ACEOF
2274
2275
2276 ## ----------- ##
2277 ## Core tests. ##
2278 ## ----------- ##
2279
2280 _ACEOF
2281
2282
2283 # Keep a trace of the command line.
2284 # Strip out --no-create and --no-recursion so they do not pile up.
2285 # Strip out --silent because we don't want to record it for future runs.
2286 # Also quote any args containing shell meta-characters.
2287 # Make two passes to allow for proper duplicate-argument suppression.
2288 ac_configure_args=
2289 ac_configure_args0=
2290 ac_configure_args1=
2291 ac_must_keep_next=false
2292 for ac_pass in 1 2
2293 do
2294   for ac_arg
2295   do
2296     case $ac_arg in
2297     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2298     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2299     | -silent | --silent | --silen | --sile | --sil)
2300       continue ;;
2301     *\'*)
2302       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2303     esac
2304     case $ac_pass in
2305     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2306     2)
2307       as_fn_append ac_configure_args1 " '$ac_arg'"
2308       if test $ac_must_keep_next = true; then
2309         ac_must_keep_next=false # Got value, back to normal.
2310       else
2311         case $ac_arg in
2312           *=* | --config-cache | -C | -disable-* | --disable-* \
2313           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2314           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2315           | -with-* | --with-* | -without-* | --without-* | --x)
2316             case "$ac_configure_args0 " in
2317               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2318             esac
2319             ;;
2320           -* ) ac_must_keep_next=true ;;
2321         esac
2322       fi
2323       as_fn_append ac_configure_args " '$ac_arg'"
2324       ;;
2325     esac
2326   done
2327 done
2328 { ac_configure_args0=; unset ac_configure_args0;}
2329 { ac_configure_args1=; unset ac_configure_args1;}
2330
2331 # When interrupted or exit'd, cleanup temporary files, and complete
2332 # config.log.  We remove comments because anyway the quotes in there
2333 # would cause problems or look ugly.
2334 # WARNING: Use '\'' to represent an apostrophe within the trap.
2335 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2336 trap 'exit_status=$?
2337   # Save into config.log some information that might help in debugging.
2338   {
2339     echo
2340
2341     cat <<\_ASBOX
2342 ## ---------------- ##
2343 ## Cache variables. ##
2344 ## ---------------- ##
2345 _ASBOX
2346     echo
2347     # The following way of writing the cache mishandles newlines in values,
2348 (
2349   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2350     eval ac_val=\$$ac_var
2351     case $ac_val in #(
2352     *${as_nl}*)
2353       case $ac_var in #(
2354       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2355 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2356       esac
2357       case $ac_var in #(
2358       _ | IFS | as_nl) ;; #(
2359       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2360       *) { eval $ac_var=; unset $ac_var;} ;;
2361       esac ;;
2362     esac
2363   done
2364   (set) 2>&1 |
2365     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2366     *${as_nl}ac_space=\ *)
2367       sed -n \
2368         "s/'\''/'\''\\\\'\'''\''/g;
2369           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2370       ;; #(
2371     *)
2372       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2373       ;;
2374     esac |
2375     sort
2376 )
2377     echo
2378
2379     cat <<\_ASBOX
2380 ## ----------------- ##
2381 ## Output variables. ##
2382 ## ----------------- ##
2383 _ASBOX
2384     echo
2385     for ac_var in $ac_subst_vars
2386     do
2387       eval ac_val=\$$ac_var
2388       case $ac_val in
2389       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2390       esac
2391       $as_echo "$ac_var='\''$ac_val'\''"
2392     done | sort
2393     echo
2394
2395     if test -n "$ac_subst_files"; then
2396       cat <<\_ASBOX
2397 ## ------------------- ##
2398 ## File substitutions. ##
2399 ## ------------------- ##
2400 _ASBOX
2401       echo
2402       for ac_var in $ac_subst_files
2403       do
2404         eval ac_val=\$$ac_var
2405         case $ac_val in
2406         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407         esac
2408         $as_echo "$ac_var='\''$ac_val'\''"
2409       done | sort
2410       echo
2411     fi
2412
2413     if test -s confdefs.h; then
2414       cat <<\_ASBOX
2415 ## ----------- ##
2416 ## confdefs.h. ##
2417 ## ----------- ##
2418 _ASBOX
2419       echo
2420       cat confdefs.h
2421       echo
2422     fi
2423     test "$ac_signal" != 0 &&
2424       $as_echo "$as_me: caught signal $ac_signal"
2425     $as_echo "$as_me: exit $exit_status"
2426   } >&5
2427   rm -f core *.core core.conftest.* &&
2428     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2429     exit $exit_status
2430 ' 0
2431 for ac_signal in 1 2 13 15; do
2432   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2433 done
2434 ac_signal=0
2435
2436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2437 rm -f -r conftest* confdefs.h
2438
2439 $as_echo "/* confdefs.h */" > confdefs.h
2440
2441 # Predefined preprocessor variables.
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_NAME "$PACKAGE_NAME"
2445 _ACEOF
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2449 _ACEOF
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2453 _ACEOF
2454
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_STRING "$PACKAGE_STRING"
2457 _ACEOF
2458
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2461 _ACEOF
2462
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_URL "$PACKAGE_URL"
2465 _ACEOF
2466
2467
2468 # Let the site file select an alternate cache file if it wants to.
2469 # Prefer an explicitly selected file to automatically selected ones.
2470 ac_site_file1=NONE
2471 ac_site_file2=NONE
2472 if test -n "$CONFIG_SITE"; then
2473   ac_site_file1=$CONFIG_SITE
2474 elif test "x$prefix" != xNONE; then
2475   ac_site_file1=$prefix/share/config.site
2476   ac_site_file2=$prefix/etc/config.site
2477 else
2478   ac_site_file1=$ac_default_prefix/share/config.site
2479   ac_site_file2=$ac_default_prefix/etc/config.site
2480 fi
2481 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2482 do
2483   test "x$ac_site_file" = xNONE && continue
2484   if test -r "$ac_site_file"; then
2485     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2486 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2487     sed 's/^/| /' "$ac_site_file" >&5
2488     . "$ac_site_file"
2489   fi
2490 done
2491
2492 if test -r "$cache_file"; then
2493   # Some versions of bash will fail to source /dev/null (special
2494   # files actually), so we avoid doing that.
2495   if test -f "$cache_file"; then
2496     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2497 $as_echo "$as_me: loading cache $cache_file" >&6;}
2498     case $cache_file in
2499       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2500       *)                      . "./$cache_file";;
2501     esac
2502   fi
2503 else
2504   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2505 $as_echo "$as_me: creating cache $cache_file" >&6;}
2506   >$cache_file
2507 fi
2508
2509 # Check that the precious variables saved in the cache have kept the same
2510 # value.
2511 ac_cache_corrupted=false
2512 for ac_var in $ac_precious_vars; do
2513   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2514   eval ac_new_set=\$ac_env_${ac_var}_set
2515   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2516   eval ac_new_val=\$ac_env_${ac_var}_value
2517   case $ac_old_set,$ac_new_set in
2518     set,)
2519       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2521       ac_cache_corrupted=: ;;
2522     ,set)
2523       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2524 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2525       ac_cache_corrupted=: ;;
2526     ,);;
2527     *)
2528       if test "x$ac_old_val" != "x$ac_new_val"; then
2529         # differences in whitespace do not lead to failure.
2530         ac_old_val_w=`echo x $ac_old_val`
2531         ac_new_val_w=`echo x $ac_new_val`
2532         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2533           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2534 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2535           ac_cache_corrupted=:
2536         else
2537           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2538 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2539           eval $ac_var=\$ac_old_val
2540         fi
2541         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2542 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2543         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2544 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2545       fi;;
2546   esac
2547   # Pass precious variables to config.status.
2548   if test "$ac_new_set" = set; then
2549     case $ac_new_val in
2550     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2551     *) ac_arg=$ac_var=$ac_new_val ;;
2552     esac
2553     case " $ac_configure_args " in
2554       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2555       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2556     esac
2557   fi
2558 done
2559 if $ac_cache_corrupted; then
2560   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2563 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2564   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2565 fi
2566 ## -------------------- ##
2567 ## Main body of script. ##
2568 ## -------------------- ##
2569
2570 ac_ext=c
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576
2577
2578
2579
2580 ac_config_headers="$ac_config_headers config.h"
2581
2582
2583 # -------
2584 # Options
2585 # -------
2586
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2588 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2589  # Check whether --enable-version-specific-runtime-libs was given.
2590 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2591   enableval=$enable_version_specific_runtime_libs;
2592       case "$enableval" in
2593        yes|no) ;;
2594        *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2595                           esac
2596
2597 else
2598   enable_version_specific_runtime_libs=no
2599 fi
2600
2601
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2603 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2604
2605 # We would like our source tree to be readonly. However when releases or
2606 # pre-releases are generated, the flex/bison generated files as well as the
2607 # various formats of manuals need to be included along with the rest of the
2608 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
2609 # just that.
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2611 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2612  # Check whether --enable-generated-files-in-srcdir was given.
2613 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2614   enableval=$enable_generated_files_in_srcdir;
2615       case "$enableval" in
2616        yes|no) ;;
2617        *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2618                           esac
2619
2620 else
2621   enable_generated_files_in_srcdir=no
2622 fi
2623
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2626 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2627  if test "$enable_generated_files_in_srcdir" = yes; then
2628   GENINSRC_TRUE=
2629   GENINSRC_FALSE='#'
2630 else
2631   GENINSRC_TRUE='#'
2632   GENINSRC_FALSE=
2633 fi
2634
2635
2636
2637 # -------
2638 # -------
2639
2640 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2641 #
2642 # You will slowly go insane if you do not grok the following fact:  when
2643 # building this library, the top-level /target/ becomes the library's /host/.
2644 #
2645 # configure then causes --target to default to --host, exactly like any
2646 # other package using autoconf.  Therefore, 'target' and 'host' will
2647 # always be the same.  This makes sense both for native and cross compilers
2648 # just think about it for a little while.  :-)
2649 #
2650 # Also, if this library is being configured as part of a cross compiler, the
2651 # top-level configure script will pass the "real" host as $with_cross_host.
2652 #
2653 # Do not delete or change the following two lines.  For why, see
2654 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2655 ac_aux_dir=
2656 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2657   for ac_t in install-sh install.sh shtool; do
2658     if test -f "$ac_dir/$ac_t"; then
2659       ac_aux_dir=$ac_dir
2660       ac_install_sh="$ac_aux_dir/$ac_t -c"
2661       break 2
2662     fi
2663   done
2664 done
2665 if test -z "$ac_aux_dir"; then
2666   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2667 fi
2668
2669 # These three variables are undocumented and unsupported,
2670 # and are intended to be withdrawn in a future Autoconf release.
2671 # They can cause serious problems if a builder's source tree is in a directory
2672 # whose full name contains unusual characters.
2673 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2674 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2675 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2676
2677
2678 # Make sure we can run config.sub.
2679 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2680   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2681
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2683 $as_echo_n "checking build system type... " >&6; }
2684 if test "${ac_cv_build+set}" = set; then :
2685   $as_echo_n "(cached) " >&6
2686 else
2687   ac_build_alias=$build_alias
2688 test "x$ac_build_alias" = x &&
2689   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2690 test "x$ac_build_alias" = x &&
2691   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2692 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2693   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2694
2695 fi
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2697 $as_echo "$ac_cv_build" >&6; }
2698 case $ac_cv_build in
2699 *-*-*) ;;
2700 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2701 esac
2702 build=$ac_cv_build
2703 ac_save_IFS=$IFS; IFS='-'
2704 set x $ac_cv_build
2705 shift
2706 build_cpu=$1
2707 build_vendor=$2
2708 shift; shift
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2711 build_os=$*
2712 IFS=$ac_save_IFS
2713 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2714
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2717 $as_echo_n "checking host system type... " >&6; }
2718 if test "${ac_cv_host+set}" = set; then :
2719   $as_echo_n "(cached) " >&6
2720 else
2721   if test "x$host_alias" = x; then
2722   ac_cv_host=$ac_cv_build
2723 else
2724   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2725     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2726 fi
2727
2728 fi
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2730 $as_echo "$ac_cv_host" >&6; }
2731 case $ac_cv_host in
2732 *-*-*) ;;
2733 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2734 esac
2735 host=$ac_cv_host
2736 ac_save_IFS=$IFS; IFS='-'
2737 set x $ac_cv_host
2738 shift
2739 host_cpu=$1
2740 host_vendor=$2
2741 shift; shift
2742 # Remember, the first character of IFS is used to create $*,
2743 # except with old shells:
2744 host_os=$*
2745 IFS=$ac_save_IFS
2746 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2747
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2750 $as_echo_n "checking target system type... " >&6; }
2751 if test "${ac_cv_target+set}" = set; then :
2752   $as_echo_n "(cached) " >&6
2753 else
2754   if test "x$target_alias" = x; then
2755   ac_cv_target=$ac_cv_host
2756 else
2757   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2758     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2759 fi
2760
2761 fi
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2763 $as_echo "$ac_cv_target" >&6; }
2764 case $ac_cv_target in
2765 *-*-*) ;;
2766 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2767 esac
2768 target=$ac_cv_target
2769 ac_save_IFS=$IFS; IFS='-'
2770 set x $ac_cv_target
2771 shift
2772 target_cpu=$1
2773 target_vendor=$2
2774 shift; shift
2775 # Remember, the first character of IFS is used to create $*,
2776 # except with old shells:
2777 target_os=$*
2778 IFS=$ac_save_IFS
2779 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2780
2781
2782 # The aliases save the names the user supplied, while $host etc.
2783 # will get canonicalized.
2784 test -n "$target_alias" &&
2785   test "$program_prefix$program_suffix$program_transform_name" = \
2786     NONENONEs,x,x, &&
2787   program_prefix=${target_alias}-
2788
2789 target_alias=${target_alias-$host_alias}
2790
2791 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2792 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2793 #  1.9.0:  minimum required version
2794 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2795 #              of other PACKAGE_* variables will, however, and there's nothing
2796 #              we can do about that; they come from AC_INIT).
2797 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2798 #            file in the top srcdir, etc, etc), so stop complaining.
2799 #  -Wall:  turns on all automake warnings...
2800 #  -Wno-portability:  ...except this one, since GNU make is required.
2801 #  -Wno-override: ... and this one, since we do want this in testsuite.
2802 am__api_version='1.11'
2803
2804 # Find a good install program.  We prefer a C program (faster),
2805 # so one script is as good as another.  But avoid the broken or
2806 # incompatible versions:
2807 # SysV /etc/install, /usr/sbin/install
2808 # SunOS /usr/etc/install
2809 # IRIX /sbin/install
2810 # AIX /bin/install
2811 # AmigaOS /C/install, which installs bootblocks on floppy discs
2812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2815 # OS/2's system install, which has a completely different semantic
2816 # ./install, which can be erroneously created by make from ./install.sh.
2817 # Reject install programs that cannot install multiple files.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2819 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2820 if test -z "$INSTALL"; then
2821 if test "${ac_cv_path_install+set}" = set; then :
2822   $as_echo_n "(cached) " >&6
2823 else
2824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829     # Account for people who put trailing slashes in PATH elements.
2830 case $as_dir/ in #((
2831   ./ | .// | /[cC]/* | \
2832   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2833   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2834   /usr/ucb/* ) ;;
2835   *)
2836     # OSF1 and SCO ODT 3.0 have their own names for install.
2837     # Don't use installbsd from OSF since it installs stuff as root
2838     # by default.
2839     for ac_prog in ginstall scoinst install; do
2840       for ac_exec_ext in '' $ac_executable_extensions; do
2841         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2842           if test $ac_prog = install &&
2843             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844             # AIX install.  It has an incompatible calling convention.
2845             :
2846           elif test $ac_prog = install &&
2847             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848             # program-specific install script used by HP pwplus--don't use.
2849             :
2850           else
2851             rm -rf conftest.one conftest.two conftest.dir
2852             echo one > conftest.one
2853             echo two > conftest.two
2854             mkdir conftest.dir
2855             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2856               test -s conftest.one && test -s conftest.two &&
2857               test -s conftest.dir/conftest.one &&
2858               test -s conftest.dir/conftest.two
2859             then
2860               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2861               break 3
2862             fi
2863           fi
2864         fi
2865       done
2866     done
2867     ;;
2868 esac
2869
2870   done
2871 IFS=$as_save_IFS
2872
2873 rm -rf conftest.one conftest.two conftest.dir
2874
2875 fi
2876   if test "${ac_cv_path_install+set}" = set; then
2877     INSTALL=$ac_cv_path_install
2878   else
2879     # As a last resort, use the slow shell script.  Don't cache a
2880     # value for INSTALL within a source directory, because that will
2881     # break other packages using the cache if that directory is
2882     # removed, or if the value is a relative name.
2883     INSTALL=$ac_install_sh
2884   fi
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2887 $as_echo "$INSTALL" >&6; }
2888
2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2890 # It thinks the first close brace ends the variable substitution.
2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2892
2893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2894
2895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2896
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2898 $as_echo_n "checking whether build environment is sane... " >&6; }
2899 # Just in case
2900 sleep 1
2901 echo timestamp > conftest.file
2902 # Reject unsafe characters in $srcdir or the absolute working directory
2903 # name.  Accept space and tab only in the latter.
2904 am_lf='
2905 '
2906 case `pwd` in
2907   *[\\\"\#\$\&\'\`$am_lf]*)
2908     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2909 esac
2910 case $srcdir in
2911   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2912     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2913 esac
2914
2915 # Do `set' in a subshell so we don't clobber the current shell's
2916 # arguments.  Must try -L first in case configure is actually a
2917 # symlink; some systems play weird games with the mod time of symlinks
2918 # (eg FreeBSD returns the mod time of the symlink's containing
2919 # directory).
2920 if (
2921    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2922    if test "$*" = "X"; then
2923       # -L didn't work.
2924       set X `ls -t "$srcdir/configure" conftest.file`
2925    fi
2926    rm -f conftest.file
2927    if test "$*" != "X $srcdir/configure conftest.file" \
2928       && test "$*" != "X conftest.file $srcdir/configure"; then
2929
2930       # If neither matched, then we have a broken ls.  This can happen
2931       # if, for instance, CONFIG_SHELL is bash and it inherits a
2932       # broken ls alias from the environment.  This has actually
2933       # happened.  Such a system could not be considered "sane".
2934       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2935 alias in your environment" "$LINENO" 5
2936    fi
2937
2938    test "$2" = conftest.file
2939    )
2940 then
2941    # Ok.
2942    :
2943 else
2944    as_fn_error "newly created file is older than distributed files!
2945 Check your system clock" "$LINENO" 5
2946 fi
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2949 test "$program_prefix" != NONE &&
2950   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2951 # Use a double $ so make ignores it.
2952 test "$program_suffix" != NONE &&
2953   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2954 # Double any \ or $.
2955 # By default was `s,x,x', remove it if useless.
2956 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2957 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2958
2959 # expand $ac_aux_dir to an absolute path
2960 am_aux_dir=`cd $ac_aux_dir && pwd`
2961
2962 if test x"${MISSING+set}" != xset; then
2963   case $am_aux_dir in
2964   *\ * | *\     *)
2965     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2966   *)
2967     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2968   esac
2969 fi
2970 # Use eval to expand $SHELL
2971 if eval "$MISSING --run true"; then
2972   am_missing_run="$MISSING --run "
2973 else
2974   am_missing_run=
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2976 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2977 fi
2978
2979 if test x"${install_sh}" != xset; then
2980   case $am_aux_dir in
2981   *\ * | *\     *)
2982     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2983   *)
2984     install_sh="\${SHELL} $am_aux_dir/install-sh"
2985   esac
2986 fi
2987
2988 # Installed binaries are usually stripped using `strip' when the user
2989 # run `make install-strip'.  However `strip' might not be the right
2990 # tool to use in cross-compilation environments, therefore Automake
2991 # will honor the `STRIP' environment variable to overrule this program.
2992 if test "$cross_compiling" != no; then
2993   if test -n "$ac_tool_prefix"; then
2994   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}strip; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if test "${ac_cv_prog_STRIP+set}" = set; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   if test -n "$STRIP"; then
3002   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009     for ac_exec_ext in '' $ac_executable_extensions; do
3010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013     break 2
3014   fi
3015 done
3016   done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 STRIP=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3024 $as_echo "$STRIP" >&6; }
3025 else
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031 fi
3032 if test -z "$ac_cv_prog_STRIP"; then
3033   ac_ct_STRIP=$STRIP
3034   # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3039   $as_echo_n "(cached) " >&6
3040 else
3041   if test -n "$ac_ct_STRIP"; then
3042   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049     for ac_exec_ext in '' $ac_executable_extensions; do
3050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051     ac_cv_prog_ac_ct_STRIP="strip"
3052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056   done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3062 if test -n "$ac_ct_STRIP"; then
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3064 $as_echo "$ac_ct_STRIP" >&6; }
3065 else
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070   if test "x$ac_ct_STRIP" = x; then
3071     STRIP=":"
3072   else
3073     case $cross_compiling:$ac_tool_warned in
3074 yes:)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3078 esac
3079     STRIP=$ac_ct_STRIP
3080   fi
3081 else
3082   STRIP="$ac_cv_prog_STRIP"
3083 fi
3084
3085 fi
3086 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3089 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091   if test "${ac_cv_path_mkdir+set}" = set; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_prog in mkdir gmkdir; do
3100          for ac_exec_ext in '' $ac_executable_extensions; do
3101            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3102            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3103              'mkdir (GNU coreutils) '* | \
3104              'mkdir (coreutils) '* | \
3105              'mkdir (fileutils) '4.1*)
3106                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3107                break 3;;
3108            esac
3109          done
3110        done
3111   done
3112 IFS=$as_save_IFS
3113
3114 fi
3115
3116   if test "${ac_cv_path_mkdir+set}" = set; then
3117     MKDIR_P="$ac_cv_path_mkdir -p"
3118   else
3119     # As a last resort, use the slow shell script.  Don't cache a
3120     # value for MKDIR_P within a source directory, because that will
3121     # break other packages using the cache if that directory is
3122     # removed, or if the value is a relative name.
3123     test -d ./--version && rmdir ./--version
3124     MKDIR_P="$ac_install_sh -d"
3125   fi
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3128 $as_echo "$MKDIR_P" >&6; }
3129
3130 mkdir_p="$MKDIR_P"
3131 case $mkdir_p in
3132   [\\/$]* | ?:[\\/]*) ;;
3133   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3134 esac
3135
3136 for ac_prog in gawk mawk nawk awk
3137 do
3138   # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_AWK+set}" = set; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test -n "$AWK"; then
3146   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_exec_ext in '' $ac_executable_extensions; do
3154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155     ac_cv_prog_AWK="$ac_prog"
3156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160   done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 AWK=$ac_cv_prog_AWK
3166 if test -n "$AWK"; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3168 $as_echo "$AWK" >&6; }
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175   test -n "$AWK" && break
3176 done
3177
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3180 set x ${MAKE-make}
3181 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3182 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   cat >conftest.make <<\_ACEOF
3186 SHELL = /bin/sh
3187 all:
3188         @echo '@@@%%%=$(MAKE)=@@@%%%'
3189 _ACEOF
3190 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3191 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3192   *@@@%%%=?*=@@@%%%*)
3193     eval ac_cv_prog_make_${ac_make}_set=yes;;
3194   *)
3195     eval ac_cv_prog_make_${ac_make}_set=no;;
3196 esac
3197 rm -f conftest.make
3198 fi
3199 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3202   SET_MAKE=
3203 else
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206   SET_MAKE="MAKE=${MAKE-make}"
3207 fi
3208
3209 rm -rf .tst 2>/dev/null
3210 mkdir .tst 2>/dev/null
3211 if test -d .tst; then
3212   am__leading_dot=.
3213 else
3214   am__leading_dot=_
3215 fi
3216 rmdir .tst 2>/dev/null
3217
3218 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3219   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3220   # is not polluted with repeated "-I."
3221   am__isrc=' -I$(srcdir)'
3222   # test to see if srcdir already configured
3223   if test -f $srcdir/config.status; then
3224     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3225   fi
3226 fi
3227
3228 # test whether we have cygpath
3229 if test -z "$CYGPATH_W"; then
3230   if (cygpath --version) >/dev/null 2>/dev/null; then
3231     CYGPATH_W='cygpath -w'
3232   else
3233     CYGPATH_W=echo
3234   fi
3235 fi
3236
3237
3238 # Define the identity of the package.
3239  PACKAGE='libitm'
3240  VERSION='1.0'
3241
3242
3243 cat >>confdefs.h <<_ACEOF
3244 #define PACKAGE "$PACKAGE"
3245 _ACEOF
3246
3247
3248 cat >>confdefs.h <<_ACEOF
3249 #define VERSION "$VERSION"
3250 _ACEOF
3251
3252 # Some tools Automake needs.
3253
3254 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3255
3256
3257 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3258
3259
3260 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3261
3262
3263 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3264
3265
3266 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3267
3268 # We need awk for the "check" target.  The system "awk" is bad on
3269 # some platforms.
3270 # Always define AMTAR for backward compatibility.
3271
3272 AMTAR=${AMTAR-"${am_missing_run}tar"}
3273
3274 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3275
3276
3277
3278
3279
3280 # Default to --enable-multilib
3281 # Check whether --enable-multilib was given.
3282 if test "${enable_multilib+set}" = set; then :
3283   enableval=$enable_multilib; case "$enableval" in
3284   yes) multilib=yes ;;
3285   no)  multilib=no ;;
3286   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3287  esac
3288 else
3289   multilib=yes
3290 fi
3291
3292
3293 # We may get other options which we leave undocumented:
3294 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3295 # See config-ml.in if you want the gory details.
3296
3297 if test "$srcdir" = "."; then
3298   if test "$with_target_subdir" != "."; then
3299     multi_basedir="$srcdir/$with_multisrctop../.."
3300   else
3301     multi_basedir="$srcdir/$with_multisrctop.."
3302   fi
3303 else
3304   multi_basedir="$srcdir/.."
3305 fi
3306
3307
3308 # Even if the default multilib is not a cross compilation,
3309 # it may be that some of the other multilibs are.
3310 if test $cross_compiling = no && test $multilib = yes \
3311    && test "x${with_multisubdir}" != x ; then
3312    cross_compiling=maybe
3313 fi
3314
3315 ac_config_commands="$ac_config_commands default-1"
3316
3317
3318 # Calculate toolexeclibdir
3319 # Also toolexecdir, though it's only used in toolexeclibdir
3320 case ${enable_version_specific_runtime_libs} in
3321   yes)
3322     # Need the gcc compiler version to know where to install libraries
3323     # and header files if --enable-version-specific-runtime-libs option
3324     # is selected.
3325     toolexecdir='$(libdir)/gcc/$(target_alias)'
3326     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3327     ;;
3328   no)
3329     if test -n "$with_cross_host" &&
3330        test x"$with_cross_host" != x"no"; then
3331       # Install a library built with a cross compiler in tooldir, not libdir.
3332       toolexecdir='$(exec_prefix)/$(target_alias)'
3333       toolexeclibdir='$(toolexecdir)/lib'
3334     else
3335       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3336       toolexeclibdir='$(libdir)'
3337     fi
3338     multi_os_directory=`$CC -print-multi-os-directory`
3339     case $multi_os_directory in
3340       .) ;; # Avoid trailing /.
3341       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3342     esac
3343     ;;
3344 esac
3345
3346
3347
3348 # Check the compiler.
3349 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3350 # We must force CC to /not/ be precious variables; otherwise
3351 # the wrong, non-multilib-adjusted value will be used in multilibs.
3352 # As a side effect, we have to subst CFLAGS ourselves.
3353
3354
3355
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 if test -n "$ac_tool_prefix"; then
3362   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if test "${ac_cv_prog_CC+set}" = set; then :
3367   $as_echo_n "(cached) " >&6
3368 else
3369   if test -n "$CC"; then
3370   ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377     for ac_exec_ext in '' $ac_executable_extensions; do
3378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381     break 2
3382   fi
3383 done
3384   done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399 fi
3400 if test -z "$ac_cv_prog_CC"; then
3401   ac_ct_CC=$CC
3402   # Extract the first word of "gcc", so it can be a program name with args.
3403 set dummy gcc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test -n "$ac_ct_CC"; then
3410   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415   IFS=$as_save_IFS
3416   test -z "$as_dir" && as_dir=.
3417     for ac_exec_ext in '' $ac_executable_extensions; do
3418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3419     ac_cv_prog_ac_ct_CC="gcc"
3420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421     break 2
3422   fi
3423 done
3424   done
3425 IFS=$as_save_IFS
3426
3427 fi
3428 fi
3429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430 if test -n "$ac_ct_CC"; then
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432 $as_echo "$ac_ct_CC" >&6; }
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438   if test "x$ac_ct_CC" = x; then
3439     CC=""
3440   else
3441     case $cross_compiling:$ac_tool_warned in
3442 yes:)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3445 ac_tool_warned=yes ;;
3446 esac
3447     CC=$ac_ct_CC
3448   fi
3449 else
3450   CC="$ac_cv_prog_CC"
3451 fi
3452
3453 if test -z "$CC"; then
3454           if test -n "$ac_tool_prefix"; then
3455     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3456 set dummy ${ac_tool_prefix}cc; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_CC+set}" = set; then :
3460   $as_echo_n "(cached) " >&6
3461 else
3462   if test -n "$CC"; then
3463   ac_cv_prog_CC="$CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470     for ac_exec_ext in '' $ac_executable_extensions; do
3471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472     ac_cv_prog_CC="${ac_tool_prefix}cc"
3473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477   done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 CC=$ac_cv_prog_CC
3483 if test -n "$CC"; then
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3486 else
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492   fi
3493 fi
3494 if test -z "$CC"; then
3495   # Extract the first word of "cc", so it can be a program name with args.
3496 set dummy cc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$CC"; then
3503   ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505   ac_prog_rejected=no
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511     for ac_exec_ext in '' $ac_executable_extensions; do
3512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3514        ac_prog_rejected=yes
3515        continue
3516      fi
3517     ac_cv_prog_CC="cc"
3518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522   done
3523 IFS=$as_save_IFS
3524
3525 if test $ac_prog_rejected = yes; then
3526   # We found a bogon in the path, so make sure we never use it.
3527   set dummy $ac_cv_prog_CC
3528   shift
3529   if test $# != 0; then
3530     # We chose a different compiler from the bogus one.
3531     # However, it has the same basename, so the bogon will be chosen
3532     # first if we set CC to just the basename; use the full file name.
3533     shift
3534     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3535   fi
3536 fi
3537 fi
3538 fi
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547
3548
3549 fi
3550 if test -z "$CC"; then
3551   if test -n "$ac_tool_prefix"; then
3552   for ac_prog in cl.exe
3553   do
3554     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_CC+set}" = set; then :
3559   $as_echo_n "(cached) " >&6
3560 else
3561   if test -n "$CC"; then
3562   ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569     for ac_exec_ext in '' $ac_executable_extensions; do
3570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573     break 2
3574   fi
3575 done
3576   done
3577 IFS=$as_save_IFS
3578
3579 fi
3580 fi
3581 CC=$ac_cv_prog_CC
3582 if test -n "$CC"; then
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584 $as_echo "$CC" >&6; }
3585 else
3586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 fi
3589
3590
3591     test -n "$CC" && break
3592   done
3593 fi
3594 if test -z "$CC"; then
3595   ac_ct_CC=$CC
3596   for ac_prog in cl.exe
3597 do
3598   # Extract the first word of "$ac_prog", so it can be a program name with args.
3599 set dummy $ac_prog; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3603   $as_echo_n "(cached) " >&6
3604 else
3605   if test -n "$ac_ct_CC"; then
3606   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611   IFS=$as_save_IFS
3612   test -z "$as_dir" && as_dir=.
3613     for ac_exec_ext in '' $ac_executable_extensions; do
3614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615     ac_cv_prog_ac_ct_CC="$ac_prog"
3616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617     break 2
3618   fi
3619 done
3620   done
3621 IFS=$as_save_IFS
3622
3623 fi
3624 fi
3625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3626 if test -n "$ac_ct_CC"; then
3627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3628 $as_echo "$ac_ct_CC" >&6; }
3629 else
3630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634
3635   test -n "$ac_ct_CC" && break
3636 done
3637
3638   if test "x$ac_ct_CC" = x; then
3639     CC=""
3640   else
3641     case $cross_compiling:$ac_tool_warned in
3642 yes:)
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645 ac_tool_warned=yes ;;
3646 esac
3647     CC=$ac_ct_CC
3648   fi
3649 fi
3650
3651 fi
3652
3653
3654 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error "no acceptable C compiler found in \$PATH
3657 See \`config.log' for more details." "$LINENO" 5; }
3658
3659 # Provide some information about the compiler.
3660 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3661 set X $ac_compile
3662 ac_compiler=$2
3663 for ac_option in --version -v -V -qversion; do
3664   { { ac_try="$ac_compiler $ac_option >&5"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3672   ac_status=$?
3673   if test -s conftest.err; then
3674     sed '10a\
3675 ... rest of stderr output deleted ...
3676          10q' conftest.err >conftest.er1
3677     cat conftest.er1 >&5
3678     rm -f conftest.er1 conftest.err
3679   fi
3680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681   test $ac_status = 0; }
3682 done
3683
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h.  */
3686
3687 int
3688 main ()
3689 {
3690
3691   ;
3692   return 0;
3693 }
3694 _ACEOF
3695 ac_clean_files_save=$ac_clean_files
3696 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3697 # Try to create an executable without -o first, disregard a.out.
3698 # It will help us diagnose broken compilers, and finding out an intuition
3699 # of exeext.
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3701 $as_echo_n "checking for C compiler default output file name... " >&6; }
3702 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3703
3704 # The possible output files:
3705 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3706
3707 ac_rmfiles=
3708 for ac_file in $ac_files
3709 do
3710   case $ac_file in
3711     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3712     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3713   esac
3714 done
3715 rm -f $ac_rmfiles
3716
3717 if { { ac_try="$ac_link_default"
3718 case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724   (eval "$ac_link_default") 2>&5
3725   ac_status=$?
3726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727   test $ac_status = 0; }; then :
3728   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3729 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3730 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3731 # so that the user can short-circuit this test for compilers unknown to
3732 # Autoconf.
3733 for ac_file in $ac_files ''
3734 do
3735   test -f "$ac_file" || continue
3736   case $ac_file in
3737     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3738         ;;
3739     [ab].out )
3740         # We found the default executable, but exeext='' is most
3741         # certainly right.
3742         break;;
3743     *.* )
3744         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3745         then :; else
3746            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3747         fi
3748         # We set ac_cv_exeext here because the later test for it is not
3749         # safe: cross compilers may not add the suffix if given an `-o'
3750         # argument, so we may need to know it at that point already.
3751         # Even if this section looks crufty: it has the advantage of
3752         # actually working.
3753         break;;
3754     * )
3755         break;;
3756   esac
3757 done
3758 test "$ac_cv_exeext" = no && ac_cv_exeext=
3759
3760 else
3761   ac_file=''
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3764 $as_echo "$ac_file" >&6; }
3765 if test -z "$ac_file"; then :
3766   $as_echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771 { as_fn_set_status 77
3772 as_fn_error "C compiler cannot create executables
3773 See \`config.log' for more details." "$LINENO" 5; }; }
3774 fi
3775 ac_exeext=$ac_cv_exeext
3776
3777 # Check that the compiler produces executables we can run.  If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3780 $as_echo_n "checking whether the C compiler works... " >&6; }
3781 # If not cross compiling, check that we can run a simple program.
3782 if test "$cross_compiling" != yes; then
3783   if { ac_try='./$ac_file'
3784   { { case "(($ac_try" in
3785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786   *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790   (eval "$ac_try") 2>&5
3791   ac_status=$?
3792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793   test $ac_status = 0; }; }; then
3794     cross_compiling=no
3795   else
3796     if test "$cross_compiling" = maybe; then
3797         cross_compiling=yes
3798     else
3799         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error "cannot run C compiled programs.
3802 If you meant to cross compile, use \`--host'.
3803 See \`config.log' for more details." "$LINENO" 5; }
3804     fi
3805   fi
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3808 $as_echo "yes" >&6; }
3809
3810 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3811 ac_clean_files=$ac_clean_files_save
3812 # Check that the compiler produces executables we can run.  If not, either
3813 # the compiler is broken, or we cross compile.
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3815 $as_echo_n "checking whether we are cross compiling... " >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3817 $as_echo "$cross_compiling" >&6; }
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3820 $as_echo_n "checking for suffix of executables... " >&6; }
3821 if { { ac_try="$ac_link"
3822 case "(($ac_try" in
3823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824   *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828   (eval "$ac_link") 2>&5
3829   ac_status=$?
3830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831   test $ac_status = 0; }; then :
3832   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3833 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3834 # work properly (i.e., refer to `conftest.exe'), while it won't with
3835 # `rm'.
3836 for ac_file in conftest.exe conftest conftest.*; do
3837   test -f "$ac_file" || continue
3838   case $ac_file in
3839     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3840     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3841           break;;
3842     * ) break;;
3843   esac
3844 done
3845 else
3846   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error "cannot compute suffix of executables: cannot compile and link
3849 See \`config.log' for more details." "$LINENO" 5; }
3850 fi
3851 rm -f conftest$ac_cv_exeext
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3853 $as_echo "$ac_cv_exeext" >&6; }
3854
3855 rm -f conftest.$ac_ext
3856 EXEEXT=$ac_cv_exeext
3857 ac_exeext=$EXEEXT
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3859 $as_echo_n "checking for suffix of object files... " >&6; }
3860 if test "${ac_cv_objext+set}" = set; then :
3861   $as_echo_n "(cached) " >&6
3862 else
3863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h.  */
3865
3866 int
3867 main ()
3868 {
3869
3870   ;
3871   return 0;
3872 }
3873 _ACEOF
3874 rm -f conftest.o conftest.obj
3875 if { { ac_try="$ac_compile"
3876 case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882   (eval "$ac_compile") 2>&5
3883   ac_status=$?
3884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885   test $ac_status = 0; }; then :
3886   for ac_file in conftest.o conftest.obj conftest.*; do
3887   test -f "$ac_file" || continue;
3888   case $ac_file in
3889     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3890     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3891        break;;
3892   esac
3893 done
3894 else
3895   $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error "cannot compute suffix of object files: cannot compile
3901 See \`config.log' for more details." "$LINENO" 5; }
3902 fi
3903 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3906 $as_echo "$ac_cv_objext" >&6; }
3907 OBJEXT=$ac_cv_objext
3908 ac_objext=$OBJEXT
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3910 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3911 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3912   $as_echo_n "(cached) " >&6
3913 else
3914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h.  */
3916
3917 int
3918 main ()
3919 {
3920 #ifndef __GNUC__
3921        choke me
3922 #endif
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929   ac_compiler_gnu=yes
3930 else
3931   ac_compiler_gnu=no
3932 fi
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3935
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3938 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3939 if test $ac_compiler_gnu = yes; then
3940   GCC=yes
3941 else
3942   GCC=
3943 fi
3944 ac_test_CFLAGS=${CFLAGS+set}
3945 ac_save_CFLAGS=$CFLAGS
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3947 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3948 if test "${ac_cv_prog_cc_g+set}" = set; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   ac_save_c_werror_flag=$ac_c_werror_flag
3952    ac_c_werror_flag=yes
3953    ac_cv_prog_cc_g=no
3954    CFLAGS="-g"
3955    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967   ac_cv_prog_cc_g=yes
3968 else
3969   CFLAGS=""
3970       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h.  */
3972
3973 int
3974 main ()
3975 {
3976
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982
3983 else
3984   ac_c_werror_flag=$ac_save_c_werror_flag
3985          CFLAGS="-g"
3986          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988
3989 int
3990 main ()
3991 {
3992
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998   ac_cv_prog_cc_g=yes
3999 fi
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 fi
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005    ac_c_werror_flag=$ac_save_c_werror_flag
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4008 $as_echo "$ac_cv_prog_cc_g" >&6; }
4009 if test "$ac_test_CFLAGS" = set; then
4010   CFLAGS=$ac_save_CFLAGS
4011 elif test $ac_cv_prog_cc_g = yes; then
4012   if test "$GCC" = yes; then
4013     CFLAGS="-g -O2"
4014   else
4015     CFLAGS="-g"
4016   fi
4017 else
4018   if test "$GCC" = yes; then
4019     CFLAGS="-O2"
4020   else
4021     CFLAGS=
4022   fi
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4025 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4026 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4027   $as_echo_n "(cached) " >&6
4028 else
4029   ac_cv_prog_cc_c89=no
4030 ac_save_CC=$CC
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h.  */
4033 #include <stdarg.h>
4034 #include <stdio.h>
4035 #include <sys/types.h>
4036 #include <sys/stat.h>
4037 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4038 struct buf { int x; };
4039 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4040 static char *e (p, i)
4041      char **p;
4042      int i;
4043 {
4044   return p[i];
4045 }
4046 static char *f (char * (*g) (char **, int), char **p, ...)
4047 {
4048   char *s;
4049   va_list v;
4050   va_start (v,p);
4051   s = g (p, va_arg (v,int));
4052   va_end (v);
4053   return s;
4054 }
4055
4056 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4057    function prototypes and stuff, but not '\xHH' hex character constants.
4058    These don't provoke an error unfortunately, instead are silently treated
4059    as 'x'.  The following induces an error, until -std is added to get
4060    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4061    array size at least.  It's necessary to write '\x00'==0 to get something
4062    that's true only with -std.  */
4063 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4064
4065 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4066    inside strings and character constants.  */
4067 #define FOO(x) 'x'
4068 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4069
4070 int test (int i, double x);
4071 struct s1 {int (*f) (int a);};
4072 struct s2 {int (*f) (double a);};
4073 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4074 int argc;
4075 char **argv;
4076 int
4077 main ()
4078 {
4079 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4085         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4086 do
4087   CC="$ac_save_CC $ac_arg"
4088   if ac_fn_c_try_compile "$LINENO"; then :
4089   ac_cv_prog_cc_c89=$ac_arg
4090 fi
4091 rm -f core conftest.err conftest.$ac_objext
4092   test "x$ac_cv_prog_cc_c89" != "xno" && break
4093 done
4094 rm -f conftest.$ac_ext
4095 CC=$ac_save_CC
4096
4097 fi
4098 # AC_CACHE_VAL
4099 case "x$ac_cv_prog_cc_c89" in
4100   x)
4101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4102 $as_echo "none needed" >&6; } ;;
4103   xno)
4104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4105 $as_echo "unsupported" >&6; } ;;
4106   *)
4107     CC="$CC $ac_cv_prog_cc_c89"
4108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4109 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4110 esac
4111 if test "x$ac_cv_prog_cc_c89" != xno; then :
4112
4113 fi
4114
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 DEPDIR="${am__leading_dot}deps"
4121
4122 ac_config_commands="$ac_config_commands depfiles"
4123
4124
4125 am_make=${MAKE-make}
4126 cat > confinc << 'END'
4127 am__doit:
4128         @echo this is the am__doit target
4129 .PHONY: am__doit
4130 END
4131 # If we don't find an include directive, just comment out the code.
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4133 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4134 am__include="#"
4135 am__quote=
4136 _am_result=none
4137 # First try GNU make style include.
4138 echo "include confinc" > confmf
4139 # Ignore all kinds of additional output from `make'.
4140 case `$am_make -s -f confmf 2> /dev/null` in #(
4141 *the\ am__doit\ target*)
4142   am__include=include
4143   am__quote=
4144   _am_result=GNU
4145   ;;
4146 esac
4147 # Now try BSD make style include.
4148 if test "$am__include" = "#"; then
4149    echo '.include "confinc"' > confmf
4150    case `$am_make -s -f confmf 2> /dev/null` in #(
4151    *the\ am__doit\ target*)
4152      am__include=.include
4153      am__quote="\""
4154      _am_result=BSD
4155      ;;
4156    esac
4157 fi
4158
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4161 $as_echo "$_am_result" >&6; }
4162 rm -f confinc confmf
4163
4164 # Check whether --enable-dependency-tracking was given.
4165 if test "${enable_dependency_tracking+set}" = set; then :
4166   enableval=$enable_dependency_tracking;
4167 fi
4168
4169 if test "x$enable_dependency_tracking" != xno; then
4170   am_depcomp="$ac_aux_dir/depcomp"
4171   AMDEPBACKSLASH='\'
4172 fi
4173  if test "x$enable_dependency_tracking" != xno; then
4174   AMDEP_TRUE=
4175   AMDEP_FALSE='#'
4176 else
4177   AMDEP_TRUE='#'
4178   AMDEP_FALSE=
4179 fi
4180
4181
4182
4183 depcc="$CC"   am_compiler_list=
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4186 $as_echo_n "checking dependency style of $depcc... " >&6; }
4187 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4191   # We make a subdir and do the tests there.  Otherwise we can end up
4192   # making bogus files that we don't know about and never remove.  For
4193   # instance it was reported that on HP-UX the gcc test will end up
4194   # making a dummy file named `D' -- because `-MD' means `put the output
4195   # in D'.
4196   mkdir conftest.dir
4197   # Copy depcomp to subdir because otherwise we won't find it if we're
4198   # using a relative directory.
4199   cp "$am_depcomp" conftest.dir
4200   cd conftest.dir
4201   # We will build objects and dependencies in a subdirectory because
4202   # it helps to detect inapplicable dependency modes.  For instance
4203   # both Tru64's cc and ICC support -MD to output dependencies as a
4204   # side effect of compilation, but ICC will put the dependencies in
4205   # the current directory while Tru64 will put them in the object
4206   # directory.
4207   mkdir sub
4208
4209   am_cv_CC_dependencies_compiler_type=none
4210   if test "$am_compiler_list" = ""; then
4211      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4212   fi
4213   am__universal=false
4214   case " $depcc " in #(
4215      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4216      esac
4217
4218   for depmode in $am_compiler_list; do
4219     # Setup a source with many dependencies, because some compilers
4220     # like to wrap large dependency lists on column 80 (with \), and
4221     # we should not choose a depcomp mode which is confused by this.
4222     #
4223     # We need to recreate these files for each test, as the compiler may
4224     # overwrite some of them when testing with obscure command lines.
4225     # This happens at least with the AIX C compiler.
4226     : > sub/conftest.c
4227     for i in 1 2 3 4 5 6; do
4228       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4229       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4230       # Solaris 8's {/usr,}/bin/sh.
4231       touch sub/conftst$i.h
4232     done
4233     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4234
4235     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4236     # mode.  It turns out that the SunPro C++ compiler does not properly
4237     # handle `-M -o', and we need to detect this.  Also, some Intel
4238     # versions had trouble with output in subdirs
4239     am__obj=sub/conftest.${OBJEXT-o}
4240     am__minus_obj="-o $am__obj"
4241     case $depmode in
4242     gcc)
4243       # This depmode causes a compiler race in universal mode.
4244       test "$am__universal" = false || continue
4245       ;;
4246     nosideeffect)
4247       # after this tag, mechanisms are not by side-effect, so they'll
4248       # only be used when explicitly requested
4249       if test "x$enable_dependency_tracking" = xyes; then
4250         continue
4251       else
4252         break
4253       fi
4254       ;;
4255     msvisualcpp | msvcmsys)
4256       # This compiler won't grok `-c -o', but also, the minuso test has
4257       # not run yet.  These depmodes are late enough in the game, and
4258       # so weak that their functioning should not be impacted.
4259       am__obj=conftest.${OBJEXT-o}
4260       am__minus_obj=
4261       ;;
4262     none) break ;;
4263     esac
4264     if depmode=$depmode \
4265        source=sub/conftest.c object=$am__obj \
4266        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4267        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4268          >/dev/null 2>conftest.err &&
4269        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4270        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4271        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4272        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4273       # icc doesn't choke on unknown options, it will just issue warnings
4274       # or remarks (even with -Werror).  So we grep stderr for any message
4275       # that says an option was ignored or not supported.
4276       # When given -MP, icc 7.0 and 7.1 complain thusly:
4277       #   icc: Command line warning: ignoring option '-M'; no argument required
4278       # The diagnosis changed in icc 8.0:
4279       #   icc: Command line remark: option '-MP' not supported
4280       if (grep 'ignoring option' conftest.err ||
4281           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4282         am_cv_CC_dependencies_compiler_type=$depmode
4283         break
4284       fi
4285     fi
4286   done
4287
4288   cd ..
4289   rm -rf conftest.dir
4290 else
4291   am_cv_CC_dependencies_compiler_type=none
4292 fi
4293
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4296 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4297 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4298
4299  if
4300   test "x$enable_dependency_tracking" != xno \
4301   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4302   am__fastdepCC_TRUE=
4303   am__fastdepCC_FALSE='#'
4304 else
4305   am__fastdepCC_TRUE='#'
4306   am__fastdepCC_FALSE=
4307 fi
4308
4309
4310 ac_ext=cpp
4311 ac_cpp='$CXXCPP $CPPFLAGS'
4312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4315 if test -z "$CXX"; then
4316   if test -n "$CCC"; then
4317     CXX=$CCC
4318   else
4319     if test -n "$ac_tool_prefix"; then
4320   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4321   do
4322     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if test "${ac_cv_prog_CXX+set}" = set; then :
4327   $as_echo_n "(cached) " >&6
4328 else
4329   if test -n "$CXX"; then
4330   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4334 do
4335   IFS=$as_save_IFS
4336   test -z "$as_dir" && as_dir=.
4337     for ac_exec_ext in '' $ac_executable_extensions; do
4338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341     break 2
4342   fi
4343 done
4344   done
4345 IFS=$as_save_IFS
4346
4347 fi
4348 fi
4349 CXX=$ac_cv_prog_CXX
4350 if test -n "$CXX"; then
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4352 $as_echo "$CXX" >&6; }
4353 else
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4356 fi
4357
4358
4359     test -n "$CXX" && break
4360   done
4361 fi
4362 if test -z "$CXX"; then
4363   ac_ct_CXX=$CXX
4364   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4365 do
4366   # Extract the first word of "$ac_prog", so it can be a program name with args.
4367 set dummy $ac_prog; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373   if test -n "$ac_ct_CXX"; then
4374   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379   IFS=$as_save_IFS
4380   test -z "$as_dir" && as_dir=.
4381     for ac_exec_ext in '' $ac_executable_extensions; do
4382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383     ac_cv_prog_ac_ct_CXX="$ac_prog"
4384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385     break 2
4386   fi
4387 done
4388   done
4389 IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4394 if test -n "$ac_ct_CXX"; then
4395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4396 $as_echo "$ac_ct_CXX" >&6; }
4397 else
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402
4403   test -n "$ac_ct_CXX" && break
4404 done
4405
4406   if test "x$ac_ct_CXX" = x; then
4407     CXX="g++"
4408   else
4409     case $cross_compiling:$ac_tool_warned in
4410 yes:)
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4413 ac_tool_warned=yes ;;
4414 esac
4415     CXX=$ac_ct_CXX
4416   fi
4417 fi
4418
4419   fi
4420 fi
4421 # Provide some information about the compiler.
4422 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4423 set X $ac_compile
4424 ac_compiler=$2
4425 for ac_option in --version -v -V -qversion; do
4426   { { ac_try="$ac_compiler $ac_option >&5"
4427 case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4434   ac_status=$?
4435   if test -s conftest.err; then
4436     sed '10a\
4437 ... rest of stderr output deleted ...
4438          10q' conftest.err >conftest.er1
4439     cat conftest.er1 >&5
4440     rm -f conftest.er1 conftest.err
4441   fi
4442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443   test $ac_status = 0; }
4444 done
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4447 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4448 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4449   $as_echo_n "(cached) " >&6
4450 else
4451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453
4454 int
4455 main ()
4456 {
4457 #ifndef __GNUC__
4458        choke me
4459 #endif
4460
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 if ac_fn_cxx_try_compile "$LINENO"; then :
4466   ac_compiler_gnu=yes
4467 else
4468   ac_compiler_gnu=no
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4472
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4475 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4476 if test $ac_compiler_gnu = yes; then
4477   GXX=yes
4478 else
4479   GXX=
4480 fi
4481 ac_test_CXXFLAGS=${CXXFLAGS+set}
4482 ac_save_CXXFLAGS=$CXXFLAGS
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4484 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4485 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4489    ac_cxx_werror_flag=yes
4490    ac_cv_prog_cxx_g=no
4491    CXXFLAGS="-g"
4492    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h.  */
4494
4495 int
4496 main ()
4497 {
4498
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 if ac_fn_cxx_try_compile "$LINENO"; then :
4504   ac_cv_prog_cxx_g=yes
4505 else
4506   CXXFLAGS=""
4507       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h.  */
4509
4510 int
4511 main ()
4512 {
4513
4514   ;
4515   return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_cxx_try_compile "$LINENO"; then :
4519
4520 else
4521   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4522          CXXFLAGS="-g"
4523          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h.  */
4525
4526 int
4527 main ()
4528 {
4529
4530   ;
4531   return 0;
4532 }
4533 _ACEOF
4534 if ac_fn_cxx_try_compile "$LINENO"; then :
4535   ac_cv_prog_cxx_g=yes
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 fi
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4545 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4546 if test "$ac_test_CXXFLAGS" = set; then
4547   CXXFLAGS=$ac_save_CXXFLAGS
4548 elif test $ac_cv_prog_cxx_g = yes; then
4549   if test "$GXX" = yes; then
4550     CXXFLAGS="-g -O2"
4551   else
4552     CXXFLAGS="-g"
4553   fi
4554 else
4555   if test "$GXX" = yes; then
4556     CXXFLAGS="-O2"
4557   else
4558     CXXFLAGS=
4559   fi
4560 fi
4561 ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567 depcc="$CXX"  am_compiler_list=
4568
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4570 $as_echo_n "checking dependency style of $depcc... " >&6; }
4571 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4572   $as_echo_n "(cached) " >&6
4573 else
4574   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4575   # We make a subdir and do the tests there.  Otherwise we can end up
4576   # making bogus files that we don't know about and never remove.  For
4577   # instance it was reported that on HP-UX the gcc test will end up
4578   # making a dummy file named `D' -- because `-MD' means `put the output
4579   # in D'.
4580   mkdir conftest.dir
4581   # Copy depcomp to subdir because otherwise we won't find it if we're
4582   # using a relative directory.
4583   cp "$am_depcomp" conftest.dir
4584   cd conftest.dir
4585   # We will build objects and dependencies in a subdirectory because
4586   # it helps to detect inapplicable dependency modes.  For instance
4587   # both Tru64's cc and ICC support -MD to output dependencies as a
4588   # side effect of compilation, but ICC will put the dependencies in
4589   # the current directory while Tru64 will put them in the object
4590   # directory.
4591   mkdir sub
4592
4593   am_cv_CXX_dependencies_compiler_type=none
4594   if test "$am_compiler_list" = ""; then
4595      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4596   fi
4597   am__universal=false
4598   case " $depcc " in #(
4599      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4600      esac
4601
4602   for depmode in $am_compiler_list; do
4603     # Setup a source with many dependencies, because some compilers
4604     # like to wrap large dependency lists on column 80 (with \), and
4605     # we should not choose a depcomp mode which is confused by this.
4606     #
4607     # We need to recreate these files for each test, as the compiler may
4608     # overwrite some of them when testing with obscure command lines.
4609     # This happens at least with the AIX C compiler.
4610     : > sub/conftest.c
4611     for i in 1 2 3 4 5 6; do
4612       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4613       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4614       # Solaris 8's {/usr,}/bin/sh.
4615       touch sub/conftst$i.h
4616     done
4617     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4618
4619     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4620     # mode.  It turns out that the SunPro C++ compiler does not properly
4621     # handle `-M -o', and we need to detect this.  Also, some Intel
4622     # versions had trouble with output in subdirs
4623     am__obj=sub/conftest.${OBJEXT-o}
4624     am__minus_obj="-o $am__obj"
4625     case $depmode in
4626     gcc)
4627       # This depmode causes a compiler race in universal mode.
4628       test "$am__universal" = false || continue
4629       ;;
4630     nosideeffect)
4631       # after this tag, mechanisms are not by side-effect, so they'll
4632       # only be used when explicitly requested
4633       if test "x$enable_dependency_tracking" = xyes; then
4634         continue
4635       else
4636         break
4637       fi
4638       ;;
4639     msvisualcpp | msvcmsys)
4640       # This compiler won't grok `-c -o', but also, the minuso test has
4641       # not run yet.  These depmodes are late enough in the game, and
4642       # so weak that their functioning should not be impacted.
4643       am__obj=conftest.${OBJEXT-o}
4644       am__minus_obj=
4645       ;;
4646     none) break ;;
4647     esac
4648     if depmode=$depmode \
4649        source=sub/conftest.c object=$am__obj \
4650        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4651        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4652          >/dev/null 2>conftest.err &&
4653        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4654        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4655        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4656        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4657       # icc doesn't choke on unknown options, it will just issue warnings
4658       # or remarks (even with -Werror).  So we grep stderr for any message
4659       # that says an option was ignored or not supported.
4660       # When given -MP, icc 7.0 and 7.1 complain thusly:
4661       #   icc: Command line warning: ignoring option '-M'; no argument required
4662       # The diagnosis changed in icc 8.0:
4663       #   icc: Command line remark: option '-MP' not supported
4664       if (grep 'ignoring option' conftest.err ||
4665           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4666         am_cv_CXX_dependencies_compiler_type=$depmode
4667         break
4668       fi
4669     fi
4670   done
4671
4672   cd ..
4673   rm -rf conftest.dir
4674 else
4675   am_cv_CXX_dependencies_compiler_type=none
4676 fi
4677
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4680 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4681 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4682
4683  if
4684   test "x$enable_dependency_tracking" != xno \
4685   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4686   am__fastdepCXX_TRUE=
4687   am__fastdepCXX_FALSE='#'
4688 else
4689   am__fastdepCXX_TRUE='#'
4690   am__fastdepCXX_FALSE=
4691 fi
4692
4693
4694 # By default we simply use the C compiler to build assembly code.
4695
4696 test "${CCAS+set}" = set || CCAS=$CC
4697 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4698
4699
4700
4701 depcc="$CCAS"   am_compiler_list=
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4704 $as_echo_n "checking dependency style of $depcc... " >&6; }
4705 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4709   # We make a subdir and do the tests there.  Otherwise we can end up
4710   # making bogus files that we don't know about and never remove.  For
4711   # instance it was reported that on HP-UX the gcc test will end up
4712   # making a dummy file named `D' -- because `-MD' means `put the output
4713   # in D'.
4714   mkdir conftest.dir
4715   # Copy depcomp to subdir because otherwise we won't find it if we're
4716   # using a relative directory.
4717   cp "$am_depcomp" conftest.dir
4718   cd conftest.dir
4719   # We will build objects and dependencies in a subdirectory because
4720   # it helps to detect inapplicable dependency modes.  For instance
4721   # both Tru64's cc and ICC support -MD to output dependencies as a
4722   # side effect of compilation, but ICC will put the dependencies in
4723   # the current directory while Tru64 will put them in the object
4724   # directory.
4725   mkdir sub
4726
4727   am_cv_CCAS_dependencies_compiler_type=none
4728   if test "$am_compiler_list" = ""; then
4729      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4730   fi
4731   am__universal=false
4732
4733
4734   for depmode in $am_compiler_list; do
4735     # Setup a source with many dependencies, because some compilers
4736     # like to wrap large dependency lists on column 80 (with \), and
4737     # we should not choose a depcomp mode which is confused by this.
4738     #
4739     # We need to recreate these files for each test, as the compiler may
4740     # overwrite some of them when testing with obscure command lines.
4741     # This happens at least with the AIX C compiler.
4742     : > sub/conftest.c
4743     for i in 1 2 3 4 5 6; do
4744       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4745       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4746       # Solaris 8's {/usr,}/bin/sh.
4747       touch sub/conftst$i.h
4748     done
4749     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4750
4751     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4752     # mode.  It turns out that the SunPro C++ compiler does not properly
4753     # handle `-M -o', and we need to detect this.  Also, some Intel
4754     # versions had trouble with output in subdirs
4755     am__obj=sub/conftest.${OBJEXT-o}
4756     am__minus_obj="-o $am__obj"
4757     case $depmode in
4758     gcc)
4759       # This depmode causes a compiler race in universal mode.
4760       test "$am__universal" = false || continue
4761       ;;
4762     nosideeffect)
4763       # after this tag, mechanisms are not by side-effect, so they'll
4764       # only be used when explicitly requested
4765       if test "x$enable_dependency_tracking" = xyes; then
4766         continue
4767       else
4768         break
4769       fi
4770       ;;
4771     msvisualcpp | msvcmsys)
4772       # This compiler won't grok `-c -o', but also, the minuso test has
4773       # not run yet.  These depmodes are late enough in the game, and
4774       # so weak that their functioning should not be impacted.
4775       am__obj=conftest.${OBJEXT-o}
4776       am__minus_obj=
4777       ;;
4778     none) break ;;
4779     esac
4780     if depmode=$depmode \
4781        source=sub/conftest.c object=$am__obj \
4782        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4783        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4784          >/dev/null 2>conftest.err &&
4785        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4786        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4787        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4788        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4789       # icc doesn't choke on unknown options, it will just issue warnings
4790       # or remarks (even with -Werror).  So we grep stderr for any message
4791       # that says an option was ignored or not supported.
4792       # When given -MP, icc 7.0 and 7.1 complain thusly:
4793       #   icc: Command line warning: ignoring option '-M'; no argument required
4794       # The diagnosis changed in icc 8.0:
4795       #   icc: Command line remark: option '-MP' not supported
4796       if (grep 'ignoring option' conftest.err ||
4797           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4798         am_cv_CCAS_dependencies_compiler_type=$depmode
4799         break
4800       fi
4801     fi
4802   done
4803
4804   cd ..
4805   rm -rf conftest.dir
4806 else
4807   am_cv_CCAS_dependencies_compiler_type=none
4808 fi
4809
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4812 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4813 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4814
4815  if
4816   test "x$enable_dependency_tracking" != xno \
4817   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4818   am__fastdepCCAS_TRUE=
4819   am__fastdepCCAS_FALSE='#'
4820 else
4821   am__fastdepCCAS_TRUE='#'
4822   am__fastdepCCAS_FALSE=
4823 fi
4824
4825
4826
4827
4828
4829
4830 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4831 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4832 # in both places for now and restore CFLAGS at the end of config.
4833 save_CFLAGS="$CFLAGS"
4834
4835 # Find other programs we need.
4836 if test -n "$ac_tool_prefix"; then
4837   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4838 set dummy ${ac_tool_prefix}ar; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if test "${ac_cv_prog_AR+set}" = set; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   if test -n "$AR"; then
4845   ac_cv_prog_AR="$AR" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852     for ac_exec_ext in '' $ac_executable_extensions; do
4853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854     ac_cv_prog_AR="${ac_tool_prefix}ar"
4855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859   done
4860 IFS=$as_save_IFS
4861
4862 fi
4863 fi
4864 AR=$ac_cv_prog_AR
4865 if test -n "$AR"; then
4866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4867 $as_echo "$AR" >&6; }
4868 else
4869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4871 fi
4872
4873
4874 fi
4875 if test -z "$ac_cv_prog_AR"; then
4876   ac_ct_AR=$AR
4877   # Extract the first word of "ar", so it can be a program name with args.
4878 set dummy ar; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   if test -n "$ac_ct_AR"; then
4885   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890   IFS=$as_save_IFS
4891   test -z "$as_dir" && as_dir=.
4892     for ac_exec_ext in '' $ac_executable_extensions; do
4893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894     ac_cv_prog_ac_ct_AR="ar"
4895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896     break 2
4897   fi
4898 done
4899   done
4900 IFS=$as_save_IFS
4901
4902 fi
4903 fi
4904 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4905 if test -n "$ac_ct_AR"; then
4906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4907 $as_echo "$ac_ct_AR" >&6; }
4908 else
4909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4911 fi
4912
4913   if test "x$ac_ct_AR" = x; then
4914     AR=""
4915   else
4916     case $cross_compiling:$ac_tool_warned in
4917 yes:)
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4920 ac_tool_warned=yes ;;
4921 esac
4922     AR=$ac_ct_AR
4923   fi
4924 else
4925   AR="$ac_cv_prog_AR"
4926 fi
4927
4928 if test -n "$ac_tool_prefix"; then
4929   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}nm; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if test "${ac_cv_prog_NM+set}" = set; then :
4934   $as_echo_n "(cached) " >&6
4935 else
4936   if test -n "$NM"; then
4937   ac_cv_prog_NM="$NM" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944     for ac_exec_ext in '' $ac_executable_extensions; do
4945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946     ac_cv_prog_NM="${ac_tool_prefix}nm"
4947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948     break 2
4949   fi
4950 done
4951   done
4952 IFS=$as_save_IFS
4953
4954 fi
4955 fi
4956 NM=$ac_cv_prog_NM
4957 if test -n "$NM"; then
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4959 $as_echo "$NM" >&6; }
4960 else
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964
4965
4966 fi
4967 if test -z "$ac_cv_prog_NM"; then
4968   ac_ct_NM=$NM
4969   # Extract the first word of "nm", so it can be a program name with args.
4970 set dummy nm; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   if test -n "$ac_ct_NM"; then
4977   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984     for ac_exec_ext in '' $ac_executable_extensions; do
4985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986     ac_cv_prog_ac_ct_NM="nm"
4987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988     break 2
4989   fi
4990 done
4991   done
4992 IFS=$as_save_IFS
4993
4994 fi
4995 fi
4996 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4997 if test -n "$ac_ct_NM"; then
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4999 $as_echo "$ac_ct_NM" >&6; }
5000 else
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5003 fi
5004
5005   if test "x$ac_ct_NM" = x; then
5006     NM=""
5007   else
5008     case $cross_compiling:$ac_tool_warned in
5009 yes:)
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5013 esac
5014     NM=$ac_ct_NM
5015   fi
5016 else
5017   NM="$ac_cv_prog_NM"
5018 fi
5019
5020 if test -n "$ac_tool_prefix"; then
5021   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5022 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5026   $as_echo_n "(cached) " >&6
5027 else
5028   if test -n "$RANLIB"; then
5029   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036     for ac_exec_ext in '' $ac_executable_extensions; do
5037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043   done
5044 IFS=$as_save_IFS
5045
5046 fi
5047 fi
5048 RANLIB=$ac_cv_prog_RANLIB
5049 if test -n "$RANLIB"; then
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5051 $as_echo "$RANLIB" >&6; }
5052 else
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056
5057
5058 fi
5059 if test -z "$ac_cv_prog_RANLIB"; then
5060   ac_ct_RANLIB=$RANLIB
5061   # Extract the first word of "ranlib", so it can be a program name with args.
5062 set dummy ranlib; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   if test -n "$ac_ct_RANLIB"; then
5069   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076     for ac_exec_ext in '' $ac_executable_extensions; do
5077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078     ac_cv_prog_ac_ct_RANLIB="ranlib"
5079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083   done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5089 if test -n "$ac_ct_RANLIB"; then
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5091 $as_echo "$ac_ct_RANLIB" >&6; }
5092 else
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097   if test "x$ac_ct_RANLIB" = x; then
5098     RANLIB="ranlib-not-found-in-path-error"
5099   else
5100     case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106     RANLIB=$ac_ct_RANLIB
5107   fi
5108 else
5109   RANLIB="$ac_cv_prog_RANLIB"
5110 fi
5111
5112 # Extract the first word of "perl", so it can be a program name with args.
5113 set dummy perl; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_path_PERL+set}" = set; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   case $PERL in
5120   [\\/]* | ?:[\\/]*)
5121   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5122   ;;
5123   *)
5124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129     for ac_exec_ext in '' $ac_executable_extensions; do
5130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136   done
5137 IFS=$as_save_IFS
5138
5139   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5140   ;;
5141 esac
5142 fi
5143 PERL=$ac_cv_path_PERL
5144 if test -n "$PERL"; then
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5146 $as_echo "$PERL" >&6; }
5147 else
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151
5152
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5154 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5155 set x ${MAKE-make}
5156 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5157 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   cat >conftest.make <<\_ACEOF
5161 SHELL = /bin/sh
5162 all:
5163         @echo '@@@%%%=$(MAKE)=@@@%%%'
5164 _ACEOF
5165 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5166 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5167   *@@@%%%=?*=@@@%%%*)
5168     eval ac_cv_prog_make_${ac_make}_set=yes;;
5169   *)
5170     eval ac_cv_prog_make_${ac_make}_set=no;;
5171 esac
5172 rm -f conftest.make
5173 fi
5174 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5176 $as_echo "yes" >&6; }
5177   SET_MAKE=
5178 else
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181   SET_MAKE="MAKE=${MAKE-make}"
5182 fi
5183
5184
5185
5186 # See if makeinfo has been installed and is modern enough
5187 # that we can use it.
5188
5189   # Extract the first word of "makeinfo", so it can be a program name with args.
5190 set dummy makeinfo; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5194   $as_echo_n "(cached) " >&6
5195 else
5196   if test -n "$MAKEINFO"; then
5197   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5201 do
5202   IFS=$as_save_IFS
5203   test -z "$as_dir" && as_dir=.
5204     for ac_exec_ext in '' $ac_executable_extensions; do
5205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206     ac_cv_prog_MAKEINFO="makeinfo"
5207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208     break 2
5209   fi
5210 done
5211   done
5212 IFS=$as_save_IFS
5213
5214 fi
5215 fi
5216 MAKEINFO=$ac_cv_prog_MAKEINFO
5217 if test -n "$MAKEINFO"; then
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5219 $as_echo "$MAKEINFO" >&6; }
5220 else
5221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5223 fi
5224
5225
5226   if test -n "$MAKEINFO"; then
5227     # Found it, now check the version.
5228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5229 $as_echo_n "checking for modern makeinfo... " >&6; }
5230 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5234                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5235
5236                     case $ac_prog_version in
5237                       '')  gcc_cv_prog_makeinfo_modern=no;;
5238                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
5239                       *)   gcc_cv_prog_makeinfo_modern=no;;
5240                     esac
5241
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5244 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5245   else
5246     gcc_cv_prog_makeinfo_modern=no
5247   fi
5248   if test $gcc_cv_prog_makeinfo_modern = no; then
5249     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5250   fi
5251
5252  if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5253   BUILD_INFO_TRUE=
5254   BUILD_INFO_FALSE='#'
5255 else
5256   BUILD_INFO_TRUE='#'
5257   BUILD_INFO_FALSE=
5258 fi
5259
5260
5261
5262 # Configure libtool
5263 case `pwd` in
5264   *\ * | *\     *)
5265     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5266 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5267 esac
5268
5269
5270
5271 macro_version='2.2.7a'
5272 macro_revision='1.3134'
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 ltmain="$ac_aux_dir/ltmain.sh"
5287
5288 # Backslashify metacharacters that are still active within
5289 # double-quoted strings.
5290 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5291
5292 # Same as above, but do not quote variable references.
5293 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5294
5295 # Sed substitution to delay expansion of an escaped shell variable in a
5296 # double_quote_subst'ed string.
5297 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5298
5299 # Sed substitution to delay expansion of an escaped single quote.
5300 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5301
5302 # Sed substitution to avoid accidental globbing in evaled expressions
5303 no_glob_subst='s/\*/\\\*/g'
5304
5305 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5306 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5307 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5310 $as_echo_n "checking how to print strings... " >&6; }
5311 # Test print first, because it will be a builtin if present.
5312 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5313    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5314   ECHO='print -r --'
5315 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5316   ECHO='printf %s\n'
5317 else
5318   # Use this function as a fallback that always works.
5319   func_fallback_echo ()
5320   {
5321     eval 'cat <<_LTECHO_EOF
5322 $1
5323 _LTECHO_EOF'
5324   }
5325   ECHO='func_fallback_echo'
5326 fi
5327
5328 # func_echo_all arg...
5329 # Invoke $ECHO with all args, space-separated.
5330 func_echo_all ()
5331 {
5332     $ECHO ""
5333 }
5334
5335 case "$ECHO" in
5336   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5337 $as_echo "printf" >&6; } ;;
5338   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5339 $as_echo "print -r" >&6; } ;;
5340   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5341 $as_echo "cat" >&6; } ;;
5342 esac
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5358 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5359 if test "${ac_cv_path_SED+set}" = set; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5363      for ac_i in 1 2 3 4 5 6 7; do
5364        ac_script="$ac_script$as_nl$ac_script"
5365      done
5366      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5367      { ac_script=; unset ac_script;}
5368      if test -z "$SED"; then
5369   ac_path_SED_found=false
5370   # Loop through the user's path and test for each of PROGNAME-LIST
5371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374   IFS=$as_save_IFS
5375   test -z "$as_dir" && as_dir=.
5376     for ac_prog in sed gsed; do
5377     for ac_exec_ext in '' $ac_executable_extensions; do
5378       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5379       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5380 # Check for GNU ac_path_SED and select it if it is found.
5381   # Check for GNU $ac_path_SED
5382 case `"$ac_path_SED" --version 2>&1` in
5383 *GNU*)
5384   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5385 *)
5386   ac_count=0
5387   $as_echo_n 0123456789 >"conftest.in"
5388   while :
5389   do
5390     cat "conftest.in" "conftest.in" >"conftest.tmp"
5391     mv "conftest.tmp" "conftest.in"
5392     cp "conftest.in" "conftest.nl"
5393     $as_echo '' >> "conftest.nl"
5394     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5395     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5396     as_fn_arith $ac_count + 1 && ac_count=$as_val
5397     if test $ac_count -gt ${ac_path_SED_max-0}; then
5398       # Best one so far, save it but keep looking for a better one
5399       ac_cv_path_SED="$ac_path_SED"
5400       ac_path_SED_max=$ac_count
5401     fi
5402     # 10*(2^10) chars as input seems more than enough
5403     test $ac_count -gt 10 && break
5404   done
5405   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5406 esac
5407
5408       $ac_path_SED_found && break 3
5409     done
5410   done
5411   done
5412 IFS=$as_save_IFS
5413   if test -z "$ac_cv_path_SED"; then
5414     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5415   fi
5416 else
5417   ac_cv_path_SED=$SED
5418 fi
5419
5420 fi
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5422 $as_echo "$ac_cv_path_SED" >&6; }
5423  SED="$ac_cv_path_SED"
5424   rm -f conftest.sed
5425
5426 test -z "$SED" && SED=sed
5427 Xsed="$SED -e 1s/^X//"
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5440 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5441 if test "${ac_cv_path_GREP+set}" = set; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   if test -z "$GREP"; then
5445   ac_path_GREP_found=false
5446   # Loop through the user's path and test for each of PROGNAME-LIST
5447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     for ac_prog in grep ggrep; do
5453     for ac_exec_ext in '' $ac_executable_extensions; do
5454       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5455       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5456 # Check for GNU ac_path_GREP and select it if it is found.
5457   # Check for GNU $ac_path_GREP
5458 case `"$ac_path_GREP" --version 2>&1` in
5459 *GNU*)
5460   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5461 *)
5462   ac_count=0
5463   $as_echo_n 0123456789 >"conftest.in"
5464   while :
5465   do
5466     cat "conftest.in" "conftest.in" >"conftest.tmp"
5467     mv "conftest.tmp" "conftest.in"
5468     cp "conftest.in" "conftest.nl"
5469     $as_echo 'GREP' >> "conftest.nl"
5470     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5471     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5472     as_fn_arith $ac_count + 1 && ac_count=$as_val
5473     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5474       # Best one so far, save it but keep looking for a better one
5475       ac_cv_path_GREP="$ac_path_GREP"
5476       ac_path_GREP_max=$ac_count
5477     fi
5478     # 10*(2^10) chars as input seems more than enough
5479     test $ac_count -gt 10 && break
5480   done
5481   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5482 esac
5483
5484       $ac_path_GREP_found && break 3
5485     done
5486   done
5487   done
5488 IFS=$as_save_IFS
5489   if test -z "$ac_cv_path_GREP"; then
5490     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5491   fi
5492 else
5493   ac_cv_path_GREP=$GREP
5494 fi
5495
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5498 $as_echo "$ac_cv_path_GREP" >&6; }
5499  GREP="$ac_cv_path_GREP"
5500
5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5503 $as_echo_n "checking for egrep... " >&6; }
5504 if test "${ac_cv_path_EGREP+set}" = set; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5508    then ac_cv_path_EGREP="$GREP -E"
5509    else
5510      if test -z "$EGREP"; then
5511   ac_path_EGREP_found=false
5512   # Loop through the user's path and test for each of PROGNAME-LIST
5513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518     for ac_prog in egrep; do
5519     for ac_exec_ext in '' $ac_executable_extensions; do
5520       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5521       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5522 # Check for GNU ac_path_EGREP and select it if it is found.
5523   # Check for GNU $ac_path_EGREP
5524 case `"$ac_path_EGREP" --version 2>&1` in
5525 *GNU*)
5526   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5527 *)
5528   ac_count=0
5529   $as_echo_n 0123456789 >"conftest.in"
5530   while :
5531   do
5532     cat "conftest.in" "conftest.in" >"conftest.tmp"
5533     mv "conftest.tmp" "conftest.in"
5534     cp "conftest.in" "conftest.nl"
5535     $as_echo 'EGREP' >> "conftest.nl"
5536     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5537     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5538     as_fn_arith $ac_count + 1 && ac_count=$as_val
5539     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5540       # Best one so far, save it but keep looking for a better one
5541       ac_cv_path_EGREP="$ac_path_EGREP"
5542       ac_path_EGREP_max=$ac_count
5543     fi
5544     # 10*(2^10) chars as input seems more than enough
5545     test $ac_count -gt 10 && break
5546   done
5547   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5548 esac
5549
5550       $ac_path_EGREP_found && break 3
5551     done
5552   done
5553   done
5554 IFS=$as_save_IFS
5555   if test -z "$ac_cv_path_EGREP"; then
5556     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5557   fi
5558 else
5559   ac_cv_path_EGREP=$EGREP
5560 fi
5561
5562    fi
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5565 $as_echo "$ac_cv_path_EGREP" >&6; }
5566  EGREP="$ac_cv_path_EGREP"
5567
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5570 $as_echo_n "checking for fgrep... " >&6; }
5571 if test "${ac_cv_path_FGREP+set}" = set; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5575    then ac_cv_path_FGREP="$GREP -F"
5576    else
5577      if test -z "$FGREP"; then
5578   ac_path_FGREP_found=false
5579   # Loop through the user's path and test for each of PROGNAME-LIST
5580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585     for ac_prog in fgrep; do
5586     for ac_exec_ext in '' $ac_executable_extensions; do
5587       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5588       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5589 # Check for GNU ac_path_FGREP and select it if it is found.
5590   # Check for GNU $ac_path_FGREP
5591 case `"$ac_path_FGREP" --version 2>&1` in
5592 *GNU*)
5593   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5594 *)
5595   ac_count=0
5596   $as_echo_n 0123456789 >"conftest.in"
5597   while :
5598   do
5599     cat "conftest.in" "conftest.in" >"conftest.tmp"
5600     mv "conftest.tmp" "conftest.in"
5601     cp "conftest.in" "conftest.nl"
5602     $as_echo 'FGREP' >> "conftest.nl"
5603     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5605     as_fn_arith $ac_count + 1 && ac_count=$as_val
5606     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5607       # Best one so far, save it but keep looking for a better one
5608       ac_cv_path_FGREP="$ac_path_FGREP"
5609       ac_path_FGREP_max=$ac_count
5610     fi
5611     # 10*(2^10) chars as input seems more than enough
5612     test $ac_count -gt 10 && break
5613   done
5614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5615 esac
5616
5617       $ac_path_FGREP_found && break 3
5618     done
5619   done
5620   done
5621 IFS=$as_save_IFS
5622   if test -z "$ac_cv_path_FGREP"; then
5623     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5624   fi
5625 else
5626   ac_cv_path_FGREP=$FGREP
5627 fi
5628
5629    fi
5630 fi
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5632 $as_echo "$ac_cv_path_FGREP" >&6; }
5633  FGREP="$ac_cv_path_FGREP"
5634
5635
5636 test -z "$GREP" && GREP=grep
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656 # Check whether --with-gnu-ld was given.
5657 if test "${with_gnu_ld+set}" = set; then :
5658   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5659 else
5660   with_gnu_ld=no
5661 fi
5662
5663 ac_prog=ld
5664 if test "$GCC" = yes; then
5665   # Check if gcc -print-prog-name=ld gives a path.
5666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5667 $as_echo_n "checking for ld used by $CC... " >&6; }
5668   case $host in
5669   *-*-mingw*)
5670     # gcc leaves a trailing carriage return which upsets mingw
5671     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5672   *)
5673     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5674   esac
5675   case $ac_prog in
5676     # Accept absolute paths.
5677     [\\/]* | ?:[\\/]*)
5678       re_direlt='/[^/][^/]*/\.\./'
5679       # Canonicalize the pathname of ld
5680       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5681       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5682         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5683       done
5684       test -z "$LD" && LD="$ac_prog"
5685       ;;
5686   "")
5687     # If it fails, then pretend we aren't using GCC.
5688     ac_prog=ld
5689     ;;
5690   *)
5691     # If it is relative, then search for the first ld in PATH.
5692     with_gnu_ld=unknown
5693     ;;
5694   esac
5695 elif test "$with_gnu_ld" = yes; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5697 $as_echo_n "checking for GNU ld... " >&6; }
5698 else
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5700 $as_echo_n "checking for non-GNU ld... " >&6; }
5701 fi
5702 if test "${lt_cv_path_LD+set}" = set; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   if test -z "$LD"; then
5706   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5707   for ac_dir in $PATH; do
5708     IFS="$lt_save_ifs"
5709     test -z "$ac_dir" && ac_dir=.
5710     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5711       lt_cv_path_LD="$ac_dir/$ac_prog"
5712       # Check to see if the program is GNU ld.  I'd rather use --version,
5713       # but apparently some variants of GNU ld only accept -v.
5714       # Break only if it was the GNU/non-GNU ld that we prefer.
5715       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5716       *GNU* | *'with BFD'*)
5717         test "$with_gnu_ld" != no && break
5718         ;;
5719       *)
5720         test "$with_gnu_ld" != yes && break
5721         ;;
5722       esac
5723     fi
5724   done
5725   IFS="$lt_save_ifs"
5726 else
5727   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5728 fi
5729 fi
5730
5731 LD="$lt_cv_path_LD"
5732 if test -n "$LD"; then
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5734 $as_echo "$LD" >&6; }
5735 else
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5741 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5742 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5746 case `$LD -v 2>&1 </dev/null` in
5747 *GNU* | *'with BFD'*)
5748   lt_cv_prog_gnu_ld=yes
5749   ;;
5750 *)
5751   lt_cv_prog_gnu_ld=no
5752   ;;
5753 esac
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5756 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5757 with_gnu_ld=$lt_cv_prog_gnu_ld
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5768 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5769 if test "${lt_cv_path_NM+set}" = set; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   if test -n "$NM"; then
5773   # Let the user override the test.
5774   lt_cv_path_NM="$NM"
5775 else
5776   lt_nm_to_check="${ac_tool_prefix}nm"
5777   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5778     lt_nm_to_check="$lt_nm_to_check nm"
5779   fi
5780   for lt_tmp_nm in $lt_nm_to_check; do
5781     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5782     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5783       IFS="$lt_save_ifs"
5784       test -z "$ac_dir" && ac_dir=.
5785       tmp_nm="$ac_dir/$lt_tmp_nm"
5786       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5787         # Check to see if the nm accepts a BSD-compat flag.
5788         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5789         #   nm: unknown option "B" ignored
5790         # Tru64's nm complains that /dev/null is an invalid object file
5791         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5792         */dev/null* | *'Invalid file or object type'*)
5793           lt_cv_path_NM="$tmp_nm -B"
5794           break
5795           ;;
5796         *)
5797           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5798           */dev/null*)
5799             lt_cv_path_NM="$tmp_nm -p"
5800             break
5801             ;;
5802           *)
5803             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5804             continue # so that we can try to find one that supports BSD flags
5805             ;;
5806           esac
5807           ;;
5808         esac
5809       fi
5810     done
5811     IFS="$lt_save_ifs"
5812   done
5813   : ${lt_cv_path_NM=no}
5814 fi
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5817 $as_echo "$lt_cv_path_NM" >&6; }
5818 if test "$lt_cv_path_NM" != "no"; then
5819   NM="$lt_cv_path_NM"
5820 else
5821   # Didn't find any BSD compatible name lister, look for dumpbin.
5822   if test -n "$DUMPBIN"; then :
5823     # Let the user override the test.
5824   else
5825     if test -n "$ac_tool_prefix"; then
5826   for ac_prog in dumpbin "link -dump"
5827   do
5828     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831 $as_echo_n "checking for $ac_word... " >&6; }
5832 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5833   $as_echo_n "(cached) " >&6
5834 else
5835   if test -n "$DUMPBIN"; then
5836   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841   IFS=$as_save_IFS
5842   test -z "$as_dir" && as_dir=.
5843     for ac_exec_ext in '' $ac_executable_extensions; do
5844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5845     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847     break 2
5848   fi
5849 done
5850   done
5851 IFS=$as_save_IFS
5852
5853 fi
5854 fi
5855 DUMPBIN=$ac_cv_prog_DUMPBIN
5856 if test -n "$DUMPBIN"; then
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5858 $as_echo "$DUMPBIN" >&6; }
5859 else
5860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 $as_echo "no" >&6; }
5862 fi
5863
5864
5865     test -n "$DUMPBIN" && break
5866   done
5867 fi
5868 if test -z "$DUMPBIN"; then
5869   ac_ct_DUMPBIN=$DUMPBIN
5870   for ac_prog in dumpbin "link -dump"
5871 do
5872   # Extract the first word of "$ac_prog", so it can be a program name with args.
5873 set dummy $ac_prog; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879   if test -n "$ac_ct_DUMPBIN"; then
5880   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887     for ac_exec_ext in '' $ac_executable_extensions; do
5888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894   done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5900 if test -n "$ac_ct_DUMPBIN"; then
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5902 $as_echo "$ac_ct_DUMPBIN" >&6; }
5903 else
5904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908
5909   test -n "$ac_ct_DUMPBIN" && break
5910 done
5911
5912   if test "x$ac_ct_DUMPBIN" = x; then
5913     DUMPBIN=":"
5914   else
5915     case $cross_compiling:$ac_tool_warned in
5916 yes:)
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5919 ac_tool_warned=yes ;;
5920 esac
5921     DUMPBIN=$ac_ct_DUMPBIN
5922   fi
5923 fi
5924
5925     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5926     *COFF*)
5927       DUMPBIN="$DUMPBIN -symbols"
5928       ;;
5929     *)
5930       DUMPBIN=:
5931       ;;
5932     esac
5933   fi
5934
5935   if test "$DUMPBIN" != ":"; then
5936     NM="$DUMPBIN"
5937   fi
5938 fi
5939 test -z "$NM" && NM=nm
5940
5941
5942
5943
5944
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5947 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5948 if test "${lt_cv_nm_interface+set}" = set; then :
5949   $as_echo_n "(cached) " >&6
5950 else
5951   lt_cv_nm_interface="BSD nm"
5952   echo "int some_variable = 0;" > conftest.$ac_ext
5953   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5954   (eval "$ac_compile" 2>conftest.err)
5955   cat conftest.err >&5
5956   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5957   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5958   cat conftest.err >&5
5959   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5960   cat conftest.out >&5
5961   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5962     lt_cv_nm_interface="MS dumpbin"
5963   fi
5964   rm -f conftest*
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5967 $as_echo "$lt_cv_nm_interface" >&6; }
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5970 $as_echo_n "checking whether ln -s works... " >&6; }
5971 LN_S=$as_ln_s
5972 if test "$LN_S" = "ln -s"; then
5973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5974 $as_echo "yes" >&6; }
5975 else
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5977 $as_echo "no, using $LN_S" >&6; }
5978 fi
5979
5980 # find the maximum length of command line arguments
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5982 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5983 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5984   $as_echo_n "(cached) " >&6
5985 else
5986     i=0
5987   teststring="ABCD"
5988
5989   case $build_os in
5990   msdosdjgpp*)
5991     # On DJGPP, this test can blow up pretty badly due to problems in libc
5992     # (any single argument exceeding 2000 bytes causes a buffer overrun
5993     # during glob expansion).  Even if it were fixed, the result of this
5994     # check would be larger than it should be.
5995     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5996     ;;
5997
5998   gnu*)
5999     # Under GNU Hurd, this test is not required because there is
6000     # no limit to the length of command line arguments.
6001     # Libtool will interpret -1 as no limit whatsoever
6002     lt_cv_sys_max_cmd_len=-1;
6003     ;;
6004
6005   cygwin* | mingw* | cegcc*)
6006     # On Win9x/ME, this test blows up -- it succeeds, but takes
6007     # about 5 minutes as the teststring grows exponentially.
6008     # Worse, since 9x/ME are not pre-emptively multitasking,
6009     # you end up with a "frozen" computer, even though with patience
6010     # the test eventually succeeds (with a max line length of 256k).
6011     # Instead, let's just punt: use the minimum linelength reported by
6012     # all of the supported platforms: 8192 (on NT/2K/XP).
6013     lt_cv_sys_max_cmd_len=8192;
6014     ;;
6015
6016   mint*)
6017     # On MiNT this can take a long time and run out of memory.
6018     lt_cv_sys_max_cmd_len=8192;
6019     ;;
6020
6021   amigaos*)
6022     # On AmigaOS with pdksh, this test takes hours, literally.
6023     # So we just punt and use a minimum line length of 8192.
6024     lt_cv_sys_max_cmd_len=8192;
6025     ;;
6026
6027   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6028     # This has been around since 386BSD, at least.  Likely further.
6029     if test -x /sbin/sysctl; then
6030       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6031     elif test -x /usr/sbin/sysctl; then
6032       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6033     else
6034       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6035     fi
6036     # And add a safety zone
6037     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6038     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6039     ;;
6040
6041   interix*)
6042     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6043     lt_cv_sys_max_cmd_len=196608
6044     ;;
6045
6046   osf*)
6047     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6048     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6049     # nice to cause kernel panics so lets avoid the loop below.
6050     # First set a reasonable default.
6051     lt_cv_sys_max_cmd_len=16384
6052     #
6053     if test -x /sbin/sysconfig; then
6054       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6055         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6056       esac
6057     fi
6058     ;;
6059   sco3.2v5*)
6060     lt_cv_sys_max_cmd_len=102400
6061     ;;
6062   sysv5* | sco5v6* | sysv4.2uw2*)
6063     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6064     if test -n "$kargmax"; then
6065       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6066     else
6067       lt_cv_sys_max_cmd_len=32768
6068     fi
6069     ;;
6070   *)
6071     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6072     if test -n "$lt_cv_sys_max_cmd_len"; then
6073       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075     else
6076       # Make teststring a little bigger before we do anything with it.
6077       # a 1K string should be a reasonable start.
6078       for i in 1 2 3 4 5 6 7 8 ; do
6079         teststring=$teststring$teststring
6080       done
6081       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6082       # If test is not a shell built-in, we'll probably end up computing a
6083       # maximum length that is only half of the actual maximum length, but
6084       # we can't tell.
6085       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6086                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6087               test $i != 17 # 1/2 MB should be enough
6088       do
6089         i=`expr $i + 1`
6090         teststring=$teststring$teststring
6091       done
6092       # Only check the string length outside the loop.
6093       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6094       teststring=
6095       # Add a significant safety factor because C++ compilers can tack on
6096       # massive amounts of additional arguments before passing them to the
6097       # linker.  It appears as though 1/2 is a usable value.
6098       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6099     fi
6100     ;;
6101   esac
6102
6103 fi
6104
6105 if test -n $lt_cv_sys_max_cmd_len ; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6107 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6110 $as_echo "none" >&6; }
6111 fi
6112 max_cmd_len=$lt_cv_sys_max_cmd_len
6113
6114
6115
6116
6117
6118
6119 : ${CP="cp -f"}
6120 : ${MV="mv -f"}
6121 : ${RM="rm -f"}
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6124 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6125 # Try some XSI features
6126 xsi_shell=no
6127 ( _lt_dummy="a/b/c"
6128   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6129       = c,a/b,, \
6130     && eval 'test $(( 1 + 1 )) -eq 2 \
6131     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6132   && xsi_shell=yes
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6134 $as_echo "$xsi_shell" >&6; }
6135
6136
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6138 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6139 lt_shell_append=no
6140 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6141     >/dev/null 2>&1 \
6142   && lt_shell_append=yes
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6144 $as_echo "$lt_shell_append" >&6; }
6145
6146
6147 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6148   lt_unset=unset
6149 else
6150   lt_unset=false
6151 fi
6152
6153
6154
6155
6156
6157 # test EBCDIC or ASCII
6158 case `echo X|tr X '\101'` in
6159  A) # ASCII based system
6160     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6161   lt_SP2NL='tr \040 \012'
6162   lt_NL2SP='tr \015\012 \040\040'
6163   ;;
6164  *) # EBCDIC based system
6165   lt_SP2NL='tr \100 \n'
6166   lt_NL2SP='tr \r\n \100\100'
6167   ;;
6168 esac
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6179 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6180 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   lt_cv_ld_reload_flag='-r'
6184 fi
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6186 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6187 reload_flag=$lt_cv_ld_reload_flag
6188 case $reload_flag in
6189 "" | " "*) ;;
6190 *) reload_flag=" $reload_flag" ;;
6191 esac
6192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6193 case $host_os in
6194   darwin*)
6195     if test "$GCC" = yes; then
6196       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6197     else
6198       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6199     fi
6200     ;;
6201 esac
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 if test -n "$ac_tool_prefix"; then
6212   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6213 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6217   $as_echo_n "(cached) " >&6
6218 else
6219   if test -n "$OBJDUMP"; then
6220   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225   IFS=$as_save_IFS
6226   test -z "$as_dir" && as_dir=.
6227     for ac_exec_ext in '' $ac_executable_extensions; do
6228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231     break 2
6232   fi
6233 done
6234   done
6235 IFS=$as_save_IFS
6236
6237 fi
6238 fi
6239 OBJDUMP=$ac_cv_prog_OBJDUMP
6240 if test -n "$OBJDUMP"; then
6241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6242 $as_echo "$OBJDUMP" >&6; }
6243 else
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6246 fi
6247
6248
6249 fi
6250 if test -z "$ac_cv_prog_OBJDUMP"; then
6251   ac_ct_OBJDUMP=$OBJDUMP
6252   # Extract the first word of "objdump", so it can be a program name with args.
6253 set dummy objdump; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6257   $as_echo_n "(cached) " >&6
6258 else
6259   if test -n "$ac_ct_OBJDUMP"; then
6260   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267     for ac_exec_ext in '' $ac_executable_extensions; do
6268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274   done
6275 IFS=$as_save_IFS
6276
6277 fi
6278 fi
6279 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6280 if test -n "$ac_ct_OBJDUMP"; then
6281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6282 $as_echo "$ac_ct_OBJDUMP" >&6; }
6283 else
6284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6286 fi
6287
6288   if test "x$ac_ct_OBJDUMP" = x; then
6289     OBJDUMP="false"
6290   else
6291     case $cross_compiling:$ac_tool_warned in
6292 yes:)
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6295 ac_tool_warned=yes ;;
6296 esac
6297     OBJDUMP=$ac_ct_OBJDUMP
6298   fi
6299 else
6300   OBJDUMP="$ac_cv_prog_OBJDUMP"
6301 fi
6302
6303 test -z "$OBJDUMP" && OBJDUMP=objdump
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6314 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6315 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   lt_cv_file_magic_cmd='$MAGIC_CMD'
6319 lt_cv_file_magic_test_file=
6320 lt_cv_deplibs_check_method='unknown'
6321 # Need to set the preceding variable on all platforms that support
6322 # interlibrary dependencies.
6323 # 'none' -- dependencies not supported.
6324 # `unknown' -- same as none, but documents that we really don't know.
6325 # 'pass_all' -- all dependencies passed with no checks.
6326 # 'test_compile' -- check by making test program.
6327 # 'file_magic [[regex]]' -- check by looking for files in library path
6328 # which responds to the $file_magic_cmd with a given extended regex.
6329 # If you have `file' or equivalent on your system and you're not sure
6330 # whether `pass_all' will *always* work, you probably want this one.
6331
6332 case $host_os in
6333 aix[4-9]*)
6334   lt_cv_deplibs_check_method=pass_all
6335   ;;
6336
6337 beos*)
6338   lt_cv_deplibs_check_method=pass_all
6339   ;;
6340
6341 bsdi[45]*)
6342   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6343   lt_cv_file_magic_cmd='/usr/bin/file -L'
6344   lt_cv_file_magic_test_file=/shlib/libc.so
6345   ;;
6346
6347 cygwin*)
6348   # func_win32_libid is a shell function defined in ltmain.sh
6349   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6350   lt_cv_file_magic_cmd='func_win32_libid'
6351   ;;
6352
6353 mingw* | pw32*)
6354   # Base MSYS/MinGW do not provide the 'file' command needed by
6355   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6356   # unless we find 'file', for example because we are cross-compiling.
6357   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6358   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6359     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6360     lt_cv_file_magic_cmd='func_win32_libid'
6361   else
6362     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6363     lt_cv_file_magic_cmd='$OBJDUMP -f'
6364   fi
6365   ;;
6366
6367 cegcc*)
6368   # use the weaker test based on 'objdump'. See mingw*.
6369   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6370   lt_cv_file_magic_cmd='$OBJDUMP -f'
6371   ;;
6372
6373 darwin* | rhapsody*)
6374   lt_cv_deplibs_check_method=pass_all
6375   ;;
6376
6377 freebsd* | dragonfly*)
6378   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6379     case $host_cpu in
6380     i*86 )
6381       # Not sure whether the presence of OpenBSD here was a mistake.
6382       # Let's accept both of them until this is cleared up.
6383       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6384       lt_cv_file_magic_cmd=/usr/bin/file
6385       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6386       ;;
6387     esac
6388   else
6389     lt_cv_deplibs_check_method=pass_all
6390   fi
6391   ;;
6392
6393 gnu*)
6394   lt_cv_deplibs_check_method=pass_all
6395   ;;
6396
6397 haiku*)
6398   lt_cv_deplibs_check_method=pass_all
6399   ;;
6400
6401 hpux10.20* | hpux11*)
6402   lt_cv_file_magic_cmd=/usr/bin/file
6403   case $host_cpu in
6404   ia64*)
6405     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6406     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6407     ;;
6408   hppa*64*)
6409     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]'
6410     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6411     ;;
6412   *)
6413     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6414     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6415     ;;
6416   esac
6417   ;;
6418
6419 interix[3-9]*)
6420   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6421   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6422   ;;
6423
6424 irix5* | irix6* | nonstopux*)
6425   case $LD in
6426   *-32|*"-32 ") libmagic=32-bit;;
6427   *-n32|*"-n32 ") libmagic=N32;;
6428   *-64|*"-64 ") libmagic=64-bit;;
6429   *) libmagic=never-match;;
6430   esac
6431   lt_cv_deplibs_check_method=pass_all
6432   ;;
6433
6434 # This must be Linux ELF.
6435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6436   lt_cv_deplibs_check_method=pass_all
6437   ;;
6438
6439 netbsd*)
6440   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6441     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6442   else
6443     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6444   fi
6445   ;;
6446
6447 newos6*)
6448   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6449   lt_cv_file_magic_cmd=/usr/bin/file
6450   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6451   ;;
6452
6453 *nto* | *qnx*)
6454   lt_cv_deplibs_check_method=pass_all
6455   ;;
6456
6457 openbsd*)
6458   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6459     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6460   else
6461     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6462   fi
6463   ;;
6464
6465 osf3* | osf4* | osf5*)
6466   lt_cv_deplibs_check_method=pass_all
6467   ;;
6468
6469 rdos*)
6470   lt_cv_deplibs_check_method=pass_all
6471   ;;
6472
6473 solaris*)
6474   lt_cv_deplibs_check_method=pass_all
6475   ;;
6476
6477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6478   lt_cv_deplibs_check_method=pass_all
6479   ;;
6480
6481 sysv4 | sysv4.3*)
6482   case $host_vendor in
6483   motorola)
6484     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]'
6485     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6486     ;;
6487   ncr)
6488     lt_cv_deplibs_check_method=pass_all
6489     ;;
6490   sequent)
6491     lt_cv_file_magic_cmd='/bin/file'
6492     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6493     ;;
6494   sni)
6495     lt_cv_file_magic_cmd='/bin/file'
6496     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6497     lt_cv_file_magic_test_file=/lib/libc.so
6498     ;;
6499   siemens)
6500     lt_cv_deplibs_check_method=pass_all
6501     ;;
6502   pc)
6503     lt_cv_deplibs_check_method=pass_all
6504     ;;
6505   esac
6506   ;;
6507
6508 tpf*)
6509   lt_cv_deplibs_check_method=pass_all
6510   ;;
6511 esac
6512
6513 fi
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6515 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6516 file_magic_cmd=$lt_cv_file_magic_cmd
6517 deplibs_check_method=$lt_cv_deplibs_check_method
6518 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531 if test -n "$ac_tool_prefix"; then
6532   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6533 set dummy ${ac_tool_prefix}ar; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_AR+set}" = set; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   if test -n "$AR"; then
6540   ac_cv_prog_AR="$AR" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547     for ac_exec_ext in '' $ac_executable_extensions; do
6548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549     ac_cv_prog_AR="${ac_tool_prefix}ar"
6550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554   done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 AR=$ac_cv_prog_AR
6560 if test -n "$AR"; then
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6562 $as_echo "$AR" >&6; }
6563 else
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567
6568
6569 fi
6570 if test -z "$ac_cv_prog_AR"; then
6571   ac_ct_AR=$AR
6572   # Extract the first word of "ar", so it can be a program name with args.
6573 set dummy ar; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   if test -n "$ac_ct_AR"; then
6580   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587     for ac_exec_ext in '' $ac_executable_extensions; do
6588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589     ac_cv_prog_ac_ct_AR="ar"
6590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594   done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6600 if test -n "$ac_ct_AR"; then
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6602 $as_echo "$ac_ct_AR" >&6; }
6603 else
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6606 fi
6607
6608   if test "x$ac_ct_AR" = x; then
6609     AR="false"
6610   else
6611     case $cross_compiling:$ac_tool_warned in
6612 yes:)
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6615 ac_tool_warned=yes ;;
6616 esac
6617     AR=$ac_ct_AR
6618   fi
6619 else
6620   AR="$ac_cv_prog_AR"
6621 fi
6622
6623 test -z "$AR" && AR=ar
6624 test -z "$AR_FLAGS" && AR_FLAGS=cru
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636 if test -n "$ac_tool_prefix"; then
6637   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6638 set dummy ${ac_tool_prefix}strip; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_prog_STRIP+set}" = set; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   if test -n "$STRIP"; then
6645   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652     for ac_exec_ext in '' $ac_executable_extensions; do
6653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659   done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 STRIP=$ac_cv_prog_STRIP
6665 if test -n "$STRIP"; then
6666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6667 $as_echo "$STRIP" >&6; }
6668 else
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673
6674 fi
6675 if test -z "$ac_cv_prog_STRIP"; then
6676   ac_ct_STRIP=$STRIP
6677   # Extract the first word of "strip", so it can be a program name with args.
6678 set dummy strip; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6682   $as_echo_n "(cached) " >&6
6683 else
6684   if test -n "$ac_ct_STRIP"; then
6685   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692     for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_prog_ac_ct_STRIP="strip"
6695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699   done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6705 if test -n "$ac_ct_STRIP"; then
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6707 $as_echo "$ac_ct_STRIP" >&6; }
6708 else
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712
6713   if test "x$ac_ct_STRIP" = x; then
6714     STRIP=":"
6715   else
6716     case $cross_compiling:$ac_tool_warned in
6717 yes:)
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722     STRIP=$ac_ct_STRIP
6723   fi
6724 else
6725   STRIP="$ac_cv_prog_STRIP"
6726 fi
6727
6728 test -z "$STRIP" && STRIP=:
6729
6730
6731
6732
6733
6734
6735 if test -n "$ac_tool_prefix"; then
6736   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6741   $as_echo_n "(cached) " >&6
6742 else
6743   if test -n "$RANLIB"; then
6744   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749   IFS=$as_save_IFS
6750   test -z "$as_dir" && as_dir=.
6751     for ac_exec_ext in '' $ac_executable_extensions; do
6752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755     break 2
6756   fi
6757 done
6758   done
6759 IFS=$as_save_IFS
6760
6761 fi
6762 fi
6763 RANLIB=$ac_cv_prog_RANLIB
6764 if test -n "$RANLIB"; then
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6766 $as_echo "$RANLIB" >&6; }
6767 else
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6770 fi
6771
6772
6773 fi
6774 if test -z "$ac_cv_prog_RANLIB"; then
6775   ac_ct_RANLIB=$RANLIB
6776   # Extract the first word of "ranlib", so it can be a program name with args.
6777 set dummy ranlib; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6781   $as_echo_n "(cached) " >&6
6782 else
6783   if test -n "$ac_ct_RANLIB"; then
6784   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789   IFS=$as_save_IFS
6790   test -z "$as_dir" && as_dir=.
6791     for ac_exec_ext in '' $ac_executable_extensions; do
6792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793     ac_cv_prog_ac_ct_RANLIB="ranlib"
6794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795     break 2
6796   fi
6797 done
6798   done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6804 if test -n "$ac_ct_RANLIB"; then
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6806 $as_echo "$ac_ct_RANLIB" >&6; }
6807 else
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 $as_echo "no" >&6; }
6810 fi
6811
6812   if test "x$ac_ct_RANLIB" = x; then
6813     RANLIB=":"
6814   else
6815     case $cross_compiling:$ac_tool_warned in
6816 yes:)
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6819 ac_tool_warned=yes ;;
6820 esac
6821     RANLIB=$ac_ct_RANLIB
6822   fi
6823 else
6824   RANLIB="$ac_cv_prog_RANLIB"
6825 fi
6826
6827 test -z "$RANLIB" && RANLIB=:
6828
6829
6830
6831
6832
6833
6834 # Determine commands to create old-style static archives.
6835 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6836 old_postinstall_cmds='chmod 644 $oldlib'
6837 old_postuninstall_cmds=
6838
6839 if test -n "$RANLIB"; then
6840   case $host_os in
6841   openbsd*)
6842     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6843     ;;
6844   *)
6845     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6846     ;;
6847   esac
6848   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6849 fi
6850
6851 case $host_os in
6852   darwin*)
6853     lock_old_archive_extraction=yes ;;
6854   *)
6855     lock_old_archive_extraction=no ;;
6856 esac
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
6891
6892
6893
6894
6895
6896 # If no C compiler was specified, use CC.
6897 LTCC=${LTCC-"$CC"}
6898
6899 # If no C compiler flags were specified, use CFLAGS.
6900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6901
6902 # Allow CC to be a program name with arguments.
6903 compiler=$CC
6904
6905
6906 # Check for command to grab the raw symbol name followed by C symbol from nm.
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6908 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6909 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912
6913 # These are sane defaults that work on at least a few old systems.
6914 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6915
6916 # Character class describing NM global symbol codes.
6917 symcode='[BCDEGRST]'
6918
6919 # Regexp to match symbols that can be accessed directly from C.
6920 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6921
6922 # Define system-specific variables.
6923 case $host_os in
6924 aix*)
6925   symcode='[BCDT]'
6926   ;;
6927 cygwin* | mingw* | pw32* | cegcc*)
6928   symcode='[ABCDGISTW]'
6929   ;;
6930 hpux*)
6931   if test "$host_cpu" = ia64; then
6932     symcode='[ABCDEGRST]'
6933   fi
6934   ;;
6935 irix* | nonstopux*)
6936   symcode='[BCDEGRST]'
6937   ;;
6938 osf*)
6939   symcode='[BCDEGQRST]'
6940   ;;
6941 solaris*)
6942   symcode='[BDRT]'
6943   ;;
6944 sco3.2v5*)
6945   symcode='[DT]'
6946   ;;
6947 sysv4.2uw2*)
6948   symcode='[DT]'
6949   ;;
6950 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6951   symcode='[ABDT]'
6952   ;;
6953 sysv4)
6954   symcode='[DFNSTU]'
6955   ;;
6956 esac
6957
6958 # If we're using GNU nm, then use its standard symbol codes.
6959 case `$NM -V 2>&1` in
6960 *GNU* | *'with BFD'*)
6961   symcode='[ABCDGIRSTW]' ;;
6962 esac
6963
6964 # Transform an extracted symbol line into a proper C declaration.
6965 # Some systems (esp. on ia64) link data and code symbols differently,
6966 # so use this general approach.
6967 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6968
6969 # Transform an extracted symbol line into symbol name and symbol address
6970 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6971 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'"
6972
6973 # Handle CRLF in mingw tool chain
6974 opt_cr=
6975 case $build_os in
6976 mingw*)
6977   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6978   ;;
6979 esac
6980
6981 # Try without a prefix underscore, then with it.
6982 for ac_symprfx in "" "_"; do
6983
6984   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6985   symxfrm="\\1 $ac_symprfx\\2 \\2"
6986
6987   # Write the raw and C identifiers.
6988   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6989     # Fake it for dumpbin and say T for any non-static function
6990     # and D for any global variable.
6991     # Also find C++ and __fastcall symbols from MSVC++,
6992     # which start with @ or ?.
6993     lt_cv_sys_global_symbol_pipe="$AWK '"\
6994 "     {last_section=section; section=\$ 3};"\
6995 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6996 "     \$ 0!~/External *\|/{next};"\
6997 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6998 "     {if(hide[section]) next};"\
6999 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7000 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7001 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7002 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7003 "     ' prfx=^$ac_symprfx"
7004   else
7005     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7006   fi
7007
7008   # Check to see that the pipe works correctly.
7009   pipe_works=no
7010
7011   rm -f conftest*
7012   cat > conftest.$ac_ext <<_LT_EOF
7013 #ifdef __cplusplus
7014 extern "C" {
7015 #endif
7016 char nm_test_var;
7017 void nm_test_func(void);
7018 void nm_test_func(void){}
7019 #ifdef __cplusplus
7020 }
7021 #endif
7022 int main(){nm_test_var='a';nm_test_func();return(0);}
7023 _LT_EOF
7024
7025   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7026   (eval $ac_compile) 2>&5
7027   ac_status=$?
7028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029   test $ac_status = 0; }; then
7030     # Now try to grab the symbols.
7031     nlist=conftest.nm
7032     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7033   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7034   ac_status=$?
7035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036   test $ac_status = 0; } && test -s "$nlist"; then
7037       # Try sorting and uniquifying the output.
7038       if sort "$nlist" | uniq > "$nlist"T; then
7039         mv -f "$nlist"T "$nlist"
7040       else
7041         rm -f "$nlist"T
7042       fi
7043
7044       # Make sure that we snagged all the symbols we need.
7045       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7046         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7047           cat <<_LT_EOF > conftest.$ac_ext
7048 #ifdef __cplusplus
7049 extern "C" {
7050 #endif
7051
7052 _LT_EOF
7053           # Now generate the symbol file.
7054           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7055
7056           cat <<_LT_EOF >> conftest.$ac_ext
7057
7058 /* The mapping between symbol names and symbols.  */
7059 const struct {
7060   const char *name;
7061   void       *address;
7062 }
7063 lt__PROGRAM__LTX_preloaded_symbols[] =
7064 {
7065   { "@PROGRAM@", (void *) 0 },
7066 _LT_EOF
7067           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7068           cat <<\_LT_EOF >> conftest.$ac_ext
7069   {0, (void *) 0}
7070 };
7071
7072 /* This works around a problem in FreeBSD linker */
7073 #ifdef FREEBSD_WORKAROUND
7074 static const void *lt_preloaded_setup() {
7075   return lt__PROGRAM__LTX_preloaded_symbols;
7076 }
7077 #endif
7078
7079 #ifdef __cplusplus
7080 }
7081 #endif
7082 _LT_EOF
7083           # Now try linking the two files.
7084           mv conftest.$ac_objext conftstm.$ac_objext
7085           lt_save_LIBS="$LIBS"
7086           lt_save_CFLAGS="$CFLAGS"
7087           LIBS="conftstm.$ac_objext"
7088           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7089           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7090   (eval $ac_link) 2>&5
7091   ac_status=$?
7092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7094             pipe_works=yes
7095           fi
7096           LIBS="$lt_save_LIBS"
7097           CFLAGS="$lt_save_CFLAGS"
7098         else
7099           echo "cannot find nm_test_func in $nlist" >&5
7100         fi
7101       else
7102         echo "cannot find nm_test_var in $nlist" >&5
7103       fi
7104     else
7105       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7106     fi
7107   else
7108     echo "$progname: failed program was:" >&5
7109     cat conftest.$ac_ext >&5
7110   fi
7111   rm -rf conftest* conftst*
7112
7113   # Do not use the global_symbol_pipe unless it works.
7114   if test "$pipe_works" = yes; then
7115     break
7116   else
7117     lt_cv_sys_global_symbol_pipe=
7118   fi
7119 done
7120
7121 fi
7122
7123 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7124   lt_cv_sys_global_symbol_to_cdecl=
7125 fi
7126 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7128 $as_echo "failed" >&6; }
7129 else
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7131 $as_echo "ok" >&6; }
7132 fi
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156 # Check whether --enable-libtool-lock was given.
7157 if test "${enable_libtool_lock+set}" = set; then :
7158   enableval=$enable_libtool_lock;
7159 fi
7160
7161 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7162
7163 # Some flags need to be propagated to the compiler or linker for good
7164 # libtool support.
7165 case $host in
7166 ia64-*-hpux*)
7167   # Find out which ABI we are using.
7168   echo 'int i;' > conftest.$ac_ext
7169   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7170   (eval $ac_compile) 2>&5
7171   ac_status=$?
7172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7173   test $ac_status = 0; }; then
7174     case `/usr/bin/file conftest.$ac_objext` in
7175       *ELF-32*)
7176         HPUX_IA64_MODE="32"
7177         ;;
7178       *ELF-64*)
7179         HPUX_IA64_MODE="64"
7180         ;;
7181     esac
7182   fi
7183   rm -rf conftest*
7184   ;;
7185 *-*-irix6*)
7186   # Find out which ABI we are using.
7187   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7188   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7189   (eval $ac_compile) 2>&5
7190   ac_status=$?
7191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192   test $ac_status = 0; }; then
7193     if test "$lt_cv_prog_gnu_ld" = yes; then
7194       case `/usr/bin/file conftest.$ac_objext` in
7195         *32-bit*)
7196           LD="${LD-ld} -melf32bsmip"
7197           ;;
7198         *N32*)
7199           LD="${LD-ld} -melf32bmipn32"
7200           ;;
7201         *64-bit*)
7202           LD="${LD-ld} -melf64bmip"
7203         ;;
7204       esac
7205     else
7206       case `/usr/bin/file conftest.$ac_objext` in
7207         *32-bit*)
7208           LD="${LD-ld} -32"
7209           ;;
7210         *N32*)
7211           LD="${LD-ld} -n32"
7212           ;;
7213         *64-bit*)
7214           LD="${LD-ld} -64"
7215           ;;
7216       esac
7217     fi
7218   fi
7219   rm -rf conftest*
7220   ;;
7221
7222 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7223 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7224   # Find out which ABI we are using.
7225   echo 'int i;' > conftest.$ac_ext
7226   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7227   (eval $ac_compile) 2>&5
7228   ac_status=$?
7229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7230   test $ac_status = 0; }; then
7231     case `/usr/bin/file conftest.o` in
7232       *32-bit*)
7233         case $host in
7234           x86_64-*kfreebsd*-gnu)
7235             LD="${LD-ld} -m elf_i386_fbsd"
7236             ;;
7237           x86_64-*linux*)
7238             LD="${LD-ld} -m elf_i386"
7239             ;;
7240           ppc64-*linux*|powerpc64-*linux*)
7241             LD="${LD-ld} -m elf32ppclinux"
7242             ;;
7243           s390x-*linux*)
7244             LD="${LD-ld} -m elf_s390"
7245             ;;
7246           sparc64-*linux*)
7247             LD="${LD-ld} -m elf32_sparc"
7248             ;;
7249         esac
7250         ;;
7251       *64-bit*)
7252         case $host in
7253           x86_64-*kfreebsd*-gnu)
7254             LD="${LD-ld} -m elf_x86_64_fbsd"
7255             ;;
7256           x86_64-*linux*)
7257             LD="${LD-ld} -m elf_x86_64"
7258             ;;
7259           ppc*-*linux*|powerpc*-*linux*)
7260             LD="${LD-ld} -m elf64ppc"
7261             ;;
7262           s390*-*linux*|s390*-*tpf*)
7263             LD="${LD-ld} -m elf64_s390"
7264             ;;
7265           sparc*-*linux*)
7266             LD="${LD-ld} -m elf64_sparc"
7267             ;;
7268         esac
7269         ;;
7270     esac
7271   fi
7272   rm -rf conftest*
7273   ;;
7274
7275 *-*-sco3.2v5*)
7276   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7277   SAVE_CFLAGS="$CFLAGS"
7278   CFLAGS="$CFLAGS -belf"
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7280 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7281 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   ac_ext=c
7285 ac_cpp='$CPP $CPPFLAGS'
7286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7289
7290      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h.  */
7292
7293 int
7294 main ()
7295 {
7296
7297   ;
7298   return 0;
7299 }
7300 _ACEOF
7301 if ac_fn_c_try_link "$LINENO"; then :
7302   lt_cv_cc_needs_belf=yes
7303 else
7304   lt_cv_cc_needs_belf=no
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext \
7307     conftest$ac_exeext conftest.$ac_ext
7308      ac_ext=c
7309 ac_cpp='$CPP $CPPFLAGS'
7310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313
7314 fi
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7316 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7317   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7318     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7319     CFLAGS="$SAVE_CFLAGS"
7320   fi
7321   ;;
7322 sparc*-*solaris*)
7323   # Find out which ABI we are using.
7324   echo 'int i;' > conftest.$ac_ext
7325   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7326   (eval $ac_compile) 2>&5
7327   ac_status=$?
7328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7329   test $ac_status = 0; }; then
7330     case `/usr/bin/file conftest.o` in
7331     *64-bit*)
7332       case $lt_cv_prog_gnu_ld in
7333       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7334       *)
7335         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7336           LD="${LD-ld} -64"
7337         fi
7338         ;;
7339       esac
7340       ;;
7341     esac
7342   fi
7343   rm -rf conftest*
7344   ;;
7345 esac
7346
7347 need_locks="$enable_libtool_lock"
7348
7349
7350   case $host_os in
7351     rhapsody* | darwin*)
7352     if test -n "$ac_tool_prefix"; then
7353   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7354 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   if test -n "$DSYMUTIL"; then
7361   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366   IFS=$as_save_IFS
7367   test -z "$as_dir" && as_dir=.
7368     for ac_exec_ext in '' $ac_executable_extensions; do
7369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372     break 2
7373   fi
7374 done
7375   done
7376 IFS=$as_save_IFS
7377
7378 fi
7379 fi
7380 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7381 if test -n "$DSYMUTIL"; then
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7383 $as_echo "$DSYMUTIL" >&6; }
7384 else
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388
7389
7390 fi
7391 if test -z "$ac_cv_prog_DSYMUTIL"; then
7392   ac_ct_DSYMUTIL=$DSYMUTIL
7393   # Extract the first word of "dsymutil", so it can be a program name with args.
7394 set dummy dsymutil; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   if test -n "$ac_ct_DSYMUTIL"; then
7401   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7402 else
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408     for ac_exec_ext in '' $ac_executable_extensions; do
7409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7410     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415   done
7416 IFS=$as_save_IFS
7417
7418 fi
7419 fi
7420 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7421 if test -n "$ac_ct_DSYMUTIL"; then
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7423 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7424 else
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 fi
7428
7429   if test "x$ac_ct_DSYMUTIL" = x; then
7430     DSYMUTIL=":"
7431   else
7432     case $cross_compiling:$ac_tool_warned in
7433 yes:)
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7437 esac
7438     DSYMUTIL=$ac_ct_DSYMUTIL
7439   fi
7440 else
7441   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7442 fi
7443
7444     if test -n "$ac_tool_prefix"; then
7445   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   if test -n "$NMEDIT"; then
7453   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458   IFS=$as_save_IFS
7459   test -z "$as_dir" && as_dir=.
7460     for ac_exec_ext in '' $ac_executable_extensions; do
7461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467   done
7468 IFS=$as_save_IFS
7469
7470 fi
7471 fi
7472 NMEDIT=$ac_cv_prog_NMEDIT
7473 if test -n "$NMEDIT"; then
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7475 $as_echo "$NMEDIT" >&6; }
7476 else
7477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7479 fi
7480
7481
7482 fi
7483 if test -z "$ac_cv_prog_NMEDIT"; then
7484   ac_ct_NMEDIT=$NMEDIT
7485   # Extract the first word of "nmedit", so it can be a program name with args.
7486 set dummy nmedit; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   if test -n "$ac_ct_NMEDIT"; then
7493   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500     for ac_exec_ext in '' $ac_executable_extensions; do
7501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507   done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7513 if test -n "$ac_ct_NMEDIT"; then
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7515 $as_echo "$ac_ct_NMEDIT" >&6; }
7516 else
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521   if test "x$ac_ct_NMEDIT" = x; then
7522     NMEDIT=":"
7523   else
7524     case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530     NMEDIT=$ac_ct_NMEDIT
7531   fi
7532 else
7533   NMEDIT="$ac_cv_prog_NMEDIT"
7534 fi
7535
7536     if test -n "$ac_tool_prefix"; then
7537   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_LIPO+set}" = set; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   if test -n "$LIPO"; then
7545   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552     for ac_exec_ext in '' $ac_executable_extensions; do
7553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559   done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 LIPO=$ac_cv_prog_LIPO
7565 if test -n "$LIPO"; then
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7567 $as_echo "$LIPO" >&6; }
7568 else
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 fi
7575 if test -z "$ac_cv_prog_LIPO"; then
7576   ac_ct_LIPO=$LIPO
7577   # Extract the first word of "lipo", so it can be a program name with args.
7578 set dummy lipo; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7582   $as_echo_n "(cached) " >&6
7583 else
7584   if test -n "$ac_ct_LIPO"; then
7585   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592     for ac_exec_ext in '' $ac_executable_extensions; do
7593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594     ac_cv_prog_ac_ct_LIPO="lipo"
7595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599   done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7605 if test -n "$ac_ct_LIPO"; then
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7607 $as_echo "$ac_ct_LIPO" >&6; }
7608 else
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613   if test "x$ac_ct_LIPO" = x; then
7614     LIPO=":"
7615   else
7616     case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622     LIPO=$ac_ct_LIPO
7623   fi
7624 else
7625   LIPO="$ac_cv_prog_LIPO"
7626 fi
7627
7628     if test -n "$ac_tool_prefix"; then
7629   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}otool; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   if test -n "$OTOOL"; then
7637   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644     for ac_exec_ext in '' $ac_executable_extensions; do
7645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651   done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 OTOOL=$ac_cv_prog_OTOOL
7657 if test -n "$OTOOL"; then
7658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7659 $as_echo "$OTOOL" >&6; }
7660 else
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7663 fi
7664
7665
7666 fi
7667 if test -z "$ac_cv_prog_OTOOL"; then
7668   ac_ct_OTOOL=$OTOOL
7669   # Extract the first word of "otool", so it can be a program name with args.
7670 set dummy otool; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7674   $as_echo_n "(cached) " >&6
7675 else
7676   if test -n "$ac_ct_OTOOL"; then
7677   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684     for ac_exec_ext in '' $ac_executable_extensions; do
7685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686     ac_cv_prog_ac_ct_OTOOL="otool"
7687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691   done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7697 if test -n "$ac_ct_OTOOL"; then
7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7699 $as_echo "$ac_ct_OTOOL" >&6; }
7700 else
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705   if test "x$ac_ct_OTOOL" = x; then
7706     OTOOL=":"
7707   else
7708     case $cross_compiling:$ac_tool_warned in
7709 yes:)
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7713 esac
7714     OTOOL=$ac_ct_OTOOL
7715   fi
7716 else
7717   OTOOL="$ac_cv_prog_OTOOL"
7718 fi
7719
7720     if test -n "$ac_tool_prefix"; then
7721   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7726   $as_echo_n "(cached) " >&6
7727 else
7728   if test -n "$OTOOL64"; then
7729   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734   IFS=$as_save_IFS
7735   test -z "$as_dir" && as_dir=.
7736     for ac_exec_ext in '' $ac_executable_extensions; do
7737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7738     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740     break 2
7741   fi
7742 done
7743   done
7744 IFS=$as_save_IFS
7745
7746 fi
7747 fi
7748 OTOOL64=$ac_cv_prog_OTOOL64
7749 if test -n "$OTOOL64"; then
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7751 $as_echo "$OTOOL64" >&6; }
7752 else
7753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756
7757
7758 fi
7759 if test -z "$ac_cv_prog_OTOOL64"; then
7760   ac_ct_OTOOL64=$OTOOL64
7761   # Extract the first word of "otool64", so it can be a program name with args.
7762 set dummy otool64; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   if test -n "$ac_ct_OTOOL64"; then
7769   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776     for ac_exec_ext in '' $ac_executable_extensions; do
7777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778     ac_cv_prog_ac_ct_OTOOL64="otool64"
7779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783   done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7789 if test -n "$ac_ct_OTOOL64"; then
7790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7791 $as_echo "$ac_ct_OTOOL64" >&6; }
7792 else
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797   if test "x$ac_ct_OTOOL64" = x; then
7798     OTOOL64=":"
7799   else
7800     case $cross_compiling:$ac_tool_warned in
7801 yes:)
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804 ac_tool_warned=yes ;;
7805 esac
7806     OTOOL64=$ac_ct_OTOOL64
7807   fi
7808 else
7809   OTOOL64="$ac_cv_prog_OTOOL64"
7810 fi
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7839 $as_echo_n "checking for -single_module linker flag... " >&6; }
7840 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7841   $as_echo_n "(cached) " >&6
7842 else
7843   lt_cv_apple_cc_single_mod=no
7844       if test -z "${LT_MULTI_MODULE}"; then
7845         # By default we will add the -single_module flag. You can override
7846         # by either setting the environment variable LT_MULTI_MODULE
7847         # non-empty at configure time, or by adding -multi_module to the
7848         # link flags.
7849         rm -rf libconftest.dylib*
7850         echo "int foo(void){return 1;}" > conftest.c
7851         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7852 -dynamiclib -Wl,-single_module conftest.c" >&5
7853         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7854           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7855         _lt_result=$?
7856         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7857           lt_cv_apple_cc_single_mod=yes
7858         else
7859           cat conftest.err >&5
7860         fi
7861         rm -rf libconftest.dylib*
7862         rm -f conftest.*
7863       fi
7864 fi
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7866 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7868 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7869 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7870   $as_echo_n "(cached) " >&6
7871 else
7872   lt_cv_ld_exported_symbols_list=no
7873       save_LDFLAGS=$LDFLAGS
7874       echo "_main" > conftest.sym
7875       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7876       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h.  */
7878
7879 int
7880 main ()
7881 {
7882
7883   ;
7884   return 0;
7885 }
7886 _ACEOF
7887 if ac_fn_c_try_link "$LINENO"; then :
7888   lt_cv_ld_exported_symbols_list=yes
7889 else
7890   lt_cv_ld_exported_symbols_list=no
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext \
7893     conftest$ac_exeext conftest.$ac_ext
7894         LDFLAGS="$save_LDFLAGS"
7895
7896 fi
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7898 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7900 $as_echo_n "checking for -force_load linker flag... " >&6; }
7901 if test "${lt_cv_ld_force_load+set}" = set; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   lt_cv_ld_force_load=no
7905       cat > conftest.c << _LT_EOF
7906 int forced_loaded() { return 2;}
7907 _LT_EOF
7908       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7909       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7910       echo "$AR cru libconftest.a conftest.o" >&5
7911       $AR cru libconftest.a conftest.o 2>&5
7912       cat > conftest.c << _LT_EOF
7913 int main() { return 0;}
7914 _LT_EOF
7915       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7916       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7917       _lt_result=$?
7918       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7919         lt_cv_ld_force_load=yes
7920       else
7921         cat conftest.err >&5
7922       fi
7923         rm -f conftest.err libconftest.a conftest conftest.c
7924         rm -rf conftest.dSYM
7925
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7928 $as_echo "$lt_cv_ld_force_load" >&6; }
7929     case $host_os in
7930     rhapsody* | darwin1.[012])
7931       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7932     darwin1.*)
7933       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7934     darwin*) # darwin 5.x on
7935       # if running on 10.5 or later, the deployment target defaults
7936       # to the OS version, if on x86, and 10.4, the deployment
7937       # target defaults to 10.4. Don't you love it?
7938       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7939         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7940           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7941         10.[012]*)
7942           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7943         10.*)
7944           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7945       esac
7946     ;;
7947   esac
7948     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7949       _lt_dar_single_mod='$single_module'
7950     fi
7951     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7952       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7953     else
7954       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7955     fi
7956     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7957       _lt_dsymutil='~$DSYMUTIL $lib || :'
7958     else
7959       _lt_dsymutil=
7960     fi
7961     ;;
7962   esac
7963
7964 ac_ext=c
7965 ac_cpp='$CPP $CPPFLAGS'
7966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7971 # On Suns, sometimes $CPP names a directory.
7972 if test -n "$CPP" && test -d "$CPP"; then
7973   CPP=
7974 fi
7975 if test -z "$CPP"; then
7976   if test "${ac_cv_prog_CPP+set}" = set; then :
7977   $as_echo_n "(cached) " >&6
7978 else
7979       # Double quotes because CPP needs to be expanded
7980     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7981     do
7982       ac_preproc_ok=false
7983 for ac_c_preproc_warn_flag in '' yes
7984 do
7985   # Use a header file that comes with gcc, so configuring glibc
7986   # with a fresh cross-compiler works.
7987   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7988   # <limits.h> exists even on freestanding compilers.
7989   # On the NeXT, cc -E runs the code through the compiler's parser,
7990   # not just through cpp. "Syntax error" is here to catch this case.
7991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h.  */
7993 #ifdef __STDC__
7994 # include <limits.h>
7995 #else
7996 # include <assert.h>
7997 #endif
7998                      Syntax error
7999 _ACEOF
8000 if ac_fn_c_try_cpp "$LINENO"; then :
8001
8002 else
8003   # Broken: fails on valid input.
8004 continue
8005 fi
8006 rm -f conftest.err conftest.$ac_ext
8007
8008   # OK, works on sane cases.  Now check whether nonexistent headers
8009   # can be detected and how.
8010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h.  */
8012 #include <ac_nonexistent.h>
8013 _ACEOF
8014 if ac_fn_c_try_cpp "$LINENO"; then :
8015   # Broken: success on invalid input.
8016 continue
8017 else
8018   # Passes both tests.
8019 ac_preproc_ok=:
8020 break
8021 fi
8022 rm -f conftest.err conftest.$ac_ext
8023
8024 done
8025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8026 rm -f conftest.err conftest.$ac_ext
8027 if $ac_preproc_ok; then :
8028   break
8029 fi
8030
8031     done
8032     ac_cv_prog_CPP=$CPP
8033
8034 fi
8035   CPP=$ac_cv_prog_CPP
8036 else
8037   ac_cv_prog_CPP=$CPP
8038 fi
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8040 $as_echo "$CPP" >&6; }
8041 ac_preproc_ok=false
8042 for ac_c_preproc_warn_flag in '' yes
8043 do
8044   # Use a header file that comes with gcc, so configuring glibc
8045   # with a fresh cross-compiler works.
8046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8047   # <limits.h> exists even on freestanding compilers.
8048   # On the NeXT, cc -E runs the code through the compiler's parser,
8049   # not just through cpp. "Syntax error" is here to catch this case.
8050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h.  */
8052 #ifdef __STDC__
8053 # include <limits.h>
8054 #else
8055 # include <assert.h>
8056 #endif
8057                      Syntax error
8058 _ACEOF
8059 if ac_fn_c_try_cpp "$LINENO"; then :
8060
8061 else
8062   # Broken: fails on valid input.
8063 continue
8064 fi
8065 rm -f conftest.err conftest.$ac_ext
8066
8067   # OK, works on sane cases.  Now check whether nonexistent headers
8068   # can be detected and how.
8069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h.  */
8071 #include <ac_nonexistent.h>
8072 _ACEOF
8073 if ac_fn_c_try_cpp "$LINENO"; then :
8074   # Broken: success on invalid input.
8075 continue
8076 else
8077   # Passes both tests.
8078 ac_preproc_ok=:
8079 break
8080 fi
8081 rm -f conftest.err conftest.$ac_ext
8082
8083 done
8084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8085 rm -f conftest.err conftest.$ac_ext
8086 if $ac_preproc_ok; then :
8087
8088 else
8089   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8091 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8092 See \`config.log' for more details." "$LINENO" 5; }
8093 fi
8094
8095 ac_ext=c
8096 ac_cpp='$CPP $CPPFLAGS'
8097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8100
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8103 $as_echo_n "checking for ANSI C header files... " >&6; }
8104 if test "${ac_cv_header_stdc+set}" = set; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h.  */
8109 #include <stdlib.h>
8110 #include <stdarg.h>
8111 #include <string.h>
8112 #include <float.h>
8113
8114 int
8115 main ()
8116 {
8117
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_compile "$LINENO"; then :
8123   ac_cv_header_stdc=yes
8124 else
8125   ac_cv_header_stdc=no
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128
8129 if test $ac_cv_header_stdc = yes; then
8130   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h.  */
8133 #include <string.h>
8134
8135 _ACEOF
8136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8137   $EGREP "memchr" >/dev/null 2>&1; then :
8138
8139 else
8140   ac_cv_header_stdc=no
8141 fi
8142 rm -f conftest*
8143
8144 fi
8145
8146 if test $ac_cv_header_stdc = yes; then
8147   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h.  */
8150 #include <stdlib.h>
8151
8152 _ACEOF
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154   $EGREP "free" >/dev/null 2>&1; then :
8155
8156 else
8157   ac_cv_header_stdc=no
8158 fi
8159 rm -f conftest*
8160
8161 fi
8162
8163 if test $ac_cv_header_stdc = yes; then
8164   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8165   if test "$cross_compiling" = yes; then :
8166   :
8167 else
8168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h.  */
8170 #include <ctype.h>
8171 #include <stdlib.h>
8172 #if ((' ' & 0x0FF) == 0x020)
8173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8175 #else
8176 # define ISLOWER(c) \
8177                    (('a' <= (c) && (c) <= 'i') \
8178                      || ('j' <= (c) && (c) <= 'r') \
8179                      || ('s' <= (c) && (c) <= 'z'))
8180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8181 #endif
8182
8183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8184 int
8185 main ()
8186 {
8187   int i;
8188   for (i = 0; i < 256; i++)
8189     if (XOR (islower (i), ISLOWER (i))
8190         || toupper (i) != TOUPPER (i))
8191       return 2;
8192   return 0;
8193 }
8194 _ACEOF
8195 if ac_fn_c_try_run "$LINENO"; then :
8196
8197 else
8198   ac_cv_header_stdc=no
8199 fi
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8201   conftest.$ac_objext conftest.beam conftest.$ac_ext
8202 fi
8203
8204 fi
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8207 $as_echo "$ac_cv_header_stdc" >&6; }
8208 if test $ac_cv_header_stdc = yes; then
8209
8210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8211
8212 fi
8213
8214 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8215 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8216                   inttypes.h stdint.h unistd.h
8217 do :
8218   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8219 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8220 "
8221 eval as_val=\$$as_ac_Header
8222    if test "x$as_val" = x""yes; then :
8223   cat >>confdefs.h <<_ACEOF
8224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8225 _ACEOF
8226
8227 fi
8228
8229 done
8230
8231
8232 for ac_header in dlfcn.h
8233 do :
8234   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8235 "
8236 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8237   cat >>confdefs.h <<_ACEOF
8238 #define HAVE_DLFCN_H 1
8239 _ACEOF
8240
8241 fi
8242
8243 done
8244
8245
8246
8247
8248
8249
8250 # Set options
8251
8252
8253
8254         enable_dlopen=no
8255
8256
8257   enable_win32_dll=no
8258
8259
8260             # Check whether --enable-shared was given.
8261 if test "${enable_shared+set}" = set; then :
8262   enableval=$enable_shared; p=${PACKAGE-default}
8263     case $enableval in
8264     yes) enable_shared=yes ;;
8265     no) enable_shared=no ;;
8266     *)
8267       enable_shared=no
8268       # Look at the argument we got.  We use all the common list separators.
8269       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8270       for pkg in $enableval; do
8271         IFS="$lt_save_ifs"
8272         if test "X$pkg" = "X$p"; then
8273           enable_shared=yes
8274         fi
8275       done
8276       IFS="$lt_save_ifs"
8277       ;;
8278     esac
8279 else
8280   enable_shared=yes
8281 fi
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291   # Check whether --enable-static was given.
8292 if test "${enable_static+set}" = set; then :
8293   enableval=$enable_static; p=${PACKAGE-default}
8294     case $enableval in
8295     yes) enable_static=yes ;;
8296     no) enable_static=no ;;
8297     *)
8298      enable_static=no
8299       # Look at the argument we got.  We use all the common list separators.
8300       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8301       for pkg in $enableval; do
8302         IFS="$lt_save_ifs"
8303         if test "X$pkg" = "X$p"; then
8304           enable_static=yes
8305         fi
8306       done
8307       IFS="$lt_save_ifs"
8308       ;;
8309     esac
8310 else
8311   enable_static=yes
8312 fi
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323 # Check whether --with-pic was given.
8324 if test "${with_pic+set}" = set; then :
8325   withval=$with_pic; pic_mode="$withval"
8326 else
8327   pic_mode=default
8328 fi
8329
8330
8331 test -z "$pic_mode" && pic_mode=default
8332
8333
8334
8335
8336
8337
8338
8339   # Check whether --enable-fast-install was given.
8340 if test "${enable_fast_install+set}" = set; then :
8341   enableval=$enable_fast_install; p=${PACKAGE-default}
8342     case $enableval in
8343     yes) enable_fast_install=yes ;;
8344     no) enable_fast_install=no ;;
8345     *)
8346       enable_fast_install=no
8347       # Look at the argument we got.  We use all the common list separators.
8348       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8349       for pkg in $enableval; do
8350         IFS="$lt_save_ifs"
8351         if test "X$pkg" = "X$p"; then
8352           enable_fast_install=yes
8353         fi
8354       done
8355       IFS="$lt_save_ifs"
8356       ;;
8357     esac
8358 else
8359   enable_fast_install=yes
8360 fi
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372 # This can be used to rebuild libtool when needed
8373 LIBTOOL_DEPS="$ltmain"
8374
8375 # Always use our own libtool.
8376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403 test -z "$LN_S" && LN_S="ln -s"
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418 if test -n "${ZSH_VERSION+set}" ; then
8419    setopt NO_GLOB_SUBST
8420 fi
8421
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8423 $as_echo_n "checking for objdir... " >&6; }
8424 if test "${lt_cv_objdir+set}" = set; then :
8425   $as_echo_n "(cached) " >&6
8426 else
8427   rm -f .libs 2>/dev/null
8428 mkdir .libs 2>/dev/null
8429 if test -d .libs; then
8430   lt_cv_objdir=.libs
8431 else
8432   # MS-DOS does not allow filenames that begin with a dot.
8433   lt_cv_objdir=_libs
8434 fi
8435 rmdir .libs 2>/dev/null
8436 fi
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8438 $as_echo "$lt_cv_objdir" >&6; }
8439 objdir=$lt_cv_objdir
8440
8441
8442
8443
8444
8445 cat >>confdefs.h <<_ACEOF
8446 #define LT_OBJDIR "$lt_cv_objdir/"
8447 _ACEOF
8448
8449
8450
8451
8452 case $host_os in
8453 aix3*)
8454   # AIX sometimes has problems with the GCC collect2 program.  For some
8455   # reason, if we set the COLLECT_NAMES environment variable, the problems
8456   # vanish in a puff of smoke.
8457   if test "X${COLLECT_NAMES+set}" != Xset; then
8458     COLLECT_NAMES=
8459     export COLLECT_NAMES
8460   fi
8461   ;;
8462 esac
8463
8464 # Global variables:
8465 ofile=libtool
8466 can_build_shared=yes
8467
8468 # All known linkers require a `.a' archive for static linking (except MSVC,
8469 # which needs '.lib').
8470 libext=a
8471
8472 with_gnu_ld="$lt_cv_prog_gnu_ld"
8473
8474 old_CC="$CC"
8475 old_CFLAGS="$CFLAGS"
8476
8477 # Set sane defaults for various variables
8478 test -z "$CC" && CC=cc
8479 test -z "$LTCC" && LTCC=$CC
8480 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8481 test -z "$LD" && LD=ld
8482 test -z "$ac_objext" && ac_objext=o
8483
8484 for cc_temp in $compiler""; do
8485   case $cc_temp in
8486     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8487     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8488     \-*) ;;
8489     *) break;;
8490   esac
8491 done
8492 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8493
8494
8495 # Only perform the check for file, if the check method requires it
8496 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8497 case $deplibs_check_method in
8498 file_magic*)
8499   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8501 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8502 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8503   $as_echo_n "(cached) " >&6
8504 else
8505   case $MAGIC_CMD in
8506 [\\/*] |  ?:[\\/]*)
8507   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8508   ;;
8509 *)
8510   lt_save_MAGIC_CMD="$MAGIC_CMD"
8511   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8512   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8513   for ac_dir in $ac_dummy; do
8514     IFS="$lt_save_ifs"
8515     test -z "$ac_dir" && ac_dir=.
8516     if test -f $ac_dir/${ac_tool_prefix}file; then
8517       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8518       if test -n "$file_magic_test_file"; then
8519         case $deplibs_check_method in
8520         "file_magic "*)
8521           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8522           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8523           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8524             $EGREP "$file_magic_regex" > /dev/null; then
8525             :
8526           else
8527             cat <<_LT_EOF 1>&2
8528
8529 *** Warning: the command libtool uses to detect shared libraries,
8530 *** $file_magic_cmd, produces output that libtool cannot recognize.
8531 *** The result is that libtool may fail to recognize shared libraries
8532 *** as such.  This will affect the creation of libtool libraries that
8533 *** depend on shared libraries, but programs linked with such libtool
8534 *** libraries will work regardless of this problem.  Nevertheless, you
8535 *** may want to report the problem to your system manager and/or to
8536 *** bug-libtool@gnu.org
8537
8538 _LT_EOF
8539           fi ;;
8540         esac
8541       fi
8542       break
8543     fi
8544   done
8545   IFS="$lt_save_ifs"
8546   MAGIC_CMD="$lt_save_MAGIC_CMD"
8547   ;;
8548 esac
8549 fi
8550
8551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8552 if test -n "$MAGIC_CMD"; then
8553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8554 $as_echo "$MAGIC_CMD" >&6; }
8555 else
8556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 $as_echo "no" >&6; }
8558 fi
8559
8560
8561
8562
8563
8564 if test -z "$lt_cv_path_MAGIC_CMD"; then
8565   if test -n "$ac_tool_prefix"; then
8566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8567 $as_echo_n "checking for file... " >&6; }
8568 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8569   $as_echo_n "(cached) " >&6
8570 else
8571   case $MAGIC_CMD in
8572 [\\/*] |  ?:[\\/]*)
8573   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8574   ;;
8575 *)
8576   lt_save_MAGIC_CMD="$MAGIC_CMD"
8577   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8578   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8579   for ac_dir in $ac_dummy; do
8580     IFS="$lt_save_ifs"
8581     test -z "$ac_dir" && ac_dir=.
8582     if test -f $ac_dir/file; then
8583       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8584       if test -n "$file_magic_test_file"; then
8585         case $deplibs_check_method in
8586         "file_magic "*)
8587           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8588           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8589           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8590             $EGREP "$file_magic_regex" > /dev/null; then
8591             :
8592           else
8593             cat <<_LT_EOF 1>&2
8594
8595 *** Warning: the command libtool uses to detect shared libraries,
8596 *** $file_magic_cmd, produces output that libtool cannot recognize.
8597 *** The result is that libtool may fail to recognize shared libraries
8598 *** as such.  This will affect the creation of libtool libraries that
8599 *** depend on shared libraries, but programs linked with such libtool
8600 *** libraries will work regardless of this problem.  Nevertheless, you
8601 *** may want to report the problem to your system manager and/or to
8602 *** bug-libtool@gnu.org
8603
8604 _LT_EOF
8605           fi ;;
8606         esac
8607       fi
8608       break
8609     fi
8610   done
8611   IFS="$lt_save_ifs"
8612   MAGIC_CMD="$lt_save_MAGIC_CMD"
8613   ;;
8614 esac
8615 fi
8616
8617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8618 if test -n "$MAGIC_CMD"; then
8619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8620 $as_echo "$MAGIC_CMD" >&6; }
8621 else
8622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8624 fi
8625
8626
8627   else
8628     MAGIC_CMD=:
8629   fi
8630 fi
8631
8632   fi
8633   ;;
8634 esac
8635
8636 # Use C for the default configuration in the libtool script
8637
8638 lt_save_CC="$CC"
8639 ac_ext=c
8640 ac_cpp='$CPP $CPPFLAGS'
8641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8644
8645
8646 # Source file extension for C test sources.
8647 ac_ext=c
8648
8649 # Object file extension for compiled C test sources.
8650 objext=o
8651 objext=$objext
8652
8653 # Code to be used in simple compile tests
8654 lt_simple_compile_test_code="int some_variable = 0;"
8655
8656 # Code to be used in simple link tests
8657 lt_simple_link_test_code='int main(){return(0);}'
8658
8659
8660
8661
8662
8663
8664
8665 # If no C compiler was specified, use CC.
8666 LTCC=${LTCC-"$CC"}
8667
8668 # If no C compiler flags were specified, use CFLAGS.
8669 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8670
8671 # Allow CC to be a program name with arguments.
8672 compiler=$CC
8673
8674 # Save the default compiler, since it gets overwritten when the other
8675 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8676 compiler_DEFAULT=$CC
8677
8678 # save warnings/boilerplate of simple test code
8679 ac_outfile=conftest.$ac_objext
8680 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8681 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8682 _lt_compiler_boilerplate=`cat conftest.err`
8683 $RM conftest*
8684
8685 ac_outfile=conftest.$ac_objext
8686 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8687 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8688 _lt_linker_boilerplate=`cat conftest.err`
8689 $RM -r conftest*
8690
8691
8692 ## CAVEAT EMPTOR:
8693 ## There is no encapsulation within the following macros, do not change
8694 ## the running order or otherwise move them around unless you know exactly
8695 ## what you are doing...
8696 if test -n "$compiler"; then
8697
8698 lt_prog_compiler_no_builtin_flag=
8699
8700 if test "$GCC" = yes; then
8701   case $cc_basename in
8702   nvcc*)
8703     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8704   *)
8705     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8706   esac
8707
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8709 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8710 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8711   $as_echo_n "(cached) " >&6
8712 else
8713   lt_cv_prog_compiler_rtti_exceptions=no
8714    ac_outfile=conftest.$ac_objext
8715    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8716    lt_compiler_flag="-fno-rtti -fno-exceptions"
8717    # Insert the option either (1) after the last *FLAGS variable, or
8718    # (2) before a word containing "conftest.", or (3) at the end.
8719    # Note that $ac_compile itself does not contain backslashes and begins
8720    # with a dollar sign (not a hyphen), so the echo should work correctly.
8721    # The option is referenced via a variable to avoid confusing sed.
8722    lt_compile=`echo "$ac_compile" | $SED \
8723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8725    -e 's:$: $lt_compiler_flag:'`
8726    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8727    (eval "$lt_compile" 2>conftest.err)
8728    ac_status=$?
8729    cat conftest.err >&5
8730    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731    if (exit $ac_status) && test -s "$ac_outfile"; then
8732      # The compiler can only warn and ignore the option if not recognized
8733      # So say no if there are warnings other than the usual output.
8734      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8735      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8736      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8737        lt_cv_prog_compiler_rtti_exceptions=yes
8738      fi
8739    fi
8740    $RM conftest*
8741
8742 fi
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8744 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8745
8746 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8747     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8748 else
8749     :
8750 fi
8751
8752 fi
8753
8754
8755
8756
8757
8758
8759   lt_prog_compiler_wl=
8760 lt_prog_compiler_pic=
8761 lt_prog_compiler_static=
8762
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8764 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8765
8766   if test "$GCC" = yes; then
8767     lt_prog_compiler_wl='-Wl,'
8768     lt_prog_compiler_static='-static'
8769
8770     case $host_os in
8771       aix*)
8772       # All AIX code is PIC.
8773       if test "$host_cpu" = ia64; then
8774         # AIX 5 now supports IA64 processor
8775         lt_prog_compiler_static='-Bstatic'
8776       fi
8777       ;;
8778
8779     amigaos*)
8780       case $host_cpu in
8781       powerpc)
8782             # see comment about AmigaOS4 .so support
8783             lt_prog_compiler_pic='-fPIC'
8784         ;;
8785       m68k)
8786             # FIXME: we need at least 68020 code to build shared libraries, but
8787             # adding the `-m68020' flag to GCC prevents building anything better,
8788             # like `-m68040'.
8789             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8790         ;;
8791       esac
8792       ;;
8793
8794     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8795       # PIC is the default for these OSes.
8796       ;;
8797
8798     mingw* | cygwin* | pw32* | os2* | cegcc*)
8799       # This hack is so that the source file can tell whether it is being
8800       # built for inclusion in a dll (and should export symbols for example).
8801       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8802       # (--disable-auto-import) libraries
8803       lt_prog_compiler_pic='-DDLL_EXPORT'
8804       ;;
8805
8806     darwin* | rhapsody*)
8807       # PIC is the default on this platform
8808       # Common symbols not allowed in MH_DYLIB files
8809       lt_prog_compiler_pic='-fno-common'
8810       ;;
8811
8812     haiku*)
8813       # PIC is the default for Haiku.
8814       # The "-static" flag exists, but is broken.
8815       lt_prog_compiler_static=
8816       ;;
8817
8818     hpux*)
8819       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8820       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8821       # sets the default TLS model and affects inlining.
8822       case $host_cpu in
8823       hppa*64*)
8824         # +Z the default
8825         ;;
8826       *)
8827         lt_prog_compiler_pic='-fPIC'
8828         ;;
8829       esac
8830       ;;
8831
8832     interix[3-9]*)
8833       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8834       # Instead, we relocate shared libraries at runtime.
8835       ;;
8836
8837     msdosdjgpp*)
8838       # Just because we use GCC doesn't mean we suddenly get shared libraries
8839       # on systems that don't support them.
8840       lt_prog_compiler_can_build_shared=no
8841       enable_shared=no
8842       ;;
8843
8844     *nto* | *qnx*)
8845       # QNX uses GNU C++, but need to define -shared option too, otherwise
8846       # it will coredump.
8847       lt_prog_compiler_pic='-fPIC -shared'
8848       ;;
8849
8850     sysv4*MP*)
8851       if test -d /usr/nec; then
8852         lt_prog_compiler_pic=-Kconform_pic
8853       fi
8854       ;;
8855
8856     *)
8857       lt_prog_compiler_pic='-fPIC'
8858       ;;
8859     esac
8860
8861     case $cc_basename in
8862     nvcc*) # Cuda Compiler Driver 2.2
8863       lt_prog_compiler_wl='-Xlinker '
8864       lt_prog_compiler_pic='-Xcompiler -fPIC'
8865       ;;
8866     esac
8867   else
8868     # PORTME Check for flag to pass linker flags through the system compiler.
8869     case $host_os in
8870     aix*)
8871       lt_prog_compiler_wl='-Wl,'
8872       if test "$host_cpu" = ia64; then
8873         # AIX 5 now supports IA64 processor
8874         lt_prog_compiler_static='-Bstatic'
8875       else
8876         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8877       fi
8878       ;;
8879
8880     mingw* | cygwin* | pw32* | os2* | cegcc*)
8881       # This hack is so that the source file can tell whether it is being
8882       # built for inclusion in a dll (and should export symbols for example).
8883       lt_prog_compiler_pic='-DDLL_EXPORT'
8884       ;;
8885
8886     hpux9* | hpux10* | hpux11*)
8887       lt_prog_compiler_wl='-Wl,'
8888       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8889       # not for PA HP-UX.
8890       case $host_cpu in
8891       hppa*64*|ia64*)
8892         # +Z the default
8893         ;;
8894       *)
8895         lt_prog_compiler_pic='+Z'
8896         ;;
8897       esac
8898       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8899       lt_prog_compiler_static='${wl}-a ${wl}archive'
8900       ;;
8901
8902     irix5* | irix6* | nonstopux*)
8903       lt_prog_compiler_wl='-Wl,'
8904       # PIC (with -KPIC) is the default.
8905       lt_prog_compiler_static='-non_shared'
8906       ;;
8907
8908     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8909       case $cc_basename in
8910       # old Intel for x86_64 which still supported -KPIC.
8911       ecc*)
8912         lt_prog_compiler_wl='-Wl,'
8913         lt_prog_compiler_pic='-KPIC'
8914         lt_prog_compiler_static='-static'
8915         ;;
8916       # icc used to be incompatible with GCC.
8917       # ICC 10 doesn't accept -KPIC any more.
8918       icc* | ifort*)
8919         lt_prog_compiler_wl='-Wl,'
8920         lt_prog_compiler_pic='-fPIC'
8921         lt_prog_compiler_static='-static'
8922         ;;
8923       # Lahey Fortran 8.1.
8924       lf95*)
8925         lt_prog_compiler_wl='-Wl,'
8926         lt_prog_compiler_pic='--shared'
8927         lt_prog_compiler_static='--static'
8928         ;;
8929       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8930         # Portland Group compilers (*not* the Pentium gcc compiler,
8931         # which looks to be a dead project)
8932         lt_prog_compiler_wl='-Wl,'
8933         lt_prog_compiler_pic='-fpic'
8934         lt_prog_compiler_static='-Bstatic'
8935         ;;
8936       ccc*)
8937         lt_prog_compiler_wl='-Wl,'
8938         # All Alpha code is PIC.
8939         lt_prog_compiler_static='-non_shared'
8940         ;;
8941       xl* | bgxl* | bgf* | mpixl*)
8942         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8943         lt_prog_compiler_wl='-Wl,'
8944         lt_prog_compiler_pic='-qpic'
8945         lt_prog_compiler_static='-qstaticlink'
8946         ;;
8947       *)
8948         case `$CC -V 2>&1 | sed 5q` in
8949         *Sun\ F* | *Sun*Fortran*)
8950           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8951           lt_prog_compiler_pic='-KPIC'
8952           lt_prog_compiler_static='-Bstatic'
8953           lt_prog_compiler_wl=''
8954           ;;
8955         *Sun\ C*)
8956           # Sun C 5.9
8957           lt_prog_compiler_pic='-KPIC'
8958           lt_prog_compiler_static='-Bstatic'
8959           lt_prog_compiler_wl='-Wl,'
8960           ;;
8961         esac
8962         ;;
8963       esac
8964       ;;
8965
8966     newsos6)
8967       lt_prog_compiler_pic='-KPIC'
8968       lt_prog_compiler_static='-Bstatic'
8969       ;;
8970
8971     *nto* | *qnx*)
8972       # QNX uses GNU C++, but need to define -shared option too, otherwise
8973       # it will coredump.
8974       lt_prog_compiler_pic='-fPIC -shared'
8975       ;;
8976
8977     osf3* | osf4* | osf5*)
8978       lt_prog_compiler_wl='-Wl,'
8979       # All OSF/1 code is PIC.
8980       lt_prog_compiler_static='-non_shared'
8981       ;;
8982
8983     rdos*)
8984       lt_prog_compiler_static='-non_shared'
8985       ;;
8986
8987     solaris*)
8988       lt_prog_compiler_pic='-KPIC'
8989       lt_prog_compiler_static='-Bstatic'
8990       case $cc_basename in
8991       f77* | f90* | f95*)
8992         lt_prog_compiler_wl='-Qoption ld ';;
8993       *)
8994         lt_prog_compiler_wl='-Wl,';;
8995       esac
8996       ;;
8997
8998     sunos4*)
8999       lt_prog_compiler_wl='-Qoption ld '
9000       lt_prog_compiler_pic='-PIC'
9001       lt_prog_compiler_static='-Bstatic'
9002       ;;
9003
9004     sysv4 | sysv4.2uw2* | sysv4.3*)
9005       lt_prog_compiler_wl='-Wl,'
9006       lt_prog_compiler_pic='-KPIC'
9007       lt_prog_compiler_static='-Bstatic'
9008       ;;
9009
9010     sysv4*MP*)
9011       if test -d /usr/nec ;then
9012         lt_prog_compiler_pic='-Kconform_pic'
9013         lt_prog_compiler_static='-Bstatic'
9014       fi
9015       ;;
9016
9017     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9018       lt_prog_compiler_wl='-Wl,'
9019       lt_prog_compiler_pic='-KPIC'
9020       lt_prog_compiler_static='-Bstatic'
9021       ;;
9022
9023     unicos*)
9024       lt_prog_compiler_wl='-Wl,'
9025       lt_prog_compiler_can_build_shared=no
9026       ;;
9027
9028     uts4*)
9029       lt_prog_compiler_pic='-pic'
9030       lt_prog_compiler_static='-Bstatic'
9031       ;;
9032
9033     *)
9034       lt_prog_compiler_can_build_shared=no
9035       ;;
9036     esac
9037   fi
9038
9039 case $host_os in
9040   # For platforms which do not support PIC, -DPIC is meaningless:
9041   *djgpp*)
9042     lt_prog_compiler_pic=
9043     ;;
9044   *)
9045     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9046     ;;
9047 esac
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9049 $as_echo "$lt_prog_compiler_pic" >&6; }
9050
9051
9052
9053
9054
9055
9056 #
9057 # Check to make sure the PIC flag actually works.
9058 #
9059 if test -n "$lt_prog_compiler_pic"; then
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9061 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9062 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9063   $as_echo_n "(cached) " >&6
9064 else
9065   lt_cv_prog_compiler_pic_works=no
9066    ac_outfile=conftest.$ac_objext
9067    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9068    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9069    # Insert the option either (1) after the last *FLAGS variable, or
9070    # (2) before a word containing "conftest.", or (3) at the end.
9071    # Note that $ac_compile itself does not contain backslashes and begins
9072    # with a dollar sign (not a hyphen), so the echo should work correctly.
9073    # The option is referenced via a variable to avoid confusing sed.
9074    lt_compile=`echo "$ac_compile" | $SED \
9075    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9076    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9077    -e 's:$: $lt_compiler_flag:'`
9078    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9079    (eval "$lt_compile" 2>conftest.err)
9080    ac_status=$?
9081    cat conftest.err >&5
9082    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083    if (exit $ac_status) && test -s "$ac_outfile"; then
9084      # The compiler can only warn and ignore the option if not recognized
9085      # So say no if there are warnings other than the usual output.
9086      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9087      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9089        lt_cv_prog_compiler_pic_works=yes
9090      fi
9091    fi
9092    $RM conftest*
9093
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9096 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9097
9098 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9099     case $lt_prog_compiler_pic in
9100      "" | " "*) ;;
9101      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9102      esac
9103 else
9104     lt_prog_compiler_pic=
9105      lt_prog_compiler_can_build_shared=no
9106 fi
9107
9108 fi
9109
9110
9111
9112
9113
9114
9115 #
9116 # Check to make sure the static flag actually works.
9117 #
9118 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9120 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9121 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9122   $as_echo_n "(cached) " >&6
9123 else
9124   lt_cv_prog_compiler_static_works=no
9125    save_LDFLAGS="$LDFLAGS"
9126    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9127    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9128    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9129      # The linker can only warn and ignore the option if not recognized
9130      # So say no if there are warnings
9131      if test -s conftest.err; then
9132        # Append any errors to the config.log.
9133        cat conftest.err 1>&5
9134        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9135        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9136        if diff conftest.exp conftest.er2 >/dev/null; then
9137          lt_cv_prog_compiler_static_works=yes
9138        fi
9139      else
9140        lt_cv_prog_compiler_static_works=yes
9141      fi
9142    fi
9143    $RM -r conftest*
9144    LDFLAGS="$save_LDFLAGS"
9145
9146 fi
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9148 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9149
9150 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9151     :
9152 else
9153     lt_prog_compiler_static=
9154 fi
9155
9156
9157
9158
9159
9160
9161
9162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9164 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9165   $as_echo_n "(cached) " >&6
9166 else
9167   lt_cv_prog_compiler_c_o=no
9168    $RM -r conftest 2>/dev/null
9169    mkdir conftest
9170    cd conftest
9171    mkdir out
9172    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9173
9174    lt_compiler_flag="-o out/conftest2.$ac_objext"
9175    # Insert the option either (1) after the last *FLAGS variable, or
9176    # (2) before a word containing "conftest.", or (3) at the end.
9177    # Note that $ac_compile itself does not contain backslashes and begins
9178    # with a dollar sign (not a hyphen), so the echo should work correctly.
9179    lt_compile=`echo "$ac_compile" | $SED \
9180    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9181    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9182    -e 's:$: $lt_compiler_flag:'`
9183    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9184    (eval "$lt_compile" 2>out/conftest.err)
9185    ac_status=$?
9186    cat out/conftest.err >&5
9187    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9189    then
9190      # The compiler can only warn and ignore the option if not recognized
9191      # So say no if there are warnings
9192      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9193      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9194      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9195        lt_cv_prog_compiler_c_o=yes
9196      fi
9197    fi
9198    chmod u+w . 2>&5
9199    $RM conftest*
9200    # SGI C++ compiler will create directory out/ii_files/ for
9201    # template instantiation
9202    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9203    $RM out/* && rmdir out
9204    cd ..
9205    $RM -r conftest
9206    $RM conftest*
9207
9208 fi
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9210 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9211
9212
9213
9214
9215
9216
9217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9218 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9219 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9220   $as_echo_n "(cached) " >&6
9221 else
9222   lt_cv_prog_compiler_c_o=no
9223    $RM -r conftest 2>/dev/null
9224    mkdir conftest
9225    cd conftest
9226    mkdir out
9227    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9228
9229    lt_compiler_flag="-o out/conftest2.$ac_objext"
9230    # Insert the option either (1) after the last *FLAGS variable, or
9231    # (2) before a word containing "conftest.", or (3) at the end.
9232    # Note that $ac_compile itself does not contain backslashes and begins
9233    # with a dollar sign (not a hyphen), so the echo should work correctly.
9234    lt_compile=`echo "$ac_compile" | $SED \
9235    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9236    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9237    -e 's:$: $lt_compiler_flag:'`
9238    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9239    (eval "$lt_compile" 2>out/conftest.err)
9240    ac_status=$?
9241    cat out/conftest.err >&5
9242    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9244    then
9245      # The compiler can only warn and ignore the option if not recognized
9246      # So say no if there are warnings
9247      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9248      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9249      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9250        lt_cv_prog_compiler_c_o=yes
9251      fi
9252    fi
9253    chmod u+w . 2>&5
9254    $RM conftest*
9255    # SGI C++ compiler will create directory out/ii_files/ for
9256    # template instantiation
9257    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9258    $RM out/* && rmdir out
9259    cd ..
9260    $RM -r conftest
9261    $RM conftest*
9262
9263 fi
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9265 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9266
9267
9268
9269
9270 hard_links="nottested"
9271 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9272   # do not overwrite the value of need_locks provided by the user
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9274 $as_echo_n "checking if we can lock with hard links... " >&6; }
9275   hard_links=yes
9276   $RM conftest*
9277   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9278   touch conftest.a
9279   ln conftest.a conftest.b 2>&5 || hard_links=no
9280   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9282 $as_echo "$hard_links" >&6; }
9283   if test "$hard_links" = no; then
9284     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9285 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9286     need_locks=warn
9287   fi
9288 else
9289   need_locks=no
9290 fi
9291
9292
9293
9294
9295
9296
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9298 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9299
9300   runpath_var=
9301   allow_undefined_flag=
9302   always_export_symbols=no
9303   archive_cmds=
9304   archive_expsym_cmds=
9305   compiler_needs_object=no
9306   enable_shared_with_static_runtimes=no
9307   export_dynamic_flag_spec=
9308   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9309   hardcode_automatic=no
9310   hardcode_direct=no
9311   hardcode_direct_absolute=no
9312   hardcode_libdir_flag_spec=
9313   hardcode_libdir_flag_spec_ld=
9314   hardcode_libdir_separator=
9315   hardcode_minus_L=no
9316   hardcode_shlibpath_var=unsupported
9317   inherit_rpath=no
9318   link_all_deplibs=unknown
9319   module_cmds=
9320   module_expsym_cmds=
9321   old_archive_from_new_cmds=
9322   old_archive_from_expsyms_cmds=
9323   thread_safe_flag_spec=
9324   whole_archive_flag_spec=
9325   # include_expsyms should be a list of space-separated symbols to be *always*
9326   # included in the symbol list
9327   include_expsyms=
9328   # exclude_expsyms can be an extended regexp of symbols to exclude
9329   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9330   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9331   # as well as any symbol that contains `d'.
9332   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9333   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9334   # platforms (ab)use it in PIC code, but their linkers get confused if
9335   # the symbol is explicitly referenced.  Since portable code cannot
9336   # rely on this symbol name, it's probably fine to never include it in
9337   # preloaded symbol tables.
9338   # Exclude shared library initialization/finalization symbols.
9339   extract_expsyms_cmds=
9340
9341   case $host_os in
9342   cygwin* | mingw* | pw32* | cegcc*)
9343     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9344     # When not using gcc, we currently assume that we are using
9345     # Microsoft Visual C++.
9346     if test "$GCC" != yes; then
9347       with_gnu_ld=no
9348     fi
9349     ;;
9350   interix*)
9351     # we just hope/assume this is gcc and not c89 (= MSVC++)
9352     with_gnu_ld=yes
9353     ;;
9354   openbsd*)
9355     with_gnu_ld=no
9356     ;;
9357   esac
9358
9359   ld_shlibs=yes
9360
9361   # On some targets, GNU ld is compatible enough with the native linker
9362   # that we're better off using the native interface for both.
9363   lt_use_gnu_ld_interface=no
9364   if test "$with_gnu_ld" = yes; then
9365     case $host_os in
9366       aix*)
9367         # The AIX port of GNU ld has always aspired to compatibility
9368         # with the native linker.  However, as the warning in the GNU ld
9369         # block says, versions before 2.19.5* couldn't really create working
9370         # shared libraries, regardless of the interface used.
9371         case `$LD -v 2>&1` in
9372           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9373           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9374           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9375           *)
9376             lt_use_gnu_ld_interface=yes
9377             ;;
9378         esac
9379         ;;
9380       *)
9381         lt_use_gnu_ld_interface=yes
9382         ;;
9383     esac
9384   fi
9385
9386   if test "$lt_use_gnu_ld_interface" = yes; then
9387     # If archive_cmds runs LD, not CC, wlarc should be empty
9388     wlarc='${wl}'
9389
9390     # Set some defaults for GNU ld with shared library support. These
9391     # are reset later if shared libraries are not supported. Putting them
9392     # here allows them to be overridden if necessary.
9393     runpath_var=LD_RUN_PATH
9394     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9395     export_dynamic_flag_spec='${wl}--export-dynamic'
9396     # ancient GNU ld didn't support --whole-archive et. al.
9397     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9398       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9399     else
9400       whole_archive_flag_spec=
9401     fi
9402     supports_anon_versioning=no
9403     case `$LD -v 2>&1` in
9404       *GNU\ gold*) supports_anon_versioning=yes ;;
9405       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9406       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9407       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9408       *\ 2.11.*) ;; # other 2.11 versions
9409       *) supports_anon_versioning=yes ;;
9410     esac
9411
9412     # See if GNU ld supports shared libraries.
9413     case $host_os in
9414     aix[3-9]*)
9415       # On AIX/PPC, the GNU linker is very broken
9416       if test "$host_cpu" != ia64; then
9417         ld_shlibs=no
9418         cat <<_LT_EOF 1>&2
9419
9420 *** Warning: the GNU linker, at least up to release 2.19, is reported
9421 *** to be unable to reliably create shared libraries on AIX.
9422 *** Therefore, libtool is disabling shared libraries support.  If you
9423 *** really care for shared libraries, you may want to install binutils
9424 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9425 *** You will then need to restart the configuration process.
9426
9427 _LT_EOF
9428       fi
9429       ;;
9430
9431     amigaos*)
9432       case $host_cpu in
9433       powerpc)
9434             # see comment about AmigaOS4 .so support
9435             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436             archive_expsym_cmds=''
9437         ;;
9438       m68k)
9439             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)'
9440             hardcode_libdir_flag_spec='-L$libdir'
9441             hardcode_minus_L=yes
9442         ;;
9443       esac
9444       ;;
9445
9446     beos*)
9447       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9448         allow_undefined_flag=unsupported
9449         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9450         # support --undefined.  This deserves some investigation.  FIXME
9451         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452       else
9453         ld_shlibs=no
9454       fi
9455       ;;
9456
9457     cygwin* | mingw* | pw32* | cegcc*)
9458       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9459       # as there is no search path for DLLs.
9460       hardcode_libdir_flag_spec='-L$libdir'
9461       export_dynamic_flag_spec='${wl}--export-all-symbols'
9462       allow_undefined_flag=unsupported
9463       always_export_symbols=no
9464       enable_shared_with_static_runtimes=yes
9465       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9466
9467       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9468         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9469         # If the export-symbols file already is a .def file (1st line
9470         # is EXPORTS), use it as is; otherwise, prepend...
9471         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9472           cp $export_symbols $output_objdir/$soname.def;
9473         else
9474           echo EXPORTS > $output_objdir/$soname.def;
9475           cat $export_symbols >> $output_objdir/$soname.def;
9476         fi~
9477         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9478       else
9479         ld_shlibs=no
9480       fi
9481       ;;
9482
9483     haiku*)
9484       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485       link_all_deplibs=yes
9486       ;;
9487
9488     interix[3-9]*)
9489       hardcode_direct=no
9490       hardcode_shlibpath_var=no
9491       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9492       export_dynamic_flag_spec='${wl}-E'
9493       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9494       # Instead, shared libraries are loaded at an image base (0x10000000 by
9495       # default) and relocated if they conflict, which is a slow very memory
9496       # consuming and fragmenting process.  To avoid this, we pick a random,
9497       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9498       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9499       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9500       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'
9501       ;;
9502
9503     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9504       tmp_diet=no
9505       if test "$host_os" = linux-dietlibc; then
9506         case $cc_basename in
9507           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9508         esac
9509       fi
9510       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9511          && test "$tmp_diet" = no
9512       then
9513         tmp_addflag=
9514         tmp_sharedflag='-shared'
9515         case $cc_basename,$host_cpu in
9516         pgcc*)                          # Portland Group C compiler
9517           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'
9518           tmp_addflag=' $pic_flag'
9519           ;;
9520         pgf77* | pgf90* | pgf95* | pgfortran*)
9521                                         # Portland Group f77 and f90 compilers
9522           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'
9523           tmp_addflag=' $pic_flag -Mnomain' ;;
9524         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9525           tmp_addflag=' -i_dynamic' ;;
9526         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9527           tmp_addflag=' -i_dynamic -nofor_main' ;;
9528         ifc* | ifort*)                  # Intel Fortran compiler
9529           tmp_addflag=' -nofor_main' ;;
9530         lf95*)                          # Lahey Fortran 8.1
9531           whole_archive_flag_spec=
9532           tmp_sharedflag='--shared' ;;
9533         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9534           tmp_sharedflag='-qmkshrobj'
9535           tmp_addflag= ;;
9536         nvcc*)  # Cuda Compiler Driver 2.2
9537           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'
9538           compiler_needs_object=yes
9539           ;;
9540         esac
9541         case `$CC -V 2>&1 | sed 5q` in
9542         *Sun\ C*)                       # Sun C 5.9
9543           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'
9544           compiler_needs_object=yes
9545           tmp_sharedflag='-G' ;;
9546         *Sun\ F*)                       # Sun Fortran 8.3
9547           tmp_sharedflag='-G' ;;
9548         esac
9549         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550
9551         if test "x$supports_anon_versioning" = xyes; then
9552           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9553             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9554             echo "local: *; };" >> $output_objdir/$libname.ver~
9555             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9556         fi
9557
9558         case $cc_basename in
9559         xlf* | bgf* | bgxlf* | mpixlf*)
9560           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9561           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9562           hardcode_libdir_flag_spec=
9563           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9564           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9565           if test "x$supports_anon_versioning" = xyes; then
9566             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9567               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9568               echo "local: *; };" >> $output_objdir/$libname.ver~
9569               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9570           fi
9571           ;;
9572         esac
9573       else
9574         ld_shlibs=no
9575       fi
9576       ;;
9577
9578     netbsd*)
9579       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9580         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9581         wlarc=
9582       else
9583         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9585       fi
9586       ;;
9587
9588     solaris*)
9589       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9590         ld_shlibs=no
9591         cat <<_LT_EOF 1>&2
9592
9593 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9594 *** create shared libraries on Solaris systems.  Therefore, libtool
9595 *** is disabling shared libraries support.  We urge you to upgrade GNU
9596 *** binutils to release 2.9.1 or newer.  Another option is to modify
9597 *** your PATH or compiler configuration so that the native linker is
9598 *** used, and then restart.
9599
9600 _LT_EOF
9601       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9602         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9604       else
9605         ld_shlibs=no
9606       fi
9607       ;;
9608
9609     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9610       case `$LD -v 2>&1` in
9611         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9612         ld_shlibs=no
9613         cat <<_LT_EOF 1>&2
9614
9615 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9616 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9617 *** is disabling shared libraries support.  We urge you to upgrade GNU
9618 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9619 *** your PATH or compiler configuration so that the native linker is
9620 *** used, and then restart.
9621
9622 _LT_EOF
9623         ;;
9624         *)
9625           # For security reasons, it is highly recommended that you always
9626           # use absolute paths for naming shared libraries, and exclude the
9627           # DT_RUNPATH tag from executables and libraries.  But doing so
9628           # requires that you compile everything twice, which is a pain.
9629           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9630             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9632             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9633           else
9634             ld_shlibs=no
9635           fi
9636         ;;
9637       esac
9638       ;;
9639
9640     sunos4*)
9641       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642       wlarc=
9643       hardcode_direct=yes
9644       hardcode_shlibpath_var=no
9645       ;;
9646
9647     *)
9648       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9649         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9651       else
9652         ld_shlibs=no
9653       fi
9654       ;;
9655     esac
9656
9657     if test "$ld_shlibs" = no; then
9658       runpath_var=
9659       hardcode_libdir_flag_spec=
9660       export_dynamic_flag_spec=
9661       whole_archive_flag_spec=
9662     fi
9663   else
9664     # PORTME fill in a description of your system's linker (not GNU ld)
9665     case $host_os in
9666     aix3*)
9667       allow_undefined_flag=unsupported
9668       always_export_symbols=yes
9669       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'
9670       # Note: this linker hardcodes the directories in LIBPATH if there
9671       # are no directories specified by -L.
9672       hardcode_minus_L=yes
9673       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9674         # Neither direct hardcoding nor static linking is supported with a
9675         # broken collect2.
9676         hardcode_direct=unsupported
9677       fi
9678       ;;
9679
9680     aix[4-9]*)
9681       if test "$host_cpu" = ia64; then
9682         # On IA64, the linker does run time linking by default, so we don't
9683         # have to do anything special.
9684         aix_use_runtimelinking=no
9685         exp_sym_flag='-Bexport'
9686         no_entry_flag=""
9687       else
9688         # If we're using GNU nm, then we don't want the "-C" option.
9689         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9690         # Also, AIX nm treats weak defined symbols like other global
9691         # defined symbols, whereas GNU nm marks them as "W".
9692         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9693           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'
9694         else
9695           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'
9696         fi
9697         aix_use_runtimelinking=no
9698
9699         # Test if we are trying to use run time linking or normal
9700         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9701         # need to do runtime linking.
9702         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9703           for ld_flag in $LDFLAGS; do
9704           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9705             aix_use_runtimelinking=yes
9706             break
9707           fi
9708           done
9709           ;;
9710         esac
9711
9712         exp_sym_flag='-bexport'
9713         no_entry_flag='-bnoentry'
9714       fi
9715
9716       # When large executables or shared objects are built, AIX ld can
9717       # have problems creating the table of contents.  If linking a library
9718       # or program results in "error TOC overflow" add -mminimal-toc to
9719       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9720       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9721
9722       archive_cmds=''
9723       hardcode_direct=yes
9724       hardcode_direct_absolute=yes
9725       hardcode_libdir_separator=':'
9726       link_all_deplibs=yes
9727       file_list_spec='${wl}-f,'
9728
9729       if test "$GCC" = yes; then
9730         case $host_os in aix4.[012]|aix4.[012].*)
9731         # We only want to do this on AIX 4.2 and lower, the check
9732         # below for broken collect2 doesn't work under 4.3+
9733           collect2name=`${CC} -print-prog-name=collect2`
9734           if test -f "$collect2name" &&
9735            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9736           then
9737           # We have reworked collect2
9738           :
9739           else
9740           # We have old collect2
9741           hardcode_direct=unsupported
9742           # It fails to find uninstalled libraries when the uninstalled
9743           # path is not listed in the libpath.  Setting hardcode_minus_L
9744           # to unsupported forces relinking
9745           hardcode_minus_L=yes
9746           hardcode_libdir_flag_spec='-L$libdir'
9747           hardcode_libdir_separator=
9748           fi
9749           ;;
9750         esac
9751         shared_flag='-shared'
9752         if test "$aix_use_runtimelinking" = yes; then
9753           shared_flag="$shared_flag "'${wl}-G'
9754         fi
9755       else
9756         # not using gcc
9757         if test "$host_cpu" = ia64; then
9758         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9759         # chokes on -Wl,-G. The following line is correct:
9760           shared_flag='-G'
9761         else
9762           if test "$aix_use_runtimelinking" = yes; then
9763             shared_flag='${wl}-G'
9764           else
9765             shared_flag='${wl}-bM:SRE'
9766           fi
9767         fi
9768       fi
9769
9770       export_dynamic_flag_spec='${wl}-bexpall'
9771       # It seems that -bexpall does not export symbols beginning with
9772       # underscore (_), so it is better to generate a list of symbols to export.
9773       always_export_symbols=yes
9774       if test "$aix_use_runtimelinking" = yes; then
9775         # Warning - without using the other runtime loading flags (-brtl),
9776         # -berok will link without error, but may produce a broken library.
9777         allow_undefined_flag='-berok'
9778         # Determine the default libpath from the value encoded in an
9779         # empty executable.
9780         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h.  */
9782
9783 int
9784 main ()
9785 {
9786
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"; then :
9792
9793 lt_aix_libpath_sed='
9794     /Import File Strings/,/^$/ {
9795         /^0/ {
9796             s/^0  *\(.*\)$/\1/
9797             p
9798         }
9799     }'
9800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801 # Check for a 64-bit object if we didn't find anything.
9802 if test -z "$aix_libpath"; then
9803   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804 fi
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext \
9807     conftest$ac_exeext conftest.$ac_ext
9808 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9809
9810         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9811         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"
9812       else
9813         if test "$host_cpu" = ia64; then
9814           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9815           allow_undefined_flag="-z nodefs"
9816           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"
9817         else
9818          # Determine the default libpath from the value encoded in an
9819          # empty executable.
9820          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h.  */
9822
9823 int
9824 main ()
9825 {
9826
9827   ;
9828   return 0;
9829 }
9830 _ACEOF
9831 if ac_fn_c_try_link "$LINENO"; then :
9832
9833 lt_aix_libpath_sed='
9834     /Import File Strings/,/^$/ {
9835         /^0/ {
9836             s/^0  *\(.*\)$/\1/
9837             p
9838         }
9839     }'
9840 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841 # Check for a 64-bit object if we didn't find anything.
9842 if test -z "$aix_libpath"; then
9843   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9844 fi
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext \
9847     conftest$ac_exeext conftest.$ac_ext
9848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9849
9850          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9851           # Warning - without using the other run time loading flags,
9852           # -berok will link without error, but may produce a broken library.
9853           no_undefined_flag=' ${wl}-bernotok'
9854           allow_undefined_flag=' ${wl}-berok'
9855           if test "$with_gnu_ld" = yes; then
9856             # We only use this code for GNU lds that support --whole-archive.
9857             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9858           else
9859             # Exported symbols can be pulled into shared objects from archives
9860             whole_archive_flag_spec='$convenience'
9861           fi
9862           archive_cmds_need_lc=yes
9863           # This is similar to how AIX traditionally builds its shared libraries.
9864           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'
9865         fi
9866       fi
9867       ;;
9868
9869     amigaos*)
9870       case $host_cpu in
9871       powerpc)
9872             # see comment about AmigaOS4 .so support
9873             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9874             archive_expsym_cmds=''
9875         ;;
9876       m68k)
9877             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)'
9878             hardcode_libdir_flag_spec='-L$libdir'
9879             hardcode_minus_L=yes
9880         ;;
9881       esac
9882       ;;
9883
9884     bsdi[45]*)
9885       export_dynamic_flag_spec=-rdynamic
9886       ;;
9887
9888     cygwin* | mingw* | pw32* | cegcc*)
9889       # When not using gcc, we currently assume that we are using
9890       # Microsoft Visual C++.
9891       # hardcode_libdir_flag_spec is actually meaningless, as there is
9892       # no search path for DLLs.
9893       hardcode_libdir_flag_spec=' '
9894       allow_undefined_flag=unsupported
9895       # Tell ltmain to make .lib files, not .a files.
9896       libext=lib
9897       # Tell ltmain to make .dll files, not .so files.
9898       shrext_cmds=".dll"
9899       # FIXME: Setting linknames here is a bad hack.
9900       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9901       # The linker will automatically build a .lib file if we build a DLL.
9902       old_archive_from_new_cmds='true'
9903       # FIXME: Should let the user specify the lib program.
9904       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9905       fix_srcfile_path='`cygpath -w "$srcfile"`'
9906       enable_shared_with_static_runtimes=yes
9907       ;;
9908
9909     darwin* | rhapsody*)
9910
9911
9912   archive_cmds_need_lc=no
9913   hardcode_direct=no
9914   hardcode_automatic=yes
9915   hardcode_shlibpath_var=unsupported
9916   if test "$lt_cv_ld_force_load" = "yes"; then
9917     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\"`'
9918   else
9919     whole_archive_flag_spec=''
9920   fi
9921   link_all_deplibs=yes
9922   allow_undefined_flag="$_lt_dar_allow_undefined"
9923   case $cc_basename in
9924      ifort*) _lt_dar_can_shared=yes ;;
9925      *) _lt_dar_can_shared=$GCC ;;
9926   esac
9927   if test "$_lt_dar_can_shared" = "yes"; then
9928     output_verbose_link_cmd=func_echo_all
9929     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9930     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9931     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}"
9932     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}"
9933
9934   else
9935   ld_shlibs=no
9936   fi
9937
9938       ;;
9939
9940     dgux*)
9941       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942       hardcode_libdir_flag_spec='-L$libdir'
9943       hardcode_shlibpath_var=no
9944       ;;
9945
9946     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9947     # support.  Future versions do this automatically, but an explicit c++rt0.o
9948     # does not break anything, and helps significantly (at the cost of a little
9949     # extra space).
9950     freebsd2.2*)
9951       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9952       hardcode_libdir_flag_spec='-R$libdir'
9953       hardcode_direct=yes
9954       hardcode_shlibpath_var=no
9955       ;;
9956
9957     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9958     freebsd2*)
9959       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9960       hardcode_direct=yes
9961       hardcode_minus_L=yes
9962       hardcode_shlibpath_var=no
9963       ;;
9964
9965     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9966     freebsd* | dragonfly*)
9967       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9968       hardcode_libdir_flag_spec='-R$libdir'
9969       hardcode_direct=yes
9970       hardcode_shlibpath_var=no
9971       ;;
9972
9973     hpux9*)
9974       if test "$GCC" = yes; then
9975         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'
9976       else
9977         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'
9978       fi
9979       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9980       hardcode_libdir_separator=:
9981       hardcode_direct=yes
9982
9983       # hardcode_minus_L: Not really in the search PATH,
9984       # but as the default location of the library.
9985       hardcode_minus_L=yes
9986       export_dynamic_flag_spec='${wl}-E'
9987       ;;
9988
9989     hpux10*)
9990       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9991         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9992       else
9993         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9994       fi
9995       if test "$with_gnu_ld" = no; then
9996         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9997         hardcode_libdir_flag_spec_ld='+b $libdir'
9998         hardcode_libdir_separator=:
9999         hardcode_direct=yes
10000         hardcode_direct_absolute=yes
10001         export_dynamic_flag_spec='${wl}-E'
10002         # hardcode_minus_L: Not really in the search PATH,
10003         # but as the default location of the library.
10004         hardcode_minus_L=yes
10005       fi
10006       ;;
10007
10008     hpux11*)
10009       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10010         case $host_cpu in
10011         hppa*64*)
10012           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10013           ;;
10014         ia64*)
10015           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10016           ;;
10017         *)
10018           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10019           ;;
10020         esac
10021       else
10022         case $host_cpu in
10023         hppa*64*)
10024           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10025           ;;
10026         ia64*)
10027           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10028           ;;
10029         *)
10030
10031           # Older versions of the 11.00 compiler do not understand -b yet
10032           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10033           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10034 $as_echo_n "checking if $CC understands -b... " >&6; }
10035 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10036   $as_echo_n "(cached) " >&6
10037 else
10038   lt_cv_prog_compiler__b=no
10039    save_LDFLAGS="$LDFLAGS"
10040    LDFLAGS="$LDFLAGS -b"
10041    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10042    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10043      # The linker can only warn and ignore the option if not recognized
10044      # So say no if there are warnings
10045      if test -s conftest.err; then
10046        # Append any errors to the config.log.
10047        cat conftest.err 1>&5
10048        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10049        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10050        if diff conftest.exp conftest.er2 >/dev/null; then
10051          lt_cv_prog_compiler__b=yes
10052        fi
10053      else
10054        lt_cv_prog_compiler__b=yes
10055      fi
10056    fi
10057    $RM -r conftest*
10058    LDFLAGS="$save_LDFLAGS"
10059
10060 fi
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10062 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10063
10064 if test x"$lt_cv_prog_compiler__b" = xyes; then
10065     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066 else
10067     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10068 fi
10069
10070           ;;
10071         esac
10072       fi
10073       if test "$with_gnu_ld" = no; then
10074         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10075         hardcode_libdir_separator=:
10076
10077         case $host_cpu in
10078         hppa*64*|ia64*)
10079           hardcode_direct=no
10080           hardcode_shlibpath_var=no
10081           ;;
10082         *)
10083           hardcode_direct=yes
10084           hardcode_direct_absolute=yes
10085           export_dynamic_flag_spec='${wl}-E'
10086
10087           # hardcode_minus_L: Not really in the search PATH,
10088           # but as the default location of the library.
10089           hardcode_minus_L=yes
10090           ;;
10091         esac
10092       fi
10093       ;;
10094
10095     irix5* | irix6* | nonstopux*)
10096       if test "$GCC" = yes; then
10097         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'
10098         # Try to use the -exported_symbol ld option, if it does not
10099         # work, assume that -exports_file does not work either and
10100         # implicitly export all symbols.
10101         save_LDFLAGS="$LDFLAGS"
10102         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10103         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h.  */
10105 int foo(void) {}
10106 _ACEOF
10107 if ac_fn_c_try_link "$LINENO"; then :
10108   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'
10109
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext \
10112     conftest$ac_exeext conftest.$ac_ext
10113         LDFLAGS="$save_LDFLAGS"
10114       else
10115         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'
10116         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'
10117       fi
10118       archive_cmds_need_lc='no'
10119       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120       hardcode_libdir_separator=:
10121       inherit_rpath=yes
10122       link_all_deplibs=yes
10123       ;;
10124
10125     netbsd*)
10126       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10127         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10128       else
10129         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10130       fi
10131       hardcode_libdir_flag_spec='-R$libdir'
10132       hardcode_direct=yes
10133       hardcode_shlibpath_var=no
10134       ;;
10135
10136     newsos6)
10137       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138       hardcode_direct=yes
10139       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140       hardcode_libdir_separator=:
10141       hardcode_shlibpath_var=no
10142       ;;
10143
10144     *nto* | *qnx*)
10145       ;;
10146
10147     openbsd*)
10148       if test -f /usr/libexec/ld.so; then
10149         hardcode_direct=yes
10150         hardcode_shlibpath_var=no
10151         hardcode_direct_absolute=yes
10152         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10153           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10154           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10155           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156           export_dynamic_flag_spec='${wl}-E'
10157         else
10158           case $host_os in
10159            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10160              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10161              hardcode_libdir_flag_spec='-R$libdir'
10162              ;;
10163            *)
10164              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10165              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10166              ;;
10167           esac
10168         fi
10169       else
10170         ld_shlibs=no
10171       fi
10172       ;;
10173
10174     os2*)
10175       hardcode_libdir_flag_spec='-L$libdir'
10176       hardcode_minus_L=yes
10177       allow_undefined_flag=unsupported
10178       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'
10179       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10180       ;;
10181
10182     osf3*)
10183       if test "$GCC" = yes; then
10184         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10185         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'
10186       else
10187         allow_undefined_flag=' -expect_unresolved \*'
10188         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'
10189       fi
10190       archive_cmds_need_lc='no'
10191       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10192       hardcode_libdir_separator=:
10193       ;;
10194
10195     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10196       if test "$GCC" = yes; then
10197         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10198         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'
10199         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10200       else
10201         allow_undefined_flag=' -expect_unresolved \*'
10202         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'
10203         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~
10204         $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'
10205
10206         # Both c and cxx compiler support -rpath directly
10207         hardcode_libdir_flag_spec='-rpath $libdir'
10208       fi
10209       archive_cmds_need_lc='no'
10210       hardcode_libdir_separator=:
10211       ;;
10212
10213     solaris*)
10214       no_undefined_flag=' -z defs'
10215       if test "$GCC" = yes; then
10216         wlarc='${wl}'
10217         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10218         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10219           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10220       else
10221         case `$CC -V 2>&1` in
10222         *"Compilers 5.0"*)
10223           wlarc=''
10224           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10226           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10227           ;;
10228         *)
10229           wlarc='${wl}'
10230           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10231           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10232           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10233           ;;
10234         esac
10235       fi
10236       hardcode_libdir_flag_spec='-R$libdir'
10237       hardcode_shlibpath_var=no
10238       case $host_os in
10239       solaris2.[0-5] | solaris2.[0-5].*) ;;
10240       *)
10241         # The compiler driver will combine and reorder linker options,
10242         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10243         # but is careful enough not to reorder.
10244         # Supported since Solaris 2.6 (maybe 2.5.1?)
10245         if test "$GCC" = yes; then
10246           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10247         else
10248           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10249         fi
10250         ;;
10251       esac
10252       link_all_deplibs=yes
10253       ;;
10254
10255     sunos4*)
10256       if test "x$host_vendor" = xsequent; then
10257         # Use $CC to link under sequent, because it throws in some extra .o
10258         # files that make .init and .fini sections work.
10259         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10260       else
10261         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10262       fi
10263       hardcode_libdir_flag_spec='-L$libdir'
10264       hardcode_direct=yes
10265       hardcode_minus_L=yes
10266       hardcode_shlibpath_var=no
10267       ;;
10268
10269     sysv4)
10270       case $host_vendor in
10271         sni)
10272           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273           hardcode_direct=yes # is this really true???
10274         ;;
10275         siemens)
10276           ## LD is ld it makes a PLAMLIB
10277           ## CC just makes a GrossModule.
10278           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10279           reload_cmds='$CC -r -o $output$reload_objs'
10280           hardcode_direct=no
10281         ;;
10282         motorola)
10283           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10284           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10285         ;;
10286       esac
10287       runpath_var='LD_RUN_PATH'
10288       hardcode_shlibpath_var=no
10289       ;;
10290
10291     sysv4.3*)
10292       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293       hardcode_shlibpath_var=no
10294       export_dynamic_flag_spec='-Bexport'
10295       ;;
10296
10297     sysv4*MP*)
10298       if test -d /usr/nec; then
10299         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300         hardcode_shlibpath_var=no
10301         runpath_var=LD_RUN_PATH
10302         hardcode_runpath_var=yes
10303         ld_shlibs=yes
10304       fi
10305       ;;
10306
10307     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10308       no_undefined_flag='${wl}-z,text'
10309       archive_cmds_need_lc=no
10310       hardcode_shlibpath_var=no
10311       runpath_var='LD_RUN_PATH'
10312
10313       if test "$GCC" = yes; then
10314         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316       else
10317         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319       fi
10320       ;;
10321
10322     sysv5* | sco3.2v5* | sco5v6*)
10323       # Note: We can NOT use -z defs as we might desire, because we do not
10324       # link with -lc, and that would cause any symbols used from libc to
10325       # always be unresolved, which means just about no library would
10326       # ever link correctly.  If we're not using GNU ld we use -z text
10327       # though, which does catch some bad symbols but isn't as heavy-handed
10328       # as -z defs.
10329       no_undefined_flag='${wl}-z,text'
10330       allow_undefined_flag='${wl}-z,nodefs'
10331       archive_cmds_need_lc=no
10332       hardcode_shlibpath_var=no
10333       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10334       hardcode_libdir_separator=':'
10335       link_all_deplibs=yes
10336       export_dynamic_flag_spec='${wl}-Bexport'
10337       runpath_var='LD_RUN_PATH'
10338
10339       if test "$GCC" = yes; then
10340         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10342       else
10343         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345       fi
10346       ;;
10347
10348     uts4*)
10349       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350       hardcode_libdir_flag_spec='-L$libdir'
10351       hardcode_shlibpath_var=no
10352       ;;
10353
10354     *)
10355       ld_shlibs=no
10356       ;;
10357     esac
10358
10359     if test x$host_vendor = xsni; then
10360       case $host in
10361       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10362         export_dynamic_flag_spec='${wl}-Blargedynsym'
10363         ;;
10364       esac
10365     fi
10366   fi
10367
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10369 $as_echo "$ld_shlibs" >&6; }
10370 test "$ld_shlibs" = no && can_build_shared=no
10371
10372 with_gnu_ld=$with_gnu_ld
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388 #
10389 # Do we need to explicitly link libc?
10390 #
10391 case "x$archive_cmds_need_lc" in
10392 x|xyes)
10393   # Assume -lc should be added
10394   archive_cmds_need_lc=yes
10395
10396   if test "$enable_shared" = yes && test "$GCC" = yes; then
10397     case $archive_cmds in
10398     *'~'*)
10399       # FIXME: we may have to deal with multi-command sequences.
10400       ;;
10401     '$CC '*)
10402       # Test whether the compiler implicitly links with -lc since on some
10403       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10404       # to ld, don't add -lc before -lgcc.
10405       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10406 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10407 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   $RM conftest*
10411         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10412
10413         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10414   (eval $ac_compile) 2>&5
10415   ac_status=$?
10416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10417   test $ac_status = 0; } 2>conftest.err; then
10418           soname=conftest
10419           lib=conftest
10420           libobjs=conftest.$ac_objext
10421           deplibs=
10422           wl=$lt_prog_compiler_wl
10423           pic_flag=$lt_prog_compiler_pic
10424           compiler_flags=-v
10425           linker_flags=-v
10426           verstring=
10427           output_objdir=.
10428           libname=conftest
10429           lt_save_allow_undefined_flag=$allow_undefined_flag
10430           allow_undefined_flag=
10431           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10432   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10433   ac_status=$?
10434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10435   test $ac_status = 0; }
10436           then
10437             lt_cv_archive_cmds_need_lc=no
10438           else
10439             lt_cv_archive_cmds_need_lc=yes
10440           fi
10441           allow_undefined_flag=$lt_save_allow_undefined_flag
10442         else
10443           cat conftest.err 1>&5
10444         fi
10445         $RM conftest*
10446
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10449 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10450       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10451       ;;
10452     esac
10453   fi
10454   ;;
10455 esac
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
10608
10609
10610
10611
10612
10613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10615
10616 if test "$GCC" = yes; then
10617   case $host_os in
10618     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10619     *) lt_awk_arg="/^libraries:/" ;;
10620   esac
10621   case $host_os in
10622     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10623     *) lt_sed_strip_eq="s,=/,/,g" ;;
10624   esac
10625   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10626   case $lt_search_path_spec in
10627   *\;*)
10628     # if the path contains ";" then we assume it to be the separator
10629     # otherwise default to the standard path separator (i.e. ":") - it is
10630     # assumed that no part of a normal pathname contains ";" but that should
10631     # okay in the real world where ";" in dirpaths is itself problematic.
10632     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10633     ;;
10634   *)
10635     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10636     ;;
10637   esac
10638   # Ok, now we have the path, separated by spaces, we can step through it
10639   # and add multilib dir if necessary.
10640   lt_tmp_lt_search_path_spec=
10641   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10642   for lt_sys_path in $lt_search_path_spec; do
10643     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10644       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10645     else
10646       test -d "$lt_sys_path" && \
10647         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10648     fi
10649   done
10650   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10651 BEGIN {RS=" "; FS="/|\n";} {
10652   lt_foo="";
10653   lt_count=0;
10654   for (lt_i = NF; lt_i > 0; lt_i--) {
10655     if ($lt_i != "" && $lt_i != ".") {
10656       if ($lt_i == "..") {
10657         lt_count++;
10658       } else {
10659         if (lt_count == 0) {
10660           lt_foo="/" $lt_i lt_foo;
10661         } else {
10662           lt_count--;
10663         }
10664       }
10665     }
10666   }
10667   if (lt_foo != "") { lt_freq[lt_foo]++; }
10668   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10669 }'`
10670   # AWK program above erroneously prepends '/' to C:/dos/paths
10671   # for these hosts.
10672   case $host_os in
10673     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10674       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10675   esac
10676   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10677 else
10678   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10679 fi
10680 library_names_spec=
10681 libname_spec='lib$name'
10682 soname_spec=
10683 shrext_cmds=".so"
10684 postinstall_cmds=
10685 postuninstall_cmds=
10686 finish_cmds=
10687 finish_eval=
10688 shlibpath_var=
10689 shlibpath_overrides_runpath=unknown
10690 version_type=none
10691 dynamic_linker="$host_os ld.so"
10692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10693 need_lib_prefix=unknown
10694 hardcode_into_libs=no
10695
10696 # when you set need_version to no, make sure it does not cause -set_version
10697 # flags to be left without arguments
10698 need_version=unknown
10699
10700 case $host_os in
10701 aix3*)
10702   version_type=linux
10703   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10704   shlibpath_var=LIBPATH
10705
10706   # AIX 3 has no versioning support, so we append a major version to the name.
10707   soname_spec='${libname}${release}${shared_ext}$major'
10708   ;;
10709
10710 aix[4-9]*)
10711   version_type=linux
10712   need_lib_prefix=no
10713   need_version=no
10714   hardcode_into_libs=yes
10715   if test "$host_cpu" = ia64; then
10716     # AIX 5 supports IA64
10717     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10718     shlibpath_var=LD_LIBRARY_PATH
10719   else
10720     # With GCC up to 2.95.x, collect2 would create an import file
10721     # for dependence libraries.  The import file would start with
10722     # the line `#! .'.  This would cause the generated library to
10723     # depend on `.', always an invalid library.  This was fixed in
10724     # development snapshots of GCC prior to 3.0.
10725     case $host_os in
10726       aix4 | aix4.[01] | aix4.[01].*)
10727       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10728            echo ' yes '
10729            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10730         :
10731       else
10732         can_build_shared=no
10733       fi
10734       ;;
10735     esac
10736     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10737     # soname into executable. Probably we can add versioning support to
10738     # collect2, so additional links can be useful in future.
10739     if test "$aix_use_runtimelinking" = yes; then
10740       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10741       # instead of lib<name>.a to let people know that these are not
10742       # typical AIX shared libraries.
10743       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744     else
10745       # We preserve .a as extension for shared libraries through AIX4.2
10746       # and later when we are not doing run time linking.
10747       library_names_spec='${libname}${release}.a $libname.a'
10748       soname_spec='${libname}${release}${shared_ext}$major'
10749     fi
10750     shlibpath_var=LIBPATH
10751   fi
10752   ;;
10753
10754 amigaos*)
10755   case $host_cpu in
10756   powerpc)
10757     # Since July 2007 AmigaOS4 officially supports .so libraries.
10758     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760     ;;
10761   m68k)
10762     library_names_spec='$libname.ixlibrary $libname.a'
10763     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10764     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'
10765     ;;
10766   esac
10767   ;;
10768
10769 beos*)
10770   library_names_spec='${libname}${shared_ext}'
10771   dynamic_linker="$host_os ld.so"
10772   shlibpath_var=LIBRARY_PATH
10773   ;;
10774
10775 bsdi[45]*)
10776   version_type=linux
10777   need_version=no
10778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779   soname_spec='${libname}${release}${shared_ext}$major'
10780   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10781   shlibpath_var=LD_LIBRARY_PATH
10782   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10783   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10784   # the default ld.so.conf also contains /usr/contrib/lib and
10785   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10786   # libtool to hard-code these into programs
10787   ;;
10788
10789 cygwin* | mingw* | pw32* | cegcc*)
10790   version_type=windows
10791   shrext_cmds=".dll"
10792   need_version=no
10793   need_lib_prefix=no
10794
10795   case $GCC,$host_os in
10796   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10797     library_names_spec='$libname.dll.a'
10798     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10799     postinstall_cmds='base_file=`basename \${file}`~
10800       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10801       dldir=$destdir/`dirname \$dlpath`~
10802       test -d \$dldir || mkdir -p \$dldir~
10803       $install_prog $dir/$dlname \$dldir/$dlname~
10804       chmod a+x \$dldir/$dlname~
10805       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10806         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10807       fi'
10808     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10809       dlpath=$dir/\$dldll~
10810        $RM \$dlpath'
10811     shlibpath_overrides_runpath=yes
10812
10813     case $host_os in
10814     cygwin*)
10815       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10816       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10817
10818       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10819       ;;
10820     mingw* | cegcc*)
10821       # MinGW DLLs use traditional 'lib' prefix
10822       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10823       ;;
10824     pw32*)
10825       # pw32 DLLs use 'pw' prefix rather than 'lib'
10826       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10827       ;;
10828     esac
10829     ;;
10830
10831   *)
10832     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10833     ;;
10834   esac
10835   dynamic_linker='Win32 ld.exe'
10836   # FIXME: first we should search . and the directory the executable is in
10837   shlibpath_var=PATH
10838   ;;
10839
10840 darwin* | rhapsody*)
10841   dynamic_linker="$host_os dyld"
10842   version_type=darwin
10843   need_lib_prefix=no
10844   need_version=no
10845   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10846   soname_spec='${libname}${release}${major}$shared_ext'
10847   shlibpath_overrides_runpath=yes
10848   shlibpath_var=DYLD_LIBRARY_PATH
10849   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10850
10851   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10852   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10853   ;;
10854
10855 dgux*)
10856   version_type=linux
10857   need_lib_prefix=no
10858   need_version=no
10859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10860   soname_spec='${libname}${release}${shared_ext}$major'
10861   shlibpath_var=LD_LIBRARY_PATH
10862   ;;
10863
10864 freebsd* | dragonfly*)
10865   # DragonFly does not have aout.  When/if they implement a new
10866   # versioning mechanism, adjust this.
10867   if test -x /usr/bin/objformat; then
10868     objformat=`/usr/bin/objformat`
10869   else
10870     case $host_os in
10871     freebsd[123]*) objformat=aout ;;
10872     *) objformat=elf ;;
10873     esac
10874   fi
10875   version_type=freebsd-$objformat
10876   case $version_type in
10877     freebsd-elf*)
10878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10879       need_version=no
10880       need_lib_prefix=no
10881       ;;
10882     freebsd-*)
10883       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10884       need_version=yes
10885       ;;
10886   esac
10887   shlibpath_var=LD_LIBRARY_PATH
10888   case $host_os in
10889   freebsd2*)
10890     shlibpath_overrides_runpath=yes
10891     ;;
10892   freebsd3.[01]* | freebsdelf3.[01]*)
10893     shlibpath_overrides_runpath=yes
10894     hardcode_into_libs=yes
10895     ;;
10896   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10897   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10898     shlibpath_overrides_runpath=no
10899     hardcode_into_libs=yes
10900     ;;
10901   *) # from 4.6 on, and DragonFly
10902     shlibpath_overrides_runpath=yes
10903     hardcode_into_libs=yes
10904     ;;
10905   esac
10906   ;;
10907
10908 gnu*)
10909   version_type=linux
10910   need_lib_prefix=no
10911   need_version=no
10912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10913   soname_spec='${libname}${release}${shared_ext}$major'
10914   shlibpath_var=LD_LIBRARY_PATH
10915   hardcode_into_libs=yes
10916   ;;
10917
10918 haiku*)
10919   version_type=linux
10920   need_lib_prefix=no
10921   need_version=no
10922   dynamic_linker="$host_os runtime_loader"
10923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10924   soname_spec='${libname}${release}${shared_ext}$major'
10925   shlibpath_var=LIBRARY_PATH
10926   shlibpath_overrides_runpath=yes
10927   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10928   hardcode_into_libs=yes
10929   ;;
10930
10931 hpux9* | hpux10* | hpux11*)
10932   # Give a soname corresponding to the major version so that dld.sl refuses to
10933   # link against other versions.
10934   version_type=sunos
10935   need_lib_prefix=no
10936   need_version=no
10937   case $host_cpu in
10938   ia64*)
10939     shrext_cmds='.so'
10940     hardcode_into_libs=yes
10941     dynamic_linker="$host_os dld.so"
10942     shlibpath_var=LD_LIBRARY_PATH
10943     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945     soname_spec='${libname}${release}${shared_ext}$major'
10946     if test "X$HPUX_IA64_MODE" = X32; then
10947       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10948     else
10949       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10950     fi
10951     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10952     ;;
10953   hppa*64*)
10954     shrext_cmds='.sl'
10955     hardcode_into_libs=yes
10956     dynamic_linker="$host_os dld.sl"
10957     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10958     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960     soname_spec='${libname}${release}${shared_ext}$major'
10961     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10962     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10963     ;;
10964   *)
10965     shrext_cmds='.sl'
10966     dynamic_linker="$host_os dld.sl"
10967     shlibpath_var=SHLIB_PATH
10968     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970     soname_spec='${libname}${release}${shared_ext}$major'
10971     ;;
10972   esac
10973   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10974   postinstall_cmds='chmod 555 $lib'
10975   # or fails outright, so override atomically:
10976   install_override_mode=555
10977   ;;
10978
10979 interix[3-9]*)
10980   version_type=linux
10981   need_lib_prefix=no
10982   need_version=no
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10984   soname_spec='${libname}${release}${shared_ext}$major'
10985   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   shlibpath_overrides_runpath=no
10988   hardcode_into_libs=yes
10989   ;;
10990
10991 irix5* | irix6* | nonstopux*)
10992   case $host_os in
10993     nonstopux*) version_type=nonstopux ;;
10994     *)
10995         if test "$lt_cv_prog_gnu_ld" = yes; then
10996                 version_type=linux
10997         else
10998                 version_type=irix
10999         fi ;;
11000   esac
11001   need_lib_prefix=no
11002   need_version=no
11003   soname_spec='${libname}${release}${shared_ext}$major'
11004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11005   case $host_os in
11006   irix5* | nonstopux*)
11007     libsuff= shlibsuff=
11008     ;;
11009   *)
11010     case $LD in # libtool.m4 will add one of these switches to LD
11011     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11012       libsuff= shlibsuff= libmagic=32-bit;;
11013     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11014       libsuff=32 shlibsuff=N32 libmagic=N32;;
11015     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11016       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11017     *) libsuff= shlibsuff= libmagic=never-match;;
11018     esac
11019     ;;
11020   esac
11021   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11022   shlibpath_overrides_runpath=no
11023   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11024   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11025   hardcode_into_libs=yes
11026   ;;
11027
11028 # No shared lib support for Linux oldld, aout, or coff.
11029 linux*oldld* | linux*aout* | linux*coff*)
11030   dynamic_linker=no
11031   ;;
11032
11033 # This must be Linux ELF.
11034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11035   version_type=linux
11036   need_lib_prefix=no
11037   need_version=no
11038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039   soname_spec='${libname}${release}${shared_ext}$major'
11040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11041   shlibpath_var=LD_LIBRARY_PATH
11042   shlibpath_overrides_runpath=no
11043
11044   # Some binutils ld are patched to set DT_RUNPATH
11045   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11046   $as_echo_n "(cached) " >&6
11047 else
11048   lt_cv_shlibpath_overrides_runpath=no
11049     save_LDFLAGS=$LDFLAGS
11050     save_libdir=$libdir
11051     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11052          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h.  */
11055
11056 int
11057 main ()
11058 {
11059
11060   ;
11061   return 0;
11062 }
11063 _ACEOF
11064 if ac_fn_c_try_link "$LINENO"; then :
11065   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11066   lt_cv_shlibpath_overrides_runpath=yes
11067 fi
11068 fi
11069 rm -f core conftest.err conftest.$ac_objext \
11070     conftest$ac_exeext conftest.$ac_ext
11071     LDFLAGS=$save_LDFLAGS
11072     libdir=$save_libdir
11073
11074 fi
11075
11076   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11077
11078   # This implies no fast_install, which is unacceptable.
11079   # Some rework will be needed to allow for fast_install
11080   # before this can be enabled.
11081   hardcode_into_libs=yes
11082
11083   # Append ld.so.conf contents to the search path
11084   if test -f /etc/ld.so.conf; then
11085     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' ' '`
11086     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11087   fi
11088
11089   # We used to test for /lib/ld.so.1 and disable shared libraries on
11090   # powerpc, because MkLinux only supported shared libraries with the
11091   # GNU dynamic linker.  Since this was broken with cross compilers,
11092   # most powerpc-linux boxes support dynamic linking these days and
11093   # people can always --disable-shared, the test was removed, and we
11094   # assume the GNU/Linux dynamic linker is in use.
11095   dynamic_linker='GNU/Linux ld.so'
11096   ;;
11097
11098 netbsd*)
11099   version_type=sunos
11100   need_lib_prefix=no
11101   need_version=no
11102   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11104     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11105     dynamic_linker='NetBSD (a.out) ld.so'
11106   else
11107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11108     soname_spec='${libname}${release}${shared_ext}$major'
11109     dynamic_linker='NetBSD ld.elf_so'
11110   fi
11111   shlibpath_var=LD_LIBRARY_PATH
11112   shlibpath_overrides_runpath=yes
11113   hardcode_into_libs=yes
11114   ;;
11115
11116 newsos6)
11117   version_type=linux
11118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119   shlibpath_var=LD_LIBRARY_PATH
11120   shlibpath_overrides_runpath=yes
11121   ;;
11122
11123 *nto* | *qnx*)
11124   version_type=qnx
11125   need_lib_prefix=no
11126   need_version=no
11127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128   soname_spec='${libname}${release}${shared_ext}$major'
11129   shlibpath_var=LD_LIBRARY_PATH
11130   shlibpath_overrides_runpath=no
11131   hardcode_into_libs=yes
11132   dynamic_linker='ldqnx.so'
11133   ;;
11134
11135 openbsd*)
11136   version_type=sunos
11137   sys_lib_dlsearch_path_spec="/usr/lib"
11138   need_lib_prefix=no
11139   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11140   case $host_os in
11141     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11142     *)                          need_version=no  ;;
11143   esac
11144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11146   shlibpath_var=LD_LIBRARY_PATH
11147   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11148     case $host_os in
11149       openbsd2.[89] | openbsd2.[89].*)
11150         shlibpath_overrides_runpath=no
11151         ;;
11152       *)
11153         shlibpath_overrides_runpath=yes
11154         ;;
11155       esac
11156   else
11157     shlibpath_overrides_runpath=yes
11158   fi
11159   ;;
11160
11161 os2*)
11162   libname_spec='$name'
11163   shrext_cmds=".dll"
11164   need_lib_prefix=no
11165   library_names_spec='$libname${shared_ext} $libname.a'
11166   dynamic_linker='OS/2 ld.exe'
11167   shlibpath_var=LIBPATH
11168   ;;
11169
11170 osf3* | osf4* | osf5*)
11171   version_type=osf
11172   need_lib_prefix=no
11173   need_version=no
11174   soname_spec='${libname}${release}${shared_ext}$major'
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176   shlibpath_var=LD_LIBRARY_PATH
11177   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11178   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11179   ;;
11180
11181 rdos*)
11182   dynamic_linker=no
11183   ;;
11184
11185 solaris*)
11186   version_type=linux
11187   need_lib_prefix=no
11188   need_version=no
11189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190   soname_spec='${libname}${release}${shared_ext}$major'
11191   shlibpath_var=LD_LIBRARY_PATH
11192   shlibpath_overrides_runpath=yes
11193   hardcode_into_libs=yes
11194   # ldd complains unless libraries are executable
11195   postinstall_cmds='chmod +x $lib'
11196   ;;
11197
11198 sunos4*)
11199   version_type=sunos
11200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11201   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11202   shlibpath_var=LD_LIBRARY_PATH
11203   shlibpath_overrides_runpath=yes
11204   if test "$with_gnu_ld" = yes; then
11205     need_lib_prefix=no
11206   fi
11207   need_version=yes
11208   ;;
11209
11210 sysv4 | sysv4.3*)
11211   version_type=linux
11212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213   soname_spec='${libname}${release}${shared_ext}$major'
11214   shlibpath_var=LD_LIBRARY_PATH
11215   case $host_vendor in
11216     sni)
11217       shlibpath_overrides_runpath=no
11218       need_lib_prefix=no
11219       runpath_var=LD_RUN_PATH
11220       ;;
11221     siemens)
11222       need_lib_prefix=no
11223       ;;
11224     motorola)
11225       need_lib_prefix=no
11226       need_version=no
11227       shlibpath_overrides_runpath=no
11228       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11229       ;;
11230   esac
11231   ;;
11232
11233 sysv4*MP*)
11234   if test -d /usr/nec ;then
11235     version_type=linux
11236     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11237     soname_spec='$libname${shared_ext}.$major'
11238     shlibpath_var=LD_LIBRARY_PATH
11239   fi
11240   ;;
11241
11242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11243   version_type=freebsd-elf
11244   need_lib_prefix=no
11245   need_version=no
11246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11247   soname_spec='${libname}${release}${shared_ext}$major'
11248   shlibpath_var=LD_LIBRARY_PATH
11249   shlibpath_overrides_runpath=yes
11250   hardcode_into_libs=yes
11251   if test "$with_gnu_ld" = yes; then
11252     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11253   else
11254     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11255     case $host_os in
11256       sco3.2v5*)
11257         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11258         ;;
11259     esac
11260   fi
11261   sys_lib_dlsearch_path_spec='/usr/lib'
11262   ;;
11263
11264 tpf*)
11265   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11266   version_type=linux
11267   need_lib_prefix=no
11268   need_version=no
11269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270   shlibpath_var=LD_LIBRARY_PATH
11271   shlibpath_overrides_runpath=no
11272   hardcode_into_libs=yes
11273   ;;
11274
11275 uts4*)
11276   version_type=linux
11277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278   soname_spec='${libname}${release}${shared_ext}$major'
11279   shlibpath_var=LD_LIBRARY_PATH
11280   ;;
11281
11282 *)
11283   dynamic_linker=no
11284   ;;
11285 esac
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11287 $as_echo "$dynamic_linker" >&6; }
11288 test "$dynamic_linker" = no && can_build_shared=no
11289
11290 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11291 if test "$GCC" = yes; then
11292   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11293 fi
11294
11295 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11296   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11297 fi
11298 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11299   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11300 fi
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
11388
11389
11390
11391
11392
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11394 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11395 hardcode_action=
11396 if test -n "$hardcode_libdir_flag_spec" ||
11397    test -n "$runpath_var" ||
11398    test "X$hardcode_automatic" = "Xyes" ; then
11399
11400   # We can hardcode non-existent directories.
11401   if test "$hardcode_direct" != no &&
11402      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11403      # have to relink, otherwise we might link with an installed library
11404      # when we should be linking with a yet-to-be-installed one
11405      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11406      test "$hardcode_minus_L" != no; then
11407     # Linking always hardcodes the temporary library directory.
11408     hardcode_action=relink
11409   else
11410     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11411     hardcode_action=immediate
11412   fi
11413 else
11414   # We cannot hardcode anything, or else we can only hardcode existing
11415   # directories.
11416   hardcode_action=unsupported
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11419 $as_echo "$hardcode_action" >&6; }
11420
11421 if test "$hardcode_action" = relink ||
11422    test "$inherit_rpath" = yes; then
11423   # Fast installation is not supported
11424   enable_fast_install=no
11425 elif test "$shlibpath_overrides_runpath" = yes ||
11426      test "$enable_shared" = no; then
11427   # Fast installation is not necessary
11428   enable_fast_install=needless
11429 fi
11430
11431
11432
11433
11434
11435
11436   if test "x$enable_dlopen" != xyes; then
11437   enable_dlopen=unknown
11438   enable_dlopen_self=unknown
11439   enable_dlopen_self_static=unknown
11440 else
11441   lt_cv_dlopen=no
11442   lt_cv_dlopen_libs=
11443
11444   case $host_os in
11445   beos*)
11446     lt_cv_dlopen="load_add_on"
11447     lt_cv_dlopen_libs=
11448     lt_cv_dlopen_self=yes
11449     ;;
11450
11451   mingw* | pw32* | cegcc*)
11452     lt_cv_dlopen="LoadLibrary"
11453     lt_cv_dlopen_libs=
11454     ;;
11455
11456   cygwin*)
11457     lt_cv_dlopen="dlopen"
11458     lt_cv_dlopen_libs=
11459     ;;
11460
11461   darwin*)
11462   # if libdl is installed we need to link against it
11463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11464 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11465 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11466   $as_echo_n "(cached) " >&6
11467 else
11468   ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-ldl  $LIBS"
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h.  */
11472
11473 /* Override any GCC internal prototype to avoid an error.
11474    Use char because int might match the return type of a GCC
11475    builtin and then its argument prototype would still apply.  */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 char dlopen ();
11480 int
11481 main ()
11482 {
11483 return dlopen ();
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 if ac_fn_c_try_link "$LINENO"; then :
11489   ac_cv_lib_dl_dlopen=yes
11490 else
11491   ac_cv_lib_dl_dlopen=no
11492 fi
11493 rm -f core conftest.err conftest.$ac_objext \
11494     conftest$ac_exeext conftest.$ac_ext
11495 LIBS=$ac_check_lib_save_LIBS
11496 fi
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11498 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11499 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11500   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11501 else
11502
11503     lt_cv_dlopen="dyld"
11504     lt_cv_dlopen_libs=
11505     lt_cv_dlopen_self=yes
11506
11507 fi
11508
11509     ;;
11510
11511   *)
11512     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11513 if test "x$ac_cv_func_shl_load" = x""yes; then :
11514   lt_cv_dlopen="shl_load"
11515 else
11516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11517 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11518 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521   ac_check_lib_save_LIBS=$LIBS
11522 LIBS="-ldld  $LIBS"
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h.  */
11525
11526 /* Override any GCC internal prototype to avoid an error.
11527    Use char because int might match the return type of a GCC
11528    builtin and then its argument prototype would still apply.  */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char shl_load ();
11533 int
11534 main ()
11535 {
11536 return shl_load ();
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542   ac_cv_lib_dld_shl_load=yes
11543 else
11544   ac_cv_lib_dld_shl_load=no
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext \
11547     conftest$ac_exeext conftest.$ac_ext
11548 LIBS=$ac_check_lib_save_LIBS
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11551 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11552 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11553   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11554 else
11555   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11556 if test "x$ac_cv_func_dlopen" = x""yes; then :
11557   lt_cv_dlopen="dlopen"
11558 else
11559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11560 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11561 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11562   $as_echo_n "(cached) " >&6
11563 else
11564   ac_check_lib_save_LIBS=$LIBS
11565 LIBS="-ldl  $LIBS"
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h.  */
11568
11569 /* Override any GCC internal prototype to avoid an error.
11570    Use char because int might match the return type of a GCC
11571    builtin and then its argument prototype would still apply.  */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char dlopen ();
11576 int
11577 main ()
11578 {
11579 return dlopen ();
11580   ;
11581   return 0;
11582 }
11583 _ACEOF
11584 if ac_fn_c_try_link "$LINENO"; then :
11585   ac_cv_lib_dl_dlopen=yes
11586 else
11587   ac_cv_lib_dl_dlopen=no
11588 fi
11589 rm -f core conftest.err conftest.$ac_objext \
11590     conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_lib_save_LIBS
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11594 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11595 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11596   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11597 else
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11599 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11600 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11601   $as_echo_n "(cached) " >&6
11602 else
11603   ac_check_lib_save_LIBS=$LIBS
11604 LIBS="-lsvld  $LIBS"
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h.  */
11607
11608 /* Override any GCC internal prototype to avoid an error.
11609    Use char because int might match the return type of a GCC
11610    builtin and then its argument prototype would still apply.  */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 char dlopen ();
11615 int
11616 main ()
11617 {
11618 return dlopen ();
11619   ;
11620   return 0;
11621 }
11622 _ACEOF
11623 if ac_fn_c_try_link "$LINENO"; then :
11624   ac_cv_lib_svld_dlopen=yes
11625 else
11626   ac_cv_lib_svld_dlopen=no
11627 fi
11628 rm -f core conftest.err conftest.$ac_objext \
11629     conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11633 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11634 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11635   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11636 else
11637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11638 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11639 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11640   $as_echo_n "(cached) " >&6
11641 else
11642   ac_check_lib_save_LIBS=$LIBS
11643 LIBS="-ldld  $LIBS"
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h.  */
11646
11647 /* Override any GCC internal prototype to avoid an error.
11648    Use char because int might match the return type of a GCC
11649    builtin and then its argument prototype would still apply.  */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char dld_link ();
11654 int
11655 main ()
11656 {
11657 return dld_link ();
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663   ac_cv_lib_dld_dld_link=yes
11664 else
11665   ac_cv_lib_dld_dld_link=no
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668     conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11672 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11673 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11674   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11675 fi
11676
11677
11678 fi
11679
11680
11681 fi
11682
11683
11684 fi
11685
11686
11687 fi
11688
11689
11690 fi
11691
11692     ;;
11693   esac
11694
11695   if test "x$lt_cv_dlopen" != xno; then
11696     enable_dlopen=yes
11697   else
11698     enable_dlopen=no
11699   fi
11700
11701   case $lt_cv_dlopen in
11702   dlopen)
11703     save_CPPFLAGS="$CPPFLAGS"
11704     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11705
11706     save_LDFLAGS="$LDFLAGS"
11707     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11708
11709     save_LIBS="$LIBS"
11710     LIBS="$lt_cv_dlopen_libs $LIBS"
11711
11712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11713 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11714 if test "${lt_cv_dlopen_self+set}" = set; then :
11715   $as_echo_n "(cached) " >&6
11716 else
11717           if test "$cross_compiling" = yes; then :
11718   lt_cv_dlopen_self=cross
11719 else
11720   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11721   lt_status=$lt_dlunknown
11722   cat > conftest.$ac_ext <<_LT_EOF
11723 #line 11723 "configure"
11724 #include "confdefs.h"
11725
11726 #if HAVE_DLFCN_H
11727 #include <dlfcn.h>
11728 #endif
11729
11730 #include <stdio.h>
11731
11732 #ifdef RTLD_GLOBAL
11733 #  define LT_DLGLOBAL           RTLD_GLOBAL
11734 #else
11735 #  ifdef DL_GLOBAL
11736 #    define LT_DLGLOBAL         DL_GLOBAL
11737 #  else
11738 #    define LT_DLGLOBAL         0
11739 #  endif
11740 #endif
11741
11742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11743    find out it does not work in some platform. */
11744 #ifndef LT_DLLAZY_OR_NOW
11745 #  ifdef RTLD_LAZY
11746 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11747 #  else
11748 #    ifdef DL_LAZY
11749 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11750 #    else
11751 #      ifdef RTLD_NOW
11752 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11753 #      else
11754 #        ifdef DL_NOW
11755 #          define LT_DLLAZY_OR_NOW      DL_NOW
11756 #        else
11757 #          define LT_DLLAZY_OR_NOW      0
11758 #        endif
11759 #      endif
11760 #    endif
11761 #  endif
11762 #endif
11763
11764 /* When -fvisbility=hidden is used, assume the code has been annotated
11765    correspondingly for the symbols needed.  */
11766 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11767 void fnord () __attribute__((visibility("default")));
11768 #endif
11769
11770 void fnord () { int i=42; }
11771 int main ()
11772 {
11773   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11774   int status = $lt_dlunknown;
11775
11776   if (self)
11777     {
11778       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11779       else
11780         {
11781           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11782           else puts (dlerror ());
11783         }
11784       /* dlclose (self); */
11785     }
11786   else
11787     puts (dlerror ());
11788
11789   return status;
11790 }
11791 _LT_EOF
11792   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11793   (eval $ac_link) 2>&5
11794   ac_status=$?
11795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11796   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11797     (./conftest; exit; ) >&5 2>/dev/null
11798     lt_status=$?
11799     case x$lt_status in
11800       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11801       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11802       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11803     esac
11804   else :
11805     # compilation failed
11806     lt_cv_dlopen_self=no
11807   fi
11808 fi
11809 rm -fr conftest*
11810
11811
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11814 $as_echo "$lt_cv_dlopen_self" >&6; }
11815
11816     if test "x$lt_cv_dlopen_self" = xyes; then
11817       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11818       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11819 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11820 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11821   $as_echo_n "(cached) " >&6
11822 else
11823           if test "$cross_compiling" = yes; then :
11824   lt_cv_dlopen_self_static=cross
11825 else
11826   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11827   lt_status=$lt_dlunknown
11828   cat > conftest.$ac_ext <<_LT_EOF
11829 #line 11829 "configure"
11830 #include "confdefs.h"
11831
11832 #if HAVE_DLFCN_H
11833 #include <dlfcn.h>
11834 #endif
11835
11836 #include <stdio.h>
11837
11838 #ifdef RTLD_GLOBAL
11839 #  define LT_DLGLOBAL           RTLD_GLOBAL
11840 #else
11841 #  ifdef DL_GLOBAL
11842 #    define LT_DLGLOBAL         DL_GLOBAL
11843 #  else
11844 #    define LT_DLGLOBAL         0
11845 #  endif
11846 #endif
11847
11848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11849    find out it does not work in some platform. */
11850 #ifndef LT_DLLAZY_OR_NOW
11851 #  ifdef RTLD_LAZY
11852 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11853 #  else
11854 #    ifdef DL_LAZY
11855 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11856 #    else
11857 #      ifdef RTLD_NOW
11858 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11859 #      else
11860 #        ifdef DL_NOW
11861 #          define LT_DLLAZY_OR_NOW      DL_NOW
11862 #        else
11863 #          define LT_DLLAZY_OR_NOW      0
11864 #        endif
11865 #      endif
11866 #    endif
11867 #  endif
11868 #endif
11869
11870 /* When -fvisbility=hidden is used, assume the code has been annotated
11871    correspondingly for the symbols needed.  */
11872 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11873 void fnord () __attribute__((visibility("default")));
11874 #endif
11875
11876 void fnord () { int i=42; }
11877 int main ()
11878 {
11879   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11880   int status = $lt_dlunknown;
11881
11882   if (self)
11883     {
11884       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11885       else
11886         {
11887           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11888           else puts (dlerror ());
11889         }
11890       /* dlclose (self); */
11891     }
11892   else
11893     puts (dlerror ());
11894
11895   return status;
11896 }
11897 _LT_EOF
11898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11899   (eval $ac_link) 2>&5
11900   ac_status=$?
11901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11903     (./conftest; exit; ) >&5 2>/dev/null
11904     lt_status=$?
11905     case x$lt_status in
11906       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11907       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11908       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11909     esac
11910   else :
11911     # compilation failed
11912     lt_cv_dlopen_self_static=no
11913   fi
11914 fi
11915 rm -fr conftest*
11916
11917
11918 fi
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11920 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11921     fi
11922
11923     CPPFLAGS="$save_CPPFLAGS"
11924     LDFLAGS="$save_LDFLAGS"
11925     LIBS="$save_LIBS"
11926     ;;
11927   esac
11928
11929   case $lt_cv_dlopen_self in
11930   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11931   *) enable_dlopen_self=unknown ;;
11932   esac
11933
11934   case $lt_cv_dlopen_self_static in
11935   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11936   *) enable_dlopen_self_static=unknown ;;
11937   esac
11938 fi
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956 striplib=
11957 old_striplib=
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11959 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11960 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11961   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11962   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964 $as_echo "yes" >&6; }
11965 else
11966 # FIXME - insert some real tests, host_os isn't really good enough
11967   case $host_os in
11968   darwin*)
11969     if test -n "$STRIP" ; then
11970       striplib="$STRIP -x"
11971       old_striplib="$STRIP -S"
11972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973 $as_echo "yes" >&6; }
11974     else
11975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11977     fi
11978     ;;
11979   *)
11980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11982     ;;
11983   esac
11984 fi
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997   # Report which library types will actually be built
11998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11999 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12001 $as_echo "$can_build_shared" >&6; }
12002
12003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12004 $as_echo_n "checking whether to build shared libraries... " >&6; }
12005   test "$can_build_shared" = "no" && enable_shared=no
12006
12007   # On AIX, shared libraries and static libraries use the same namespace, and
12008   # are all built from PIC.
12009   case $host_os in
12010   aix3*)
12011     test "$enable_shared" = yes && enable_static=no
12012     if test -n "$RANLIB"; then
12013       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12014       postinstall_cmds='$RANLIB $lib'
12015     fi
12016     ;;
12017
12018   aix[4-9]*)
12019     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12020       test "$enable_shared" = yes && enable_static=no
12021     fi
12022     ;;
12023   esac
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12025 $as_echo "$enable_shared" >&6; }
12026
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12028 $as_echo_n "checking whether to build static libraries... " >&6; }
12029   # Make sure either enable_shared or enable_static is yes.
12030   test "$enable_shared" = yes || enable_static=yes
12031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12032 $as_echo "$enable_static" >&6; }
12033
12034
12035
12036
12037 fi
12038 ac_ext=c
12039 ac_cpp='$CPP $CPPFLAGS'
12040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12043
12044 CC="$lt_save_CC"
12045
12046       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12047     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12048     (test "X$CXX" != "Xg++"))) ; then
12049   ac_ext=cpp
12050 ac_cpp='$CXXCPP $CPPFLAGS'
12051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12055 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12056 if test -z "$CXXCPP"; then
12057   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12058   $as_echo_n "(cached) " >&6
12059 else
12060       # Double quotes because CXXCPP needs to be expanded
12061     for CXXCPP in "$CXX -E" "/lib/cpp"
12062     do
12063       ac_preproc_ok=false
12064 for ac_cxx_preproc_warn_flag in '' yes
12065 do
12066   # Use a header file that comes with gcc, so configuring glibc
12067   # with a fresh cross-compiler works.
12068   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12069   # <limits.h> exists even on freestanding compilers.
12070   # On the NeXT, cc -E runs the code through the compiler's parser,
12071   # not just through cpp. "Syntax error" is here to catch this case.
12072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h.  */
12074 #ifdef __STDC__
12075 # include <limits.h>
12076 #else
12077 # include <assert.h>
12078 #endif
12079                      Syntax error
12080 _ACEOF
12081 if ac_fn_cxx_try_cpp "$LINENO"; then :
12082
12083 else
12084   # Broken: fails on valid input.
12085 continue
12086 fi
12087 rm -f conftest.err conftest.$ac_ext
12088
12089   # OK, works on sane cases.  Now check whether nonexistent headers
12090   # can be detected and how.
12091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h.  */
12093 #include <ac_nonexistent.h>
12094 _ACEOF
12095 if ac_fn_cxx_try_cpp "$LINENO"; then :
12096   # Broken: success on invalid input.
12097 continue
12098 else
12099   # Passes both tests.
12100 ac_preproc_ok=:
12101 break
12102 fi
12103 rm -f conftest.err conftest.$ac_ext
12104
12105 done
12106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12107 rm -f conftest.err conftest.$ac_ext
12108 if $ac_preproc_ok; then :
12109   break
12110 fi
12111
12112     done
12113     ac_cv_prog_CXXCPP=$CXXCPP
12114
12115 fi
12116   CXXCPP=$ac_cv_prog_CXXCPP
12117 else
12118   ac_cv_prog_CXXCPP=$CXXCPP
12119 fi
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12121 $as_echo "$CXXCPP" >&6; }
12122 ac_preproc_ok=false
12123 for ac_cxx_preproc_warn_flag in '' yes
12124 do
12125   # Use a header file that comes with gcc, so configuring glibc
12126   # with a fresh cross-compiler works.
12127   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12128   # <limits.h> exists even on freestanding compilers.
12129   # On the NeXT, cc -E runs the code through the compiler's parser,
12130   # not just through cpp. "Syntax error" is here to catch this case.
12131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h.  */
12133 #ifdef __STDC__
12134 # include <limits.h>
12135 #else
12136 # include <assert.h>
12137 #endif
12138                      Syntax error
12139 _ACEOF
12140 if ac_fn_cxx_try_cpp "$LINENO"; then :
12141
12142 else
12143   # Broken: fails on valid input.
12144 continue
12145 fi
12146 rm -f conftest.err conftest.$ac_ext
12147
12148   # OK, works on sane cases.  Now check whether nonexistent headers
12149   # can be detected and how.
12150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h.  */
12152 #include <ac_nonexistent.h>
12153 _ACEOF
12154 if ac_fn_cxx_try_cpp "$LINENO"; then :
12155   # Broken: success on invalid input.
12156 continue
12157 else
12158   # Passes both tests.
12159 ac_preproc_ok=:
12160 break
12161 fi
12162 rm -f conftest.err conftest.$ac_ext
12163
12164 done
12165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12166 rm -f conftest.err conftest.$ac_ext
12167 if $ac_preproc_ok; then :
12168
12169 else
12170   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12172 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12173 See \`config.log' for more details." "$LINENO" 5; }
12174 fi
12175
12176 ac_ext=c
12177 ac_cpp='$CPP $CPPFLAGS'
12178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12181
12182 else
12183   _lt_caught_CXX_error=yes
12184 fi
12185
12186 ac_ext=cpp
12187 ac_cpp='$CXXCPP $CPPFLAGS'
12188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12191
12192 archive_cmds_need_lc_CXX=no
12193 allow_undefined_flag_CXX=
12194 always_export_symbols_CXX=no
12195 archive_expsym_cmds_CXX=
12196 compiler_needs_object_CXX=no
12197 export_dynamic_flag_spec_CXX=
12198 hardcode_direct_CXX=no
12199 hardcode_direct_absolute_CXX=no
12200 hardcode_libdir_flag_spec_CXX=
12201 hardcode_libdir_flag_spec_ld_CXX=
12202 hardcode_libdir_separator_CXX=
12203 hardcode_minus_L_CXX=no
12204 hardcode_shlibpath_var_CXX=unsupported
12205 hardcode_automatic_CXX=no
12206 inherit_rpath_CXX=no
12207 module_cmds_CXX=
12208 module_expsym_cmds_CXX=
12209 link_all_deplibs_CXX=unknown
12210 old_archive_cmds_CXX=$old_archive_cmds
12211 reload_flag_CXX=$reload_flag
12212 reload_cmds_CXX=$reload_cmds
12213 no_undefined_flag_CXX=
12214 whole_archive_flag_spec_CXX=
12215 enable_shared_with_static_runtimes_CXX=no
12216
12217 # Source file extension for C++ test sources.
12218 ac_ext=cpp
12219
12220 # Object file extension for compiled C++ test sources.
12221 objext=o
12222 objext_CXX=$objext
12223
12224 # No sense in running all these tests if we already determined that
12225 # the CXX compiler isn't working.  Some variables (like enable_shared)
12226 # are currently assumed to apply to all compilers on this platform,
12227 # and will be corrupted by setting them based on a non-working compiler.
12228 if test "$_lt_caught_CXX_error" != yes; then
12229   # Code to be used in simple compile tests
12230   lt_simple_compile_test_code="int some_variable = 0;"
12231
12232   # Code to be used in simple link tests
12233   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12234
12235   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12236
12237
12238
12239
12240
12241
12242 # If no C compiler was specified, use CC.
12243 LTCC=${LTCC-"$CC"}
12244
12245 # If no C compiler flags were specified, use CFLAGS.
12246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12247
12248 # Allow CC to be a program name with arguments.
12249 compiler=$CC
12250
12251
12252   # save warnings/boilerplate of simple test code
12253   ac_outfile=conftest.$ac_objext
12254 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12255 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12256 _lt_compiler_boilerplate=`cat conftest.err`
12257 $RM conftest*
12258
12259   ac_outfile=conftest.$ac_objext
12260 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12261 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12262 _lt_linker_boilerplate=`cat conftest.err`
12263 $RM -r conftest*
12264
12265
12266   # Allow CC to be a program name with arguments.
12267   lt_save_CC=$CC
12268   lt_save_LD=$LD
12269   lt_save_GCC=$GCC
12270   GCC=$GXX
12271   lt_save_with_gnu_ld=$with_gnu_ld
12272   lt_save_path_LD=$lt_cv_path_LD
12273   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12274     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12275   else
12276     $as_unset lt_cv_prog_gnu_ld
12277   fi
12278   if test -n "${lt_cv_path_LDCXX+set}"; then
12279     lt_cv_path_LD=$lt_cv_path_LDCXX
12280   else
12281     $as_unset lt_cv_path_LD
12282   fi
12283   test -z "${LDCXX+set}" || LD=$LDCXX
12284   CC=${CXX-"c++"}
12285   compiler=$CC
12286   compiler_CXX=$CC
12287   for cc_temp in $compiler""; do
12288   case $cc_temp in
12289     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12290     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12291     \-*) ;;
12292     *) break;;
12293   esac
12294 done
12295 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12296
12297
12298   if test -n "$compiler"; then
12299     # We don't want -fno-exception when compiling C++ code, so set the
12300     # no_builtin_flag separately
12301     if test "$GXX" = yes; then
12302       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12303     else
12304       lt_prog_compiler_no_builtin_flag_CXX=
12305     fi
12306
12307     if test "$GXX" = yes; then
12308       # Set up default GNU C++ configuration
12309
12310
12311
12312 # Check whether --with-gnu-ld was given.
12313 if test "${with_gnu_ld+set}" = set; then :
12314   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12315 else
12316   with_gnu_ld=no
12317 fi
12318
12319 ac_prog=ld
12320 if test "$GCC" = yes; then
12321   # Check if gcc -print-prog-name=ld gives a path.
12322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12323 $as_echo_n "checking for ld used by $CC... " >&6; }
12324   case $host in
12325   *-*-mingw*)
12326     # gcc leaves a trailing carriage return which upsets mingw
12327     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12328   *)
12329     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12330   esac
12331   case $ac_prog in
12332     # Accept absolute paths.
12333     [\\/]* | ?:[\\/]*)
12334       re_direlt='/[^/][^/]*/\.\./'
12335       # Canonicalize the pathname of ld
12336       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12337       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12338         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12339       done
12340       test -z "$LD" && LD="$ac_prog"
12341       ;;
12342   "")
12343     # If it fails, then pretend we aren't using GCC.
12344     ac_prog=ld
12345     ;;
12346   *)
12347     # If it is relative, then search for the first ld in PATH.
12348     with_gnu_ld=unknown
12349     ;;
12350   esac
12351 elif test "$with_gnu_ld" = yes; then
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12353 $as_echo_n "checking for GNU ld... " >&6; }
12354 else
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12356 $as_echo_n "checking for non-GNU ld... " >&6; }
12357 fi
12358 if test "${lt_cv_path_LD+set}" = set; then :
12359   $as_echo_n "(cached) " >&6
12360 else
12361   if test -z "$LD"; then
12362   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12363   for ac_dir in $PATH; do
12364     IFS="$lt_save_ifs"
12365     test -z "$ac_dir" && ac_dir=.
12366     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12367       lt_cv_path_LD="$ac_dir/$ac_prog"
12368       # Check to see if the program is GNU ld.  I'd rather use --version,
12369       # but apparently some variants of GNU ld only accept -v.
12370       # Break only if it was the GNU/non-GNU ld that we prefer.
12371       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12372       *GNU* | *'with BFD'*)
12373         test "$with_gnu_ld" != no && break
12374         ;;
12375       *)
12376         test "$with_gnu_ld" != yes && break
12377         ;;
12378       esac
12379     fi
12380   done
12381   IFS="$lt_save_ifs"
12382 else
12383   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12384 fi
12385 fi
12386
12387 LD="$lt_cv_path_LD"
12388 if test -n "$LD"; then
12389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12390 $as_echo "$LD" >&6; }
12391 else
12392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12394 fi
12395 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12397 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12398 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12399   $as_echo_n "(cached) " >&6
12400 else
12401   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12402 case `$LD -v 2>&1 </dev/null` in
12403 *GNU* | *'with BFD'*)
12404   lt_cv_prog_gnu_ld=yes
12405   ;;
12406 *)
12407   lt_cv_prog_gnu_ld=no
12408   ;;
12409 esac
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12412 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12413 with_gnu_ld=$lt_cv_prog_gnu_ld
12414
12415
12416
12417
12418
12419
12420
12421       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12422       # archiving commands below assume that GNU ld is being used.
12423       if test "$with_gnu_ld" = yes; then
12424         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425         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'
12426
12427         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12429
12430         # If archive_cmds runs LD, not CC, wlarc should be empty
12431         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12432         #     investigate it a little bit more. (MM)
12433         wlarc='${wl}'
12434
12435         # ancient GNU ld didn't support --whole-archive et. al.
12436         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12437           $GREP 'no-whole-archive' > /dev/null; then
12438           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12439         else
12440           whole_archive_flag_spec_CXX=
12441         fi
12442       else
12443         with_gnu_ld=no
12444         wlarc=
12445
12446         # A generic and very simple default shared library creation
12447         # command for GNU C++ for the case where it uses the native
12448         # linker, instead of GNU ld.  If possible, this setting should
12449         # overridden to take advantage of the native linker features on
12450         # the platform it is being used on.
12451         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12452       fi
12453
12454       # Commands to make compiler produce verbose output that lists
12455       # what "hidden" libraries, object files and flags are used when
12456       # linking a shared library.
12457       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12458
12459     else
12460       GXX=no
12461       with_gnu_ld=no
12462       wlarc=
12463     fi
12464
12465     # PORTME: fill in a description of your system's C++ link characteristics
12466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12468     ld_shlibs_CXX=yes
12469     case $host_os in
12470       aix3*)
12471         # FIXME: insert proper C++ library support
12472         ld_shlibs_CXX=no
12473         ;;
12474       aix[4-9]*)
12475         if test "$host_cpu" = ia64; then
12476           # On IA64, the linker does run time linking by default, so we don't
12477           # have to do anything special.
12478           aix_use_runtimelinking=no
12479           exp_sym_flag='-Bexport'
12480           no_entry_flag=""
12481         else
12482           aix_use_runtimelinking=no
12483
12484           # Test if we are trying to use run time linking or normal
12485           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12486           # need to do runtime linking.
12487           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12488             for ld_flag in $LDFLAGS; do
12489               case $ld_flag in
12490               *-brtl*)
12491                 aix_use_runtimelinking=yes
12492                 break
12493                 ;;
12494               esac
12495             done
12496             ;;
12497           esac
12498
12499           exp_sym_flag='-bexport'
12500           no_entry_flag='-bnoentry'
12501         fi
12502
12503         # When large executables or shared objects are built, AIX ld can
12504         # have problems creating the table of contents.  If linking a library
12505         # or program results in "error TOC overflow" add -mminimal-toc to
12506         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12507         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12508
12509         archive_cmds_CXX=''
12510         hardcode_direct_CXX=yes
12511         hardcode_direct_absolute_CXX=yes
12512         hardcode_libdir_separator_CXX=':'
12513         link_all_deplibs_CXX=yes
12514         file_list_spec_CXX='${wl}-f,'
12515
12516         if test "$GXX" = yes; then
12517           case $host_os in aix4.[012]|aix4.[012].*)
12518           # We only want to do this on AIX 4.2 and lower, the check
12519           # below for broken collect2 doesn't work under 4.3+
12520           collect2name=`${CC} -print-prog-name=collect2`
12521           if test -f "$collect2name" &&
12522              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12523           then
12524             # We have reworked collect2
12525             :
12526           else
12527             # We have old collect2
12528             hardcode_direct_CXX=unsupported
12529             # It fails to find uninstalled libraries when the uninstalled
12530             # path is not listed in the libpath.  Setting hardcode_minus_L
12531             # to unsupported forces relinking
12532             hardcode_minus_L_CXX=yes
12533             hardcode_libdir_flag_spec_CXX='-L$libdir'
12534             hardcode_libdir_separator_CXX=
12535           fi
12536           esac
12537           shared_flag='-shared'
12538           if test "$aix_use_runtimelinking" = yes; then
12539             shared_flag="$shared_flag "'${wl}-G'
12540           fi
12541         else
12542           # not using gcc
12543           if test "$host_cpu" = ia64; then
12544           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12545           # chokes on -Wl,-G. The following line is correct:
12546           shared_flag='-G'
12547           else
12548             if test "$aix_use_runtimelinking" = yes; then
12549               shared_flag='${wl}-G'
12550             else
12551               shared_flag='${wl}-bM:SRE'
12552             fi
12553           fi
12554         fi
12555
12556         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12557         # It seems that -bexpall does not export symbols beginning with
12558         # underscore (_), so it is better to generate a list of symbols to
12559         # export.
12560         always_export_symbols_CXX=yes
12561         if test "$aix_use_runtimelinking" = yes; then
12562           # Warning - without using the other runtime loading flags (-brtl),
12563           # -berok will link without error, but may produce a broken library.
12564           allow_undefined_flag_CXX='-berok'
12565           # Determine the default libpath from the value encoded in an empty
12566           # executable.
12567           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h.  */
12569
12570 int
12571 main ()
12572 {
12573
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 if ac_fn_cxx_try_link "$LINENO"; then :
12579
12580 lt_aix_libpath_sed='
12581     /Import File Strings/,/^$/ {
12582         /^0/ {
12583             s/^0  *\(.*\)$/\1/
12584             p
12585         }
12586     }'
12587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12588 # Check for a 64-bit object if we didn't find anything.
12589 if test -z "$aix_libpath"; then
12590   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12591 fi
12592 fi
12593 rm -f core conftest.err conftest.$ac_objext \
12594     conftest$ac_exeext conftest.$ac_ext
12595 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12596
12597           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12598
12599           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"
12600         else
12601           if test "$host_cpu" = ia64; then
12602             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12603             allow_undefined_flag_CXX="-z nodefs"
12604             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"
12605           else
12606             # Determine the default libpath from the value encoded in an
12607             # empty executable.
12608             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h.  */
12610
12611 int
12612 main ()
12613 {
12614
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_cxx_try_link "$LINENO"; then :
12620
12621 lt_aix_libpath_sed='
12622     /Import File Strings/,/^$/ {
12623         /^0/ {
12624             s/^0  *\(.*\)$/\1/
12625             p
12626         }
12627     }'
12628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629 # Check for a 64-bit object if we didn't find anything.
12630 if test -z "$aix_libpath"; then
12631   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632 fi
12633 fi
12634 rm -f core conftest.err conftest.$ac_objext \
12635     conftest$ac_exeext conftest.$ac_ext
12636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12637
12638             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12639             # Warning - without using the other run time loading flags,
12640             # -berok will link without error, but may produce a broken library.
12641             no_undefined_flag_CXX=' ${wl}-bernotok'
12642             allow_undefined_flag_CXX=' ${wl}-berok'
12643             if test "$with_gnu_ld" = yes; then
12644               # We only use this code for GNU lds that support --whole-archive.
12645               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12646             else
12647               # Exported symbols can be pulled into shared objects from archives
12648               whole_archive_flag_spec_CXX='$convenience'
12649             fi
12650             archive_cmds_need_lc_CXX=yes
12651             # This is similar to how AIX traditionally builds its shared
12652             # libraries.
12653             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'
12654           fi
12655         fi
12656         ;;
12657
12658       beos*)
12659         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12660           allow_undefined_flag_CXX=unsupported
12661           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12662           # support --undefined.  This deserves some investigation.  FIXME
12663           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664         else
12665           ld_shlibs_CXX=no
12666         fi
12667         ;;
12668
12669       chorus*)
12670         case $cc_basename in
12671           *)
12672           # FIXME: insert proper C++ library support
12673           ld_shlibs_CXX=no
12674           ;;
12675         esac
12676         ;;
12677
12678       cygwin* | mingw* | pw32* | cegcc*)
12679         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12680         # as there is no search path for DLLs.
12681         hardcode_libdir_flag_spec_CXX='-L$libdir'
12682         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12683         allow_undefined_flag_CXX=unsupported
12684         always_export_symbols_CXX=no
12685         enable_shared_with_static_runtimes_CXX=yes
12686
12687         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12688           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'
12689           # If the export-symbols file already is a .def file (1st line
12690           # is EXPORTS), use it as is; otherwise, prepend...
12691           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12692             cp $export_symbols $output_objdir/$soname.def;
12693           else
12694             echo EXPORTS > $output_objdir/$soname.def;
12695             cat $export_symbols >> $output_objdir/$soname.def;
12696           fi~
12697           $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'
12698         else
12699           ld_shlibs_CXX=no
12700         fi
12701         ;;
12702       darwin* | rhapsody*)
12703
12704
12705   archive_cmds_need_lc_CXX=no
12706   hardcode_direct_CXX=no
12707   hardcode_automatic_CXX=yes
12708   hardcode_shlibpath_var_CXX=unsupported
12709   if test "$lt_cv_ld_force_load" = "yes"; then
12710     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\"`'
12711   else
12712     whole_archive_flag_spec_CXX=''
12713   fi
12714   link_all_deplibs_CXX=yes
12715   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12716   case $cc_basename in
12717      ifort*) _lt_dar_can_shared=yes ;;
12718      *) _lt_dar_can_shared=$GCC ;;
12719   esac
12720   if test "$_lt_dar_can_shared" = "yes"; then
12721     output_verbose_link_cmd=func_echo_all
12722     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}"
12723     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12724     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}"
12725     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}"
12726        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12727       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}"
12728       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}"
12729     fi
12730
12731   else
12732   ld_shlibs_CXX=no
12733   fi
12734
12735         ;;
12736
12737       dgux*)
12738         case $cc_basename in
12739           ec++*)
12740             # FIXME: insert proper C++ library support
12741             ld_shlibs_CXX=no
12742             ;;
12743           ghcx*)
12744             # Green Hills C++ Compiler
12745             # FIXME: insert proper C++ library support
12746             ld_shlibs_CXX=no
12747             ;;
12748           *)
12749             # FIXME: insert proper C++ library support
12750             ld_shlibs_CXX=no
12751             ;;
12752         esac
12753         ;;
12754
12755       freebsd[12]*)
12756         # C++ shared libraries reported to be fairly broken before
12757         # switch to ELF
12758         ld_shlibs_CXX=no
12759         ;;
12760
12761       freebsd-elf*)
12762         archive_cmds_need_lc_CXX=no
12763         ;;
12764
12765       freebsd* | dragonfly*)
12766         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12767         # conventions
12768         ld_shlibs_CXX=yes
12769         ;;
12770
12771       gnu*)
12772         ;;
12773
12774       haiku*)
12775         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12776         link_all_deplibs_CXX=yes
12777         ;;
12778
12779       hpux9*)
12780         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12781         hardcode_libdir_separator_CXX=:
12782         export_dynamic_flag_spec_CXX='${wl}-E'
12783         hardcode_direct_CXX=yes
12784         hardcode_minus_L_CXX=yes # Not in the search PATH,
12785                                              # but as the default
12786                                              # location of the library.
12787
12788         case $cc_basename in
12789           CC*)
12790             # FIXME: insert proper C++ library support
12791             ld_shlibs_CXX=no
12792             ;;
12793           aCC*)
12794             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'
12795             # Commands to make compiler produce verbose output that lists
12796             # what "hidden" libraries, object files and flags are used when
12797             # linking a shared library.
12798             #
12799             # There doesn't appear to be a way to prevent this compiler from
12800             # explicitly linking system object files so we need to strip them
12801             # from the output so that they don't get included in the library
12802             # dependencies.
12803             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"'
12804             ;;
12805           *)
12806             if test "$GXX" = yes; then
12807               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'
12808             else
12809               # FIXME: insert proper C++ library support
12810               ld_shlibs_CXX=no
12811             fi
12812             ;;
12813         esac
12814         ;;
12815
12816       hpux10*|hpux11*)
12817         if test $with_gnu_ld = no; then
12818           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12819           hardcode_libdir_separator_CXX=:
12820
12821           case $host_cpu in
12822             hppa*64*|ia64*)
12823               ;;
12824             *)
12825               export_dynamic_flag_spec_CXX='${wl}-E'
12826               ;;
12827           esac
12828         fi
12829         case $host_cpu in
12830           hppa*64*|ia64*)
12831             hardcode_direct_CXX=no
12832             hardcode_shlibpath_var_CXX=no
12833             ;;
12834           *)
12835             hardcode_direct_CXX=yes
12836             hardcode_direct_absolute_CXX=yes
12837             hardcode_minus_L_CXX=yes # Not in the search PATH,
12838                                                  # but as the default
12839                                                  # location of the library.
12840             ;;
12841         esac
12842
12843         case $cc_basename in
12844           CC*)
12845             # FIXME: insert proper C++ library support
12846             ld_shlibs_CXX=no
12847             ;;
12848           aCC*)
12849             case $host_cpu in
12850               hppa*64*)
12851                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12852                 ;;
12853               ia64*)
12854                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12855                 ;;
12856               *)
12857                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12858                 ;;
12859             esac
12860             # Commands to make compiler produce verbose output that lists
12861             # what "hidden" libraries, object files and flags are used when
12862             # linking a shared library.
12863             #
12864             # There doesn't appear to be a way to prevent this compiler from
12865             # explicitly linking system object files so we need to strip them
12866             # from the output so that they don't get included in the library
12867             # dependencies.
12868             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"'
12869             ;;
12870           *)
12871             if test "$GXX" = yes; then
12872               if test $with_gnu_ld = no; then
12873                 case $host_cpu in
12874                   hppa*64*)
12875                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876                     ;;
12877                   ia64*)
12878                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879                     ;;
12880                   *)
12881                     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'
12882                     ;;
12883                 esac
12884               fi
12885             else
12886               # FIXME: insert proper C++ library support
12887               ld_shlibs_CXX=no
12888             fi
12889             ;;
12890         esac
12891         ;;
12892
12893       interix[3-9]*)
12894         hardcode_direct_CXX=no
12895         hardcode_shlibpath_var_CXX=no
12896         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12897         export_dynamic_flag_spec_CXX='${wl}-E'
12898         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12899         # Instead, shared libraries are loaded at an image base (0x10000000 by
12900         # default) and relocated if they conflict, which is a slow very memory
12901         # consuming and fragmenting process.  To avoid this, we pick a random,
12902         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12903         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12904         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'
12905         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'
12906         ;;
12907       irix5* | irix6*)
12908         case $cc_basename in
12909           CC*)
12910             # SGI C++
12911             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'
12912
12913             # Archives containing C++ object files must be created using
12914             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12915             # necessary to make sure instantiated templates are included
12916             # in the archive.
12917             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12918             ;;
12919           *)
12920             if test "$GXX" = yes; then
12921               if test "$with_gnu_ld" = no; then
12922                 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'
12923               else
12924                 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'
12925               fi
12926             fi
12927             link_all_deplibs_CXX=yes
12928             ;;
12929         esac
12930         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12931         hardcode_libdir_separator_CXX=:
12932         inherit_rpath_CXX=yes
12933         ;;
12934
12935       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12936         case $cc_basename in
12937           KCC*)
12938             # Kuck and Associates, Inc. (KAI) C++ Compiler
12939
12940             # KCC will only create a shared library if the output file
12941             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12942             # to its proper name (with version) after linking.
12943             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'
12944             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'
12945             # Commands to make compiler produce verbose output that lists
12946             # what "hidden" libraries, object files and flags are used when
12947             # linking a shared library.
12948             #
12949             # There doesn't appear to be a way to prevent this compiler from
12950             # explicitly linking system object files so we need to strip them
12951             # from the output so that they don't get included in the library
12952             # dependencies.
12953             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"'
12954
12955             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12956             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12957
12958             # Archives containing C++ object files must be created using
12959             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12960             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12961             ;;
12962           icpc* | ecpc* )
12963             # Intel C++
12964             with_gnu_ld=yes
12965             # version 8.0 and above of icpc choke on multiply defined symbols
12966             # if we add $predep_objects and $postdep_objects, however 7.1 and
12967             # earlier do not add the objects themselves.
12968             case `$CC -V 2>&1` in
12969               *"Version 7."*)
12970                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12971                 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'
12972                 ;;
12973               *)  # Version 8.0 or newer
12974                 tmp_idyn=
12975                 case $host_cpu in
12976                   ia64*) tmp_idyn=' -i_dynamic';;
12977                 esac
12978                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12979                 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'
12980                 ;;
12981             esac
12982             archive_cmds_need_lc_CXX=no
12983             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12984             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12985             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12986             ;;
12987           pgCC* | pgcpp*)
12988             # Portland Group C++ compiler
12989             case `$CC -V` in
12990             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12991               prelink_cmds_CXX='tpldir=Template.dir~
12992                 rm -rf $tpldir~
12993                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12994                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12995               old_archive_cmds_CXX='tpldir=Template.dir~
12996                 rm -rf $tpldir~
12997                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12998                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12999                 $RANLIB $oldlib'
13000               archive_cmds_CXX='tpldir=Template.dir~
13001                 rm -rf $tpldir~
13002                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13003                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13004               archive_expsym_cmds_CXX='tpldir=Template.dir~
13005                 rm -rf $tpldir~
13006                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13007                 $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'
13008               ;;
13009             *) # Version 6 and above use weak symbols
13010               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13011               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'
13012               ;;
13013             esac
13014
13015             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13016             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13017             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'
13018             ;;
13019           cxx*)
13020             # Compaq C++
13021             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022             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'
13023
13024             runpath_var=LD_RUN_PATH
13025             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13026             hardcode_libdir_separator_CXX=:
13027
13028             # Commands to make compiler produce verbose output that lists
13029             # what "hidden" libraries, object files and flags are used when
13030             # linking a shared library.
13031             #
13032             # There doesn't appear to be a way to prevent this compiler from
13033             # explicitly linking system object files so we need to strip them
13034             # from the output so that they don't get included in the library
13035             # dependencies.
13036             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'
13037             ;;
13038           xl* | mpixl* | bgxl*)
13039             # IBM XL 8.0 on PPC, with GNU ld
13040             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13041             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13042             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043             if test "x$supports_anon_versioning" = xyes; then
13044               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13045                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13046                 echo "local: *; };" >> $output_objdir/$libname.ver~
13047                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13048             fi
13049             ;;
13050           *)
13051             case `$CC -V 2>&1 | sed 5q` in
13052             *Sun\ C*)
13053               # Sun C++ 5.9
13054               no_undefined_flag_CXX=' -zdefs'
13055               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13056               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'
13057               hardcode_libdir_flag_spec_CXX='-R$libdir'
13058               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'
13059               compiler_needs_object_CXX=yes
13060
13061               # Not sure whether something based on
13062               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13063               # would be better.
13064               output_verbose_link_cmd='func_echo_all'
13065
13066               # Archives containing C++ object files must be created using
13067               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13068               # necessary to make sure instantiated templates are included
13069               # in the archive.
13070               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13071               ;;
13072             esac
13073             ;;
13074         esac
13075         ;;
13076
13077       lynxos*)
13078         # FIXME: insert proper C++ library support
13079         ld_shlibs_CXX=no
13080         ;;
13081
13082       m88k*)
13083         # FIXME: insert proper C++ library support
13084         ld_shlibs_CXX=no
13085         ;;
13086
13087       mvs*)
13088         case $cc_basename in
13089           cxx*)
13090             # FIXME: insert proper C++ library support
13091             ld_shlibs_CXX=no
13092             ;;
13093           *)
13094             # FIXME: insert proper C++ library support
13095             ld_shlibs_CXX=no
13096             ;;
13097         esac
13098         ;;
13099
13100       netbsd*)
13101         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13102           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13103           wlarc=
13104           hardcode_libdir_flag_spec_CXX='-R$libdir'
13105           hardcode_direct_CXX=yes
13106           hardcode_shlibpath_var_CXX=no
13107         fi
13108         # Workaround some broken pre-1.5 toolchains
13109         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13110         ;;
13111
13112       *nto* | *qnx*)
13113         ld_shlibs_CXX=yes
13114         ;;
13115
13116       openbsd2*)
13117         # C++ shared libraries are fairly broken
13118         ld_shlibs_CXX=no
13119         ;;
13120
13121       openbsd*)
13122         if test -f /usr/libexec/ld.so; then
13123           hardcode_direct_CXX=yes
13124           hardcode_shlibpath_var_CXX=no
13125           hardcode_direct_absolute_CXX=yes
13126           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13127           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13128           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13129             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13130             export_dynamic_flag_spec_CXX='${wl}-E'
13131             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13132           fi
13133           output_verbose_link_cmd=func_echo_all
13134         else
13135           ld_shlibs_CXX=no
13136         fi
13137         ;;
13138
13139       osf3* | osf4* | osf5*)
13140         case $cc_basename in
13141           KCC*)
13142             # Kuck and Associates, Inc. (KAI) C++ Compiler
13143
13144             # KCC will only create a shared library if the output file
13145             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13146             # to its proper name (with version) after linking.
13147             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'
13148
13149             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13150             hardcode_libdir_separator_CXX=:
13151
13152             # Archives containing C++ object files must be created using
13153             # the KAI C++ compiler.
13154             case $host in
13155               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13156               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13157             esac
13158             ;;
13159           RCC*)
13160             # Rational C++ 2.4.1
13161             # FIXME: insert proper C++ library support
13162             ld_shlibs_CXX=no
13163             ;;
13164           cxx*)
13165             case $host in
13166               osf3*)
13167                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13168                 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'
13169                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13170                 ;;
13171               *)
13172                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13173                 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'
13174                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13175                   echo "-hidden">> $lib.exp~
13176                   $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~
13177                   $RM $lib.exp'
13178                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13179                 ;;
13180             esac
13181
13182             hardcode_libdir_separator_CXX=:
13183
13184             # Commands to make compiler produce verbose output that lists
13185             # what "hidden" libraries, object files and flags are used when
13186             # linking a shared library.
13187             #
13188             # There doesn't appear to be a way to prevent this compiler from
13189             # explicitly linking system object files so we need to strip them
13190             # from the output so that they don't get included in the library
13191             # dependencies.
13192             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"'
13193             ;;
13194           *)
13195             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13196               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13197               case $host in
13198                 osf3*)
13199                   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'
13200                   ;;
13201                 *)
13202                   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'
13203                   ;;
13204               esac
13205
13206               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13207               hardcode_libdir_separator_CXX=:
13208
13209               # Commands to make compiler produce verbose output that lists
13210               # what "hidden" libraries, object files and flags are used when
13211               # linking a shared library.
13212               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13213
13214             else
13215               # FIXME: insert proper C++ library support
13216               ld_shlibs_CXX=no
13217             fi
13218             ;;
13219         esac
13220         ;;
13221
13222       psos*)
13223         # FIXME: insert proper C++ library support
13224         ld_shlibs_CXX=no
13225         ;;
13226
13227       sunos4*)
13228         case $cc_basename in
13229           CC*)
13230             # Sun C++ 4.x
13231             # FIXME: insert proper C++ library support
13232             ld_shlibs_CXX=no
13233             ;;
13234           lcc*)
13235             # Lucid
13236             # FIXME: insert proper C++ library support
13237             ld_shlibs_CXX=no
13238             ;;
13239           *)
13240             # FIXME: insert proper C++ library support
13241             ld_shlibs_CXX=no
13242             ;;
13243         esac
13244         ;;
13245
13246       solaris*)
13247         case $cc_basename in
13248           CC*)
13249             # Sun C++ 4.2, 5.x and Centerline C++
13250             archive_cmds_need_lc_CXX=yes
13251             no_undefined_flag_CXX=' -zdefs'
13252             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13253             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13254               $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'
13255
13256             hardcode_libdir_flag_spec_CXX='-R$libdir'
13257             hardcode_shlibpath_var_CXX=no
13258             case $host_os in
13259               solaris2.[0-5] | solaris2.[0-5].*) ;;
13260               *)
13261                 # The compiler driver will combine and reorder linker options,
13262                 # but understands `-z linker_flag'.
13263                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13264                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13265                 ;;
13266             esac
13267             link_all_deplibs_CXX=yes
13268
13269             output_verbose_link_cmd='func_echo_all'
13270
13271             # Archives containing C++ object files must be created using
13272             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13273             # necessary to make sure instantiated templates are included
13274             # in the archive.
13275             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13276             ;;
13277           gcx*)
13278             # Green Hills C++ Compiler
13279             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13280
13281             # The C++ compiler must be used to create the archive.
13282             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13283             ;;
13284           *)
13285             # GNU C++ compiler with Solaris linker
13286             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13287               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13288               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13289                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13290                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13291                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13292
13293                 # Commands to make compiler produce verbose output that lists
13294                 # what "hidden" libraries, object files and flags are used when
13295                 # linking a shared library.
13296                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13297               else
13298                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13299                 # platform.
13300                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13301                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13302                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13303
13304                 # Commands to make compiler produce verbose output that lists
13305                 # what "hidden" libraries, object files and flags are used when
13306                 # linking a shared library.
13307                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13308               fi
13309
13310               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13311               case $host_os in
13312                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13313                 *)
13314                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13315                   ;;
13316               esac
13317             fi
13318             ;;
13319         esac
13320         ;;
13321
13322     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13323       no_undefined_flag_CXX='${wl}-z,text'
13324       archive_cmds_need_lc_CXX=no
13325       hardcode_shlibpath_var_CXX=no
13326       runpath_var='LD_RUN_PATH'
13327
13328       case $cc_basename in
13329         CC*)
13330           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332           ;;
13333         *)
13334           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336           ;;
13337       esac
13338       ;;
13339
13340       sysv5* | sco3.2v5* | sco5v6*)
13341         # Note: We can NOT use -z defs as we might desire, because we do not
13342         # link with -lc, and that would cause any symbols used from libc to
13343         # always be unresolved, which means just about no library would
13344         # ever link correctly.  If we're not using GNU ld we use -z text
13345         # though, which does catch some bad symbols but isn't as heavy-handed
13346         # as -z defs.
13347         no_undefined_flag_CXX='${wl}-z,text'
13348         allow_undefined_flag_CXX='${wl}-z,nodefs'
13349         archive_cmds_need_lc_CXX=no
13350         hardcode_shlibpath_var_CXX=no
13351         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13352         hardcode_libdir_separator_CXX=':'
13353         link_all_deplibs_CXX=yes
13354         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13355         runpath_var='LD_RUN_PATH'
13356
13357         case $cc_basename in
13358           CC*)
13359             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13360             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13361             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13362               '"$old_archive_cmds_CXX"
13363             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13364               '"$reload_cmds_CXX"
13365             ;;
13366           *)
13367             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13368             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13369             ;;
13370         esac
13371       ;;
13372
13373       tandem*)
13374         case $cc_basename in
13375           NCC*)
13376             # NonStop-UX NCC 3.20
13377             # FIXME: insert proper C++ library support
13378             ld_shlibs_CXX=no
13379             ;;
13380           *)
13381             # FIXME: insert proper C++ library support
13382             ld_shlibs_CXX=no
13383             ;;
13384         esac
13385         ;;
13386
13387       vxworks*)
13388         # FIXME: insert proper C++ library support
13389         ld_shlibs_CXX=no
13390         ;;
13391
13392       *)
13393         # FIXME: insert proper C++ library support
13394         ld_shlibs_CXX=no
13395         ;;
13396     esac
13397
13398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13399 $as_echo "$ld_shlibs_CXX" >&6; }
13400     test "$ld_shlibs_CXX" = no && can_build_shared=no
13401
13402     GCC_CXX="$GXX"
13403     LD_CXX="$LD"
13404
13405     ## CAVEAT EMPTOR:
13406     ## There is no encapsulation within the following macros, do not change
13407     ## the running order or otherwise move them around unless you know exactly
13408     ## what you are doing...
13409     # Dependencies to place before and after the object being linked:
13410 predep_objects_CXX=
13411 postdep_objects_CXX=
13412 predeps_CXX=
13413 postdeps_CXX=
13414 compiler_lib_search_path_CXX=
13415
13416 cat > conftest.$ac_ext <<_LT_EOF
13417 class Foo
13418 {
13419 public:
13420   Foo (void) { a = 0; }
13421 private:
13422   int a;
13423 };
13424 _LT_EOF
13425
13426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13427   (eval $ac_compile) 2>&5
13428   ac_status=$?
13429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13430   test $ac_status = 0; }; then
13431   # Parse the compiler output and extract the necessary
13432   # objects, libraries and library flags.
13433
13434   # Sentinel used to keep track of whether or not we are before
13435   # the conftest object file.
13436   pre_test_object_deps_done=no
13437
13438   for p in `eval "$output_verbose_link_cmd"`; do
13439     case $p in
13440
13441     -L* | -R* | -l*)
13442        # Some compilers place space between "-{L,R}" and the path.
13443        # Remove the space.
13444        if test $p = "-L" ||
13445           test $p = "-R"; then
13446          prev=$p
13447          continue
13448        else
13449          prev=
13450        fi
13451
13452        if test "$pre_test_object_deps_done" = no; then
13453          case $p in
13454          -L* | -R*)
13455            # Internal compiler library paths should come after those
13456            # provided the user.  The postdeps already come after the
13457            # user supplied libs so there is no need to process them.
13458            if test -z "$compiler_lib_search_path_CXX"; then
13459              compiler_lib_search_path_CXX="${prev}${p}"
13460            else
13461              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13462            fi
13463            ;;
13464          # The "-l" case would never come before the object being
13465          # linked, so don't bother handling this case.
13466          esac
13467        else
13468          if test -z "$postdeps_CXX"; then
13469            postdeps_CXX="${prev}${p}"
13470          else
13471            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13472          fi
13473        fi
13474        ;;
13475
13476     *.$objext)
13477        # This assumes that the test object file only shows up
13478        # once in the compiler output.
13479        if test "$p" = "conftest.$objext"; then
13480          pre_test_object_deps_done=yes
13481          continue
13482        fi
13483
13484        if test "$pre_test_object_deps_done" = no; then
13485          if test -z "$predep_objects_CXX"; then
13486            predep_objects_CXX="$p"
13487          else
13488            predep_objects_CXX="$predep_objects_CXX $p"
13489          fi
13490        else
13491          if test -z "$postdep_objects_CXX"; then
13492            postdep_objects_CXX="$p"
13493          else
13494            postdep_objects_CXX="$postdep_objects_CXX $p"
13495          fi
13496        fi
13497        ;;
13498
13499     *) ;; # Ignore the rest.
13500
13501     esac
13502   done
13503
13504   # Clean up.
13505   rm -f a.out a.exe
13506 else
13507   echo "libtool.m4: error: problem compiling CXX test program"
13508 fi
13509
13510 $RM -f confest.$objext
13511
13512 # PORTME: override above test on systems where it is broken
13513 case $host_os in
13514 interix[3-9]*)
13515   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13516   # hack all around it, let's just trust "g++" to DTRT.
13517   predep_objects_CXX=
13518   postdep_objects_CXX=
13519   postdeps_CXX=
13520   ;;
13521
13522 linux*)
13523   case `$CC -V 2>&1 | sed 5q` in
13524   *Sun\ C*)
13525     # Sun C++ 5.9
13526
13527     # The more standards-conforming stlport4 library is
13528     # incompatible with the Cstd library. Avoid specifying
13529     # it if it's in CXXFLAGS. Ignore libCrun as
13530     # -library=stlport4 depends on it.
13531     case " $CXX $CXXFLAGS " in
13532     *" -library=stlport4 "*)
13533       solaris_use_stlport4=yes
13534       ;;
13535     esac
13536
13537     if test "$solaris_use_stlport4" != yes; then
13538       postdeps_CXX='-library=Cstd -library=Crun'
13539     fi
13540     ;;
13541   esac
13542   ;;
13543
13544 solaris*)
13545   case $cc_basename in
13546   CC*)
13547     # The more standards-conforming stlport4 library is
13548     # incompatible with the Cstd library. Avoid specifying
13549     # it if it's in CXXFLAGS. Ignore libCrun as
13550     # -library=stlport4 depends on it.
13551     case " $CXX $CXXFLAGS " in
13552     *" -library=stlport4 "*)
13553       solaris_use_stlport4=yes
13554       ;;
13555     esac
13556
13557     # Adding this requires a known-good setup of shared libraries for
13558     # Sun compiler versions before 5.6, else PIC objects from an old
13559     # archive will be linked into the output, leading to subtle bugs.
13560     if test "$solaris_use_stlport4" != yes; then
13561       postdeps_CXX='-library=Cstd -library=Crun'
13562     fi
13563     ;;
13564   esac
13565   ;;
13566 esac
13567
13568
13569 case " $postdeps_CXX " in
13570 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13571 esac
13572  compiler_lib_search_dirs_CXX=
13573 if test -n "${compiler_lib_search_path_CXX}"; then
13574  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13575 fi
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
13602
13603
13604
13605
13606
13607     lt_prog_compiler_wl_CXX=
13608 lt_prog_compiler_pic_CXX=
13609 lt_prog_compiler_static_CXX=
13610
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13612 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13613
13614   # C++ specific cases for pic, static, wl, etc.
13615   if test "$GXX" = yes; then
13616     lt_prog_compiler_wl_CXX='-Wl,'
13617     lt_prog_compiler_static_CXX='-static'
13618
13619     case $host_os in
13620     aix*)
13621       # All AIX code is PIC.
13622       if test "$host_cpu" = ia64; then
13623         # AIX 5 now supports IA64 processor
13624         lt_prog_compiler_static_CXX='-Bstatic'
13625       fi
13626       ;;
13627
13628     amigaos*)
13629       case $host_cpu in
13630       powerpc)
13631             # see comment about AmigaOS4 .so support
13632             lt_prog_compiler_pic_CXX='-fPIC'
13633         ;;
13634       m68k)
13635             # FIXME: we need at least 68020 code to build shared libraries, but
13636             # adding the `-m68020' flag to GCC prevents building anything better,
13637             # like `-m68040'.
13638             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13639         ;;
13640       esac
13641       ;;
13642
13643     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13644       # PIC is the default for these OSes.
13645       ;;
13646     mingw* | cygwin* | os2* | pw32* | cegcc*)
13647       # This hack is so that the source file can tell whether it is being
13648       # built for inclusion in a dll (and should export symbols for example).
13649       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13650       # (--disable-auto-import) libraries
13651       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13652       ;;
13653     darwin* | rhapsody*)
13654       # PIC is the default on this platform
13655       # Common symbols not allowed in MH_DYLIB files
13656       lt_prog_compiler_pic_CXX='-fno-common'
13657       ;;
13658     *djgpp*)
13659       # DJGPP does not support shared libraries at all
13660       lt_prog_compiler_pic_CXX=
13661       ;;
13662     haiku*)
13663       # PIC is the default for Haiku.
13664       # The "-static" flag exists, but is broken.
13665       lt_prog_compiler_static_CXX=
13666       ;;
13667     interix[3-9]*)
13668       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13669       # Instead, we relocate shared libraries at runtime.
13670       ;;
13671     sysv4*MP*)
13672       if test -d /usr/nec; then
13673         lt_prog_compiler_pic_CXX=-Kconform_pic
13674       fi
13675       ;;
13676     hpux*)
13677       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13678       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13679       # sets the default TLS model and affects inlining.
13680       case $host_cpu in
13681       hppa*64*)
13682         ;;
13683       *)
13684         lt_prog_compiler_pic_CXX='-fPIC'
13685         ;;
13686       esac
13687       ;;
13688     *qnx* | *nto*)
13689       # QNX uses GNU C++, but need to define -shared option too, otherwise
13690       # it will coredump.
13691       lt_prog_compiler_pic_CXX='-fPIC -shared'
13692       ;;
13693     *)
13694       lt_prog_compiler_pic_CXX='-fPIC'
13695       ;;
13696     esac
13697   else
13698     case $host_os in
13699       aix[4-9]*)
13700         # All AIX code is PIC.
13701         if test "$host_cpu" = ia64; then
13702           # AIX 5 now supports IA64 processor
13703           lt_prog_compiler_static_CXX='-Bstatic'
13704         else
13705           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13706         fi
13707         ;;
13708       chorus*)
13709         case $cc_basename in
13710         cxch68*)
13711           # Green Hills C++ Compiler
13712           # _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"
13713           ;;
13714         esac
13715         ;;
13716       dgux*)
13717         case $cc_basename in
13718           ec++*)
13719             lt_prog_compiler_pic_CXX='-KPIC'
13720             ;;
13721           ghcx*)
13722             # Green Hills C++ Compiler
13723             lt_prog_compiler_pic_CXX='-pic'
13724             ;;
13725           *)
13726             ;;
13727         esac
13728         ;;
13729       freebsd* | dragonfly*)
13730         # FreeBSD uses GNU C++
13731         ;;
13732       hpux9* | hpux10* | hpux11*)
13733         case $cc_basename in
13734           CC*)
13735             lt_prog_compiler_wl_CXX='-Wl,'
13736             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13737             if test "$host_cpu" != ia64; then
13738               lt_prog_compiler_pic_CXX='+Z'
13739             fi
13740             ;;
13741           aCC*)
13742             lt_prog_compiler_wl_CXX='-Wl,'
13743             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13744             case $host_cpu in
13745             hppa*64*|ia64*)
13746               # +Z the default
13747               ;;
13748             *)
13749               lt_prog_compiler_pic_CXX='+Z'
13750               ;;
13751             esac
13752             ;;
13753           *)
13754             ;;
13755         esac
13756         ;;
13757       interix*)
13758         # This is c89, which is MS Visual C++ (no shared libs)
13759         # Anyone wants to do a port?
13760         ;;
13761       irix5* | irix6* | nonstopux*)
13762         case $cc_basename in
13763           CC*)
13764             lt_prog_compiler_wl_CXX='-Wl,'
13765             lt_prog_compiler_static_CXX='-non_shared'
13766             # CC pic flag -KPIC is the default.
13767             ;;
13768           *)
13769             ;;
13770         esac
13771         ;;
13772       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13773         case $cc_basename in
13774           KCC*)
13775             # KAI C++ Compiler
13776             lt_prog_compiler_wl_CXX='--backend -Wl,'
13777             lt_prog_compiler_pic_CXX='-fPIC'
13778             ;;
13779           ecpc* )
13780             # old Intel C++ for x86_64 which still supported -KPIC.
13781             lt_prog_compiler_wl_CXX='-Wl,'
13782             lt_prog_compiler_pic_CXX='-KPIC'
13783             lt_prog_compiler_static_CXX='-static'
13784             ;;
13785           icpc* )
13786             # Intel C++, used to be incompatible with GCC.
13787             # ICC 10 doesn't accept -KPIC any more.
13788             lt_prog_compiler_wl_CXX='-Wl,'
13789             lt_prog_compiler_pic_CXX='-fPIC'
13790             lt_prog_compiler_static_CXX='-static'
13791             ;;
13792           pgCC* | pgcpp*)
13793             # Portland Group C++ compiler
13794             lt_prog_compiler_wl_CXX='-Wl,'
13795             lt_prog_compiler_pic_CXX='-fpic'
13796             lt_prog_compiler_static_CXX='-Bstatic'
13797             ;;
13798           cxx*)
13799             # Compaq C++
13800             # Make sure the PIC flag is empty.  It appears that all Alpha
13801             # Linux and Compaq Tru64 Unix objects are PIC.
13802             lt_prog_compiler_pic_CXX=
13803             lt_prog_compiler_static_CXX='-non_shared'
13804             ;;
13805           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13806             # IBM XL 8.0, 9.0 on PPC and BlueGene
13807             lt_prog_compiler_wl_CXX='-Wl,'
13808             lt_prog_compiler_pic_CXX='-qpic'
13809             lt_prog_compiler_static_CXX='-qstaticlink'
13810             ;;
13811           *)
13812             case `$CC -V 2>&1 | sed 5q` in
13813             *Sun\ C*)
13814               # Sun C++ 5.9
13815               lt_prog_compiler_pic_CXX='-KPIC'
13816               lt_prog_compiler_static_CXX='-Bstatic'
13817               lt_prog_compiler_wl_CXX='-Qoption ld '
13818               ;;
13819             esac
13820             ;;
13821         esac
13822         ;;
13823       lynxos*)
13824         ;;
13825       m88k*)
13826         ;;
13827       mvs*)
13828         case $cc_basename in
13829           cxx*)
13830             lt_prog_compiler_pic_CXX='-W c,exportall'
13831             ;;
13832           *)
13833             ;;
13834         esac
13835         ;;
13836       netbsd*)
13837         ;;
13838       *qnx* | *nto*)
13839         # QNX uses GNU C++, but need to define -shared option too, otherwise
13840         # it will coredump.
13841         lt_prog_compiler_pic_CXX='-fPIC -shared'
13842         ;;
13843       osf3* | osf4* | osf5*)
13844         case $cc_basename in
13845           KCC*)
13846             lt_prog_compiler_wl_CXX='--backend -Wl,'
13847             ;;
13848           RCC*)
13849             # Rational C++ 2.4.1
13850             lt_prog_compiler_pic_CXX='-pic'
13851             ;;
13852           cxx*)
13853             # Digital/Compaq C++
13854             lt_prog_compiler_wl_CXX='-Wl,'
13855             # Make sure the PIC flag is empty.  It appears that all Alpha
13856             # Linux and Compaq Tru64 Unix objects are PIC.
13857             lt_prog_compiler_pic_CXX=
13858             lt_prog_compiler_static_CXX='-non_shared'
13859             ;;
13860           *)
13861             ;;
13862         esac
13863         ;;
13864       psos*)
13865         ;;
13866       solaris*)
13867         case $cc_basename in
13868           CC*)
13869             # Sun C++ 4.2, 5.x and Centerline C++
13870             lt_prog_compiler_pic_CXX='-KPIC'
13871             lt_prog_compiler_static_CXX='-Bstatic'
13872             lt_prog_compiler_wl_CXX='-Qoption ld '
13873             ;;
13874           gcx*)
13875             # Green Hills C++ Compiler
13876             lt_prog_compiler_pic_CXX='-PIC'
13877             ;;
13878           *)
13879             ;;
13880         esac
13881         ;;
13882       sunos4*)
13883         case $cc_basename in
13884           CC*)
13885             # Sun C++ 4.x
13886             lt_prog_compiler_pic_CXX='-pic'
13887             lt_prog_compiler_static_CXX='-Bstatic'
13888             ;;
13889           lcc*)
13890             # Lucid
13891             lt_prog_compiler_pic_CXX='-pic'
13892             ;;
13893           *)
13894             ;;
13895         esac
13896         ;;
13897       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13898         case $cc_basename in
13899           CC*)
13900             lt_prog_compiler_wl_CXX='-Wl,'
13901             lt_prog_compiler_pic_CXX='-KPIC'
13902             lt_prog_compiler_static_CXX='-Bstatic'
13903             ;;
13904         esac
13905         ;;
13906       tandem*)
13907         case $cc_basename in
13908           NCC*)
13909             # NonStop-UX NCC 3.20
13910             lt_prog_compiler_pic_CXX='-KPIC'
13911             ;;
13912           *)
13913             ;;
13914         esac
13915         ;;
13916       vxworks*)
13917         ;;
13918       *)
13919         lt_prog_compiler_can_build_shared_CXX=no
13920         ;;
13921     esac
13922   fi
13923
13924 case $host_os in
13925   # For platforms which do not support PIC, -DPIC is meaningless:
13926   *djgpp*)
13927     lt_prog_compiler_pic_CXX=
13928     ;;
13929   *)
13930     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13931     ;;
13932 esac
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13934 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13935
13936
13937
13938 #
13939 # Check to make sure the PIC flag actually works.
13940 #
13941 if test -n "$lt_prog_compiler_pic_CXX"; then
13942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13943 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13944 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13945   $as_echo_n "(cached) " >&6
13946 else
13947   lt_cv_prog_compiler_pic_works_CXX=no
13948    ac_outfile=conftest.$ac_objext
13949    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13950    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13951    # Insert the option either (1) after the last *FLAGS variable, or
13952    # (2) before a word containing "conftest.", or (3) at the end.
13953    # Note that $ac_compile itself does not contain backslashes and begins
13954    # with a dollar sign (not a hyphen), so the echo should work correctly.
13955    # The option is referenced via a variable to avoid confusing sed.
13956    lt_compile=`echo "$ac_compile" | $SED \
13957    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13958    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13959    -e 's:$: $lt_compiler_flag:'`
13960    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13961    (eval "$lt_compile" 2>conftest.err)
13962    ac_status=$?
13963    cat conftest.err >&5
13964    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965    if (exit $ac_status) && test -s "$ac_outfile"; then
13966      # The compiler can only warn and ignore the option if not recognized
13967      # So say no if there are warnings other than the usual output.
13968      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13969      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13970      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13971        lt_cv_prog_compiler_pic_works_CXX=yes
13972      fi
13973    fi
13974    $RM conftest*
13975
13976 fi
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13978 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13979
13980 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13981     case $lt_prog_compiler_pic_CXX in
13982      "" | " "*) ;;
13983      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13984      esac
13985 else
13986     lt_prog_compiler_pic_CXX=
13987      lt_prog_compiler_can_build_shared_CXX=no
13988 fi
13989
13990 fi
13991
13992
13993
13994 #
13995 # Check to make sure the static flag actually works.
13996 #
13997 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14000 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14001   $as_echo_n "(cached) " >&6
14002 else
14003   lt_cv_prog_compiler_static_works_CXX=no
14004    save_LDFLAGS="$LDFLAGS"
14005    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14006    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14007    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14008      # The linker can only warn and ignore the option if not recognized
14009      # So say no if there are warnings
14010      if test -s conftest.err; then
14011        # Append any errors to the config.log.
14012        cat conftest.err 1>&5
14013        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14014        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14015        if diff conftest.exp conftest.er2 >/dev/null; then
14016          lt_cv_prog_compiler_static_works_CXX=yes
14017        fi
14018      else
14019        lt_cv_prog_compiler_static_works_CXX=yes
14020      fi
14021    fi
14022    $RM -r conftest*
14023    LDFLAGS="$save_LDFLAGS"
14024
14025 fi
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14027 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14028
14029 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14030     :
14031 else
14032     lt_prog_compiler_static_CXX=
14033 fi
14034
14035
14036
14037
14038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14040 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043   lt_cv_prog_compiler_c_o_CXX=no
14044    $RM -r conftest 2>/dev/null
14045    mkdir conftest
14046    cd conftest
14047    mkdir out
14048    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14049
14050    lt_compiler_flag="-o out/conftest2.$ac_objext"
14051    # Insert the option either (1) after the last *FLAGS variable, or
14052    # (2) before a word containing "conftest.", or (3) at the end.
14053    # Note that $ac_compile itself does not contain backslashes and begins
14054    # with a dollar sign (not a hyphen), so the echo should work correctly.
14055    lt_compile=`echo "$ac_compile" | $SED \
14056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14058    -e 's:$: $lt_compiler_flag:'`
14059    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14060    (eval "$lt_compile" 2>out/conftest.err)
14061    ac_status=$?
14062    cat out/conftest.err >&5
14063    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14065    then
14066      # The compiler can only warn and ignore the option if not recognized
14067      # So say no if there are warnings
14068      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14069      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14070      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14071        lt_cv_prog_compiler_c_o_CXX=yes
14072      fi
14073    fi
14074    chmod u+w . 2>&5
14075    $RM conftest*
14076    # SGI C++ compiler will create directory out/ii_files/ for
14077    # template instantiation
14078    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14079    $RM out/* && rmdir out
14080    cd ..
14081    $RM -r conftest
14082    $RM conftest*
14083
14084 fi
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14086 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14087
14088
14089
14090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14091 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14092 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14093   $as_echo_n "(cached) " >&6
14094 else
14095   lt_cv_prog_compiler_c_o_CXX=no
14096    $RM -r conftest 2>/dev/null
14097    mkdir conftest
14098    cd conftest
14099    mkdir out
14100    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14101
14102    lt_compiler_flag="-o out/conftest2.$ac_objext"
14103    # Insert the option either (1) after the last *FLAGS variable, or
14104    # (2) before a word containing "conftest.", or (3) at the end.
14105    # Note that $ac_compile itself does not contain backslashes and begins
14106    # with a dollar sign (not a hyphen), so the echo should work correctly.
14107    lt_compile=`echo "$ac_compile" | $SED \
14108    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14109    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14110    -e 's:$: $lt_compiler_flag:'`
14111    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14112    (eval "$lt_compile" 2>out/conftest.err)
14113    ac_status=$?
14114    cat out/conftest.err >&5
14115    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14117    then
14118      # The compiler can only warn and ignore the option if not recognized
14119      # So say no if there are warnings
14120      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14121      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14122      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14123        lt_cv_prog_compiler_c_o_CXX=yes
14124      fi
14125    fi
14126    chmod u+w . 2>&5
14127    $RM conftest*
14128    # SGI C++ compiler will create directory out/ii_files/ for
14129    # template instantiation
14130    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14131    $RM out/* && rmdir out
14132    cd ..
14133    $RM -r conftest
14134    $RM conftest*
14135
14136 fi
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14138 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14139
14140
14141
14142
14143 hard_links="nottested"
14144 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14145   # do not overwrite the value of need_locks provided by the user
14146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14147 $as_echo_n "checking if we can lock with hard links... " >&6; }
14148   hard_links=yes
14149   $RM conftest*
14150   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14151   touch conftest.a
14152   ln conftest.a conftest.b 2>&5 || hard_links=no
14153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14155 $as_echo "$hard_links" >&6; }
14156   if test "$hard_links" = no; then
14157     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14158 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14159     need_locks=warn
14160   fi
14161 else
14162   need_locks=no
14163 fi
14164
14165
14166
14167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14168 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14169
14170   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14171   case $host_os in
14172   aix[4-9]*)
14173     # If we're using GNU nm, then we don't want the "-C" option.
14174     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14175     # Also, AIX nm treats weak defined symbols like other global defined
14176     # symbols, whereas GNU nm marks them as "W".
14177     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14178       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'
14179     else
14180       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'
14181     fi
14182     ;;
14183   pw32*)
14184     export_symbols_cmds_CXX="$ltdll_cmds"
14185   ;;
14186   cygwin* | mingw* | cegcc*)
14187     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'
14188   ;;
14189   *)
14190     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14191   ;;
14192   esac
14193   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14194
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14196 $as_echo "$ld_shlibs_CXX" >&6; }
14197 test "$ld_shlibs_CXX" = no && can_build_shared=no
14198
14199 with_gnu_ld_CXX=$with_gnu_ld
14200
14201
14202
14203
14204
14205
14206 #
14207 # Do we need to explicitly link libc?
14208 #
14209 case "x$archive_cmds_need_lc_CXX" in
14210 x|xyes)
14211   # Assume -lc should be added
14212   archive_cmds_need_lc_CXX=yes
14213
14214   if test "$enable_shared" = yes && test "$GCC" = yes; then
14215     case $archive_cmds_CXX in
14216     *'~'*)
14217       # FIXME: we may have to deal with multi-command sequences.
14218       ;;
14219     '$CC '*)
14220       # Test whether the compiler implicitly links with -lc since on some
14221       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14222       # to ld, don't add -lc before -lgcc.
14223       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14224 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14225 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14226   $as_echo_n "(cached) " >&6
14227 else
14228   $RM conftest*
14229         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14230
14231         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14232   (eval $ac_compile) 2>&5
14233   ac_status=$?
14234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14235   test $ac_status = 0; } 2>conftest.err; then
14236           soname=conftest
14237           lib=conftest
14238           libobjs=conftest.$ac_objext
14239           deplibs=
14240           wl=$lt_prog_compiler_wl_CXX
14241           pic_flag=$lt_prog_compiler_pic_CXX
14242           compiler_flags=-v
14243           linker_flags=-v
14244           verstring=
14245           output_objdir=.
14246           libname=conftest
14247           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14248           allow_undefined_flag_CXX=
14249           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14250   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14251   ac_status=$?
14252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14253   test $ac_status = 0; }
14254           then
14255             lt_cv_archive_cmds_need_lc_CXX=no
14256           else
14257             lt_cv_archive_cmds_need_lc_CXX=yes
14258           fi
14259           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14260         else
14261           cat conftest.err 1>&5
14262         fi
14263         $RM conftest*
14264
14265 fi
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14267 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14268       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14269       ;;
14270     esac
14271   fi
14272   ;;
14273 esac
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
14333
14334
14335
14336
14337
14338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14339 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14340
14341 library_names_spec=
14342 libname_spec='lib$name'
14343 soname_spec=
14344 shrext_cmds=".so"
14345 postinstall_cmds=
14346 postuninstall_cmds=
14347 finish_cmds=
14348 finish_eval=
14349 shlibpath_var=
14350 shlibpath_overrides_runpath=unknown
14351 version_type=none
14352 dynamic_linker="$host_os ld.so"
14353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14354 need_lib_prefix=unknown
14355 hardcode_into_libs=no
14356
14357 # when you set need_version to no, make sure it does not cause -set_version
14358 # flags to be left without arguments
14359 need_version=unknown
14360
14361 case $host_os in
14362 aix3*)
14363   version_type=linux
14364   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14365   shlibpath_var=LIBPATH
14366
14367   # AIX 3 has no versioning support, so we append a major version to the name.
14368   soname_spec='${libname}${release}${shared_ext}$major'
14369   ;;
14370
14371 aix[4-9]*)
14372   version_type=linux
14373   need_lib_prefix=no
14374   need_version=no
14375   hardcode_into_libs=yes
14376   if test "$host_cpu" = ia64; then
14377     # AIX 5 supports IA64
14378     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14379     shlibpath_var=LD_LIBRARY_PATH
14380   else
14381     # With GCC up to 2.95.x, collect2 would create an import file
14382     # for dependence libraries.  The import file would start with
14383     # the line `#! .'.  This would cause the generated library to
14384     # depend on `.', always an invalid library.  This was fixed in
14385     # development snapshots of GCC prior to 3.0.
14386     case $host_os in
14387       aix4 | aix4.[01] | aix4.[01].*)
14388       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14389            echo ' yes '
14390            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14391         :
14392       else
14393         can_build_shared=no
14394       fi
14395       ;;
14396     esac
14397     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14398     # soname into executable. Probably we can add versioning support to
14399     # collect2, so additional links can be useful in future.
14400     if test "$aix_use_runtimelinking" = yes; then
14401       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14402       # instead of lib<name>.a to let people know that these are not
14403       # typical AIX shared libraries.
14404       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405     else
14406       # We preserve .a as extension for shared libraries through AIX4.2
14407       # and later when we are not doing run time linking.
14408       library_names_spec='${libname}${release}.a $libname.a'
14409       soname_spec='${libname}${release}${shared_ext}$major'
14410     fi
14411     shlibpath_var=LIBPATH
14412   fi
14413   ;;
14414
14415 amigaos*)
14416   case $host_cpu in
14417   powerpc)
14418     # Since July 2007 AmigaOS4 officially supports .so libraries.
14419     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14421     ;;
14422   m68k)
14423     library_names_spec='$libname.ixlibrary $libname.a'
14424     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14425     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'
14426     ;;
14427   esac
14428   ;;
14429
14430 beos*)
14431   library_names_spec='${libname}${shared_ext}'
14432   dynamic_linker="$host_os ld.so"
14433   shlibpath_var=LIBRARY_PATH
14434   ;;
14435
14436 bsdi[45]*)
14437   version_type=linux
14438   need_version=no
14439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440   soname_spec='${libname}${release}${shared_ext}$major'
14441   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14442   shlibpath_var=LD_LIBRARY_PATH
14443   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14444   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14445   # the default ld.so.conf also contains /usr/contrib/lib and
14446   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14447   # libtool to hard-code these into programs
14448   ;;
14449
14450 cygwin* | mingw* | pw32* | cegcc*)
14451   version_type=windows
14452   shrext_cmds=".dll"
14453   need_version=no
14454   need_lib_prefix=no
14455
14456   case $GCC,$host_os in
14457   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14458     library_names_spec='$libname.dll.a'
14459     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14460     postinstall_cmds='base_file=`basename \${file}`~
14461       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14462       dldir=$destdir/`dirname \$dlpath`~
14463       test -d \$dldir || mkdir -p \$dldir~
14464       $install_prog $dir/$dlname \$dldir/$dlname~
14465       chmod a+x \$dldir/$dlname~
14466       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14467         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14468       fi'
14469     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14470       dlpath=$dir/\$dldll~
14471        $RM \$dlpath'
14472     shlibpath_overrides_runpath=yes
14473
14474     case $host_os in
14475     cygwin*)
14476       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14477       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14478
14479       ;;
14480     mingw* | cegcc*)
14481       # MinGW DLLs use traditional 'lib' prefix
14482       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483       ;;
14484     pw32*)
14485       # pw32 DLLs use 'pw' prefix rather than 'lib'
14486       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14487       ;;
14488     esac
14489     ;;
14490
14491   *)
14492     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14493     ;;
14494   esac
14495   dynamic_linker='Win32 ld.exe'
14496   # FIXME: first we should search . and the directory the executable is in
14497   shlibpath_var=PATH
14498   ;;
14499
14500 darwin* | rhapsody*)
14501   dynamic_linker="$host_os dyld"
14502   version_type=darwin
14503   need_lib_prefix=no
14504   need_version=no
14505   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14506   soname_spec='${libname}${release}${major}$shared_ext'
14507   shlibpath_overrides_runpath=yes
14508   shlibpath_var=DYLD_LIBRARY_PATH
14509   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14510
14511   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14512   ;;
14513
14514 dgux*)
14515   version_type=linux
14516   need_lib_prefix=no
14517   need_version=no
14518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14519   soname_spec='${libname}${release}${shared_ext}$major'
14520   shlibpath_var=LD_LIBRARY_PATH
14521   ;;
14522
14523 freebsd* | dragonfly*)
14524   # DragonFly does not have aout.  When/if they implement a new
14525   # versioning mechanism, adjust this.
14526   if test -x /usr/bin/objformat; then
14527     objformat=`/usr/bin/objformat`
14528   else
14529     case $host_os in
14530     freebsd[123]*) objformat=aout ;;
14531     *) objformat=elf ;;
14532     esac
14533   fi
14534   version_type=freebsd-$objformat
14535   case $version_type in
14536     freebsd-elf*)
14537       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14538       need_version=no
14539       need_lib_prefix=no
14540       ;;
14541     freebsd-*)
14542       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14543       need_version=yes
14544       ;;
14545   esac
14546   shlibpath_var=LD_LIBRARY_PATH
14547   case $host_os in
14548   freebsd2*)
14549     shlibpath_overrides_runpath=yes
14550     ;;
14551   freebsd3.[01]* | freebsdelf3.[01]*)
14552     shlibpath_overrides_runpath=yes
14553     hardcode_into_libs=yes
14554     ;;
14555   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14556   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14557     shlibpath_overrides_runpath=no
14558     hardcode_into_libs=yes
14559     ;;
14560   *) # from 4.6 on, and DragonFly
14561     shlibpath_overrides_runpath=yes
14562     hardcode_into_libs=yes
14563     ;;
14564   esac
14565   ;;
14566
14567 gnu*)
14568   version_type=linux
14569   need_lib_prefix=no
14570   need_version=no
14571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14572   soname_spec='${libname}${release}${shared_ext}$major'
14573   shlibpath_var=LD_LIBRARY_PATH
14574   hardcode_into_libs=yes
14575   ;;
14576
14577 haiku*)
14578   version_type=linux
14579   need_lib_prefix=no
14580   need_version=no
14581   dynamic_linker="$host_os runtime_loader"
14582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14583   soname_spec='${libname}${release}${shared_ext}$major'
14584   shlibpath_var=LIBRARY_PATH
14585   shlibpath_overrides_runpath=yes
14586   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14587   hardcode_into_libs=yes
14588   ;;
14589
14590 hpux9* | hpux10* | hpux11*)
14591   # Give a soname corresponding to the major version so that dld.sl refuses to
14592   # link against other versions.
14593   version_type=sunos
14594   need_lib_prefix=no
14595   need_version=no
14596   case $host_cpu in
14597   ia64*)
14598     shrext_cmds='.so'
14599     hardcode_into_libs=yes
14600     dynamic_linker="$host_os dld.so"
14601     shlibpath_var=LD_LIBRARY_PATH
14602     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14603     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14604     soname_spec='${libname}${release}${shared_ext}$major'
14605     if test "X$HPUX_IA64_MODE" = X32; then
14606       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14607     else
14608       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14609     fi
14610     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14611     ;;
14612   hppa*64*)
14613     shrext_cmds='.sl'
14614     hardcode_into_libs=yes
14615     dynamic_linker="$host_os dld.sl"
14616     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14617     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619     soname_spec='${libname}${release}${shared_ext}$major'
14620     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14621     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14622     ;;
14623   *)
14624     shrext_cmds='.sl'
14625     dynamic_linker="$host_os dld.sl"
14626     shlibpath_var=SHLIB_PATH
14627     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629     soname_spec='${libname}${release}${shared_ext}$major'
14630     ;;
14631   esac
14632   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14633   postinstall_cmds='chmod 555 $lib'
14634   # or fails outright, so override atomically:
14635   install_override_mode=555
14636   ;;
14637
14638 interix[3-9]*)
14639   version_type=linux
14640   need_lib_prefix=no
14641   need_version=no
14642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14643   soname_spec='${libname}${release}${shared_ext}$major'
14644   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14645   shlibpath_var=LD_LIBRARY_PATH
14646   shlibpath_overrides_runpath=no
14647   hardcode_into_libs=yes
14648   ;;
14649
14650 irix5* | irix6* | nonstopux*)
14651   case $host_os in
14652     nonstopux*) version_type=nonstopux ;;
14653     *)
14654         if test "$lt_cv_prog_gnu_ld" = yes; then
14655                 version_type=linux
14656         else
14657                 version_type=irix
14658         fi ;;
14659   esac
14660   need_lib_prefix=no
14661   need_version=no
14662   soname_spec='${libname}${release}${shared_ext}$major'
14663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14664   case $host_os in
14665   irix5* | nonstopux*)
14666     libsuff= shlibsuff=
14667     ;;
14668   *)
14669     case $LD in # libtool.m4 will add one of these switches to LD
14670     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14671       libsuff= shlibsuff= libmagic=32-bit;;
14672     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14673       libsuff=32 shlibsuff=N32 libmagic=N32;;
14674     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14675       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14676     *) libsuff= shlibsuff= libmagic=never-match;;
14677     esac
14678     ;;
14679   esac
14680   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14681   shlibpath_overrides_runpath=no
14682   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14683   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14684   hardcode_into_libs=yes
14685   ;;
14686
14687 # No shared lib support for Linux oldld, aout, or coff.
14688 linux*oldld* | linux*aout* | linux*coff*)
14689   dynamic_linker=no
14690   ;;
14691
14692 # This must be Linux ELF.
14693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14694   version_type=linux
14695   need_lib_prefix=no
14696   need_version=no
14697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698   soname_spec='${libname}${release}${shared_ext}$major'
14699   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14700   shlibpath_var=LD_LIBRARY_PATH
14701   shlibpath_overrides_runpath=no
14702
14703   # Some binutils ld are patched to set DT_RUNPATH
14704   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14705   $as_echo_n "(cached) " >&6
14706 else
14707   lt_cv_shlibpath_overrides_runpath=no
14708     save_LDFLAGS=$LDFLAGS
14709     save_libdir=$libdir
14710     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14711          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h.  */
14714
14715 int
14716 main ()
14717 {
14718
14719   ;
14720   return 0;
14721 }
14722 _ACEOF
14723 if ac_fn_cxx_try_link "$LINENO"; then :
14724   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14725   lt_cv_shlibpath_overrides_runpath=yes
14726 fi
14727 fi
14728 rm -f core conftest.err conftest.$ac_objext \
14729     conftest$ac_exeext conftest.$ac_ext
14730     LDFLAGS=$save_LDFLAGS
14731     libdir=$save_libdir
14732
14733 fi
14734
14735   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14736
14737   # This implies no fast_install, which is unacceptable.
14738   # Some rework will be needed to allow for fast_install
14739   # before this can be enabled.
14740   hardcode_into_libs=yes
14741
14742   # Append ld.so.conf contents to the search path
14743   if test -f /etc/ld.so.conf; then
14744     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' ' '`
14745     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14746   fi
14747
14748   # We used to test for /lib/ld.so.1 and disable shared libraries on
14749   # powerpc, because MkLinux only supported shared libraries with the
14750   # GNU dynamic linker.  Since this was broken with cross compilers,
14751   # most powerpc-linux boxes support dynamic linking these days and
14752   # people can always --disable-shared, the test was removed, and we
14753   # assume the GNU/Linux dynamic linker is in use.
14754   dynamic_linker='GNU/Linux ld.so'
14755   ;;
14756
14757 netbsd*)
14758   version_type=sunos
14759   need_lib_prefix=no
14760   need_version=no
14761   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14763     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14764     dynamic_linker='NetBSD (a.out) ld.so'
14765   else
14766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14767     soname_spec='${libname}${release}${shared_ext}$major'
14768     dynamic_linker='NetBSD ld.elf_so'
14769   fi
14770   shlibpath_var=LD_LIBRARY_PATH
14771   shlibpath_overrides_runpath=yes
14772   hardcode_into_libs=yes
14773   ;;
14774
14775 newsos6)
14776   version_type=linux
14777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778   shlibpath_var=LD_LIBRARY_PATH
14779   shlibpath_overrides_runpath=yes
14780   ;;
14781
14782 *nto* | *qnx*)
14783   version_type=qnx
14784   need_lib_prefix=no
14785   need_version=no
14786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787   soname_spec='${libname}${release}${shared_ext}$major'
14788   shlibpath_var=LD_LIBRARY_PATH
14789   shlibpath_overrides_runpath=no
14790   hardcode_into_libs=yes
14791   dynamic_linker='ldqnx.so'
14792   ;;
14793
14794 openbsd*)
14795   version_type=sunos
14796   sys_lib_dlsearch_path_spec="/usr/lib"
14797   need_lib_prefix=no
14798   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14799   case $host_os in
14800     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14801     *)                          need_version=no  ;;
14802   esac
14803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14804   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14805   shlibpath_var=LD_LIBRARY_PATH
14806   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14807     case $host_os in
14808       openbsd2.[89] | openbsd2.[89].*)
14809         shlibpath_overrides_runpath=no
14810         ;;
14811       *)
14812         shlibpath_overrides_runpath=yes
14813         ;;
14814       esac
14815   else
14816     shlibpath_overrides_runpath=yes
14817   fi
14818   ;;
14819
14820 os2*)
14821   libname_spec='$name'
14822   shrext_cmds=".dll"
14823   need_lib_prefix=no
14824   library_names_spec='$libname${shared_ext} $libname.a'
14825   dynamic_linker='OS/2 ld.exe'
14826   shlibpath_var=LIBPATH
14827   ;;
14828
14829 osf3* | osf4* | osf5*)
14830   version_type=osf
14831   need_lib_prefix=no
14832   need_version=no
14833   soname_spec='${libname}${release}${shared_ext}$major'
14834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835   shlibpath_var=LD_LIBRARY_PATH
14836   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14837   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14838   ;;
14839
14840 rdos*)
14841   dynamic_linker=no
14842   ;;
14843
14844 solaris*)
14845   version_type=linux
14846   need_lib_prefix=no
14847   need_version=no
14848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849   soname_spec='${libname}${release}${shared_ext}$major'
14850   shlibpath_var=LD_LIBRARY_PATH
14851   shlibpath_overrides_runpath=yes
14852   hardcode_into_libs=yes
14853   # ldd complains unless libraries are executable
14854   postinstall_cmds='chmod +x $lib'
14855   ;;
14856
14857 sunos4*)
14858   version_type=sunos
14859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14860   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14861   shlibpath_var=LD_LIBRARY_PATH
14862   shlibpath_overrides_runpath=yes
14863   if test "$with_gnu_ld" = yes; then
14864     need_lib_prefix=no
14865   fi
14866   need_version=yes
14867   ;;
14868
14869 sysv4 | sysv4.3*)
14870   version_type=linux
14871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872   soname_spec='${libname}${release}${shared_ext}$major'
14873   shlibpath_var=LD_LIBRARY_PATH
14874   case $host_vendor in
14875     sni)
14876       shlibpath_overrides_runpath=no
14877       need_lib_prefix=no
14878       runpath_var=LD_RUN_PATH
14879       ;;
14880     siemens)
14881       need_lib_prefix=no
14882       ;;
14883     motorola)
14884       need_lib_prefix=no
14885       need_version=no
14886       shlibpath_overrides_runpath=no
14887       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14888       ;;
14889   esac
14890   ;;
14891
14892 sysv4*MP*)
14893   if test -d /usr/nec ;then
14894     version_type=linux
14895     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14896     soname_spec='$libname${shared_ext}.$major'
14897     shlibpath_var=LD_LIBRARY_PATH
14898   fi
14899   ;;
14900
14901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14902   version_type=freebsd-elf
14903   need_lib_prefix=no
14904   need_version=no
14905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14906   soname_spec='${libname}${release}${shared_ext}$major'
14907   shlibpath_var=LD_LIBRARY_PATH
14908   shlibpath_overrides_runpath=yes
14909   hardcode_into_libs=yes
14910   if test "$with_gnu_ld" = yes; then
14911     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14912   else
14913     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14914     case $host_os in
14915       sco3.2v5*)
14916         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14917         ;;
14918     esac
14919   fi
14920   sys_lib_dlsearch_path_spec='/usr/lib'
14921   ;;
14922
14923 tpf*)
14924   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14925   version_type=linux
14926   need_lib_prefix=no
14927   need_version=no
14928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929   shlibpath_var=LD_LIBRARY_PATH
14930   shlibpath_overrides_runpath=no
14931   hardcode_into_libs=yes
14932   ;;
14933
14934 uts4*)
14935   version_type=linux
14936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937   soname_spec='${libname}${release}${shared_ext}$major'
14938   shlibpath_var=LD_LIBRARY_PATH
14939   ;;
14940
14941 *)
14942   dynamic_linker=no
14943   ;;
14944 esac
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14946 $as_echo "$dynamic_linker" >&6; }
14947 test "$dynamic_linker" = no && can_build_shared=no
14948
14949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14950 if test "$GCC" = yes; then
14951   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14952 fi
14953
14954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14955   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14956 fi
14957 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14958   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14959 fi
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
14993
14994
14995
14996
14997
14998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14999 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15000 hardcode_action_CXX=
15001 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15002    test -n "$runpath_var_CXX" ||
15003    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15004
15005   # We can hardcode non-existent directories.
15006   if test "$hardcode_direct_CXX" != no &&
15007      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15008      # have to relink, otherwise we might link with an installed library
15009      # when we should be linking with a yet-to-be-installed one
15010      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15011      test "$hardcode_minus_L_CXX" != no; then
15012     # Linking always hardcodes the temporary library directory.
15013     hardcode_action_CXX=relink
15014   else
15015     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15016     hardcode_action_CXX=immediate
15017   fi
15018 else
15019   # We cannot hardcode anything, or else we can only hardcode existing
15020   # directories.
15021   hardcode_action_CXX=unsupported
15022 fi
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15024 $as_echo "$hardcode_action_CXX" >&6; }
15025
15026 if test "$hardcode_action_CXX" = relink ||
15027    test "$inherit_rpath_CXX" = yes; then
15028   # Fast installation is not supported
15029   enable_fast_install=no
15030 elif test "$shlibpath_overrides_runpath" = yes ||
15031      test "$enable_shared" = no; then
15032   # Fast installation is not necessary
15033   enable_fast_install=needless
15034 fi
15035
15036
15037
15038
15039
15040
15041
15042   fi # test -n "$compiler"
15043
15044   CC=$lt_save_CC
15045   LDCXX=$LD
15046   LD=$lt_save_LD
15047   GCC=$lt_save_GCC
15048   with_gnu_ld=$lt_save_with_gnu_ld
15049   lt_cv_path_LDCXX=$lt_cv_path_LD
15050   lt_cv_path_LD=$lt_save_path_LD
15051   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15052   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15053 fi # test "$_lt_caught_CXX_error" != yes
15054
15055 ac_ext=c
15056 ac_cpp='$CPP $CPPFLAGS'
15057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073         ac_config_commands="$ac_config_commands libtool"
15074
15075
15076
15077
15078 # Only expand once:
15079
15080
15081
15082
15083
15084
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15086 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15087     # Check whether --enable-maintainer-mode was given.
15088 if test "${enable_maintainer_mode+set}" = set; then :
15089   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15090 else
15091   USE_MAINTAINER_MODE=no
15092 fi
15093
15094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15095 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15096    if test $USE_MAINTAINER_MODE = yes; then
15097   MAINTAINER_MODE_TRUE=
15098   MAINTAINER_MODE_FALSE='#'
15099 else
15100   MAINTAINER_MODE_TRUE='#'
15101   MAINTAINER_MODE_FALSE=
15102 fi
15103
15104   MAINT=$MAINTAINER_MODE_TRUE
15105
15106
15107
15108 # For libtool versioning info, format is CURRENT:REVISION:AGE
15109 libtool_VERSION=1:0:0
15110
15111
15112 # Check header files.
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15114 $as_echo_n "checking for ANSI C header files... " >&6; }
15115 if test "${ac_cv_header_stdc+set}" = set; then :
15116   $as_echo_n "(cached) " >&6
15117 else
15118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119 /* end confdefs.h.  */
15120 #include <stdlib.h>
15121 #include <stdarg.h>
15122 #include <string.h>
15123 #include <float.h>
15124
15125 int
15126 main ()
15127 {
15128
15129   ;
15130   return 0;
15131 }
15132 _ACEOF
15133 if ac_fn_c_try_compile "$LINENO"; then :
15134   ac_cv_header_stdc=yes
15135 else
15136   ac_cv_header_stdc=no
15137 fi
15138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15139
15140 if test $ac_cv_header_stdc = yes; then
15141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h.  */
15144 #include <string.h>
15145
15146 _ACEOF
15147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15148   $EGREP "memchr" >/dev/null 2>&1; then :
15149
15150 else
15151   ac_cv_header_stdc=no
15152 fi
15153 rm -f conftest*
15154
15155 fi
15156
15157 if test $ac_cv_header_stdc = yes; then
15158   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h.  */
15161 #include <stdlib.h>
15162
15163 _ACEOF
15164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15165   $EGREP "free" >/dev/null 2>&1; then :
15166
15167 else
15168   ac_cv_header_stdc=no
15169 fi
15170 rm -f conftest*
15171
15172 fi
15173
15174 if test $ac_cv_header_stdc = yes; then
15175   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15176   if test "$cross_compiling" = yes; then :
15177   :
15178 else
15179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h.  */
15181 #include <ctype.h>
15182 #include <stdlib.h>
15183 #if ((' ' & 0x0FF) == 0x020)
15184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15186 #else
15187 # define ISLOWER(c) \
15188                    (('a' <= (c) && (c) <= 'i') \
15189                      || ('j' <= (c) && (c) <= 'r') \
15190                      || ('s' <= (c) && (c) <= 'z'))
15191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15192 #endif
15193
15194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15195 int
15196 main ()
15197 {
15198   int i;
15199   for (i = 0; i < 256; i++)
15200     if (XOR (islower (i), ISLOWER (i))
15201         || toupper (i) != TOUPPER (i))
15202       return 2;
15203   return 0;
15204 }
15205 _ACEOF
15206 if ac_fn_c_try_run "$LINENO"; then :
15207
15208 else
15209   ac_cv_header_stdc=no
15210 fi
15211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15212   conftest.$ac_objext conftest.beam conftest.$ac_ext
15213 fi
15214
15215 fi
15216 fi
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15218 $as_echo "$ac_cv_header_stdc" >&6; }
15219 if test $ac_cv_header_stdc = yes; then
15220
15221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15222
15223 fi
15224
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15226 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15227 if test "${ac_cv_header_time+set}" = set; then :
15228   $as_echo_n "(cached) " >&6
15229 else
15230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h.  */
15232 #include <sys/types.h>
15233 #include <sys/time.h>
15234 #include <time.h>
15235
15236 int
15237 main ()
15238 {
15239 if ((struct tm *) 0)
15240 return 0;
15241   ;
15242   return 0;
15243 }
15244 _ACEOF
15245 if ac_fn_c_try_compile "$LINENO"; then :
15246   ac_cv_header_time=yes
15247 else
15248   ac_cv_header_time=no
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15253 $as_echo "$ac_cv_header_time" >&6; }
15254 if test $ac_cv_header_time = yes; then
15255
15256 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15257
15258 fi
15259
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15261 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15262 if test "${gcc_cv_header_string+set}" = set; then :
15263   $as_echo_n "(cached) " >&6
15264 else
15265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h.  */
15267 #include <string.h>
15268 #include <strings.h>
15269 int
15270 main ()
15271 {
15272
15273   ;
15274   return 0;
15275 }
15276 _ACEOF
15277 if ac_fn_c_try_compile "$LINENO"; then :
15278   gcc_cv_header_string=yes
15279 else
15280   gcc_cv_header_string=no
15281 fi
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 fi
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15285 $as_echo "$gcc_cv_header_string" >&6; }
15286 if test $gcc_cv_header_string = yes; then
15287
15288 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15289
15290 fi
15291
15292 for ac_header in unistd.h semaphore.h sys/time.h malloc.h
15293 do :
15294   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15295 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15296 eval as_val=\$$as_ac_Header
15297    if test "x$as_val" = x""yes; then :
15298   cat >>confdefs.h <<_ACEOF
15299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15300 _ACEOF
15301
15302 fi
15303
15304 done
15305
15306
15307
15308
15309 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
15310
15311 acx_cv_header_stdint=stddef.h
15312 acx_cv_header_stdint_kind="(already complete)"
15313 for i in stdint.h $inttype_headers; do
15314   unset ac_cv_type_uintptr_t
15315   unset ac_cv_type_uintmax_t
15316   unset ac_cv_type_int_least32_t
15317   unset ac_cv_type_int_fast32_t
15318   unset ac_cv_type_uint64_t
15319   $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15320   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15321 #include <$i>
15322 "
15323 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15324   acx_cv_header_stdint=$i
15325 else
15326   continue
15327 fi
15328
15329   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15330 #include <$i>
15331 "
15332 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15333
15334 else
15335   acx_cv_header_stdint_kind="(mostly complete)"
15336 fi
15337
15338   ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15339 #include <$i>
15340 "
15341 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15342
15343 else
15344   acx_cv_header_stdint_kind="(mostly complete)"
15345 fi
15346
15347   ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15348 #include <$i>
15349 "
15350 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15351
15352 else
15353   acx_cv_header_stdint_kind="(mostly complete)"
15354 fi
15355
15356   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15357 #include <$i>
15358 "
15359 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15360
15361 else
15362   acx_cv_header_stdint_kind="(lacks uint64_t)"
15363 fi
15364
15365   break
15366 done
15367 if test "$acx_cv_header_stdint" = stddef.h; then
15368   acx_cv_header_stdint_kind="(lacks uintmax_t)"
15369   for i in stdint.h $inttype_headers; do
15370     unset ac_cv_type_uintptr_t
15371     unset ac_cv_type_uint32_t
15372     unset ac_cv_type_uint64_t
15373     $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15374     ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15375 #include <$i>
15376 "
15377 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15378   acx_cv_header_stdint=$i
15379 else
15380   continue
15381 fi
15382
15383     ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15384 #include <$i>
15385 "
15386 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15387
15388 fi
15389
15390     ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15391 #include <$i>
15392 "
15393 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15394
15395 fi
15396
15397     break
15398   done
15399 fi
15400 if test "$acx_cv_header_stdint" = stddef.h; then
15401   acx_cv_header_stdint_kind="(u_intXX_t style)"
15402   for i in sys/types.h $inttype_headers; do
15403     unset ac_cv_type_u_int32_t
15404     unset ac_cv_type_u_int64_t
15405     $as_echo_n "looking for u_intXX_t types in $i, " >&6
15406     ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15407 #include <$i>
15408 "
15409 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15410   acx_cv_header_stdint=$i
15411 else
15412   continue
15413 fi
15414
15415     ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15416 #include <$i>
15417 "
15418 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15419
15420 fi
15421
15422     break
15423   done
15424 fi
15425 if test "$acx_cv_header_stdint" = stddef.h; then
15426   acx_cv_header_stdint_kind="(using manual detection)"
15427 fi
15428
15429 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15430 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15431 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15432 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15433 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15434
15435 # ----------------- Summarize what we found so far
15436
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15438 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15439
15440 case `$as_basename -- gstdint.h ||
15441 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15442          Xgstdint.h : 'X\(//\)$' \| \
15443          Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15444 $as_echo X/gstdint.h |
15445     sed '/^.*\/\([^/][^/]*\)\/*$/{
15446             s//\1/
15447             q
15448           }
15449           /^X\/\(\/\/\)$/{
15450             s//\1/
15451             q
15452           }
15453           /^X\/\(\/\).*/{
15454             s//\1/
15455             q
15456           }
15457           s/.*/./; q'` in
15458   stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15459 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15460   inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15461 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15462   *) ;;
15463 esac
15464
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15466 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15467
15468 # ----------------- done included file, check C basic types --------
15469
15470 # Lacking an uintptr_t?  Test size of void *
15471 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15472   stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15475 # This bug is HP SR number 8606223364.
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15477 $as_echo_n "checking size of void *... " >&6; }
15478 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15479   $as_echo_n "(cached) " >&6
15480 else
15481   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15482
15483 else
15484   if test "$ac_cv_type_void_p" = yes; then
15485      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15487 { as_fn_set_status 77
15488 as_fn_error "cannot compute sizeof (void *)
15489 See \`config.log' for more details." "$LINENO" 5; }; }
15490    else
15491      ac_cv_sizeof_void_p=0
15492    fi
15493 fi
15494
15495 fi
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15497 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15498
15499
15500
15501 cat >>confdefs.h <<_ACEOF
15502 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15503 _ACEOF
15504
15505  ;;
15506 esac
15507
15508 # Lacking an uint64_t?  Test size of long
15509 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15510   stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15513 # This bug is HP SR number 8606223364.
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15515 $as_echo_n "checking size of long... " >&6; }
15516 if test "${ac_cv_sizeof_long+set}" = set; then :
15517   $as_echo_n "(cached) " >&6
15518 else
15519   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15520
15521 else
15522   if test "$ac_cv_type_long" = yes; then
15523      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15525 { as_fn_set_status 77
15526 as_fn_error "cannot compute sizeof (long)
15527 See \`config.log' for more details." "$LINENO" 5; }; }
15528    else
15529      ac_cv_sizeof_long=0
15530    fi
15531 fi
15532
15533 fi
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15535 $as_echo "$ac_cv_sizeof_long" >&6; }
15536
15537
15538
15539 cat >>confdefs.h <<_ACEOF
15540 #define SIZEOF_LONG $ac_cv_sizeof_long
15541 _ACEOF
15542
15543  ;;
15544 esac
15545
15546 if test $acx_cv_header_stdint = stddef.h; then
15547   # Lacking a good header?  Test size of everything and deduce all types.
15548   # The cast to long int works around a bug in the HP C Compiler
15549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15551 # This bug is HP SR number 8606223364.
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15553 $as_echo_n "checking size of int... " >&6; }
15554 if test "${ac_cv_sizeof_int+set}" = set; then :
15555   $as_echo_n "(cached) " >&6
15556 else
15557   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15558
15559 else
15560   if test "$ac_cv_type_int" = yes; then
15561      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15563 { as_fn_set_status 77
15564 as_fn_error "cannot compute sizeof (int)
15565 See \`config.log' for more details." "$LINENO" 5; }; }
15566    else
15567      ac_cv_sizeof_int=0
15568    fi
15569 fi
15570
15571 fi
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15573 $as_echo "$ac_cv_sizeof_int" >&6; }
15574
15575
15576
15577 cat >>confdefs.h <<_ACEOF
15578 #define SIZEOF_INT $ac_cv_sizeof_int
15579 _ACEOF
15580
15581
15582   # The cast to long int works around a bug in the HP C Compiler
15583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15585 # This bug is HP SR number 8606223364.
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15587 $as_echo_n "checking size of short... " >&6; }
15588 if test "${ac_cv_sizeof_short+set}" = set; then :
15589   $as_echo_n "(cached) " >&6
15590 else
15591   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15592
15593 else
15594   if test "$ac_cv_type_short" = yes; then
15595      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15597 { as_fn_set_status 77
15598 as_fn_error "cannot compute sizeof (short)
15599 See \`config.log' for more details." "$LINENO" 5; }; }
15600    else
15601      ac_cv_sizeof_short=0
15602    fi
15603 fi
15604
15605 fi
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15607 $as_echo "$ac_cv_sizeof_short" >&6; }
15608
15609
15610
15611 cat >>confdefs.h <<_ACEOF
15612 #define SIZEOF_SHORT $ac_cv_sizeof_short
15613 _ACEOF
15614
15615
15616   # The cast to long int works around a bug in the HP C Compiler
15617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15619 # This bug is HP SR number 8606223364.
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15621 $as_echo_n "checking size of char... " >&6; }
15622 if test "${ac_cv_sizeof_char+set}" = set; then :
15623   $as_echo_n "(cached) " >&6
15624 else
15625   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
15626
15627 else
15628   if test "$ac_cv_type_char" = yes; then
15629      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15631 { as_fn_set_status 77
15632 as_fn_error "cannot compute sizeof (char)
15633 See \`config.log' for more details." "$LINENO" 5; }; }
15634    else
15635      ac_cv_sizeof_char=0
15636    fi
15637 fi
15638
15639 fi
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15641 $as_echo "$ac_cv_sizeof_char" >&6; }
15642
15643
15644
15645 cat >>confdefs.h <<_ACEOF
15646 #define SIZEOF_CHAR $ac_cv_sizeof_char
15647 _ACEOF
15648
15649
15650
15651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15652 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15653   case "$ac_cv_sizeof_char" in
15654     1) acx_cv_type_int8_t=char ;;
15655     *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15656   esac
15657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15658 $as_echo "$acx_cv_type_int8_t" >&6; }
15659
15660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15661 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15662   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15663     2:*) acx_cv_type_int16_t=int ;;
15664     *:2) acx_cv_type_int16_t=short ;;
15665     *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15666   esac
15667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15668 $as_echo "$acx_cv_type_int16_t" >&6; }
15669
15670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15671 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15672   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15673     4:*) acx_cv_type_int32_t=int ;;
15674     *:4) acx_cv_type_int32_t=long ;;
15675     *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15676   esac
15677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15678 $as_echo "$acx_cv_type_int32_t" >&6; }
15679 fi
15680
15681 # These tests are here to make the output prettier
15682
15683 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15684   case "$ac_cv_sizeof_long" in
15685     8) acx_cv_type_int64_t=long ;;
15686   esac
15687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15688 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15690 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15691 fi
15692
15693 # Now we can use the above types
15694
15695 if test "$ac_cv_type_uintptr_t" != yes; then
15696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15697 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15698   case $ac_cv_sizeof_void_p in
15699     2) acx_cv_type_intptr_t=int16_t ;;
15700     4) acx_cv_type_intptr_t=int32_t ;;
15701     8) acx_cv_type_intptr_t=int64_t ;;
15702     *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15703   esac
15704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15705 $as_echo "$acx_cv_type_intptr_t" >&6; }
15706 fi
15707
15708 # ----------------- done all checks, emit header -------------
15709 ac_config_commands="$ac_config_commands gstdint.h"
15710
15711
15712
15713
15714
15715 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15716 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15717   gcc_header_sys_mman_h=yes
15718 else
15719   gcc_header_sys_mman_h=no
15720 fi
15721
15722
15723 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15724 if test "x$ac_cv_func_mmap" = x""yes; then :
15725   gcc_func_mmap=yes
15726 else
15727   gcc_func_mmap=no
15728 fi
15729
15730 if test "$gcc_header_sys_mman_h" != yes \
15731  || test "$gcc_func_mmap" != yes; then
15732    gcc_cv_func_mmap_file=no
15733    gcc_cv_func_mmap_dev_zero=no
15734    gcc_cv_func_mmap_anon=no
15735 else
15736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15737 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15738 if test "${gcc_cv_func_mmap_file+set}" = set; then :
15739   $as_echo_n "(cached) " >&6
15740 else
15741   # Add a system to this blacklist if
15742    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15743    # memory area containing the same data that you'd get if you applied
15744    # read() to the same fd.  The only system known to have a problem here
15745    # is VMS, where text files have record structure.
15746    case "$host_os" in
15747      vms* | ultrix*)
15748         gcc_cv_func_mmap_file=no ;;
15749      *)
15750         gcc_cv_func_mmap_file=yes;;
15751    esac
15752 fi
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15754 $as_echo "$gcc_cv_func_mmap_file" >&6; }
15755    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15756 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15757 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15758   $as_echo_n "(cached) " >&6
15759 else
15760   # Add a system to this blacklist if it has mmap() but /dev/zero
15761    # does not exist, or if mmapping /dev/zero does not give anonymous
15762    # zeroed pages with both the following properties:
15763    # 1. If you map N consecutive pages in with one call, and then
15764    #    unmap any subset of those pages, the pages that were not
15765    #    explicitly unmapped remain accessible.
15766    # 2. If you map two adjacent blocks of memory and then unmap them
15767    #    both at once, they must both go away.
15768    # Systems known to be in this category are Windows (all variants),
15769    # VMS, and Darwin.
15770    case "$host_os" in
15771      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15772         gcc_cv_func_mmap_dev_zero=no ;;
15773      *)
15774         gcc_cv_func_mmap_dev_zero=yes;;
15775    esac
15776 fi
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15778 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15779
15780    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15781    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15782 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15783 if test "${gcc_cv_decl_map_anon+set}" = set; then :
15784   $as_echo_n "(cached) " >&6
15785 else
15786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h.  */
15788 #include <sys/types.h>
15789 #include <sys/mman.h>
15790 #include <unistd.h>
15791
15792 #ifndef MAP_ANONYMOUS
15793 #define MAP_ANONYMOUS MAP_ANON
15794 #endif
15795
15796 int
15797 main ()
15798 {
15799 int n = MAP_ANONYMOUS;
15800   ;
15801   return 0;
15802 }
15803 _ACEOF
15804 if ac_fn_c_try_compile "$LINENO"; then :
15805   gcc_cv_decl_map_anon=yes
15806 else
15807   gcc_cv_decl_map_anon=no
15808 fi
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810 fi
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15812 $as_echo "$gcc_cv_decl_map_anon" >&6; }
15813
15814    if test $gcc_cv_decl_map_anon = no; then
15815      gcc_cv_func_mmap_anon=no
15816    else
15817      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15818 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15819 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15820   $as_echo_n "(cached) " >&6
15821 else
15822   # Add a system to this blacklist if it has mmap() and MAP_ANON or
15823    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15824    # doesn't give anonymous zeroed pages with the same properties listed
15825    # above for use of /dev/zero.
15826    # Systems known to be in this category are Windows, VMS, and SCO Unix.
15827    case "$host_os" in
15828      vms* | cygwin* | pe | mingw* | sco* | udk* )
15829         gcc_cv_func_mmap_anon=no ;;
15830      *)
15831         gcc_cv_func_mmap_anon=yes;;
15832    esac
15833 fi
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15835 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
15836    fi
15837 fi
15838
15839 if test $gcc_cv_func_mmap_file = yes; then
15840
15841 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15842
15843 fi
15844 if test $gcc_cv_func_mmap_dev_zero = yes; then
15845
15846 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15847
15848 fi
15849 if test $gcc_cv_func_mmap_anon = yes; then
15850
15851 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15852
15853 fi
15854
15855
15856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15857 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15858 if test "${ac_cv_c_bigendian+set}" = set; then :
15859   $as_echo_n "(cached) " >&6
15860 else
15861   ac_cv_c_bigendian=unknown
15862     # See if we're dealing with a universal compiler.
15863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h.  */
15865 #ifndef __APPLE_CC__
15866                not a universal capable compiler
15867              #endif
15868              typedef int dummy;
15869
15870 _ACEOF
15871 if ac_fn_c_try_compile "$LINENO"; then :
15872
15873         # Check for potential -arch flags.  It is not universal unless
15874         # there are at least two -arch flags with different values.
15875         ac_arch=
15876         ac_prev=
15877         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15878          if test -n "$ac_prev"; then
15879            case $ac_word in
15880              i?86 | x86_64 | ppc | ppc64)
15881                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15882                  ac_arch=$ac_word
15883                else
15884                  ac_cv_c_bigendian=universal
15885                  break
15886                fi
15887                ;;
15888            esac
15889            ac_prev=
15890          elif test "x$ac_word" = "x-arch"; then
15891            ac_prev=arch
15892          fi
15893        done
15894 fi
15895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896     if test $ac_cv_c_bigendian = unknown; then
15897       # See if sys/param.h defines the BYTE_ORDER macro.
15898       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h.  */
15900 #include <sys/types.h>
15901              #include <sys/param.h>
15902
15903 int
15904 main ()
15905 {
15906 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15907                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15908                      && LITTLE_ENDIAN)
15909               bogus endian macros
15910              #endif
15911
15912   ;
15913   return 0;
15914 }
15915 _ACEOF
15916 if ac_fn_c_try_compile "$LINENO"; then :
15917   # It does; now see whether it defined to BIG_ENDIAN or not.
15918          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h.  */
15920 #include <sys/types.h>
15921                 #include <sys/param.h>
15922
15923 int
15924 main ()
15925 {
15926 #if BYTE_ORDER != BIG_ENDIAN
15927                  not big endian
15928                 #endif
15929
15930   ;
15931   return 0;
15932 }
15933 _ACEOF
15934 if ac_fn_c_try_compile "$LINENO"; then :
15935   ac_cv_c_bigendian=yes
15936 else
15937   ac_cv_c_bigendian=no
15938 fi
15939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15940 fi
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942     fi
15943     if test $ac_cv_c_bigendian = unknown; then
15944       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15945       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h.  */
15947 #include <limits.h>
15948
15949 int
15950 main ()
15951 {
15952 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15953               bogus endian macros
15954              #endif
15955
15956   ;
15957   return 0;
15958 }
15959 _ACEOF
15960 if ac_fn_c_try_compile "$LINENO"; then :
15961   # It does; now see whether it defined to _BIG_ENDIAN or not.
15962          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h.  */
15964 #include <limits.h>
15965
15966 int
15967 main ()
15968 {
15969 #ifndef _BIG_ENDIAN
15970                  not big endian
15971                 #endif
15972
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 if ac_fn_c_try_compile "$LINENO"; then :
15978   ac_cv_c_bigendian=yes
15979 else
15980   ac_cv_c_bigendian=no
15981 fi
15982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15983 fi
15984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15985     fi
15986     if test $ac_cv_c_bigendian = unknown; then
15987       # Compile a test program.
15988       if test "$cross_compiling" = yes; then :
15989   # Try to guess by grepping values from an object file.
15990          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15991 /* end confdefs.h.  */
15992 short int ascii_mm[] =
15993                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15994                 short int ascii_ii[] =
15995                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15996                 int use_ascii (int i) {
15997                   return ascii_mm[i] + ascii_ii[i];
15998                 }
15999                 short int ebcdic_ii[] =
16000                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16001                 short int ebcdic_mm[] =
16002                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16003                 int use_ebcdic (int i) {
16004                   return ebcdic_mm[i] + ebcdic_ii[i];
16005                 }
16006                 extern int foo;
16007
16008 int
16009 main ()
16010 {
16011 return use_ascii (foo) == use_ebcdic (foo);
16012   ;
16013   return 0;
16014 }
16015 _ACEOF
16016 if ac_fn_c_try_compile "$LINENO"; then :
16017   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16018               ac_cv_c_bigendian=yes
16019             fi
16020             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16021               if test "$ac_cv_c_bigendian" = unknown; then
16022                 ac_cv_c_bigendian=no
16023               else
16024                 # finding both strings is unlikely to happen, but who knows?
16025                 ac_cv_c_bigendian=unknown
16026               fi
16027             fi
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030 else
16031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h.  */
16033 $ac_includes_default
16034 int
16035 main ()
16036 {
16037
16038              /* Are we little or big endian?  From Harbison&Steele.  */
16039              union
16040              {
16041                long int l;
16042                char c[sizeof (long int)];
16043              } u;
16044              u.l = 1;
16045              return u.c[sizeof (long int) - 1] == 1;
16046
16047   ;
16048   return 0;
16049 }
16050 _ACEOF
16051 if ac_fn_c_try_run "$LINENO"; then :
16052   ac_cv_c_bigendian=no
16053 else
16054   ac_cv_c_bigendian=yes
16055 fi
16056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16057   conftest.$ac_objext conftest.beam conftest.$ac_ext
16058 fi
16059
16060     fi
16061 fi
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16063 $as_echo "$ac_cv_c_bigendian" >&6; }
16064  case $ac_cv_c_bigendian in #(
16065    yes)
16066      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16067 ;; #(
16068    no)
16069       ;; #(
16070    universal)
16071
16072 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16073
16074      ;; #(
16075    *)
16076      as_fn_error "unknown endianness
16077  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16078  esac
16079
16080 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16081
16082
16083 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
16084 # In case the pthread.h system header is not found, this test will fail.
16085 XPCFLAGS=""
16086 CFLAGS="$CFLAGS -pthread"
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h.  */
16089 #include <pthread.h>
16090    void *g(void *d) { return NULL; }
16091 int
16092 main ()
16093 {
16094 pthread_t t; pthread_create(&t,NULL,g,NULL);
16095   ;
16096   return 0;
16097 }
16098 _ACEOF
16099 if ac_fn_c_try_link "$LINENO"; then :
16100   XPCFLAGS=" -Wc,-pthread"
16101 else
16102   CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h.  */
16105 #include <pthread.h>
16106      void *g(void *d) { return NULL; }
16107 int
16108 main ()
16109 {
16110 pthread_t t; pthread_create(&t,NULL,g,NULL);
16111   ;
16112   return 0;
16113 }
16114 _ACEOF
16115 if ac_fn_c_try_link "$LINENO"; then :
16116
16117 else
16118   as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16119 fi
16120 rm -f core conftest.err conftest.$ac_objext \
16121     conftest$ac_exeext conftest.$ac_ext
16122 fi
16123 rm -f core conftest.err conftest.$ac_objext \
16124     conftest$ac_exeext conftest.$ac_ext
16125
16126 # Check for functions needed.
16127 for ac_func in strtoull memalign posix_memalign
16128 do :
16129   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16131 eval as_val=\$$as_ac_var
16132    if test "x$as_val" = x""yes; then :
16133   cat >>confdefs.h <<_ACEOF
16134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16135 _ACEOF
16136
16137 fi
16138 done
16139
16140
16141 # Check for broken semaphore implementation on darwin.
16142 # sem_init returns: sem_init error: Function not implemented.
16143 case "$host" in
16144   *-darwin*)
16145
16146 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16147
16148     ;;
16149 esac
16150
16151  # Check whether --enable-linux-futex was given.
16152 if test "${enable_linux_futex+set}" = set; then :
16153   enableval=$enable_linux_futex;
16154       case "$enableval" in
16155        yes|no|default) ;;
16156        *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16157                           esac
16158
16159 else
16160   enable_linux_futex=default
16161 fi
16162
16163
16164 case "$target" in
16165   *-linux*)
16166     case "$enable_linux_futex" in
16167       default)
16168         # If headers don't have gettid/futex syscalls definition, then
16169         # default to no, otherwise there will be compile time failures.
16170         # Otherwise, default to yes.  If we don't detect we are
16171         # compiled/linked against NPTL and not cross-compiling, check
16172         # if programs are run by default against NPTL and if not, issue
16173         # a warning.
16174         enable_linux_futex=no
16175         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h.  */
16177 #include <sys/syscall.h>
16178            int lk;
16179 int
16180 main ()
16181 {
16182 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 if ac_fn_c_try_link "$LINENO"; then :
16188   save_LIBS="$LIBS"
16189            LIBS="-lpthread $LIBS"
16190            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h.  */
16192 #ifndef _GNU_SOURCE
16193              #define _GNU_SOURCE 1
16194              #endif
16195              #include <pthread.h>
16196              pthread_t th; void *status;
16197 int
16198 main ()
16199 {
16200 pthread_tryjoin_np (th, &status);
16201   ;
16202   return 0;
16203 }
16204 _ACEOF
16205 if ac_fn_c_try_link "$LINENO"; then :
16206   enable_linux_futex=yes
16207 else
16208   if test x$cross_compiling = xno; then
16209                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16210                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16211                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16212 If so, please configure with --disable-linux-futex" >&5
16213 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16214 If so, please configure with --disable-linux-futex" >&2;}
16215                fi
16216              fi
16217              enable_linux_futex=yes
16218 fi
16219 rm -f core conftest.err conftest.$ac_objext \
16220     conftest$ac_exeext conftest.$ac_ext
16221            LIBS="$save_LIBS"
16222 fi
16223 rm -f core conftest.err conftest.$ac_objext \
16224     conftest$ac_exeext conftest.$ac_ext
16225         ;;
16226       yes)
16227         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h.  */
16229 #include <sys/syscall.h>
16230            int lk;
16231 int
16232 main ()
16233 {
16234 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16235   ;
16236   return 0;
16237 }
16238 _ACEOF
16239 if ac_fn_c_try_link "$LINENO"; then :
16240
16241 else
16242   as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16243 fi
16244 rm -f core conftest.err conftest.$ac_objext \
16245     conftest$ac_exeext conftest.$ac_ext
16246         ;;
16247     esac
16248     ;;
16249   *)
16250     enable_linux_futex=no
16251     ;;
16252 esac
16253 if test x$enable_linux_futex = xyes; then
16254   :
16255 fi
16256
16257
16258 # See if we support thread-local storage.
16259
16260
16261    # Check whether --enable-tls was given.
16262 if test "${enable_tls+set}" = set; then :
16263   enableval=$enable_tls;
16264       case "$enableval" in
16265        yes|no) ;;
16266        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16267       esac
16268
16269 else
16270   enable_tls=yes
16271 fi
16272
16273
16274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16275 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16276 if test "${gcc_cv_have_tls+set}" = set; then :
16277   $as_echo_n "(cached) " >&6
16278 else
16279
16280     if test "$cross_compiling" = yes; then :
16281                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h.  */
16283 __thread int a; int b; int main() { return a = b; }
16284 _ACEOF
16285 if ac_fn_c_try_link "$LINENO"; then :
16286   chktls_save_LDFLAGS="$LDFLAGS"
16287                           case $host in
16288             *-*-linux*)
16289               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16290               ;;
16291           esac
16292           chktls_save_CFLAGS="$CFLAGS"
16293           CFLAGS="-fPIC $CFLAGS"
16294                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295 /* end confdefs.h.  */
16296 int f() { return 0; }
16297 _ACEOF
16298 if ac_fn_c_try_link "$LINENO"; then :
16299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h.  */
16301 __thread int a; int b; int f() { return a = b; }
16302 _ACEOF
16303 if ac_fn_c_try_link "$LINENO"; then :
16304   gcc_cv_have_tls=yes
16305 else
16306   gcc_cv_have_tls=no
16307 fi
16308 rm -f core conftest.err conftest.$ac_objext \
16309     conftest$ac_exeext conftest.$ac_ext
16310 else
16311   gcc_cv_have_tls=yes
16312 fi
16313 rm -f core conftest.err conftest.$ac_objext \
16314     conftest$ac_exeext conftest.$ac_ext
16315           CFLAGS="$chktls_save_CFLAGS"
16316           LDFLAGS="$chktls_save_LDFLAGS"
16317 else
16318   gcc_cv_have_tls=no
16319 fi
16320 rm -f core conftest.err conftest.$ac_objext \
16321     conftest$ac_exeext conftest.$ac_ext
16322
16323
16324 else
16325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h.  */
16327 __thread int a; int b; int main() { return a = b; }
16328 _ACEOF
16329 if ac_fn_c_try_run "$LINENO"; then :
16330                       chktls_save_LDFLAGS="$LDFLAGS"
16331       LDFLAGS="-static $LDFLAGS"
16332       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h.  */
16334 int main() { return 0; }
16335 _ACEOF
16336 if ac_fn_c_try_link "$LINENO"; then :
16337   if test "$cross_compiling" = yes; then :
16338   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16340 as_fn_error "cannot run test program while cross compiling
16341 See \`config.log' for more details." "$LINENO" 5; }
16342 else
16343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h.  */
16345 __thread int a; int b; int main() { return a = b; }
16346 _ACEOF
16347 if ac_fn_c_try_run "$LINENO"; then :
16348   gcc_cv_have_tls=yes
16349 else
16350   gcc_cv_have_tls=no
16351 fi
16352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16353   conftest.$ac_objext conftest.beam conftest.$ac_ext
16354 fi
16355
16356 else
16357   gcc_cv_have_tls=yes
16358 fi
16359 rm -f core conftest.err conftest.$ac_objext \
16360     conftest$ac_exeext conftest.$ac_ext
16361       LDFLAGS="$chktls_save_LDFLAGS"
16362       if test $gcc_cv_have_tls = yes; then
16363                                                 chktls_save_CFLAGS="$CFLAGS"
16364         thread_CFLAGS=failed
16365         for flag in '' '-pthread' '-lpthread'; do
16366           CFLAGS="$flag $chktls_save_CFLAGS"
16367           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h.  */
16369 #include <pthread.h>
16370                 void *g(void *d) { return NULL; }
16371 int
16372 main ()
16373 {
16374 pthread_t t; pthread_create(&t,NULL,g,NULL);
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 if ac_fn_c_try_link "$LINENO"; then :
16380   thread_CFLAGS="$flag"
16381 fi
16382 rm -f core conftest.err conftest.$ac_objext \
16383     conftest$ac_exeext conftest.$ac_ext
16384           if test "X$thread_CFLAGS" != Xfailed; then
16385             break
16386           fi
16387         done
16388         CFLAGS="$chktls_save_CFLAGS"
16389         if test "X$thread_CFLAGS" != Xfailed; then
16390           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16391                                                   if test "$cross_compiling" = yes; then :
16392   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16394 as_fn_error "cannot run test program while cross compiling
16395 See \`config.log' for more details." "$LINENO" 5; }
16396 else
16397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h.  */
16399 #include <pthread.h>
16400                 __thread int a;
16401                 static int *volatile a_in_other_thread;
16402                 static void *
16403                 thread_func (void *arg)
16404                 {
16405                   a_in_other_thread = &a;
16406                   return (void *)0;
16407                 }
16408 int
16409 main ()
16410 {
16411 pthread_t thread;
16412                 void *thread_retval;
16413                 int *volatile a_in_main_thread;
16414                 a_in_main_thread = &a;
16415                 if (pthread_create (&thread, (pthread_attr_t *)0,
16416                                     thread_func, (void *)0))
16417                   return 0;
16418                 if (pthread_join (thread, &thread_retval))
16419                   return 0;
16420                 return (a_in_other_thread == a_in_main_thread);
16421   ;
16422   return 0;
16423 }
16424 _ACEOF
16425 if ac_fn_c_try_run "$LINENO"; then :
16426   gcc_cv_have_tls=yes
16427 else
16428   gcc_cv_have_tls=no
16429 fi
16430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16431   conftest.$ac_objext conftest.beam conftest.$ac_ext
16432 fi
16433
16434           CFLAGS="$chktls_save_CFLAGS"
16435         fi
16436       fi
16437 else
16438   gcc_cv_have_tls=no
16439 fi
16440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16441   conftest.$ac_objext conftest.beam conftest.$ac_ext
16442 fi
16443
16444 fi
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16446 $as_echo "$gcc_cv_have_tls" >&6; }
16447   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16448
16449 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16450
16451   fi
16452
16453 # See what sort of export controls are availible.
16454
16455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16456 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16457 if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16458   $as_echo_n "(cached) " >&6
16459 else
16460
16461   save_CFLAGS="$CFLAGS"
16462   CFLAGS="$CFLAGS -Werror"
16463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h.  */
16465 void __attribute__((visibility("hidden"))) foo(void) { }
16466 int
16467 main ()
16468 {
16469
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 if ac_fn_c_try_compile "$LINENO"; then :
16475   libitm_cv_have_attribute_visibility=yes
16476 else
16477   libitm_cv_have_attribute_visibility=no
16478 fi
16479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480   CFLAGS="$save_CFLAGS"
16481 fi
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16483 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16484   if test $libitm_cv_have_attribute_visibility = yes; then
16485
16486 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16487
16488   fi
16489
16490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16491 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16492 if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16493   $as_echo_n "(cached) " >&6
16494 else
16495
16496   save_CFLAGS="$CFLAGS"
16497   CFLAGS="$CFLAGS -Werror"
16498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h.  */
16500 void __attribute__((dllexport)) foo(void) { }
16501 int
16502 main ()
16503 {
16504
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 if ac_fn_c_try_compile "$LINENO"; then :
16510   libitm_cv_have_attribute_dllexport=yes
16511 else
16512   libitm_cv_have_attribute_dllexport=no
16513 fi
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515   CFLAGS="$save_CFLAGS"
16516 fi
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16518 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16519   if test $libitm_cv_have_attribute_dllexport = yes; then
16520
16521 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16522
16523   fi
16524
16525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16526 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16527 if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16528   $as_echo_n "(cached) " >&6
16529 else
16530
16531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h.  */
16533
16534 void foo(void) { }
16535 extern void bar(void) __attribute__((alias("foo")));
16536 int
16537 main ()
16538 {
16539 bar();
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 if ac_fn_c_try_link "$LINENO"; then :
16545   libitm_cv_have_attribute_alias=yes
16546 else
16547   libitm_cv_have_attribute_alias=no
16548 fi
16549 rm -f core conftest.err conftest.$ac_objext \
16550     conftest$ac_exeext conftest.$ac_ext
16551 fi
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16553 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16554   if test $libitm_cv_have_attribute_alias = yes; then
16555
16556 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16557
16558   fi
16559
16560
16561 # Check whether --with-gnu-ld was given.
16562 if test "${with_gnu_ld+set}" = set; then :
16563   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16564 else
16565   with_gnu_ld=no
16566 fi
16567
16568 ac_prog=ld
16569 if test "$GCC" = yes; then
16570   # Check if gcc -print-prog-name=ld gives a path.
16571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16572 $as_echo_n "checking for ld used by $CC... " >&6; }
16573   case $host in
16574   *-*-mingw*)
16575     # gcc leaves a trailing carriage return which upsets mingw
16576     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16577   *)
16578     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16579   esac
16580   case $ac_prog in
16581     # Accept absolute paths.
16582     [\\/]* | ?:[\\/]*)
16583       re_direlt='/[^/][^/]*/\.\./'
16584       # Canonicalize the pathname of ld
16585       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16586       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16587         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16588       done
16589       test -z "$LD" && LD="$ac_prog"
16590       ;;
16591   "")
16592     # If it fails, then pretend we aren't using GCC.
16593     ac_prog=ld
16594     ;;
16595   *)
16596     # If it is relative, then search for the first ld in PATH.
16597     with_gnu_ld=unknown
16598     ;;
16599   esac
16600 elif test "$with_gnu_ld" = yes; then
16601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16602 $as_echo_n "checking for GNU ld... " >&6; }
16603 else
16604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16605 $as_echo_n "checking for non-GNU ld... " >&6; }
16606 fi
16607 if test "${lt_cv_path_LD+set}" = set; then :
16608   $as_echo_n "(cached) " >&6
16609 else
16610   if test -z "$LD"; then
16611   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16612   for ac_dir in $PATH; do
16613     IFS="$lt_save_ifs"
16614     test -z "$ac_dir" && ac_dir=.
16615     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16616       lt_cv_path_LD="$ac_dir/$ac_prog"
16617       # Check to see if the program is GNU ld.  I'd rather use --version,
16618       # but apparently some variants of GNU ld only accept -v.
16619       # Break only if it was the GNU/non-GNU ld that we prefer.
16620       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16621       *GNU* | *'with BFD'*)
16622         test "$with_gnu_ld" != no && break
16623         ;;
16624       *)
16625         test "$with_gnu_ld" != yes && break
16626         ;;
16627       esac
16628     fi
16629   done
16630   IFS="$lt_save_ifs"
16631 else
16632   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16633 fi
16634 fi
16635
16636 LD="$lt_cv_path_LD"
16637 if test -n "$LD"; then
16638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16639 $as_echo "$LD" >&6; }
16640 else
16641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16642 $as_echo "no" >&6; }
16643 fi
16644 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16647 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16648   $as_echo_n "(cached) " >&6
16649 else
16650   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16651 case `$LD -v 2>&1 </dev/null` in
16652 *GNU* | *'with BFD'*)
16653   lt_cv_prog_gnu_ld=yes
16654   ;;
16655 *)
16656   lt_cv_prog_gnu_ld=no
16657   ;;
16658 esac
16659 fi
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16661 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16662 with_gnu_ld=$lt_cv_prog_gnu_ld
16663
16664
16665
16666
16667
16668
16669
16670   # If we're not using GNU ld, then there's no point in even trying these
16671   # tests.  Check for that first.  We should have already tested for gld
16672   # by now (in libtool), but require it now just to be safe...
16673   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16674   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16675
16676
16677
16678   # The name set by libtool depends on the version of libtool.  Shame on us
16679   # for depending on an impl detail, but c'est la vie.  Older versions used
16680   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16681   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16682   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
16683   # set (hence we're using an older libtool), then set it.
16684   if test x${with_gnu_ld+set} != xset; then
16685     if test x${ac_cv_prog_gnu_ld+set} != xset; then
16686       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
16687       with_gnu_ld=no
16688     else
16689       with_gnu_ld=$ac_cv_prog_gnu_ld
16690     fi
16691   fi
16692
16693   # Start by getting the version number.  I think the libtool test already
16694   # does some of this, but throws away the result.
16695   libitm_ld_is_gold=no
16696   if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16697     libitm_ld_is_gold=yes
16698   fi
16699
16700   ldver=`$LD --version 2>/dev/null |
16701          sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16702
16703   libitm_gnu_ld_version=`echo $ldver | \
16704          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16705
16706   # Set --gc-sections.
16707   if test "$with_gnu_ld" = "notbroken"; then
16708     # GNU ld it is!  Joy and bunny rabbits!
16709
16710     # All these tests are for C++; save the language and the compiler flags.
16711     # Need to do this so that g++ won't try to link in libstdc++
16712     ac_test_CFLAGS="${CFLAGS+set}"
16713     ac_save_CFLAGS="$CFLAGS"
16714     CFLAGS='-x c++  -Wl,--gc-sections'
16715
16716     # Check for -Wl,--gc-sections
16717     # XXX This test is broken at the moment, as symbols required for linking
16718     # are now in libsupc++ (not built yet).  In addition, this test has
16719     # cored on solaris in the past.  In addition, --gc-sections doesn't
16720     # really work at the moment (keeps on discarding used sections, first
16721     # .eh_frame and now some of the glibc sections for iconv).
16722     # Bzzzzt.  Thanks for playing, maybe next time.
16723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16724 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16725     if test "$cross_compiling" = yes; then :
16726   ac_sectionLDflags=yes
16727 else
16728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h.  */
16730
16731      int main(void)
16732      {
16733        try { throw 1; }
16734        catch (...) { };
16735        return 0;
16736      }
16737
16738 _ACEOF
16739 if ac_fn_c_try_run "$LINENO"; then :
16740   ac_sectionLDflags=yes
16741 else
16742   ac_sectionLDflags=no
16743 fi
16744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16745   conftest.$ac_objext conftest.beam conftest.$ac_ext
16746 fi
16747
16748     if test "$ac_test_CFLAGS" = set; then
16749       CFLAGS="$ac_save_CFLAGS"
16750     else
16751       # this is the suspicious part
16752       CFLAGS=''
16753     fi
16754     if test "$ac_sectionLDflags" = "yes"; then
16755       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16756     fi
16757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16758 $as_echo "$ac_sectionLDflags" >&6; }
16759   fi
16760
16761   # Set linker optimization flags.
16762   if test x"$with_gnu_ld" = x"yes"; then
16763     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16764   fi
16765
16766
16767
16768
16769
16770
16771  # Check whether --enable-symvers was given.
16772 if test "${enable_symvers+set}" = set; then :
16773   enableval=$enable_symvers;
16774       case "$enableval" in
16775        yes|no|gnu*|sun) ;;
16776        *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16777                           esac
16778
16779 else
16780   enable_symvers=yes
16781 fi
16782
16783
16784
16785 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16786 # don't know enough about $LD to do tricks...
16787
16788
16789 # Turn a 'yes' into a suitable default.
16790 if test x$enable_symvers = xyes ; then
16791   # FIXME  The following test is too strict, in theory.
16792   if test $enable_shared = no || test "x$LD" = x; then
16793     enable_symvers=no
16794   else
16795     if test $with_gnu_ld = yes ; then
16796       enable_symvers=gnu
16797     else
16798       case ${target_os} in
16799         # Sun symbol versioning exists since Solaris 2.5.
16800         solaris2.[5-9]* | solaris2.1[0-9]*)
16801           enable_symvers=sun ;;
16802         *)
16803           enable_symvers=no ;;
16804       esac
16805     fi
16806   fi
16807 fi
16808
16809 # Check if 'sun' was requested on non-Solaris 2 platforms.
16810 if test x$enable_symvers = xsun ; then
16811   case ${target_os} in
16812     solaris2*)
16813       # All fine.
16814       ;;
16815     *)
16816       # Unlikely to work.
16817       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16818 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16819       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16820 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16821       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16822 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16823       enable_symvers=no
16824       ;;
16825   esac
16826 fi
16827
16828 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16829 if test $enable_symvers != no; then
16830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16831 $as_echo_n "checking for shared libgcc... " >&6; }
16832   ac_save_CFLAGS="$CFLAGS"
16833   CFLAGS=' -lgcc_s'
16834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h.  */
16836
16837 int
16838 main ()
16839 {
16840 return 0;
16841   ;
16842   return 0;
16843 }
16844 _ACEOF
16845 if ac_fn_c_try_link "$LINENO"; then :
16846   libitm_shared_libgcc=yes
16847 else
16848   libitm_shared_libgcc=no
16849 fi
16850 rm -f core conftest.err conftest.$ac_objext \
16851     conftest$ac_exeext conftest.$ac_ext
16852   CFLAGS="$ac_save_CFLAGS"
16853   if test $libitm_shared_libgcc = no; then
16854     cat > conftest.c <<EOF
16855 int main (void) { return 0; }
16856 EOF
16857     libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16858                              -shared -shared-libgcc -o conftest.so \
16859                              conftest.c -v 2>&1 >/dev/null \
16860                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16861     rm -f conftest.c conftest.so
16862     if test x${libitm_libgcc_s_suffix+set} = xset; then
16863       CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16864       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h.  */
16866
16867 int
16868 main ()
16869 {
16870 return 0;
16871   ;
16872   return 0;
16873 }
16874 _ACEOF
16875 if ac_fn_c_try_link "$LINENO"; then :
16876   libitm_shared_libgcc=yes
16877 fi
16878 rm -f core conftest.err conftest.$ac_objext \
16879     conftest$ac_exeext conftest.$ac_ext
16880       CFLAGS="$ac_save_CFLAGS"
16881     fi
16882   fi
16883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
16884 $as_echo "$libitm_shared_libgcc" >&6; }
16885 fi
16886
16887 # For GNU ld, we need at least this version.  The format is described in
16888 # LIBITM_CHECK_LINKER_FEATURES above.
16889 libitm_min_gnu_ld_version=21400
16890 # XXXXXXXXXXX libitm_gnu_ld_version=21390
16891
16892 # Check to see if unspecified "yes" value can win, given results above.
16893 # Change "yes" into either "no" or a style name.
16894 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
16895   if test $with_gnu_ld = yes; then
16896     if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
16897       enable_symvers=gnu
16898     elif test $libitm_ld_is_gold = yes ; then
16899       enable_symvers=gnu
16900     else
16901       # The right tools, the right setup, but too old.  Fallbacks?
16902       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
16903 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
16904       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16905 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16906       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16907 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16908       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
16909 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
16910       if test $libitm_gnu_ld_version -ge 21200 ; then
16911         # Globbing fix is present, proper block support is not.
16912                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16913 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16914         enable_symvers=no
16915       else
16916         # 2.11 or older.
16917         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16918 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16919         enable_symvers=no
16920       fi
16921     fi
16922   elif test $enable_symvers = sun; then
16923     : All interesting versions of Sun ld support sun style symbol versioning.
16924   else
16925     # just fail for now
16926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16927 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16928     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16929 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16931 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16933 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16934     enable_symvers=no
16935   fi
16936 fi
16937
16938  if test $enable_symvers != no; then
16939   LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
16940   LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
16941 else
16942   LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
16943   LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
16944 fi
16945
16946  if test $enable_symvers = gnu; then
16947   LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16948   LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16949 else
16950   LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16951   LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16952 fi
16953
16954  if test $enable_symvers = sun; then
16955   LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16956   LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16957 else
16958   LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16959   LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16960 fi
16961
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16963 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16964
16965
16966 if test $enable_symvers = gnu; then
16967
16968 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16969
16970 fi
16971
16972 # See if we can emit unwind info in the sjlj stub.
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
16974 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
16975 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
16976   $as_echo_n "(cached) " >&6
16977 else
16978
16979     gcc_cv_as_cfi_pseudo_op=unknown
16980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h.  */
16982 asm (".cfi_startproc\n\t.cfi_endproc");
16983 int
16984 main ()
16985 {
16986
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 if ac_fn_c_try_compile "$LINENO"; then :
16992   gcc_cv_as_cfi_pseudo_op=yes
16993 else
16994   gcc_cv_as_cfi_pseudo_op=no
16995 fi
16996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16997
16998 fi
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17000 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17001  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17002
17003 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17004
17005  fi
17006
17007
17008 # Determine the proper ABI type for size_t.
17009
17010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17011 $as_echo_n "checking how size_t is mangled... " >&6; }
17012 if test "${libitm_cv_size_t_mangling+set}" = set; then :
17013   $as_echo_n "(cached) " >&6
17014 else
17015
17016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h.  */
17018
17019 int
17020 main ()
17021 {
17022 extern __SIZE_TYPE__ x; extern unsigned long x;
17023   ;
17024   return 0;
17025 }
17026 _ACEOF
17027 if ac_fn_c_try_compile "$LINENO"; then :
17028   libitm_cv_size_t_mangling=m
17029 else
17030
17031       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h.  */
17033
17034 int
17035 main ()
17036 {
17037 extern __SIZE_TYPE__ x; extern unsigned int x;
17038   ;
17039   return 0;
17040 }
17041 _ACEOF
17042 if ac_fn_c_try_compile "$LINENO"; then :
17043   libitm_cv_size_t_mangling=j
17044 else
17045
17046         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h.  */
17048
17049 int
17050 main ()
17051 {
17052 extern __SIZE_TYPE__ x; extern unsigned long long x;
17053   ;
17054   return 0;
17055 }
17056 _ACEOF
17057 if ac_fn_c_try_compile "$LINENO"; then :
17058   libitm_cv_size_t_mangling=y
17059 else
17060
17061           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h.  */
17063
17064 int
17065 main ()
17066 {
17067 extern __SIZE_TYPE__ x; extern unsigned short x;
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 if ac_fn_c_try_compile "$LINENO"; then :
17073   libitm_cv_size_t_mangling=t
17074 else
17075   libitm_cv_size_t_mangling=x
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078
17079 fi
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081
17082 fi
17083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084
17085 fi
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087
17088 fi
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17090 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17091   if test $libitm_cv_size_t_mangling = x; then
17092     as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17093   fi
17094
17095 cat >>confdefs.h <<_ACEOF
17096 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17097 _ACEOF
17098
17099
17100
17101 # Get target configury.
17102 . ${srcdir}/configure.tgt
17103 if test -n "$UNSUPPORTED"; then
17104   as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17105 fi
17106
17107 CFLAGS="$save_CFLAGS $XCFLAGS"
17108
17109 # Check for __sync_val_compare_and_swap, but only after the target has
17110 # had a chance to set XCFLAGS.
17111
17112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17113 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17114 if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17115   $as_echo_n "(cached) " >&6
17116 else
17117
17118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h.  */
17120
17121 int
17122 main ()
17123 {
17124 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17125   ;
17126   return 0;
17127 }
17128 _ACEOF
17129 if ac_fn_c_try_link "$LINENO"; then :
17130   libitm_cv_have_sync_builtins=yes
17131 else
17132   libitm_cv_have_sync_builtins=no
17133 fi
17134 rm -f core conftest.err conftest.$ac_objext \
17135     conftest$ac_exeext conftest.$ac_ext
17136 fi
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17138 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17139   if test $libitm_cv_have_sync_builtins = yes; then
17140
17141 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17142
17143   fi
17144
17145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17146 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17147 if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17148   $as_echo_n "(cached) " >&6
17149 else
17150
17151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h.  */
17153 #include <stdint.h>
17154 int
17155 main ()
17156 {
17157 uint64_t foo, bar;
17158      bar = __sync_val_compare_and_swap(&foo, 0, 1);
17159   ;
17160   return 0;
17161 }
17162 _ACEOF
17163 if ac_fn_c_try_link "$LINENO"; then :
17164   libitm_cv_have_64bit_sync_builtins=yes
17165 else
17166   libitm_cv_have_64bit_sync_builtins=no
17167 fi
17168 rm -f core conftest.err conftest.$ac_objext \
17169     conftest$ac_exeext conftest.$ac_ext
17170 fi
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17172 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17173     if test $libitm_cv_have_64bit_sync_builtins = yes; then
17174
17175 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17176
17177   fi
17178
17179 case "${target_cpu}" in
17180 i[34567]86 | x86_64)
17181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17182 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17183 if test "${libitm_cv_as_avx+set}" = set; then :
17184   $as_echo_n "(cached) " >&6
17185 else
17186
17187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h.  */
17189
17190 int
17191 main ()
17192 {
17193 asm("vzeroupper");
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 if ac_fn_c_try_compile "$LINENO"; then :
17199   libitm_cv_as_avx=yes
17200 else
17201   libitm_cv_as_avx=no
17202 fi
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204
17205 fi
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17207 $as_echo "$libitm_cv_as_avx" >&6; }
17208   if test x$libitm_cv_as_avx = xyes; then
17209
17210 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17211
17212   fi
17213   ;;
17214 esac
17215
17216 # Cleanup and exit.
17217 CFLAGS="$save_CFLAGS"
17218 cat >confcache <<\_ACEOF
17219 # This file is a shell script that caches the results of configure
17220 # tests run on this system so they can be shared between configure
17221 # scripts and configure runs, see configure's option --config-cache.
17222 # It is not useful on other systems.  If it contains results you don't
17223 # want to keep, you may remove or edit it.
17224 #
17225 # config.status only pays attention to the cache file if you give it
17226 # the --recheck option to rerun configure.
17227 #
17228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17230 # following values.
17231
17232 _ACEOF
17233
17234 # The following way of writing the cache mishandles newlines in values,
17235 # but we know of no workaround that is simple, portable, and efficient.
17236 # So, we kill variables containing newlines.
17237 # Ultrix sh set writes to stderr and can't be redirected directly,
17238 # and sets the high bit in the cache file unless we assign to the vars.
17239 (
17240   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17241     eval ac_val=\$$ac_var
17242     case $ac_val in #(
17243     *${as_nl}*)
17244       case $ac_var in #(
17245       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17246 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17247       esac
17248       case $ac_var in #(
17249       _ | IFS | as_nl) ;; #(
17250       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17251       *) { eval $ac_var=; unset $ac_var;} ;;
17252       esac ;;
17253     esac
17254   done
17255
17256   (set) 2>&1 |
17257     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17258     *${as_nl}ac_space=\ *)
17259       # `set' does not quote correctly, so add quotes: double-quote
17260       # substitution turns \\\\ into \\, and sed turns \\ into \.
17261       sed -n \
17262         "s/'/'\\\\''/g;
17263           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17264       ;; #(
17265     *)
17266       # `set' quotes correctly as required by POSIX, so do not add quotes.
17267       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17268       ;;
17269     esac |
17270     sort
17271 ) |
17272   sed '
17273      /^ac_cv_env_/b end
17274      t clear
17275      :clear
17276      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17277      t end
17278      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17279      :end' >>confcache
17280 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17281   if test -w "$cache_file"; then
17282     test "x$cache_file" != "x/dev/null" &&
17283       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17284 $as_echo "$as_me: updating cache $cache_file" >&6;}
17285     cat confcache >$cache_file
17286   else
17287     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17288 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17289   fi
17290 fi
17291 rm -f confcache
17292
17293 # Add -Wall -Werror if we are using GCC.
17294 if test "x$GCC" = "xyes"; then
17295   XCFLAGS="$XCFLAGS -Wall -Werror"
17296 fi
17297
17298 XCFLAGS="$XCFLAGS $XPCFLAGS"
17299
17300
17301
17302
17303
17304 if test ${multilib} = yes; then
17305   multilib_arg="--enable-multilib"
17306 else
17307   multilib_arg=
17308 fi
17309
17310 # Set up the set of libraries that we need to link against for libitm.
17311 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
17312 # which will force linkage against -lpthread (or equivalent for the system).
17313 # That's not 100% ideal, but about the best we can do easily.
17314 if test $enable_shared = yes; then
17315   link_itm="-litm %{static: $LIBS}"
17316 else
17317   link_itm="-litm $LIBS"
17318 fi
17319
17320
17321  if test "$ARCH" = x86; then
17322   ARCH_X86_TRUE=
17323   ARCH_X86_FALSE='#'
17324 else
17325   ARCH_X86_TRUE='#'
17326   ARCH_X86_FALSE=
17327 fi
17328
17329  if test "$libitm_cv_as_avx" = yes; then
17330   ARCH_X86_AVX_TRUE=
17331   ARCH_X86_AVX_FALSE='#'
17332 else
17333   ARCH_X86_AVX_TRUE='#'
17334   ARCH_X86_AVX_FALSE=
17335 fi
17336
17337  if test $enable_linux_futex = yes; then
17338   ARCH_FUTEX_TRUE=
17339   ARCH_FUTEX_FALSE='#'
17340 else
17341   ARCH_FUTEX_TRUE='#'
17342   ARCH_FUTEX_FALSE=
17343 fi
17344
17345
17346 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17347
17348 cat >confcache <<\_ACEOF
17349 # This file is a shell script that caches the results of configure
17350 # tests run on this system so they can be shared between configure
17351 # scripts and configure runs, see configure's option --config-cache.
17352 # It is not useful on other systems.  If it contains results you don't
17353 # want to keep, you may remove or edit it.
17354 #
17355 # config.status only pays attention to the cache file if you give it
17356 # the --recheck option to rerun configure.
17357 #
17358 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17359 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17360 # following values.
17361
17362 _ACEOF
17363
17364 # The following way of writing the cache mishandles newlines in values,
17365 # but we know of no workaround that is simple, portable, and efficient.
17366 # So, we kill variables containing newlines.
17367 # Ultrix sh set writes to stderr and can't be redirected directly,
17368 # and sets the high bit in the cache file unless we assign to the vars.
17369 (
17370   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17371     eval ac_val=\$$ac_var
17372     case $ac_val in #(
17373     *${as_nl}*)
17374       case $ac_var in #(
17375       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17376 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17377       esac
17378       case $ac_var in #(
17379       _ | IFS | as_nl) ;; #(
17380       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17381       *) { eval $ac_var=; unset $ac_var;} ;;
17382       esac ;;
17383     esac
17384   done
17385
17386   (set) 2>&1 |
17387     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17388     *${as_nl}ac_space=\ *)
17389       # `set' does not quote correctly, so add quotes: double-quote
17390       # substitution turns \\\\ into \\, and sed turns \\ into \.
17391       sed -n \
17392         "s/'/'\\\\''/g;
17393           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17394       ;; #(
17395     *)
17396       # `set' quotes correctly as required by POSIX, so do not add quotes.
17397       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17398       ;;
17399     esac |
17400     sort
17401 ) |
17402   sed '
17403      /^ac_cv_env_/b end
17404      t clear
17405      :clear
17406      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17407      t end
17408      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17409      :end' >>confcache
17410 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17411   if test -w "$cache_file"; then
17412     test "x$cache_file" != "x/dev/null" &&
17413       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17414 $as_echo "$as_me: updating cache $cache_file" >&6;}
17415     cat confcache >$cache_file
17416   else
17417     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17418 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17419   fi
17420 fi
17421 rm -f confcache
17422
17423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17424 # Let make expand exec_prefix.
17425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17426
17427 DEFS=-DHAVE_CONFIG_H
17428
17429 ac_libobjs=
17430 ac_ltlibobjs=
17431 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17432   # 1. Remove the extension, and $U if already installed.
17433   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17434   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17435   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17436   #    will be set to the directory where LIBOBJS objects are built.
17437   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17438   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17439 done
17440 LIBOBJS=$ac_libobjs
17441
17442 LTLIBOBJS=$ac_ltlibobjs
17443
17444
17445 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17446   as_fn_error "conditional \"GENINSRC\" was never defined.
17447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17448 fi
17449  if test -n "$EXEEXT"; then
17450   am__EXEEXT_TRUE=
17451   am__EXEEXT_FALSE='#'
17452 else
17453   am__EXEEXT_TRUE='#'
17454   am__EXEEXT_FALSE=
17455 fi
17456
17457 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17458   as_fn_error "conditional \"AMDEP\" was never defined.
17459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17460 fi
17461 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17462   as_fn_error "conditional \"am__fastdepCC\" was never defined.
17463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17464 fi
17465 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17466   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17468 fi
17469 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17470   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17472 fi
17473 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17474   as_fn_error "conditional \"BUILD_INFO\" was never defined.
17475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17476 fi
17477 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17478   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17480 fi
17481
17482 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17483   as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17485 fi
17486 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17487   as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17489 fi
17490 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17491   as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17493 fi
17494 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17495   as_fn_error "conditional \"ARCH_X86\" was never defined.
17496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17497 fi
17498 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17499   as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17501 fi
17502 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17503   as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17505 fi
17506
17507 : ${CONFIG_STATUS=./config.status}
17508 ac_write_fail=0
17509 ac_clean_files_save=$ac_clean_files
17510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17512 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17513 as_write_fail=0
17514 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17515 #! $SHELL
17516 # Generated by $as_me.
17517 # Run this file to recreate the current configuration.
17518 # Compiler output produced by configure, useful for debugging
17519 # configure, is in config.log if it exists.
17520
17521 debug=false
17522 ac_cs_recheck=false
17523 ac_cs_silent=false
17524
17525 SHELL=\${CONFIG_SHELL-$SHELL}
17526 export SHELL
17527 _ASEOF
17528 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17529 ## -------------------- ##
17530 ## M4sh Initialization. ##
17531 ## -------------------- ##
17532
17533 # Be more Bourne compatible
17534 DUALCASE=1; export DUALCASE # for MKS sh
17535 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17536   emulate sh
17537   NULLCMD=:
17538   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17539   # is contrary to our usage.  Disable this feature.
17540   alias -g '${1+"$@"}'='"$@"'
17541   setopt NO_GLOB_SUBST
17542 else
17543   case `(set -o) 2>/dev/null` in #(
17544   *posix*) :
17545     set -o posix ;; #(
17546   *) :
17547      ;;
17548 esac
17549 fi
17550
17551
17552 as_nl='
17553 '
17554 export as_nl
17555 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17556 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17557 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17558 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17559 # Prefer a ksh shell builtin over an external printf program on Solaris,
17560 # but without wasting forks for bash or zsh.
17561 if test -z "$BASH_VERSION$ZSH_VERSION" \
17562     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17563   as_echo='print -r --'
17564   as_echo_n='print -rn --'
17565 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17566   as_echo='printf %s\n'
17567   as_echo_n='printf %s'
17568 else
17569   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17570     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17571     as_echo_n='/usr/ucb/echo -n'
17572   else
17573     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17574     as_echo_n_body='eval
17575       arg=$1;
17576       case $arg in #(
17577       *"$as_nl"*)
17578         expr "X$arg" : "X\\(.*\\)$as_nl";
17579         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17580       esac;
17581       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17582     '
17583     export as_echo_n_body
17584     as_echo_n='sh -c $as_echo_n_body as_echo'
17585   fi
17586   export as_echo_body
17587   as_echo='sh -c $as_echo_body as_echo'
17588 fi
17589
17590 # The user is always right.
17591 if test "${PATH_SEPARATOR+set}" != set; then
17592   PATH_SEPARATOR=:
17593   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17594     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17595       PATH_SEPARATOR=';'
17596   }
17597 fi
17598
17599
17600 # IFS
17601 # We need space, tab and new line, in precisely that order.  Quoting is
17602 # there to prevent editors from complaining about space-tab.
17603 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17604 # splitting by setting IFS to empty value.)
17605 IFS=" ""        $as_nl"
17606
17607 # Find who we are.  Look in the path if we contain no directory separator.
17608 case $0 in #((
17609   *[\\/]* ) as_myself=$0 ;;
17610   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17611 for as_dir in $PATH
17612 do
17613   IFS=$as_save_IFS
17614   test -z "$as_dir" && as_dir=.
17615     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17616   done
17617 IFS=$as_save_IFS
17618
17619      ;;
17620 esac
17621 # We did not find ourselves, most probably we were run as `sh COMMAND'
17622 # in which case we are not to be found in the path.
17623 if test "x$as_myself" = x; then
17624   as_myself=$0
17625 fi
17626 if test ! -f "$as_myself"; then
17627   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17628   exit 1
17629 fi
17630
17631 # Unset variables that we do not need and which cause bugs (e.g. in
17632 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17633 # suppresses any "Segmentation fault" message there.  '((' could
17634 # trigger a bug in pdksh 5.2.14.
17635 for as_var in BASH_ENV ENV MAIL MAILPATH
17636 do eval test x\${$as_var+set} = xset \
17637   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17638 done
17639 PS1='$ '
17640 PS2='> '
17641 PS4='+ '
17642
17643 # NLS nuisances.
17644 LC_ALL=C
17645 export LC_ALL
17646 LANGUAGE=C
17647 export LANGUAGE
17648
17649 # CDPATH.
17650 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17651
17652
17653 # as_fn_error ERROR [LINENO LOG_FD]
17654 # ---------------------------------
17655 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17656 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17657 # script with status $?, using 1 if that was 0.
17658 as_fn_error ()
17659 {
17660   as_status=$?; test $as_status -eq 0 && as_status=1
17661   if test "$3"; then
17662     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17663     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17664   fi
17665   $as_echo "$as_me: error: $1" >&2
17666   as_fn_exit $as_status
17667 } # as_fn_error
17668
17669
17670 # as_fn_set_status STATUS
17671 # -----------------------
17672 # Set $? to STATUS, without forking.
17673 as_fn_set_status ()
17674 {
17675   return $1
17676 } # as_fn_set_status
17677
17678 # as_fn_exit STATUS
17679 # -----------------
17680 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17681 as_fn_exit ()
17682 {
17683   set +e
17684   as_fn_set_status $1
17685   exit $1
17686 } # as_fn_exit
17687
17688 # as_fn_unset VAR
17689 # ---------------
17690 # Portably unset VAR.
17691 as_fn_unset ()
17692 {
17693   { eval $1=; unset $1;}
17694 }
17695 as_unset=as_fn_unset
17696 # as_fn_append VAR VALUE
17697 # ----------------------
17698 # Append the text in VALUE to the end of the definition contained in VAR. Take
17699 # advantage of any shell optimizations that allow amortized linear growth over
17700 # repeated appends, instead of the typical quadratic growth present in naive
17701 # implementations.
17702 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17703   eval 'as_fn_append ()
17704   {
17705     eval $1+=\$2
17706   }'
17707 else
17708   as_fn_append ()
17709   {
17710     eval $1=\$$1\$2
17711   }
17712 fi # as_fn_append
17713
17714 # as_fn_arith ARG...
17715 # ------------------
17716 # Perform arithmetic evaluation on the ARGs, and store the result in the
17717 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17718 # must be portable across $(()) and expr.
17719 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17720   eval 'as_fn_arith ()
17721   {
17722     as_val=$(( $* ))
17723   }'
17724 else
17725   as_fn_arith ()
17726   {
17727     as_val=`expr "$@" || test $? -eq 1`
17728   }
17729 fi # as_fn_arith
17730
17731
17732 if expr a : '\(a\)' >/dev/null 2>&1 &&
17733    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17734   as_expr=expr
17735 else
17736   as_expr=false
17737 fi
17738
17739 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17740   as_basename=basename
17741 else
17742   as_basename=false
17743 fi
17744
17745 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17746   as_dirname=dirname
17747 else
17748   as_dirname=false
17749 fi
17750
17751 as_me=`$as_basename -- "$0" ||
17752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17753          X"$0" : 'X\(//\)$' \| \
17754          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17755 $as_echo X/"$0" |
17756     sed '/^.*\/\([^/][^/]*\)\/*$/{
17757             s//\1/
17758             q
17759           }
17760           /^X\/\(\/\/\)$/{
17761             s//\1/
17762             q
17763           }
17764           /^X\/\(\/\).*/{
17765             s//\1/
17766             q
17767           }
17768           s/.*/./; q'`
17769
17770 # Avoid depending upon Character Ranges.
17771 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17772 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17773 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17774 as_cr_digits='0123456789'
17775 as_cr_alnum=$as_cr_Letters$as_cr_digits
17776
17777 ECHO_C= ECHO_N= ECHO_T=
17778 case `echo -n x` in #(((((
17779 -n*)
17780   case `echo 'xy\c'` in
17781   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17782   xy)  ECHO_C='\c';;
17783   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17784        ECHO_T=' ';;
17785   esac;;
17786 *)
17787   ECHO_N='-n';;
17788 esac
17789
17790 rm -f conf$$ conf$$.exe conf$$.file
17791 if test -d conf$$.dir; then
17792   rm -f conf$$.dir/conf$$.file
17793 else
17794   rm -f conf$$.dir
17795   mkdir conf$$.dir 2>/dev/null
17796 fi
17797 if (echo >conf$$.file) 2>/dev/null; then
17798   if ln -s conf$$.file conf$$ 2>/dev/null; then
17799     as_ln_s='ln -s'
17800     # ... but there are two gotchas:
17801     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17802     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17803     # In both cases, we have to default to `cp -p'.
17804     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17805       as_ln_s='cp -p'
17806   elif ln conf$$.file conf$$ 2>/dev/null; then
17807     as_ln_s=ln
17808   else
17809     as_ln_s='cp -p'
17810   fi
17811 else
17812   as_ln_s='cp -p'
17813 fi
17814 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17815 rmdir conf$$.dir 2>/dev/null
17816
17817
17818 # as_fn_mkdir_p
17819 # -------------
17820 # Create "$as_dir" as a directory, including parents if necessary.
17821 as_fn_mkdir_p ()
17822 {
17823
17824   case $as_dir in #(
17825   -*) as_dir=./$as_dir;;
17826   esac
17827   test -d "$as_dir" || eval $as_mkdir_p || {
17828     as_dirs=
17829     while :; do
17830       case $as_dir in #(
17831       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17832       *) as_qdir=$as_dir;;
17833       esac
17834       as_dirs="'$as_qdir' $as_dirs"
17835       as_dir=`$as_dirname -- "$as_dir" ||
17836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17837          X"$as_dir" : 'X\(//\)[^/]' \| \
17838          X"$as_dir" : 'X\(//\)$' \| \
17839          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17840 $as_echo X"$as_dir" |
17841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17842             s//\1/
17843             q
17844           }
17845           /^X\(\/\/\)[^/].*/{
17846             s//\1/
17847             q
17848           }
17849           /^X\(\/\/\)$/{
17850             s//\1/
17851             q
17852           }
17853           /^X\(\/\).*/{
17854             s//\1/
17855             q
17856           }
17857           s/.*/./; q'`
17858       test -d "$as_dir" && break
17859     done
17860     test -z "$as_dirs" || eval "mkdir $as_dirs"
17861   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17862
17863
17864 } # as_fn_mkdir_p
17865 if mkdir -p . 2>/dev/null; then
17866   as_mkdir_p='mkdir -p "$as_dir"'
17867 else
17868   test -d ./-p && rmdir ./-p
17869   as_mkdir_p=false
17870 fi
17871
17872 if test -x / >/dev/null 2>&1; then
17873   as_test_x='test -x'
17874 else
17875   if ls -dL / >/dev/null 2>&1; then
17876     as_ls_L_option=L
17877   else
17878     as_ls_L_option=
17879   fi
17880   as_test_x='
17881     eval sh -c '\''
17882       if test -d "$1"; then
17883         test -d "$1/.";
17884       else
17885         case $1 in #(
17886         -*)set "./$1";;
17887         esac;
17888         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17889         ???[sx]*):;;*)false;;esac;fi
17890     '\'' sh
17891   '
17892 fi
17893 as_executable_p=$as_test_x
17894
17895 # Sed expression to map a string onto a valid CPP name.
17896 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17897
17898 # Sed expression to map a string onto a valid variable name.
17899 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17900
17901
17902 exec 6>&1
17903 ## ----------------------------------- ##
17904 ## Main body of $CONFIG_STATUS script. ##
17905 ## ----------------------------------- ##
17906 _ASEOF
17907 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17908
17909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17910 # Save the log message, to keep $0 and so on meaningful, and to
17911 # report actual input values of CONFIG_FILES etc. instead of their
17912 # values after options handling.
17913 ac_log="
17914 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
17915 generated by GNU Autoconf 2.64.  Invocation command line was
17916
17917   CONFIG_FILES    = $CONFIG_FILES
17918   CONFIG_HEADERS  = $CONFIG_HEADERS
17919   CONFIG_LINKS    = $CONFIG_LINKS
17920   CONFIG_COMMANDS = $CONFIG_COMMANDS
17921   $ $0 $@
17922
17923 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17924 "
17925
17926 _ACEOF
17927
17928 case $ac_config_files in *"
17929 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17930 esac
17931
17932 case $ac_config_headers in *"
17933 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17934 esac
17935
17936
17937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17938 # Files that config.status was made for.
17939 config_files="$ac_config_files"
17940 config_headers="$ac_config_headers"
17941 config_commands="$ac_config_commands"
17942
17943 _ACEOF
17944
17945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17946 ac_cs_usage="\
17947 \`$as_me' instantiates files and other configuration actions
17948 from templates according to the current configuration.  Unless the files
17949 and actions are specified as TAGs, all are instantiated by default.
17950
17951 Usage: $0 [OPTION]... [TAG]...
17952
17953   -h, --help       print this help, then exit
17954   -V, --version    print version number and configuration settings, then exit
17955   -q, --quiet, --silent
17956                    do not print progress messages
17957   -d, --debug      don't remove temporary files
17958       --recheck    update $as_me by reconfiguring in the same conditions
17959       --file=FILE[:TEMPLATE]
17960                    instantiate the configuration file FILE
17961       --header=FILE[:TEMPLATE]
17962                    instantiate the configuration header FILE
17963
17964 Configuration files:
17965 $config_files
17966
17967 Configuration headers:
17968 $config_headers
17969
17970 Configuration commands:
17971 $config_commands
17972
17973 Report bugs to the package provider.
17974 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
17975 General help using GNU software: <http://www.gnu.org/gethelp/>."
17976
17977 _ACEOF
17978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17979 ac_cs_version="\\
17980 GNU TM Runtime Library config.status 1.0
17981 configured by $0, generated by GNU Autoconf 2.64,
17982   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17983
17984 Copyright (C) 2009 Free Software Foundation, Inc.
17985 This config.status script is free software; the Free Software Foundation
17986 gives unlimited permission to copy, distribute and modify it."
17987
17988 ac_pwd='$ac_pwd'
17989 srcdir='$srcdir'
17990 INSTALL='$INSTALL'
17991 MKDIR_P='$MKDIR_P'
17992 AWK='$AWK'
17993 test -n "\$AWK" || AWK=awk
17994 _ACEOF
17995
17996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17997 # The default lists apply if the user does not specify any file.
17998 ac_need_defaults=:
17999 while test $# != 0
18000 do
18001   case $1 in
18002   --*=*)
18003     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18004     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18005     ac_shift=:
18006     ;;
18007   *)
18008     ac_option=$1
18009     ac_optarg=$2
18010     ac_shift=shift
18011     ;;
18012   esac
18013
18014   case $ac_option in
18015   # Handling of the options.
18016   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18017     ac_cs_recheck=: ;;
18018   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18019     $as_echo "$ac_cs_version"; exit ;;
18020   --debug | --debu | --deb | --de | --d | -d )
18021     debug=: ;;
18022   --file | --fil | --fi | --f )
18023     $ac_shift
18024     case $ac_optarg in
18025     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18026     esac
18027     as_fn_append CONFIG_FILES " '$ac_optarg'"
18028     ac_need_defaults=false;;
18029   --header | --heade | --head | --hea )
18030     $ac_shift
18031     case $ac_optarg in
18032     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18033     esac
18034     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18035     ac_need_defaults=false;;
18036   --he | --h)
18037     # Conflict between --help and --header
18038     as_fn_error "ambiguous option: \`$1'
18039 Try \`$0 --help' for more information.";;
18040   --help | --hel | -h )
18041     $as_echo "$ac_cs_usage"; exit ;;
18042   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18043   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18044     ac_cs_silent=: ;;
18045
18046   # This is an error.
18047   -*) as_fn_error "unrecognized option: \`$1'
18048 Try \`$0 --help' for more information." ;;
18049
18050   *) as_fn_append ac_config_targets " $1"
18051      ac_need_defaults=false ;;
18052
18053   esac
18054   shift
18055 done
18056
18057 ac_configure_extra_args=
18058
18059 if $ac_cs_silent; then
18060   exec 6>/dev/null
18061   ac_configure_extra_args="$ac_configure_extra_args --silent"
18062 fi
18063
18064 _ACEOF
18065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18066 if \$ac_cs_recheck; then
18067   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18068   shift
18069   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18070   CONFIG_SHELL='$SHELL'
18071   export CONFIG_SHELL
18072   exec "\$@"
18073 fi
18074
18075 _ACEOF
18076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18077 exec 5>>config.log
18078 {
18079   echo
18080   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18081 ## Running $as_me. ##
18082 _ASBOX
18083   $as_echo "$ac_log"
18084 } >&5
18085
18086 _ACEOF
18087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18088 #
18089 # INIT-COMMANDS
18090 #
18091
18092 srcdir="$srcdir"
18093 host="$host"
18094 target="$target"
18095 with_multisubdir="$with_multisubdir"
18096 with_multisrctop="$with_multisrctop"
18097 with_target_subdir="$with_target_subdir"
18098 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18099 multi_basedir="$multi_basedir"
18100 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18101 CC="$CC"
18102 CXX="$CXX"
18103 GFORTRAN="$GFORTRAN"
18104 GCJ="$GCJ"
18105 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18106
18107
18108 # The HP-UX ksh and POSIX shell print the target directory to stdout
18109 # if CDPATH is set.
18110 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18111
18112 sed_quote_subst='$sed_quote_subst'
18113 double_quote_subst='$double_quote_subst'
18114 delay_variable_subst='$delay_variable_subst'
18115 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18116 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18117 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18118 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18119 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18120 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18121 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18122 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18123 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18124 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18125 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18126 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18127 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18128 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18129 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18130 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18131 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18132 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18133 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18134 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18135 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18136 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18137 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18138 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18139 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18140 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18141 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18142 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18143 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18144 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18145 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18146 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18147 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18148 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18149 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18150 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18151 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18152 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18153 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18154 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18155 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18156 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18157 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18158 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18159 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18160 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18161 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18162 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18163 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"`'
18164 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18165 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18166 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18167 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18168 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18169 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18170 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18171 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18172 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18173 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18174 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18175 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18176 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18177 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18178 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18179 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18180 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18181 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18182 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18183 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18184 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18185 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18186 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18187 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18188 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18189 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18190 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18191 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18192 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18193 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18194 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18195 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18196 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18197 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18198 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18199 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18200 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18201 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18202 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18203 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18204 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18205 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18206 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18207 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18208 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18209 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18210 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18211 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18212 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18213 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18214 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18215 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18216 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18217 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18218 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18219 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18220 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18221 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18222 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18223 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18224 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18225 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18226 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18227 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18228 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18229 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18230 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18231 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18232 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18233 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18234 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18235 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18236 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18237 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18238 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18239 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18240 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18241 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18242 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18243 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18244 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18245 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18246 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18247 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18248 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18249 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18250 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18251 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18252 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18253 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18254 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18255 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18256 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18257 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18258 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18259 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18260 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18261 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18262 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18263 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18264 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18265 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18266 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18267 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18268 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18269 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18270 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18271 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18272 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18273 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18274 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18275 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18276 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18277 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18278 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18279 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18280 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18281 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18282 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18283 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18284 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18285 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18286 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18287 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18288 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18289 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18290
18291 LTCC='$LTCC'
18292 LTCFLAGS='$LTCFLAGS'
18293 compiler='$compiler_DEFAULT'
18294
18295 # A function that is used when there is no print builtin or printf.
18296 func_fallback_echo ()
18297 {
18298   eval 'cat <<_LTECHO_EOF
18299 \$1
18300 _LTECHO_EOF'
18301 }
18302
18303 # Quote evaled strings.
18304 for var in SHELL \
18305 ECHO \
18306 SED \
18307 GREP \
18308 EGREP \
18309 FGREP \
18310 LD \
18311 NM \
18312 LN_S \
18313 lt_SP2NL \
18314 lt_NL2SP \
18315 reload_flag \
18316 OBJDUMP \
18317 deplibs_check_method \
18318 file_magic_cmd \
18319 AR \
18320 AR_FLAGS \
18321 STRIP \
18322 RANLIB \
18323 CC \
18324 CFLAGS \
18325 compiler \
18326 lt_cv_sys_global_symbol_pipe \
18327 lt_cv_sys_global_symbol_to_cdecl \
18328 lt_cv_sys_global_symbol_to_c_name_address \
18329 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18330 lt_prog_compiler_no_builtin_flag \
18331 lt_prog_compiler_wl \
18332 lt_prog_compiler_pic \
18333 lt_prog_compiler_static \
18334 lt_cv_prog_compiler_c_o \
18335 need_locks \
18336 DSYMUTIL \
18337 NMEDIT \
18338 LIPO \
18339 OTOOL \
18340 OTOOL64 \
18341 shrext_cmds \
18342 export_dynamic_flag_spec \
18343 whole_archive_flag_spec \
18344 compiler_needs_object \
18345 with_gnu_ld \
18346 allow_undefined_flag \
18347 no_undefined_flag \
18348 hardcode_libdir_flag_spec \
18349 hardcode_libdir_flag_spec_ld \
18350 hardcode_libdir_separator \
18351 fix_srcfile_path \
18352 exclude_expsyms \
18353 include_expsyms \
18354 file_list_spec \
18355 variables_saved_for_relink \
18356 libname_spec \
18357 library_names_spec \
18358 soname_spec \
18359 install_override_mode \
18360 finish_eval \
18361 old_striplib \
18362 striplib \
18363 compiler_lib_search_dirs \
18364 predep_objects \
18365 postdep_objects \
18366 predeps \
18367 postdeps \
18368 compiler_lib_search_path \
18369 LD_CXX \
18370 reload_flag_CXX \
18371 compiler_CXX \
18372 lt_prog_compiler_no_builtin_flag_CXX \
18373 lt_prog_compiler_wl_CXX \
18374 lt_prog_compiler_pic_CXX \
18375 lt_prog_compiler_static_CXX \
18376 lt_cv_prog_compiler_c_o_CXX \
18377 export_dynamic_flag_spec_CXX \
18378 whole_archive_flag_spec_CXX \
18379 compiler_needs_object_CXX \
18380 with_gnu_ld_CXX \
18381 allow_undefined_flag_CXX \
18382 no_undefined_flag_CXX \
18383 hardcode_libdir_flag_spec_CXX \
18384 hardcode_libdir_flag_spec_ld_CXX \
18385 hardcode_libdir_separator_CXX \
18386 fix_srcfile_path_CXX \
18387 exclude_expsyms_CXX \
18388 include_expsyms_CXX \
18389 file_list_spec_CXX \
18390 compiler_lib_search_dirs_CXX \
18391 predep_objects_CXX \
18392 postdep_objects_CXX \
18393 predeps_CXX \
18394 postdeps_CXX \
18395 compiler_lib_search_path_CXX; do
18396     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18397     *[\\\\\\\`\\"\\\$]*)
18398       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18399       ;;
18400     *)
18401       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18402       ;;
18403     esac
18404 done
18405
18406 # Double-quote double-evaled strings.
18407 for var in reload_cmds \
18408 old_postinstall_cmds \
18409 old_postuninstall_cmds \
18410 old_archive_cmds \
18411 extract_expsyms_cmds \
18412 old_archive_from_new_cmds \
18413 old_archive_from_expsyms_cmds \
18414 archive_cmds \
18415 archive_expsym_cmds \
18416 module_cmds \
18417 module_expsym_cmds \
18418 export_symbols_cmds \
18419 prelink_cmds \
18420 postinstall_cmds \
18421 postuninstall_cmds \
18422 finish_cmds \
18423 sys_lib_search_path_spec \
18424 sys_lib_dlsearch_path_spec \
18425 reload_cmds_CXX \
18426 old_archive_cmds_CXX \
18427 old_archive_from_new_cmds_CXX \
18428 old_archive_from_expsyms_cmds_CXX \
18429 archive_cmds_CXX \
18430 archive_expsym_cmds_CXX \
18431 module_cmds_CXX \
18432 module_expsym_cmds_CXX \
18433 export_symbols_cmds_CXX \
18434 prelink_cmds_CXX; do
18435     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18436     *[\\\\\\\`\\"\\\$]*)
18437       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18438       ;;
18439     *)
18440       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18441       ;;
18442     esac
18443 done
18444
18445 ac_aux_dir='$ac_aux_dir'
18446 xsi_shell='$xsi_shell'
18447 lt_shell_append='$lt_shell_append'
18448
18449 # See if we are running on zsh, and set the options which allow our
18450 # commands through without removal of \ escapes INIT.
18451 if test -n "\${ZSH_VERSION+set}" ; then
18452    setopt NO_GLOB_SUBST
18453 fi
18454
18455
18456     PACKAGE='$PACKAGE'
18457     VERSION='$VERSION'
18458     TIMESTAMP='$TIMESTAMP'
18459     RM='$RM'
18460     ofile='$ofile'
18461
18462
18463
18464
18465
18466
18467 GCC="$GCC"
18468 CC="$CC"
18469 acx_cv_header_stdint="$acx_cv_header_stdint"
18470 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18471 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18472 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18473 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18474 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18475 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18476 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18477 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18478 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18479 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18480 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18481 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18482 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18483
18484
18485 _ACEOF
18486
18487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18488
18489 # Handling of arguments.
18490 for ac_config_target in $ac_config_targets
18491 do
18492   case $ac_config_target in
18493     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18494     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18495     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18496     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18497     "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18498     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18499     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18500     "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18501
18502   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18503   esac
18504 done
18505
18506
18507 # If the user did not use the arguments to specify the items to instantiate,
18508 # then the envvar interface is used.  Set only those that are not.
18509 # We use the long form for the default assignment because of an extremely
18510 # bizarre bug on SunOS 4.1.3.
18511 if $ac_need_defaults; then
18512   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18513   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18514   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18515 fi
18516
18517 # Have a temporary directory for convenience.  Make it in the build tree
18518 # simply because there is no reason against having it here, and in addition,
18519 # creating and moving files from /tmp can sometimes cause problems.
18520 # Hook for its removal unless debugging.
18521 # Note that there is a small window in which the directory will not be cleaned:
18522 # after its creation but before its name has been assigned to `$tmp'.
18523 $debug ||
18524 {
18525   tmp=
18526   trap 'exit_status=$?
18527   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18528 ' 0
18529   trap 'as_fn_exit 1' 1 2 13 15
18530 }
18531 # Create a (secure) tmp directory for tmp files.
18532
18533 {
18534   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18535   test -n "$tmp" && test -d "$tmp"
18536 }  ||
18537 {
18538   tmp=./conf$$-$RANDOM
18539   (umask 077 && mkdir "$tmp")
18540 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18541
18542 # Set up the scripts for CONFIG_FILES section.
18543 # No need to generate them if there are no CONFIG_FILES.
18544 # This happens for instance with `./config.status config.h'.
18545 if test -n "$CONFIG_FILES"; then
18546
18547
18548 ac_cr=`echo X | tr X '\015'`
18549 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18550 # But we know of no other shell where ac_cr would be empty at this
18551 # point, so we can use a bashism as a fallback.
18552 if test "x$ac_cr" = x; then
18553   eval ac_cr=\$\'\\r\'
18554 fi
18555 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18556 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18557   ac_cs_awk_cr='\r'
18558 else
18559   ac_cs_awk_cr=$ac_cr
18560 fi
18561
18562 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18563 _ACEOF
18564
18565
18566 {
18567   echo "cat >conf$$subs.awk <<_ACEOF" &&
18568   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18569   echo "_ACEOF"
18570 } >conf$$subs.sh ||
18571   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18572 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18573 ac_delim='%!_!# '
18574 for ac_last_try in false false false false false :; do
18575   . ./conf$$subs.sh ||
18576     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18577
18578   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18579   if test $ac_delim_n = $ac_delim_num; then
18580     break
18581   elif $ac_last_try; then
18582     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18583   else
18584     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18585   fi
18586 done
18587 rm -f conf$$subs.sh
18588
18589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18590 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18591 _ACEOF
18592 sed -n '
18593 h
18594 s/^/S["/; s/!.*/"]=/
18595 p
18596 g
18597 s/^[^!]*!//
18598 :repl
18599 t repl
18600 s/'"$ac_delim"'$//
18601 t delim
18602 :nl
18603 h
18604 s/\(.\{148\}\).*/\1/
18605 t more1
18606 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18607 p
18608 n
18609 b repl
18610 :more1
18611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18612 p
18613 g
18614 s/.\{148\}//
18615 t nl
18616 :delim
18617 h
18618 s/\(.\{148\}\).*/\1/
18619 t more2
18620 s/["\\]/\\&/g; s/^/"/; s/$/"/
18621 p
18622 b
18623 :more2
18624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18625 p
18626 g
18627 s/.\{148\}//
18628 t delim
18629 ' <conf$$subs.awk | sed '
18630 /^[^""]/{
18631   N
18632   s/\n//
18633 }
18634 ' >>$CONFIG_STATUS || ac_write_fail=1
18635 rm -f conf$$subs.awk
18636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18637 _ACAWK
18638 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18639   for (key in S) S_is_set[key] = 1
18640   FS = "\a"
18641
18642 }
18643 {
18644   line = $ 0
18645   nfields = split(line, field, "@")
18646   substed = 0
18647   len = length(field[1])
18648   for (i = 2; i < nfields; i++) {
18649     key = field[i]
18650     keylen = length(key)
18651     if (S_is_set[key]) {
18652       value = S[key]
18653       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18654       len += length(value) + length(field[++i])
18655       substed = 1
18656     } else
18657       len += 1 + keylen
18658   }
18659
18660   print line
18661 }
18662
18663 _ACAWK
18664 _ACEOF
18665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18666 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18667   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18668 else
18669   cat
18670 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18671   || as_fn_error "could not setup config files machinery" "$LINENO" 5
18672 _ACEOF
18673
18674 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18675 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18676 # trailing colons and then remove the whole line if VPATH becomes empty
18677 # (actually we leave an empty line to preserve line numbers).
18678 if test "x$srcdir" = x.; then
18679   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18680 s/:*\$(srcdir):*/:/
18681 s/:*\${srcdir}:*/:/
18682 s/:*@srcdir@:*/:/
18683 s/^\([^=]*=[     ]*\):*/\1/
18684 s/:*$//
18685 s/^[^=]*=[       ]*$//
18686 }'
18687 fi
18688
18689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18690 fi # test -n "$CONFIG_FILES"
18691
18692 # Set up the scripts for CONFIG_HEADERS section.
18693 # No need to generate them if there are no CONFIG_HEADERS.
18694 # This happens for instance with `./config.status Makefile'.
18695 if test -n "$CONFIG_HEADERS"; then
18696 cat >"$tmp/defines.awk" <<\_ACAWK ||
18697 BEGIN {
18698 _ACEOF
18699
18700 # Transform confdefs.h into an awk script `defines.awk', embedded as
18701 # here-document in config.status, that substitutes the proper values into
18702 # config.h.in to produce config.h.
18703
18704 # Create a delimiter string that does not exist in confdefs.h, to ease
18705 # handling of long lines.
18706 ac_delim='%!_!# '
18707 for ac_last_try in false false :; do
18708   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18709   if test -z "$ac_t"; then
18710     break
18711   elif $ac_last_try; then
18712     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18713   else
18714     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18715   fi
18716 done
18717
18718 # For the awk script, D is an array of macro values keyed by name,
18719 # likewise P contains macro parameters if any.  Preserve backslash
18720 # newline sequences.
18721
18722 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18723 sed -n '
18724 s/.\{148\}/&'"$ac_delim"'/g
18725 t rset
18726 :rset
18727 s/^[     ]*#[    ]*define[       ][      ]*/ /
18728 t def
18729 d
18730 :def
18731 s/\\$//
18732 t bsnl
18733 s/["\\]/\\&/g
18734 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18735 D["\1"]=" \3"/p
18736 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18737 d
18738 :bsnl
18739 s/["\\]/\\&/g
18740 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18741 D["\1"]=" \3\\\\\\n"\\/p
18742 t cont
18743 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18744 t cont
18745 d
18746 :cont
18747 n
18748 s/.\{148\}/&'"$ac_delim"'/g
18749 t clear
18750 :clear
18751 s/\\$//
18752 t bsnlc
18753 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18754 d
18755 :bsnlc
18756 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18757 b cont
18758 ' <confdefs.h | sed '
18759 s/'"$ac_delim"'/"\\\
18760 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18761
18762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18763   for (key in D) D_is_set[key] = 1
18764   FS = "\a"
18765 }
18766 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18767   line = \$ 0
18768   split(line, arg, " ")
18769   if (arg[1] == "#") {
18770     defundef = arg[2]
18771     mac1 = arg[3]
18772   } else {
18773     defundef = substr(arg[1], 2)
18774     mac1 = arg[2]
18775   }
18776   split(mac1, mac2, "(") #)
18777   macro = mac2[1]
18778   prefix = substr(line, 1, index(line, defundef) - 1)
18779   if (D_is_set[macro]) {
18780     # Preserve the white space surrounding the "#".
18781     print prefix "define", macro P[macro] D[macro]
18782     next
18783   } else {
18784     # Replace #undef with comments.  This is necessary, for example,
18785     # in the case of _POSIX_SOURCE, which is predefined and required
18786     # on some systems where configure will not decide to define it.
18787     if (defundef == "undef") {
18788       print "/*", prefix defundef, macro, "*/"
18789       next
18790     }
18791   }
18792 }
18793 { print }
18794 _ACAWK
18795 _ACEOF
18796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18797   as_fn_error "could not setup config headers machinery" "$LINENO" 5
18798 fi # test -n "$CONFIG_HEADERS"
18799
18800
18801 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18802 shift
18803 for ac_tag
18804 do
18805   case $ac_tag in
18806   :[FHLC]) ac_mode=$ac_tag; continue;;
18807   esac
18808   case $ac_mode$ac_tag in
18809   :[FHL]*:*);;
18810   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18811   :[FH]-) ac_tag=-:-;;
18812   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18813   esac
18814   ac_save_IFS=$IFS
18815   IFS=:
18816   set x $ac_tag
18817   IFS=$ac_save_IFS
18818   shift
18819   ac_file=$1
18820   shift
18821
18822   case $ac_mode in
18823   :L) ac_source=$1;;
18824   :[FH])
18825     ac_file_inputs=
18826     for ac_f
18827     do
18828       case $ac_f in
18829       -) ac_f="$tmp/stdin";;
18830       *) # Look for the file first in the build tree, then in the source tree
18831          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18832          # because $ac_f cannot contain `:'.
18833          test -f "$ac_f" ||
18834            case $ac_f in
18835            [\\/$]*) false;;
18836            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18837            esac ||
18838            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18839       esac
18840       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18841       as_fn_append ac_file_inputs " '$ac_f'"
18842     done
18843
18844     # Let's still pretend it is `configure' which instantiates (i.e., don't
18845     # use $as_me), people would be surprised to read:
18846     #    /* config.h.  Generated by config.status.  */
18847     configure_input='Generated from '`
18848           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18849         `' by configure.'
18850     if test x"$ac_file" != x-; then
18851       configure_input="$ac_file.  $configure_input"
18852       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18853 $as_echo "$as_me: creating $ac_file" >&6;}
18854     fi
18855     # Neutralize special characters interpreted by sed in replacement strings.
18856     case $configure_input in #(
18857     *\&* | *\|* | *\\* )
18858        ac_sed_conf_input=`$as_echo "$configure_input" |
18859        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18860     *) ac_sed_conf_input=$configure_input;;
18861     esac
18862
18863     case $ac_tag in
18864     *:-:* | *:-) cat >"$tmp/stdin" \
18865       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18866     esac
18867     ;;
18868   esac
18869
18870   ac_dir=`$as_dirname -- "$ac_file" ||
18871 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18872          X"$ac_file" : 'X\(//\)[^/]' \| \
18873          X"$ac_file" : 'X\(//\)$' \| \
18874          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18875 $as_echo X"$ac_file" |
18876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18877             s//\1/
18878             q
18879           }
18880           /^X\(\/\/\)[^/].*/{
18881             s//\1/
18882             q
18883           }
18884           /^X\(\/\/\)$/{
18885             s//\1/
18886             q
18887           }
18888           /^X\(\/\).*/{
18889             s//\1/
18890             q
18891           }
18892           s/.*/./; q'`
18893   as_dir="$ac_dir"; as_fn_mkdir_p
18894   ac_builddir=.
18895
18896 case "$ac_dir" in
18897 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18898 *)
18899   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18900   # A ".." for each directory in $ac_dir_suffix.
18901   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18902   case $ac_top_builddir_sub in
18903   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18904   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18905   esac ;;
18906 esac
18907 ac_abs_top_builddir=$ac_pwd
18908 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18909 # for backward compatibility:
18910 ac_top_builddir=$ac_top_build_prefix
18911
18912 case $srcdir in
18913   .)  # We are building in place.
18914     ac_srcdir=.
18915     ac_top_srcdir=$ac_top_builddir_sub
18916     ac_abs_top_srcdir=$ac_pwd ;;
18917   [\\/]* | ?:[\\/]* )  # Absolute name.
18918     ac_srcdir=$srcdir$ac_dir_suffix;
18919     ac_top_srcdir=$srcdir
18920     ac_abs_top_srcdir=$srcdir ;;
18921   *) # Relative name.
18922     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18923     ac_top_srcdir=$ac_top_build_prefix$srcdir
18924     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18925 esac
18926 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18927
18928
18929   case $ac_mode in
18930   :F)
18931   #
18932   # CONFIG_FILE
18933   #
18934
18935   case $INSTALL in
18936   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18937   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18938   esac
18939   ac_MKDIR_P=$MKDIR_P
18940   case $MKDIR_P in
18941   [\\/$]* | ?:[\\/]* ) ;;
18942   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18943   esac
18944 _ACEOF
18945
18946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18947 # If the template does not know about datarootdir, expand it.
18948 # FIXME: This hack should be removed a few years after 2.60.
18949 ac_datarootdir_hack=; ac_datarootdir_seen=
18950 ac_sed_dataroot='
18951 /datarootdir/ {
18952   p
18953   q
18954 }
18955 /@datadir@/p
18956 /@docdir@/p
18957 /@infodir@/p
18958 /@localedir@/p
18959 /@mandir@/p'
18960 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18961 *datarootdir*) ac_datarootdir_seen=yes;;
18962 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18963   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18964 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18965 _ACEOF
18966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18967   ac_datarootdir_hack='
18968   s&@datadir@&$datadir&g
18969   s&@docdir@&$docdir&g
18970   s&@infodir@&$infodir&g
18971   s&@localedir@&$localedir&g
18972   s&@mandir@&$mandir&g
18973   s&\\\${datarootdir}&$datarootdir&g' ;;
18974 esac
18975 _ACEOF
18976
18977 # Neutralize VPATH when `$srcdir' = `.'.
18978 # Shell code in configure.ac might set extrasub.
18979 # FIXME: do we really want to maintain this feature?
18980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18981 ac_sed_extra="$ac_vpsub
18982 $extrasub
18983 _ACEOF
18984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18985 :t
18986 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18987 s|@configure_input@|$ac_sed_conf_input|;t t
18988 s&@top_builddir@&$ac_top_builddir_sub&;t t
18989 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18990 s&@srcdir@&$ac_srcdir&;t t
18991 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18992 s&@top_srcdir@&$ac_top_srcdir&;t t
18993 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18994 s&@builddir@&$ac_builddir&;t t
18995 s&@abs_builddir@&$ac_abs_builddir&;t t
18996 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18997 s&@INSTALL@&$ac_INSTALL&;t t
18998 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18999 $ac_datarootdir_hack
19000 "
19001 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19002   || as_fn_error "could not create $ac_file" "$LINENO" 5
19003
19004 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19005   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19006   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19007   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19008 which seems to be undefined.  Please make sure it is defined." >&5
19009 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19010 which seems to be undefined.  Please make sure it is defined." >&2;}
19011
19012   rm -f "$tmp/stdin"
19013   case $ac_file in
19014   -) cat "$tmp/out" && rm -f "$tmp/out";;
19015   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19016   esac \
19017   || as_fn_error "could not create $ac_file" "$LINENO" 5
19018  ;;
19019   :H)
19020   #
19021   # CONFIG_HEADER
19022   #
19023   if test x"$ac_file" != x-; then
19024     {
19025       $as_echo "/* $configure_input  */" \
19026       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19027     } >"$tmp/config.h" \
19028       || as_fn_error "could not create $ac_file" "$LINENO" 5
19029     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19030       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19031 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19032     else
19033       rm -f "$ac_file"
19034       mv "$tmp/config.h" "$ac_file" \
19035         || as_fn_error "could not create $ac_file" "$LINENO" 5
19036     fi
19037   else
19038     $as_echo "/* $configure_input  */" \
19039       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19040       || as_fn_error "could not create -" "$LINENO" 5
19041   fi
19042 # Compute "$ac_file"'s index in $config_headers.
19043 _am_arg="$ac_file"
19044 _am_stamp_count=1
19045 for _am_header in $config_headers :; do
19046   case $_am_header in
19047     $_am_arg | $_am_arg:* )
19048       break ;;
19049     * )
19050       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19051   esac
19052 done
19053 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19054 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19055          X"$_am_arg" : 'X\(//\)[^/]' \| \
19056          X"$_am_arg" : 'X\(//\)$' \| \
19057          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19058 $as_echo X"$_am_arg" |
19059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19060             s//\1/
19061             q
19062           }
19063           /^X\(\/\/\)[^/].*/{
19064             s//\1/
19065             q
19066           }
19067           /^X\(\/\/\)$/{
19068             s//\1/
19069             q
19070           }
19071           /^X\(\/\).*/{
19072             s//\1/
19073             q
19074           }
19075           s/.*/./; q'`/stamp-h$_am_stamp_count
19076  ;;
19077
19078   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19079 $as_echo "$as_me: executing $ac_file commands" >&6;}
19080  ;;
19081   esac
19082
19083
19084   case $ac_file$ac_mode in
19085     "default-1":C)
19086 # Only add multilib support code if we just rebuilt the top-level
19087 # Makefile.
19088 case " $CONFIG_FILES " in
19089  *" Makefile "*)
19090    ac_file=Makefile . ${multi_basedir}/config-ml.in
19091    ;;
19092 esac ;;
19093     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19094   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19095   # are listed without --file.  Let's play safe and only enable the eval
19096   # if we detect the quoting.
19097   case $CONFIG_FILES in
19098   *\'*) eval set x "$CONFIG_FILES" ;;
19099   *)   set x $CONFIG_FILES ;;
19100   esac
19101   shift
19102   for mf
19103   do
19104     # Strip MF so we end up with the name of the file.
19105     mf=`echo "$mf" | sed -e 's/:.*$//'`
19106     # Check whether this is an Automake generated Makefile or not.
19107     # We used to match only the files named `Makefile.in', but
19108     # some people rename them; so instead we look at the file content.
19109     # Grep'ing the first line is not enough: some people post-process
19110     # each Makefile.in and add a new line on top of each file to say so.
19111     # Grep'ing the whole file is not good either: AIX grep has a line
19112     # limit of 2048, but all sed's we know have understand at least 4000.
19113     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19114       dirpart=`$as_dirname -- "$mf" ||
19115 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19116          X"$mf" : 'X\(//\)[^/]' \| \
19117          X"$mf" : 'X\(//\)$' \| \
19118          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19119 $as_echo X"$mf" |
19120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19121             s//\1/
19122             q
19123           }
19124           /^X\(\/\/\)[^/].*/{
19125             s//\1/
19126             q
19127           }
19128           /^X\(\/\/\)$/{
19129             s//\1/
19130             q
19131           }
19132           /^X\(\/\).*/{
19133             s//\1/
19134             q
19135           }
19136           s/.*/./; q'`
19137     else
19138       continue
19139     fi
19140     # Extract the definition of DEPDIR, am__include, and am__quote
19141     # from the Makefile without running `make'.
19142     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19143     test -z "$DEPDIR" && continue
19144     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19145     test -z "am__include" && continue
19146     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19147     # When using ansi2knr, U may be empty or an underscore; expand it
19148     U=`sed -n 's/^U = //p' < "$mf"`
19149     # Find all dependency output files, they are included files with
19150     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19151     # simplest approach to changing $(DEPDIR) to its actual value in the
19152     # expansion.
19153     for file in `sed -n "
19154       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19155          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19156       # Make sure the directory exists.
19157       test -f "$dirpart/$file" && continue
19158       fdir=`$as_dirname -- "$file" ||
19159 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19160          X"$file" : 'X\(//\)[^/]' \| \
19161          X"$file" : 'X\(//\)$' \| \
19162          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19163 $as_echo X"$file" |
19164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19165             s//\1/
19166             q
19167           }
19168           /^X\(\/\/\)[^/].*/{
19169             s//\1/
19170             q
19171           }
19172           /^X\(\/\/\)$/{
19173             s//\1/
19174             q
19175           }
19176           /^X\(\/\).*/{
19177             s//\1/
19178             q
19179           }
19180           s/.*/./; q'`
19181       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19182       # echo "creating $dirpart/$file"
19183       echo '# dummy' > "$dirpart/$file"
19184     done
19185   done
19186 }
19187  ;;
19188     "libtool":C)
19189
19190     # See if we are running on zsh, and set the options which allow our
19191     # commands through without removal of \ escapes.
19192     if test -n "${ZSH_VERSION+set}" ; then
19193       setopt NO_GLOB_SUBST
19194     fi
19195
19196     cfgfile="${ofile}T"
19197     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19198     $RM "$cfgfile"
19199
19200     cat <<_LT_EOF >> "$cfgfile"
19201 #! $SHELL
19202
19203 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19204 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19205 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19206 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19207 #
19208 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19209 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19210 #   Written by Gordon Matzigkeit, 1996
19211 #
19212 #   This file is part of GNU Libtool.
19213 #
19214 # GNU Libtool is free software; you can redistribute it and/or
19215 # modify it under the terms of the GNU General Public License as
19216 # published by the Free Software Foundation; either version 2 of
19217 # the License, or (at your option) any later version.
19218 #
19219 # As a special exception to the GNU General Public License,
19220 # if you distribute this file as part of a program or library that
19221 # is built using GNU Libtool, you may include this file under the
19222 # same distribution terms that you use for the rest of that program.
19223 #
19224 # GNU Libtool is distributed in the hope that it will be useful,
19225 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19226 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19227 # GNU General Public License for more details.
19228 #
19229 # You should have received a copy of the GNU General Public License
19230 # along with GNU Libtool; see the file COPYING.  If not, a copy
19231 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19232 # obtained by writing to the Free Software Foundation, Inc.,
19233 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19234
19235
19236 # The names of the tagged configurations supported by this script.
19237 available_tags="CXX "
19238
19239 # ### BEGIN LIBTOOL CONFIG
19240
19241 # Which release of libtool.m4 was used?
19242 macro_version=$macro_version
19243 macro_revision=$macro_revision
19244
19245 # Whether or not to build shared libraries.
19246 build_libtool_libs=$enable_shared
19247
19248 # Whether or not to build static libraries.
19249 build_old_libs=$enable_static
19250
19251 # What type of objects to build.
19252 pic_mode=$pic_mode
19253
19254 # Whether or not to optimize for fast installation.
19255 fast_install=$enable_fast_install
19256
19257 # Shell to use when invoking shell scripts.
19258 SHELL=$lt_SHELL
19259
19260 # An echo program that protects backslashes.
19261 ECHO=$lt_ECHO
19262
19263 # The host system.
19264 host_alias=$host_alias
19265 host=$host
19266 host_os=$host_os
19267
19268 # The build system.
19269 build_alias=$build_alias
19270 build=$build
19271 build_os=$build_os
19272
19273 # A sed program that does not truncate output.
19274 SED=$lt_SED
19275
19276 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19277 Xsed="\$SED -e 1s/^X//"
19278
19279 # A grep program that handles long lines.
19280 GREP=$lt_GREP
19281
19282 # An ERE matcher.
19283 EGREP=$lt_EGREP
19284
19285 # A literal string matcher.
19286 FGREP=$lt_FGREP
19287
19288 # A BSD- or MS-compatible name lister.
19289 NM=$lt_NM
19290
19291 # Whether we need soft or hard links.
19292 LN_S=$lt_LN_S
19293
19294 # What is the maximum length of a command?
19295 max_cmd_len=$max_cmd_len
19296
19297 # Object file suffix (normally "o").
19298 objext=$ac_objext
19299
19300 # Executable file suffix (normally "").
19301 exeext=$exeext
19302
19303 # whether the shell understands "unset".
19304 lt_unset=$lt_unset
19305
19306 # turn spaces into newlines.
19307 SP2NL=$lt_lt_SP2NL
19308
19309 # turn newlines into spaces.
19310 NL2SP=$lt_lt_NL2SP
19311
19312 # An object symbol dumper.
19313 OBJDUMP=$lt_OBJDUMP
19314
19315 # Method to check whether dependent libraries are shared objects.
19316 deplibs_check_method=$lt_deplibs_check_method
19317
19318 # Command to use when deplibs_check_method == "file_magic".
19319 file_magic_cmd=$lt_file_magic_cmd
19320
19321 # The archiver.
19322 AR=$lt_AR
19323 AR_FLAGS=$lt_AR_FLAGS
19324
19325 # A symbol stripping program.
19326 STRIP=$lt_STRIP
19327
19328 # Commands used to install an old-style archive.
19329 RANLIB=$lt_RANLIB
19330 old_postinstall_cmds=$lt_old_postinstall_cmds
19331 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19332
19333 # Whether to use a lock for old archive extraction.
19334 lock_old_archive_extraction=$lock_old_archive_extraction
19335
19336 # A C compiler.
19337 LTCC=$lt_CC
19338
19339 # LTCC compiler flags.
19340 LTCFLAGS=$lt_CFLAGS
19341
19342 # Take the output of nm and produce a listing of raw symbols and C names.
19343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19344
19345 # Transform the output of nm in a proper C declaration.
19346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19347
19348 # Transform the output of nm in a C name address pair.
19349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19350
19351 # Transform the output of nm in a C name address pair when lib prefix is needed.
19352 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19353
19354 # The name of the directory that contains temporary libtool files.
19355 objdir=$objdir
19356
19357 # Used to examine libraries when file_magic_cmd begins with "file".
19358 MAGIC_CMD=$MAGIC_CMD
19359
19360 # Must we lock files when doing compilation?
19361 need_locks=$lt_need_locks
19362
19363 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19364 DSYMUTIL=$lt_DSYMUTIL
19365
19366 # Tool to change global to local symbols on Mac OS X.
19367 NMEDIT=$lt_NMEDIT
19368
19369 # Tool to manipulate fat objects and archives on Mac OS X.
19370 LIPO=$lt_LIPO
19371
19372 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19373 OTOOL=$lt_OTOOL
19374
19375 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19376 OTOOL64=$lt_OTOOL64
19377
19378 # Old archive suffix (normally "a").
19379 libext=$libext
19380
19381 # Shared library suffix (normally ".so").
19382 shrext_cmds=$lt_shrext_cmds
19383
19384 # The commands to extract the exported symbol list from a shared archive.
19385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19386
19387 # Variables whose values should be saved in libtool wrapper scripts and
19388 # restored at link time.
19389 variables_saved_for_relink=$lt_variables_saved_for_relink
19390
19391 # Do we need the "lib" prefix for modules?
19392 need_lib_prefix=$need_lib_prefix
19393
19394 # Do we need a version for libraries?
19395 need_version=$need_version
19396
19397 # Library versioning type.
19398 version_type=$version_type
19399
19400 # Shared library runtime path variable.
19401 runpath_var=$runpath_var
19402
19403 # Shared library path variable.
19404 shlibpath_var=$shlibpath_var
19405
19406 # Is shlibpath searched before the hard-coded library search path?
19407 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19408
19409 # Format of library name prefix.
19410 libname_spec=$lt_libname_spec
19411
19412 # List of archive names.  First name is the real one, the rest are links.
19413 # The last name is the one that the linker finds with -lNAME
19414 library_names_spec=$lt_library_names_spec
19415
19416 # The coded name of the library, if different from the real name.
19417 soname_spec=$lt_soname_spec
19418
19419 # Permission mode override for installation of shared libraries.
19420 install_override_mode=$lt_install_override_mode
19421
19422 # Command to use after installation of a shared archive.
19423 postinstall_cmds=$lt_postinstall_cmds
19424
19425 # Command to use after uninstallation of a shared archive.
19426 postuninstall_cmds=$lt_postuninstall_cmds
19427
19428 # Commands used to finish a libtool library installation in a directory.
19429 finish_cmds=$lt_finish_cmds
19430
19431 # As "finish_cmds", except a single script fragment to be evaled but
19432 # not shown.
19433 finish_eval=$lt_finish_eval
19434
19435 # Whether we should hardcode library paths into libraries.
19436 hardcode_into_libs=$hardcode_into_libs
19437
19438 # Compile-time system search path for libraries.
19439 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19440
19441 # Run-time system search path for libraries.
19442 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19443
19444 # Whether dlopen is supported.
19445 dlopen_support=$enable_dlopen
19446
19447 # Whether dlopen of programs is supported.
19448 dlopen_self=$enable_dlopen_self
19449
19450 # Whether dlopen of statically linked programs is supported.
19451 dlopen_self_static=$enable_dlopen_self_static
19452
19453 # Commands to strip libraries.
19454 old_striplib=$lt_old_striplib
19455 striplib=$lt_striplib
19456
19457
19458 # The linker used to build libraries.
19459 LD=$lt_LD
19460
19461 # How to create reloadable object files.
19462 reload_flag=$lt_reload_flag
19463 reload_cmds=$lt_reload_cmds
19464
19465 # Commands used to build an old-style archive.
19466 old_archive_cmds=$lt_old_archive_cmds
19467
19468 # A language specific compiler.
19469 CC=$lt_compiler
19470
19471 # Is the compiler the GNU compiler?
19472 with_gcc=$GCC
19473
19474 # Compiler flag to turn off builtin functions.
19475 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19476
19477 # How to pass a linker flag through the compiler.
19478 wl=$lt_lt_prog_compiler_wl
19479
19480 # Additional compiler flags for building library objects.
19481 pic_flag=$lt_lt_prog_compiler_pic
19482
19483 # Compiler flag to prevent dynamic linking.
19484 link_static_flag=$lt_lt_prog_compiler_static
19485
19486 # Does compiler simultaneously support -c and -o options?
19487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19488
19489 # Whether or not to add -lc for building shared libraries.
19490 build_libtool_need_lc=$archive_cmds_need_lc
19491
19492 # Whether or not to disallow shared libs when runtime libs are static.
19493 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19494
19495 # Compiler flag to allow reflexive dlopens.
19496 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19497
19498 # Compiler flag to generate shared objects directly from archives.
19499 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19500
19501 # Whether the compiler copes with passing no objects directly.
19502 compiler_needs_object=$lt_compiler_needs_object
19503
19504 # Create an old-style archive from a shared archive.
19505 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19506
19507 # Create a temporary old-style archive to link instead of a shared archive.
19508 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19509
19510 # Commands used to build a shared archive.
19511 archive_cmds=$lt_archive_cmds
19512 archive_expsym_cmds=$lt_archive_expsym_cmds
19513
19514 # Commands used to build a loadable module if different from building
19515 # a shared archive.
19516 module_cmds=$lt_module_cmds
19517 module_expsym_cmds=$lt_module_expsym_cmds
19518
19519 # Whether we are building with GNU ld or not.
19520 with_gnu_ld=$lt_with_gnu_ld
19521
19522 # Flag that allows shared libraries with undefined symbols to be built.
19523 allow_undefined_flag=$lt_allow_undefined_flag
19524
19525 # Flag that enforces no undefined symbols.
19526 no_undefined_flag=$lt_no_undefined_flag
19527
19528 # Flag to hardcode \$libdir into a binary during linking.
19529 # This must work even if \$libdir does not exist
19530 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19531
19532 # If ld is used when linking, flag to hardcode \$libdir into a binary
19533 # during linking.  This must work even if \$libdir does not exist.
19534 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19535
19536 # Whether we need a single "-rpath" flag with a separated argument.
19537 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19538
19539 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19540 # DIR into the resulting binary.
19541 hardcode_direct=$hardcode_direct
19542
19543 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19544 # DIR into the resulting binary and the resulting library dependency is
19545 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19546 # library is relocated.
19547 hardcode_direct_absolute=$hardcode_direct_absolute
19548
19549 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19550 # into the resulting binary.
19551 hardcode_minus_L=$hardcode_minus_L
19552
19553 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19554 # into the resulting binary.
19555 hardcode_shlibpath_var=$hardcode_shlibpath_var
19556
19557 # Set to "yes" if building a shared library automatically hardcodes DIR
19558 # into the library and all subsequent libraries and executables linked
19559 # against it.
19560 hardcode_automatic=$hardcode_automatic
19561
19562 # Set to yes if linker adds runtime paths of dependent libraries
19563 # to runtime path list.
19564 inherit_rpath=$inherit_rpath
19565
19566 # Whether libtool must link a program against all its dependency libraries.
19567 link_all_deplibs=$link_all_deplibs
19568
19569 # Fix the shell variable \$srcfile for the compiler.
19570 fix_srcfile_path=$lt_fix_srcfile_path
19571
19572 # Set to "yes" if exported symbols are required.
19573 always_export_symbols=$always_export_symbols
19574
19575 # The commands to list exported symbols.
19576 export_symbols_cmds=$lt_export_symbols_cmds
19577
19578 # Symbols that should not be listed in the preloaded symbols.
19579 exclude_expsyms=$lt_exclude_expsyms
19580
19581 # Symbols that must always be exported.
19582 include_expsyms=$lt_include_expsyms
19583
19584 # Commands necessary for linking programs (against libraries) with templates.
19585 prelink_cmds=$lt_prelink_cmds
19586
19587 # Specify filename containing input files.
19588 file_list_spec=$lt_file_list_spec
19589
19590 # How to hardcode a shared library path into an executable.
19591 hardcode_action=$hardcode_action
19592
19593 # The directories searched by this compiler when creating a shared library.
19594 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19595
19596 # Dependencies to place before and after the objects being linked to
19597 # create a shared library.
19598 predep_objects=$lt_predep_objects
19599 postdep_objects=$lt_postdep_objects
19600 predeps=$lt_predeps
19601 postdeps=$lt_postdeps
19602
19603 # The library search path used internally by the compiler when linking
19604 # a shared library.
19605 compiler_lib_search_path=$lt_compiler_lib_search_path
19606
19607 # ### END LIBTOOL CONFIG
19608
19609 _LT_EOF
19610
19611   case $host_os in
19612   aix3*)
19613     cat <<\_LT_EOF >> "$cfgfile"
19614 # AIX sometimes has problems with the GCC collect2 program.  For some
19615 # reason, if we set the COLLECT_NAMES environment variable, the problems
19616 # vanish in a puff of smoke.
19617 if test "X${COLLECT_NAMES+set}" != Xset; then
19618   COLLECT_NAMES=
19619   export COLLECT_NAMES
19620 fi
19621 _LT_EOF
19622     ;;
19623   esac
19624
19625
19626 ltmain="$ac_aux_dir/ltmain.sh"
19627
19628
19629   # We use sed instead of cat because bash on DJGPP gets confused if
19630   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19631   # text mode, it properly converts lines to CR/LF.  This bash problem
19632   # is reportedly fixed, but why not run on old versions too?
19633   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19634     || (rm -f "$cfgfile"; exit 1)
19635
19636   case $xsi_shell in
19637   yes)
19638     cat << \_LT_EOF >> "$cfgfile"
19639
19640 # func_dirname file append nondir_replacement
19641 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19642 # otherwise set result to NONDIR_REPLACEMENT.
19643 func_dirname ()
19644 {
19645   case ${1} in
19646     */*) func_dirname_result="${1%/*}${2}" ;;
19647     *  ) func_dirname_result="${3}" ;;
19648   esac
19649 }
19650
19651 # func_basename file
19652 func_basename ()
19653 {
19654   func_basename_result="${1##*/}"
19655 }
19656
19657 # func_dirname_and_basename file append nondir_replacement
19658 # perform func_basename and func_dirname in a single function
19659 # call:
19660 #   dirname:  Compute the dirname of FILE.  If nonempty,
19661 #             add APPEND to the result, otherwise set result
19662 #             to NONDIR_REPLACEMENT.
19663 #             value returned in "$func_dirname_result"
19664 #   basename: Compute filename of FILE.
19665 #             value retuned in "$func_basename_result"
19666 # Implementation must be kept synchronized with func_dirname
19667 # and func_basename. For efficiency, we do not delegate to
19668 # those functions but instead duplicate the functionality here.
19669 func_dirname_and_basename ()
19670 {
19671   case ${1} in
19672     */*) func_dirname_result="${1%/*}${2}" ;;
19673     *  ) func_dirname_result="${3}" ;;
19674   esac
19675   func_basename_result="${1##*/}"
19676 }
19677
19678 # func_stripname prefix suffix name
19679 # strip PREFIX and SUFFIX off of NAME.
19680 # PREFIX and SUFFIX must not contain globbing or regex special
19681 # characters, hashes, percent signs, but SUFFIX may contain a leading
19682 # dot (in which case that matches only a dot).
19683 func_stripname ()
19684 {
19685   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19686   # positional parameters, so assign one to ordinary parameter first.
19687   func_stripname_result=${3}
19688   func_stripname_result=${func_stripname_result#"${1}"}
19689   func_stripname_result=${func_stripname_result%"${2}"}
19690 }
19691
19692 # func_opt_split
19693 func_opt_split ()
19694 {
19695   func_opt_split_opt=${1%%=*}
19696   func_opt_split_arg=${1#*=}
19697 }
19698
19699 # func_lo2o object
19700 func_lo2o ()
19701 {
19702   case ${1} in
19703     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19704     *)    func_lo2o_result=${1} ;;
19705   esac
19706 }
19707
19708 # func_xform libobj-or-source
19709 func_xform ()
19710 {
19711   func_xform_result=${1%.*}.lo
19712 }
19713
19714 # func_arith arithmetic-term...
19715 func_arith ()
19716 {
19717   func_arith_result=$(( $* ))
19718 }
19719
19720 # func_len string
19721 # STRING may not start with a hyphen.
19722 func_len ()
19723 {
19724   func_len_result=${#1}
19725 }
19726
19727 _LT_EOF
19728     ;;
19729   *) # Bourne compatible functions.
19730     cat << \_LT_EOF >> "$cfgfile"
19731
19732 # func_dirname file append nondir_replacement
19733 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19734 # otherwise set result to NONDIR_REPLACEMENT.
19735 func_dirname ()
19736 {
19737   # Extract subdirectory from the argument.
19738   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19739   if test "X$func_dirname_result" = "X${1}"; then
19740     func_dirname_result="${3}"
19741   else
19742     func_dirname_result="$func_dirname_result${2}"
19743   fi
19744 }
19745
19746 # func_basename file
19747 func_basename ()
19748 {
19749   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19750 }
19751
19752
19753 # func_stripname prefix suffix name
19754 # strip PREFIX and SUFFIX off of NAME.
19755 # PREFIX and SUFFIX must not contain globbing or regex special
19756 # characters, hashes, percent signs, but SUFFIX may contain a leading
19757 # dot (in which case that matches only a dot).
19758 # func_strip_suffix prefix name
19759 func_stripname ()
19760 {
19761   case ${2} in
19762     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19763     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19764   esac
19765 }
19766
19767 # sed scripts:
19768 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19769 my_sed_long_arg='1s/^-[^=]*=//'
19770
19771 # func_opt_split
19772 func_opt_split ()
19773 {
19774   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19775   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19776 }
19777
19778 # func_lo2o object
19779 func_lo2o ()
19780 {
19781   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19782 }
19783
19784 # func_xform libobj-or-source
19785 func_xform ()
19786 {
19787   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19788 }
19789
19790 # func_arith arithmetic-term...
19791 func_arith ()
19792 {
19793   func_arith_result=`expr "$@"`
19794 }
19795
19796 # func_len string
19797 # STRING may not start with a hyphen.
19798 func_len ()
19799 {
19800   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19801 }
19802
19803 _LT_EOF
19804 esac
19805
19806 case $lt_shell_append in
19807   yes)
19808     cat << \_LT_EOF >> "$cfgfile"
19809
19810 # func_append var value
19811 # Append VALUE to the end of shell variable VAR.
19812 func_append ()
19813 {
19814   eval "$1+=\$2"
19815 }
19816 _LT_EOF
19817     ;;
19818   *)
19819     cat << \_LT_EOF >> "$cfgfile"
19820
19821 # func_append var value
19822 # Append VALUE to the end of shell variable VAR.
19823 func_append ()
19824 {
19825   eval "$1=\$$1\$2"
19826 }
19827
19828 _LT_EOF
19829     ;;
19830   esac
19831
19832
19833   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19834     || (rm -f "$cfgfile"; exit 1)
19835
19836   mv -f "$cfgfile" "$ofile" ||
19837     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19838   chmod +x "$ofile"
19839
19840
19841     cat <<_LT_EOF >> "$ofile"
19842
19843 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19844
19845 # The linker used to build libraries.
19846 LD=$lt_LD_CXX
19847
19848 # How to create reloadable object files.
19849 reload_flag=$lt_reload_flag_CXX
19850 reload_cmds=$lt_reload_cmds_CXX
19851
19852 # Commands used to build an old-style archive.
19853 old_archive_cmds=$lt_old_archive_cmds_CXX
19854
19855 # A language specific compiler.
19856 CC=$lt_compiler_CXX
19857
19858 # Is the compiler the GNU compiler?
19859 with_gcc=$GCC_CXX
19860
19861 # Compiler flag to turn off builtin functions.
19862 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19863
19864 # How to pass a linker flag through the compiler.
19865 wl=$lt_lt_prog_compiler_wl_CXX
19866
19867 # Additional compiler flags for building library objects.
19868 pic_flag=$lt_lt_prog_compiler_pic_CXX
19869
19870 # Compiler flag to prevent dynamic linking.
19871 link_static_flag=$lt_lt_prog_compiler_static_CXX
19872
19873 # Does compiler simultaneously support -c and -o options?
19874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19875
19876 # Whether or not to add -lc for building shared libraries.
19877 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19878
19879 # Whether or not to disallow shared libs when runtime libs are static.
19880 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19881
19882 # Compiler flag to allow reflexive dlopens.
19883 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19884
19885 # Compiler flag to generate shared objects directly from archives.
19886 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19887
19888 # Whether the compiler copes with passing no objects directly.
19889 compiler_needs_object=$lt_compiler_needs_object_CXX
19890
19891 # Create an old-style archive from a shared archive.
19892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19893
19894 # Create a temporary old-style archive to link instead of a shared archive.
19895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19896
19897 # Commands used to build a shared archive.
19898 archive_cmds=$lt_archive_cmds_CXX
19899 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19900
19901 # Commands used to build a loadable module if different from building
19902 # a shared archive.
19903 module_cmds=$lt_module_cmds_CXX
19904 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19905
19906 # Whether we are building with GNU ld or not.
19907 with_gnu_ld=$lt_with_gnu_ld_CXX
19908
19909 # Flag that allows shared libraries with undefined symbols to be built.
19910 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19911
19912 # Flag that enforces no undefined symbols.
19913 no_undefined_flag=$lt_no_undefined_flag_CXX
19914
19915 # Flag to hardcode \$libdir into a binary during linking.
19916 # This must work even if \$libdir does not exist
19917 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19918
19919 # If ld is used when linking, flag to hardcode \$libdir into a binary
19920 # during linking.  This must work even if \$libdir does not exist.
19921 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19922
19923 # Whether we need a single "-rpath" flag with a separated argument.
19924 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19925
19926 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19927 # DIR into the resulting binary.
19928 hardcode_direct=$hardcode_direct_CXX
19929
19930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19931 # DIR into the resulting binary and the resulting library dependency is
19932 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19933 # library is relocated.
19934 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19935
19936 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19937 # into the resulting binary.
19938 hardcode_minus_L=$hardcode_minus_L_CXX
19939
19940 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19941 # into the resulting binary.
19942 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19943
19944 # Set to "yes" if building a shared library automatically hardcodes DIR
19945 # into the library and all subsequent libraries and executables linked
19946 # against it.
19947 hardcode_automatic=$hardcode_automatic_CXX
19948
19949 # Set to yes if linker adds runtime paths of dependent libraries
19950 # to runtime path list.
19951 inherit_rpath=$inherit_rpath_CXX
19952
19953 # Whether libtool must link a program against all its dependency libraries.
19954 link_all_deplibs=$link_all_deplibs_CXX
19955
19956 # Fix the shell variable \$srcfile for the compiler.
19957 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19958
19959 # Set to "yes" if exported symbols are required.
19960 always_export_symbols=$always_export_symbols_CXX
19961
19962 # The commands to list exported symbols.
19963 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19964
19965 # Symbols that should not be listed in the preloaded symbols.
19966 exclude_expsyms=$lt_exclude_expsyms_CXX
19967
19968 # Symbols that must always be exported.
19969 include_expsyms=$lt_include_expsyms_CXX
19970
19971 # Commands necessary for linking programs (against libraries) with templates.
19972 prelink_cmds=$lt_prelink_cmds_CXX
19973
19974 # Specify filename containing input files.
19975 file_list_spec=$lt_file_list_spec_CXX
19976
19977 # How to hardcode a shared library path into an executable.
19978 hardcode_action=$hardcode_action_CXX
19979
19980 # The directories searched by this compiler when creating a shared library.
19981 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19982
19983 # Dependencies to place before and after the objects being linked to
19984 # create a shared library.
19985 predep_objects=$lt_predep_objects_CXX
19986 postdep_objects=$lt_postdep_objects_CXX
19987 predeps=$lt_predeps_CXX
19988 postdeps=$lt_postdeps_CXX
19989
19990 # The library search path used internally by the compiler when linking
19991 # a shared library.
19992 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19993
19994 # ### END LIBTOOL TAG CONFIG: CXX
19995 _LT_EOF
19996
19997  ;;
19998     "gstdint.h":C)
19999 if test "$GCC" = yes; then
20000   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20001 else
20002   echo "/* generated for $CC */" > tmp-stdint.h
20003 fi
20004
20005 sed 's/^ *//' >> tmp-stdint.h <<EOF
20006
20007   #ifndef GCC_GENERATED_STDINT_H
20008   #define GCC_GENERATED_STDINT_H 1
20009
20010   #include <sys/types.h>
20011 EOF
20012
20013 if test "$acx_cv_header_stdint" != stdint.h; then
20014   echo "#include <stddef.h>" >> tmp-stdint.h
20015 fi
20016 if test "$acx_cv_header_stdint" != stddef.h; then
20017   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20018 fi
20019
20020 sed 's/^ *//' >> tmp-stdint.h <<EOF
20021   /* glibc uses these symbols as guards to prevent redefinitions.  */
20022   #ifdef __int8_t_defined
20023   #define _INT8_T
20024   #define _INT16_T
20025   #define _INT32_T
20026   #endif
20027   #ifdef __uint32_t_defined
20028   #define _UINT32_T
20029   #endif
20030
20031 EOF
20032
20033 # ----------------- done header, emit basic int types -------------
20034 if test "$acx_cv_header_stdint" = stddef.h; then
20035   sed 's/^ *//' >> tmp-stdint.h <<EOF
20036
20037     #ifndef _UINT8_T
20038     #define _UINT8_T
20039     #ifndef __uint8_t_defined
20040     #define __uint8_t_defined
20041     #ifndef uint8_t
20042     typedef unsigned $acx_cv_type_int8_t uint8_t;
20043     #endif
20044     #endif
20045     #endif
20046
20047     #ifndef _UINT16_T
20048     #define _UINT16_T
20049     #ifndef __uint16_t_defined
20050     #define __uint16_t_defined
20051     #ifndef uint16_t
20052     typedef unsigned $acx_cv_type_int16_t uint16_t;
20053     #endif
20054     #endif
20055     #endif
20056
20057     #ifndef _UINT32_T
20058     #define _UINT32_T
20059     #ifndef __uint32_t_defined
20060     #define __uint32_t_defined
20061     #ifndef uint32_t
20062     typedef unsigned $acx_cv_type_int32_t uint32_t;
20063     #endif
20064     #endif
20065     #endif
20066
20067     #ifndef _INT8_T
20068     #define _INT8_T
20069     #ifndef __int8_t_defined
20070     #define __int8_t_defined
20071     #ifndef int8_t
20072     typedef $acx_cv_type_int8_t int8_t;
20073     #endif
20074     #endif
20075     #endif
20076
20077     #ifndef _INT16_T
20078     #define _INT16_T
20079     #ifndef __int16_t_defined
20080     #define __int16_t_defined
20081     #ifndef int16_t
20082     typedef $acx_cv_type_int16_t int16_t;
20083     #endif
20084     #endif
20085     #endif
20086
20087     #ifndef _INT32_T
20088     #define _INT32_T
20089     #ifndef __int32_t_defined
20090     #define __int32_t_defined
20091     #ifndef int32_t
20092     typedef $acx_cv_type_int32_t int32_t;
20093     #endif
20094     #endif
20095     #endif
20096 EOF
20097 elif test "$ac_cv_type_u_int32_t" = yes; then
20098   sed 's/^ *//' >> tmp-stdint.h <<EOF
20099
20100     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20101     #ifndef _INT8_T
20102     #define _INT8_T
20103     #endif
20104     #ifndef _INT16_T
20105     #define _INT16_T
20106     #endif
20107     #ifndef _INT32_T
20108     #define _INT32_T
20109     #endif
20110
20111     #ifndef _UINT8_T
20112     #define _UINT8_T
20113     #ifndef __uint8_t_defined
20114     #define __uint8_t_defined
20115     #ifndef uint8_t
20116     typedef u_int8_t uint8_t;
20117     #endif
20118     #endif
20119     #endif
20120
20121     #ifndef _UINT16_T
20122     #define _UINT16_T
20123     #ifndef __uint16_t_defined
20124     #define __uint16_t_defined
20125     #ifndef uint16_t
20126     typedef u_int16_t uint16_t;
20127     #endif
20128     #endif
20129     #endif
20130
20131     #ifndef _UINT32_T
20132     #define _UINT32_T
20133     #ifndef __uint32_t_defined
20134     #define __uint32_t_defined
20135     #ifndef uint32_t
20136     typedef u_int32_t uint32_t;
20137     #endif
20138     #endif
20139     #endif
20140 EOF
20141 else
20142   sed 's/^ *//' >> tmp-stdint.h <<EOF
20143
20144     /* Some systems have guard macros to prevent redefinitions, define them.  */
20145     #ifndef _INT8_T
20146     #define _INT8_T
20147     #endif
20148     #ifndef _INT16_T
20149     #define _INT16_T
20150     #endif
20151     #ifndef _INT32_T
20152     #define _INT32_T
20153     #endif
20154     #ifndef _UINT8_T
20155     #define _UINT8_T
20156     #endif
20157     #ifndef _UINT16_T
20158     #define _UINT16_T
20159     #endif
20160     #ifndef _UINT32_T
20161     #define _UINT32_T
20162     #endif
20163 EOF
20164 fi
20165
20166 # ------------- done basic int types, emit int64_t types ------------
20167 if test "$ac_cv_type_uint64_t" = yes; then
20168   sed 's/^ *//' >> tmp-stdint.h <<EOF
20169
20170     /* system headers have good uint64_t and int64_t */
20171     #ifndef _INT64_T
20172     #define _INT64_T
20173     #endif
20174     #ifndef _UINT64_T
20175     #define _UINT64_T
20176     #endif
20177 EOF
20178 elif test "$ac_cv_type_u_int64_t" = yes; then
20179   sed 's/^ *//' >> tmp-stdint.h <<EOF
20180
20181     /* system headers have an u_int64_t (and int64_t) */
20182     #ifndef _INT64_T
20183     #define _INT64_T
20184     #endif
20185     #ifndef _UINT64_T
20186     #define _UINT64_T
20187     #ifndef __uint64_t_defined
20188     #define __uint64_t_defined
20189     #ifndef uint64_t
20190     typedef u_int64_t uint64_t;
20191     #endif
20192     #endif
20193     #endif
20194 EOF
20195 elif test -n "$acx_cv_type_int64_t"; then
20196   sed 's/^ *//' >> tmp-stdint.h <<EOF
20197
20198     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20199     #ifndef _INT64_T
20200     #define _INT64_T
20201     #ifndef int64_t
20202     typedef $acx_cv_type_int64_t int64_t;
20203     #endif
20204     #endif
20205     #ifndef _UINT64_T
20206     #define _UINT64_T
20207     #ifndef __uint64_t_defined
20208     #define __uint64_t_defined
20209     #ifndef uint64_t
20210     typedef unsigned $acx_cv_type_int64_t uint64_t;
20211     #endif
20212     #endif
20213     #endif
20214 EOF
20215 else
20216   sed 's/^ *//' >> tmp-stdint.h <<EOF
20217
20218     /* some common heuristics for int64_t, using compiler-specific tests */
20219     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20220     #ifndef _INT64_T
20221     #define _INT64_T
20222     #ifndef __int64_t_defined
20223     #ifndef int64_t
20224     typedef long long int64_t;
20225     #endif
20226     #endif
20227     #endif
20228     #ifndef _UINT64_T
20229     #define _UINT64_T
20230     #ifndef uint64_t
20231     typedef unsigned long long uint64_t;
20232     #endif
20233     #endif
20234
20235     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20236     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20237        does not implement __extension__.  But that compiler doesn't define
20238        __GNUC_MINOR__.  */
20239     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20240     # define __extension__
20241     # endif
20242
20243     # ifndef _INT64_T
20244     # define _INT64_T
20245     # ifndef int64_t
20246     __extension__ typedef long long int64_t;
20247     # endif
20248     # endif
20249     # ifndef _UINT64_T
20250     # define _UINT64_T
20251     # ifndef uint64_t
20252     __extension__ typedef unsigned long long uint64_t;
20253     # endif
20254     # endif
20255
20256     #elif !defined __STRICT_ANSI__
20257     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20258
20259     #  ifndef _INT64_T
20260     #  define _INT64_T
20261     #  ifndef int64_t
20262     typedef __int64 int64_t;
20263     #  endif
20264     #  endif
20265     #  ifndef _UINT64_T
20266     #  define _UINT64_T
20267     #  ifndef uint64_t
20268     typedef unsigned __int64 uint64_t;
20269     #  endif
20270     #  endif
20271     # endif /* compiler */
20272
20273     #endif /* ANSI version */
20274 EOF
20275 fi
20276
20277 # ------------- done int64_t types, emit intptr types ------------
20278 if test "$ac_cv_type_uintptr_t" != yes; then
20279   sed 's/^ *//' >> tmp-stdint.h <<EOF
20280
20281     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20282     #ifndef __uintptr_t_defined
20283     #ifndef uintptr_t
20284     typedef u$acx_cv_type_intptr_t uintptr_t;
20285     #endif
20286     #endif
20287     #ifndef __intptr_t_defined
20288     #ifndef intptr_t
20289     typedef $acx_cv_type_intptr_t  intptr_t;
20290     #endif
20291     #endif
20292 EOF
20293 fi
20294
20295 # ------------- done intptr types, emit int_least types ------------
20296 if test "$ac_cv_type_int_least32_t" != yes; then
20297   sed 's/^ *//' >> tmp-stdint.h <<EOF
20298
20299     /* Define int_least types */
20300     typedef int8_t     int_least8_t;
20301     typedef int16_t    int_least16_t;
20302     typedef int32_t    int_least32_t;
20303     #ifdef _INT64_T
20304     typedef int64_t    int_least64_t;
20305     #endif
20306
20307     typedef uint8_t    uint_least8_t;
20308     typedef uint16_t   uint_least16_t;
20309     typedef uint32_t   uint_least32_t;
20310     #ifdef _UINT64_T
20311     typedef uint64_t   uint_least64_t;
20312     #endif
20313 EOF
20314 fi
20315
20316 # ------------- done intptr types, emit int_fast types ------------
20317 if test "$ac_cv_type_int_fast32_t" != yes; then
20318       sed 's/^ *//' >> tmp-stdint.h <<EOF
20319
20320     /* Define int_fast types.  short is often slow */
20321     typedef int8_t       int_fast8_t;
20322     typedef int          int_fast16_t;
20323     typedef int32_t      int_fast32_t;
20324     #ifdef _INT64_T
20325     typedef int64_t      int_fast64_t;
20326     #endif
20327
20328     typedef uint8_t      uint_fast8_t;
20329     typedef unsigned int uint_fast16_t;
20330     typedef uint32_t     uint_fast32_t;
20331     #ifdef _UINT64_T
20332     typedef uint64_t     uint_fast64_t;
20333     #endif
20334 EOF
20335 fi
20336
20337 if test "$ac_cv_type_uintmax_t" != yes; then
20338   sed 's/^ *//' >> tmp-stdint.h <<EOF
20339
20340     /* Define intmax based on what we found */
20341     #ifndef intmax_t
20342     #ifdef _INT64_T
20343     typedef int64_t       intmax_t;
20344     #else
20345     typedef long          intmax_t;
20346     #endif
20347     #endif
20348     #ifndef uintmax_t
20349     #ifdef _UINT64_T
20350     typedef uint64_t      uintmax_t;
20351     #else
20352     typedef unsigned long uintmax_t;
20353     #endif
20354     #endif
20355 EOF
20356 fi
20357
20358 sed 's/^ *//' >> tmp-stdint.h <<EOF
20359
20360   #endif /* GCC_GENERATED_STDINT_H */
20361 EOF
20362
20363 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20364   rm -f tmp-stdint.h
20365 else
20366   mv -f tmp-stdint.h gstdint.h
20367 fi
20368
20369  ;;
20370
20371   esac
20372 done # for ac_tag
20373
20374
20375 as_fn_exit 0
20376 _ACEOF
20377 ac_clean_files=$ac_clean_files_save
20378
20379 test $ac_write_fail = 0 ||
20380   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20381
20382
20383 # configure is writing to config.log, and then calls config.status.
20384 # config.status does its own redirection, appending to config.log.
20385 # Unfortunately, on DOS this fails, as config.log is still kept open
20386 # by configure, so config.status won't be able to write to it; its
20387 # output is simply discarded.  So we exec the FD to /dev/null,
20388 # effectively closing config.log, so it can be properly (re)opened and
20389 # appended to by config.status.  When coming back to configure, we
20390 # need to make the FD available again.
20391 if test "$no_create" != yes; then
20392   ac_cs_success=:
20393   ac_config_status_args=
20394   test "$silent" = yes &&
20395     ac_config_status_args="$ac_config_status_args --quiet"
20396   exec 5>/dev/null
20397   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20398   exec 5>>config.log
20399   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20400   # would make configure fail if this is the last instruction.
20401   $ac_cs_success || as_fn_exit $?
20402 fi
20403 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20404   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20405 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20406 fi
20407