Daily bump.
[platform/upstream/gcc.git] / libffi / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.4.2.
4 #
5 # Report bugs to <http://github.com/libffi/libffi/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://github.com/libffi/libffi/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.4.2'
594 PACKAGE_STRING='libffi 3.4.2'
595 PACKAGE_BUGREPORT='http://github.com/libffi/libffi/issues'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 get_gcc_base_ver
639 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE
640 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE
641 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE
642 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE
643 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE
644 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE
645 OPT_LDFLAGS
646 SECTION_LDFLAGS
647 toolexeclibdir
648 toolexecdir
649 FFI_DEBUG_FALSE
650 FFI_DEBUG_TRUE
651 TARGET_OBJ
652 TARGETDIR
653 TARGET
654 BUILD_DOCS_FALSE
655 BUILD_DOCS_TRUE
656 FFI_EXEC_TRAMPOLINE_TABLE
657 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
658 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
659 HAVE_LONG_DOUBLE_VARIANT
660 HAVE_LONG_DOUBLE
661 ALLOCA
662 AM_LTLDFLAGS
663 AM_RUNTESTFLAGS
664 TESTSUBDIR_FALSE
665 TESTSUBDIR_TRUE
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 READELF
670 CXXCPP
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 RANLIB
678 AR
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 LIBTOOL
690 am__fastdepCCAS_FALSE
691 am__fastdepCCAS_TRUE
692 CCASDEPMODE
693 CCASFLAGS
694 CCAS
695 am__fastdepCXX_FALSE
696 am__fastdepCXX_TRUE
697 CXXDEPMODE
698 ac_ct_CXX
699 CXXFLAGS
700 CXX
701 am__fastdepCC_FALSE
702 am__fastdepCC_TRUE
703 CCDEPMODE
704 am__nodep
705 AMDEPBACKSLASH
706 AMDEP_FALSE
707 AMDEP_TRUE
708 am__quote
709 am__include
710 DEPDIR
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 GENINSRC_FALSE
719 GENINSRC_TRUE
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
729 AWK
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_os
748 target_vendor
749 target_cpu
750 target
751 host_os
752 host_vendor
753 host_cpu
754 host
755 build_os
756 build_vendor
757 build_cpu
758 build
759 multi_basedir
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_multilib
802 enable_silent_rules
803 enable_generated_files_in_srcdir
804 enable_dependency_tracking
805 enable_shared
806 enable_static
807 with_pic
808 enable_fast_install
809 with_gnu_ld
810 enable_libtool_lock
811 enable_maintainer_mode
812 enable_pax_emutramp
813 enable_debug
814 enable_structs
815 enable_raw_api
816 enable_exec_static_tramp
817 enable_purify_safety
818 with_toolexeclibdir
819 enable_symvers
820 with_gcc_major_version_only
821 '
822       ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CCAS
826 CCASFLAGS
827 CPP
828 CPPFLAGS
829 CXXCPP'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *=)   ac_optarg= ;;
894   *)    ac_optarg=yes ;;
895   esac
896
897   # Accept the important Cygnus configure options, so we can diagnose typos.
898
899   case $ac_dashdash$ac_option in
900   --)
901     ac_dashdash=yes ;;
902
903   -bindir | --bindir | --bindi | --bind | --bin | --bi)
904     ac_prev=bindir ;;
905   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906     bindir=$ac_optarg ;;
907
908   -build | --build | --buil | --bui | --bu)
909     ac_prev=build_alias ;;
910   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911     build_alias=$ac_optarg ;;
912
913   -cache-file | --cache-file | --cache-fil | --cache-fi \
914   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915     ac_prev=cache_file ;;
916   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918     cache_file=$ac_optarg ;;
919
920   --config-cache | -C)
921     cache_file=config.cache ;;
922
923   -datadir | --datadir | --datadi | --datad)
924     ac_prev=datadir ;;
925   -datadir=* | --datadir=* | --datadi=* | --datad=*)
926     datadir=$ac_optarg ;;
927
928   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929   | --dataroo | --dataro | --datar)
930     ac_prev=datarootdir ;;
931   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933     datarootdir=$ac_optarg ;;
934
935   -disable-* | --disable-*)
936     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939       as_fn_error $? "invalid feature name: $ac_useropt"
940     ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943       *"
944 "enable_$ac_useropt"
945 "*) ;;
946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947          ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=no ;;
950
951   -docdir | --docdir | --docdi | --doc | --do)
952     ac_prev=docdir ;;
953   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954     docdir=$ac_optarg ;;
955
956   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957     ac_prev=dvidir ;;
958   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959     dvidir=$ac_optarg ;;
960
961   -enable-* | --enable-*)
962     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963     # Reject names that are not valid shell variable names.
964     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965       as_fn_error $? "invalid feature name: $ac_useropt"
966     ac_useropt_orig=$ac_useropt
967     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968     case $ac_user_opts in
969       *"
970 "enable_$ac_useropt"
971 "*) ;;
972       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973          ac_unrecognized_sep=', ';;
974     esac
975     eval enable_$ac_useropt=\$ac_optarg ;;
976
977   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979   | --exec | --exe | --ex)
980     ac_prev=exec_prefix ;;
981   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983   | --exec=* | --exe=* | --ex=*)
984     exec_prefix=$ac_optarg ;;
985
986   -gas | --gas | --ga | --g)
987     # Obsolete; use --with-gas.
988     with_gas=yes ;;
989
990   -help | --help | --hel | --he | -h)
991     ac_init_help=long ;;
992   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993     ac_init_help=recursive ;;
994   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995     ac_init_help=short ;;
996
997   -host | --host | --hos | --ho)
998     ac_prev=host_alias ;;
999   -host=* | --host=* | --hos=* | --ho=*)
1000     host_alias=$ac_optarg ;;
1001
1002   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003     ac_prev=htmldir ;;
1004   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005   | --ht=*)
1006     htmldir=$ac_optarg ;;
1007
1008   -includedir | --includedir | --includedi | --included | --include \
1009   | --includ | --inclu | --incl | --inc)
1010     ac_prev=includedir ;;
1011   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012   | --includ=* | --inclu=* | --incl=* | --inc=*)
1013     includedir=$ac_optarg ;;
1014
1015   -infodir | --infodir | --infodi | --infod | --info | --inf)
1016     ac_prev=infodir ;;
1017   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018     infodir=$ac_optarg ;;
1019
1020   -libdir | --libdir | --libdi | --libd)
1021     ac_prev=libdir ;;
1022   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023     libdir=$ac_optarg ;;
1024
1025   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026   | --libexe | --libex | --libe)
1027     ac_prev=libexecdir ;;
1028   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029   | --libexe=* | --libex=* | --libe=*)
1030     libexecdir=$ac_optarg ;;
1031
1032   -localedir | --localedir | --localedi | --localed | --locale)
1033     ac_prev=localedir ;;
1034   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035     localedir=$ac_optarg ;;
1036
1037   -localstatedir | --localstatedir | --localstatedi | --localstated \
1038   | --localstate | --localstat | --localsta | --localst | --locals)
1039     ac_prev=localstatedir ;;
1040   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042     localstatedir=$ac_optarg ;;
1043
1044   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045     ac_prev=mandir ;;
1046   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047     mandir=$ac_optarg ;;
1048
1049   -nfp | --nfp | --nf)
1050     # Obsolete; use --without-fp.
1051     with_fp=no ;;
1052
1053   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054   | --no-cr | --no-c | -n)
1055     no_create=yes ;;
1056
1057   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059     no_recursion=yes ;;
1060
1061   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063   | --oldin | --oldi | --old | --ol | --o)
1064     ac_prev=oldincludedir ;;
1065   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068     oldincludedir=$ac_optarg ;;
1069
1070   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071     ac_prev=prefix ;;
1072   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073     prefix=$ac_optarg ;;
1074
1075   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076   | --program-pre | --program-pr | --program-p)
1077     ac_prev=program_prefix ;;
1078   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080     program_prefix=$ac_optarg ;;
1081
1082   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083   | --program-suf | --program-su | --program-s)
1084     ac_prev=program_suffix ;;
1085   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087     program_suffix=$ac_optarg ;;
1088
1089   -program-transform-name | --program-transform-name \
1090   | --program-transform-nam | --program-transform-na \
1091   | --program-transform-n | --program-transform- \
1092   | --program-transform | --program-transfor \
1093   | --program-transfo | --program-transf \
1094   | --program-trans | --program-tran \
1095   | --progr-tra | --program-tr | --program-t)
1096     ac_prev=program_transform_name ;;
1097   -program-transform-name=* | --program-transform-name=* \
1098   | --program-transform-nam=* | --program-transform-na=* \
1099   | --program-transform-n=* | --program-transform-=* \
1100   | --program-transform=* | --program-transfor=* \
1101   | --program-transfo=* | --program-transf=* \
1102   | --program-trans=* | --program-tran=* \
1103   | --progr-tra=* | --program-tr=* | --program-t=*)
1104     program_transform_name=$ac_optarg ;;
1105
1106   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107     ac_prev=pdfdir ;;
1108   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109     pdfdir=$ac_optarg ;;
1110
1111   -psdir | --psdir | --psdi | --psd | --ps)
1112     ac_prev=psdir ;;
1113   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114     psdir=$ac_optarg ;;
1115
1116   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117   | -silent | --silent | --silen | --sile | --sil)
1118     silent=yes ;;
1119
1120   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121     ac_prev=sbindir ;;
1122   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123   | --sbi=* | --sb=*)
1124     sbindir=$ac_optarg ;;
1125
1126   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128   | --sharedst | --shareds | --shared | --share | --shar \
1129   | --sha | --sh)
1130     ac_prev=sharedstatedir ;;
1131   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134   | --sha=* | --sh=*)
1135     sharedstatedir=$ac_optarg ;;
1136
1137   -site | --site | --sit)
1138     ac_prev=site ;;
1139   -site=* | --site=* | --sit=*)
1140     site=$ac_optarg ;;
1141
1142   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143     ac_prev=srcdir ;;
1144   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145     srcdir=$ac_optarg ;;
1146
1147   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148   | --syscon | --sysco | --sysc | --sys | --sy)
1149     ac_prev=sysconfdir ;;
1150   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152     sysconfdir=$ac_optarg ;;
1153
1154   -target | --target | --targe | --targ | --tar | --ta | --t)
1155     ac_prev=target_alias ;;
1156   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157     target_alias=$ac_optarg ;;
1158
1159   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160     verbose=yes ;;
1161
1162   -version | --version | --versio | --versi | --vers | -V)
1163     ac_init_version=: ;;
1164
1165   -with-* | --with-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       as_fn_error $? "invalid package name: $ac_useropt"
1170     ac_useropt_orig=$ac_useropt
1171     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172     case $ac_user_opts in
1173       *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177          ac_unrecognized_sep=', ';;
1178     esac
1179     eval with_$ac_useropt=\$ac_optarg ;;
1180
1181   -without-* | --without-*)
1182     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185       as_fn_error $? "invalid package name: $ac_useropt"
1186     ac_useropt_orig=$ac_useropt
1187     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188     case $ac_user_opts in
1189       *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193          ac_unrecognized_sep=', ';;
1194     esac
1195     eval with_$ac_useropt=no ;;
1196
1197   --x)
1198     # Obsolete; use --with-x.
1199     with_x=yes ;;
1200
1201   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202   | --x-incl | --x-inc | --x-in | --x-i)
1203     ac_prev=x_includes ;;
1204   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206     x_includes=$ac_optarg ;;
1207
1208   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210     ac_prev=x_libraries ;;
1211   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213     x_libraries=$ac_optarg ;;
1214
1215   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217     ;;
1218
1219   *=*)
1220     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221     # Reject names that are not valid shell variable names.
1222     case $ac_envvar in #(
1223       '' | [0-9]* | *[!_$as_cr_alnum]* )
1224       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225     esac
1226     eval $ac_envvar=\$ac_optarg
1227     export $ac_envvar ;;
1228
1229   *)
1230     # FIXME: should be removed in autoconf 3.0.
1231     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235     ;;
1236
1237   esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242   as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246   case $enable_option_checking in
1247     no) ;;
1248     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250   esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255                 datadir sysconfdir sharedstatedir localstatedir includedir \
1256                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257                 libdir localedir mandir
1258 do
1259   eval ac_val=\$$ac_var
1260   # Remove trailing slashes.
1261   case $ac_val in
1262     */ )
1263       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264       eval $ac_var=\$ac_val;;
1265   esac
1266   # Be sure to have absolute directory names.
1267   case $ac_val in
1268     [\\/$]* | ?:[\\/]* )  continue;;
1269     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270   esac
1271   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283   if test "x$build_alias" = x; then
1284     cross_compiling=maybe
1285   elif test "x$build_alias" != "x$host_alias"; then
1286     cross_compiling=yes
1287   fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299   as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301   as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306   ac_srcdir_defaulted=yes
1307   # Try the directory containing this script, then the parent directory.
1308   ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310          X"$as_myself" : 'X\(//\)[^/]' \| \
1311          X"$as_myself" : 'X\(//\)$' \| \
1312          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\/\)[^/].*/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\/\)$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\).*/{
1327             s//\1/
1328             q
1329           }
1330           s/.*/./; q'`
1331   srcdir=$ac_confdir
1332   if test ! -r "$srcdir/$ac_unique_file"; then
1333     srcdir=..
1334   fi
1335 else
1336   ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345         pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348   srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358   eval ac_env_${ac_var}_value=\$${ac_var}
1359   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367   # Omit some internal or obsolete options to make the list less imposing.
1368   # This message is too long to be a string in the A/UX 3.1 sh.
1369   cat <<_ACEOF
1370 \`configure' configures libffi 3.4.2 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE.  See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380   -h, --help              display this help and exit
1381       --help=short        display options specific to this package
1382       --help=recursive    display the short help of all the included packages
1383   -V, --version           display version information and exit
1384   -q, --quiet, --silent   do not print \`checking ...' messages
1385       --cache-file=FILE   cache test results in FILE [disabled]
1386   -C, --config-cache      alias for \`--cache-file=config.cache'
1387   -n, --no-create         do not create output files
1388       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391   --prefix=PREFIX         install architecture-independent files in PREFIX
1392                           [$ac_default_prefix]
1393   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1394                           [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404   --bindir=DIR            user executables [EPREFIX/bin]
1405   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1406   --libexecdir=DIR        program executables [EPREFIX/libexec]
1407   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1408   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1409   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1410   --libdir=DIR            object code libraries [EPREFIX/lib]
1411   --includedir=DIR        C header files [PREFIX/include]
1412   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1413   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1414   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1415   --infodir=DIR           info documentation [DATAROOTDIR/info]
1416   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1417   --mandir=DIR            man documentation [DATAROOTDIR/man]
1418   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1419   --htmldir=DIR           html documentation [DOCDIR]
1420   --dvidir=DIR            dvi documentation [DOCDIR]
1421   --pdfdir=DIR            pdf documentation [DOCDIR]
1422   --psdir=DIR             ps documentation [DOCDIR]
1423 _ACEOF
1424
1425   cat <<\_ACEOF
1426
1427 Program names:
1428   --program-prefix=PREFIX            prepend PREFIX to installed program names
1429   --program-suffix=SUFFIX            append SUFFIX to installed program names
1430   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1431
1432 System types:
1433   --build=BUILD     configure for building on BUILD [guessed]
1434   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1435   --target=TARGET   configure for building compilers for TARGET [HOST]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440   case $ac_init_help in
1441      short | recursive ) echo "Configuration of libffi 3.4.2:";;
1442    esac
1443   cat <<\_ACEOF
1444
1445 Optional Features:
1446   --disable-option-checking  ignore unrecognized --enable/--with options
1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449   --enable-multilib       build many library versions (default)
1450   --enable-silent-rules   less verbose build output (undo: "make V=1")
1451   --disable-silent-rules  verbose build output (undo: "make V=0")
1452   --enable-generated-files-in-srcdir
1453                           put copies of generated files in source dir intended
1454                           for creating source tarballs for users without
1455                           texinfo bison or flex
1456   --enable-dependency-tracking
1457                           do not reject slow dependency extractors
1458   --disable-dependency-tracking
1459                           speeds up one-time build
1460   --enable-shared[=PKGS]  build shared libraries [default=yes]
1461   --enable-static[=PKGS]  build static libraries [default=yes]
1462   --enable-fast-install[=PKGS]
1463                           optimize for fast installation [default=yes]
1464   --disable-libtool-lock  avoid locking (might break parallel builds)
1465   --enable-maintainer-mode
1466                           enable make rules and dependencies not useful (and
1467                           sometimes confusing) to the casual installer
1468   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1469   --enable-debug          debugging mode
1470   --disable-structs       omit code for struct support
1471   --disable-raw-api       make the raw api unavailable
1472   --enable-exec-static-tramp  enable use of static exec trampolines
1473   --enable-purify-safety  purify-safe mode
1474   --enable-symvers=STYLE  enables symbol versioning of the shared library
1475                           [default=yes]
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-pic              try to use only PIC/non-PIC objects [default=use
1481                           both]
1482   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1483   --with-toolexeclibdir=DIR
1484                           install libraries built with a cross compiler within
1485                           DIR
1486   --with-gcc-major-version-only
1487                           use only GCC major number in filesystem paths
1488
1489 Some influential environment variables:
1490   CC          C compiler command
1491   CFLAGS      C compiler flags
1492   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1493               nonstandard directory <lib dir>
1494   LIBS        libraries to pass to the linker, e.g. -l<library>
1495   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496               you have headers in a nonstandard directory <include dir>
1497   CXX         C++ compiler command
1498   CXXFLAGS    C++ compiler flags
1499   CCAS        assembler compiler command (defaults to CC)
1500   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1501   CPP         C preprocessor
1502   CXXCPP      C++ preprocessor
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <http://github.com/libffi/libffi/issues>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513   # If there are subdirs, report their specific --help.
1514   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515     test -d "$ac_dir" ||
1516       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517       continue
1518     ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524   # A ".." for each directory in $ac_dir_suffix.
1525   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526   case $ac_top_builddir_sub in
1527   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529   esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537   .)  # We are building in place.
1538     ac_srcdir=.
1539     ac_top_srcdir=$ac_top_builddir_sub
1540     ac_abs_top_srcdir=$ac_pwd ;;
1541   [\\/]* | ?:[\\/]* )  # Absolute name.
1542     ac_srcdir=$srcdir$ac_dir_suffix;
1543     ac_top_srcdir=$srcdir
1544     ac_abs_top_srcdir=$srcdir ;;
1545   *) # Relative name.
1546     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547     ac_top_srcdir=$ac_top_build_prefix$srcdir
1548     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552     cd "$ac_dir" || { ac_status=$?; continue; }
1553     # Check for guested configure.
1554     if test -f "$ac_srcdir/configure.gnu"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557     elif test -f "$ac_srcdir/configure"; then
1558       echo &&
1559       $SHELL "$ac_srcdir/configure" --help=recursive
1560     else
1561       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562     fi || ac_status=$?
1563     cd "$ac_pwd" || { ac_status=$?; break; }
1564   done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569   cat <<\_ACEOF
1570 libffi configure 3.4.2
1571 generated by GNU Autoconf 2.69
1572
1573 Copyright (C) 2012 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577   exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1588 {
1589   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590   rm -f conftest.$ac_objext
1591   if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594   *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598   (eval "$ac_compile") 2>conftest.err
1599   ac_status=$?
1600   if test -s conftest.err; then
1601     grep -v '^ *+' conftest.err >conftest.er1
1602     cat conftest.er1 >&5
1603     mv -f conftest.er1 conftest.err
1604   fi
1605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606   test $ac_status = 0; } && {
1607          test -z "$ac_c_werror_flag" ||
1608          test ! -s conftest.err
1609        } && test -s conftest.$ac_objext; then :
1610   ac_retval=0
1611 else
1612   $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615         ac_retval=1
1616 fi
1617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618   as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_compile
1621
1622 # ac_fn_cxx_try_compile LINENO
1623 # ----------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_cxx_try_compile ()
1626 {
1627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628   rm -f conftest.$ac_objext
1629   if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632   *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636   (eval "$ac_compile") 2>conftest.err
1637   ac_status=$?
1638   if test -s conftest.err; then
1639     grep -v '^ *+' conftest.err >conftest.er1
1640     cat conftest.er1 >&5
1641     mv -f conftest.er1 conftest.err
1642   fi
1643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644   test $ac_status = 0; } && {
1645          test -z "$ac_cxx_werror_flag" ||
1646          test ! -s conftest.err
1647        } && test -s conftest.$ac_objext; then :
1648   ac_retval=0
1649 else
1650   $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653         ac_retval=1
1654 fi
1655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656   as_fn_set_status $ac_retval
1657
1658 } # ac_fn_cxx_try_compile
1659
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1664 {
1665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666   rm -f conftest.$ac_objext conftest$ac_exeext
1667   if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670   *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674   (eval "$ac_link") 2>conftest.err
1675   ac_status=$?
1676   if test -s conftest.err; then
1677     grep -v '^ *+' conftest.err >conftest.er1
1678     cat conftest.er1 >&5
1679     mv -f conftest.er1 conftest.err
1680   fi
1681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682   test $ac_status = 0; } && {
1683          test -z "$ac_c_werror_flag" ||
1684          test ! -s conftest.err
1685        } && test -s conftest$ac_exeext && {
1686          test "$cross_compiling" = yes ||
1687          test -x conftest$ac_exeext
1688        }; then :
1689   ac_retval=0
1690 else
1691   $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694         ac_retval=1
1695 fi
1696   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698   # interfere with the next link command; also delete a directory that is
1699   # left behind by Apple's compiler.  We do this before executing the actions.
1700   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702   as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_link
1705
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1711 {
1712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716   $as_echo_n "(cached) " >&6
1717 else
1718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h.  */
1720 $4
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724   eval "$3=yes"
1725 else
1726   eval "$3=no"
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 fi
1730 eval ac_res=\$$3
1731                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735 } # ac_fn_c_check_header_compile
1736
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_cpp ()
1741 {
1742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743   if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 case "(($ac_try" in
1745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746   *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751   ac_status=$?
1752   if test -s conftest.err; then
1753     grep -v '^ *+' conftest.err >conftest.er1
1754     cat conftest.er1 >&5
1755     mv -f conftest.er1 conftest.err
1756   fi
1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758   test $ac_status = 0; } > conftest.i && {
1759          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760          test ! -s conftest.err
1761        }; then :
1762   ac_retval=0
1763 else
1764   $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767     ac_retval=1
1768 fi
1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770   as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_cpp
1773
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1778 ac_fn_c_try_run ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784   *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788   (eval "$ac_link") 2>&5
1789   ac_status=$?
1790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792   { { case "(($ac_try" in
1793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794   *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798   (eval "$ac_try") 2>&5
1799   ac_status=$?
1800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801   test $ac_status = 0; }; }; then :
1802   ac_retval=0
1803 else
1804   $as_echo "$as_me: program exited with status $ac_status" >&5
1805        $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808        ac_retval=$ac_status
1809 fi
1810   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812   as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_run
1815
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825   $as_echo_n "(cached) " >&6
1826 else
1827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1831 #define $2 innocuous_$2
1832
1833 /* System header to define __stub macros and hopefully few prototypes,
1834     which can conflict with char $2 (); below.
1835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836     <limits.h> exists even on freestanding compilers.  */
1837
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1843
1844 #undef $2
1845
1846 /* Override any GCC internal prototype to avoid an error.
1847    Use char because int might match the return type of a GCC
1848    builtin and then its argument prototype would still apply.  */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854     to always fail with ENOSYS.  Some functions are actually named
1855     something starting with __ and the normal name is an alias.  */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1859
1860 int
1861 main ()
1862 {
1863 return $2 ();
1864   ;
1865   return 0;
1866 }
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869   eval "$3=yes"
1870 else
1871   eval "$3=no"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext \
1874     conftest$ac_exeext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_func
1882
1883 # ac_fn_cxx_try_cpp LINENO
1884 # ------------------------
1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_cxx_try_cpp ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   if { { ac_try="$ac_cpp conftest.$ac_ext"
1890 case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897   ac_status=$?
1898   if test -s conftest.err; then
1899     grep -v '^ *+' conftest.err >conftest.er1
1900     cat conftest.er1 >&5
1901     mv -f conftest.er1 conftest.err
1902   fi
1903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904   test $ac_status = 0; } > conftest.i && {
1905          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1906          test ! -s conftest.err
1907        }; then :
1908   ac_retval=0
1909 else
1910   $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913     ac_retval=1
1914 fi
1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916   as_fn_set_status $ac_retval
1917
1918 } # ac_fn_cxx_try_cpp
1919
1920 # ac_fn_cxx_try_link LINENO
1921 # -------------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_link ()
1924 {
1925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926   rm -f conftest.$ac_objext conftest$ac_exeext
1927   if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930   *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934   (eval "$ac_link") 2>conftest.err
1935   ac_status=$?
1936   if test -s conftest.err; then
1937     grep -v '^ *+' conftest.err >conftest.er1
1938     cat conftest.er1 >&5
1939     mv -f conftest.er1 conftest.err
1940   fi
1941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942   test $ac_status = 0; } && {
1943          test -z "$ac_cxx_werror_flag" ||
1944          test ! -s conftest.err
1945        } && test -s conftest$ac_exeext && {
1946          test "$cross_compiling" = yes ||
1947          test -x conftest$ac_exeext
1948        }; then :
1949   ac_retval=0
1950 else
1951   $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954         ac_retval=1
1955 fi
1956   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958   # interfere with the next link command; also delete a directory that is
1959   # left behind by Apple's compiler.  We do this before executing the actions.
1960   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962   as_fn_set_status $ac_retval
1963
1964 } # ac_fn_cxx_try_link
1965
1966 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1967 # --------------------------------------------
1968 # Tries to find the compile-time value of EXPR in a program that includes
1969 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1970 # computed
1971 ac_fn_c_compute_int ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   if test "$cross_compiling" = yes; then
1975     # Depending upon the size, compute the lo and hi bounds.
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h.  */
1978 $4
1979 int
1980 main ()
1981 {
1982 static int test_array [1 - 2 * !(($2) >= 0)];
1983 test_array [0] = 0;
1984 return test_array [0];
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991   ac_lo=0 ac_mid=0
1992   while :; do
1993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h.  */
1995 $4
1996 int
1997 main ()
1998 {
1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2000 test_array [0] = 0;
2001 return test_array [0];
2002
2003   ;
2004   return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008   ac_hi=$ac_mid; break
2009 else
2010   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2011                         if test $ac_lo -le $ac_mid; then
2012                           ac_lo= ac_hi=
2013                           break
2014                         fi
2015                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018   done
2019 else
2020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h.  */
2022 $4
2023 int
2024 main ()
2025 {
2026 static int test_array [1 - 2 * !(($2) < 0)];
2027 test_array [0] = 0;
2028 return test_array [0];
2029
2030   ;
2031   return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035   ac_hi=-1 ac_mid=-1
2036   while :; do
2037     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 int
2041 main ()
2042 {
2043 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2044 test_array [0] = 0;
2045 return test_array [0];
2046
2047   ;
2048   return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052   ac_lo=$ac_mid; break
2053 else
2054   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2055                         if test $ac_mid -le $ac_hi; then
2056                           ac_lo= ac_hi=
2057                           break
2058                         fi
2059                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062   done
2063 else
2064   ac_lo= ac_hi=
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 # Binary search between lo and hi bounds.
2070 while test "x$ac_lo" != "x$ac_hi"; do
2071   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h.  */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0;
2080 return test_array [0];
2081
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087   ac_hi=$ac_mid
2088 else
2089   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 done
2093 case $ac_lo in #((
2094 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2095 '') ac_retval=1 ;;
2096 esac
2097   else
2098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h.  */
2100 $4
2101 static long int longval () { return $2; }
2102 static unsigned long int ulongval () { return $2; }
2103 #include <stdio.h>
2104 #include <stdlib.h>
2105 int
2106 main ()
2107 {
2108
2109   FILE *f = fopen ("conftest.val", "w");
2110   if (! f)
2111     return 1;
2112   if (($2) < 0)
2113     {
2114       long int i = longval ();
2115       if (i != ($2))
2116         return 1;
2117       fprintf (f, "%ld", i);
2118     }
2119   else
2120     {
2121       unsigned long int i = ulongval ();
2122       if (i != ($2))
2123         return 1;
2124       fprintf (f, "%lu", i);
2125     }
2126   /* Do not output a trailing newline, as this causes \r\n confusion
2127      on some platforms.  */
2128   return ferror (f) || fclose (f) != 0;
2129
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_run "$LINENO"; then :
2135   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2136 else
2137   ac_retval=1
2138 fi
2139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2140   conftest.$ac_objext conftest.beam conftest.$ac_ext
2141 rm -f conftest.val
2142
2143   fi
2144   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145   as_fn_set_status $ac_retval
2146
2147 } # ac_fn_c_compute_int
2148
2149 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2150 # -------------------------------------------------------
2151 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2152 # the include files in INCLUDES and setting the cache variable VAR
2153 # accordingly.
2154 ac_fn_c_check_header_mongrel ()
2155 {
2156   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157   if eval \${$3+:} false; then :
2158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159 $as_echo_n "checking for $2... " >&6; }
2160 if eval \${$3+:} false; then :
2161   $as_echo_n "(cached) " >&6
2162 fi
2163 eval ac_res=\$$3
2164                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 else
2167   # Is the header compilable?
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2169 $as_echo_n "checking $2 usability... " >&6; }
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h.  */
2172 $4
2173 #include <$2>
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176   ac_header_compiler=yes
2177 else
2178   ac_header_compiler=no
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2182 $as_echo "$ac_header_compiler" >&6; }
2183
2184 # Is the header present?
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2186 $as_echo_n "checking $2 presence... " >&6; }
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h.  */
2189 #include <$2>
2190 _ACEOF
2191 if ac_fn_c_try_cpp "$LINENO"; then :
2192   ac_header_preproc=yes
2193 else
2194   ac_header_preproc=no
2195 fi
2196 rm -f conftest.err conftest.i conftest.$ac_ext
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2198 $as_echo "$ac_header_preproc" >&6; }
2199
2200 # So?  What about this header?
2201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2202   yes:no: )
2203     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2204 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2205     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2207     ;;
2208   no:yes:* )
2209     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2210 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2211     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2212 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2213     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2214 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2215     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2216 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2217     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2218 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2219 ( $as_echo "## ----------------------------------------------------- ##
2220 ## Report this to http://github.com/libffi/libffi/issues ##
2221 ## ----------------------------------------------------- ##"
2222      ) | sed "s/^/$as_me: WARNING:     /" >&2
2223     ;;
2224 esac
2225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228   $as_echo_n "(cached) " >&6
2229 else
2230   eval "$3=\$ac_header_compiler"
2231 fi
2232 eval ac_res=\$$3
2233                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2235 fi
2236   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237
2238 } # ac_fn_c_check_header_mongrel
2239
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type ()
2245 {
2246   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval \${$3+:} false; then :
2250   $as_echo_n "(cached) " >&6
2251 else
2252   eval "$3=no"
2253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h.  */
2255 $4
2256 int
2257 main ()
2258 {
2259 if (sizeof ($2))
2260          return 0;
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof (($2)))
2273             return 0;
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279
2280 else
2281   eval "$3=yes"
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 fi
2287 eval ac_res=\$$3
2288                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291
2292 } # ac_fn_c_check_type
2293 cat >config.log <<_ACEOF
2294 This file contains any messages produced by compilers while
2295 running configure, to aid debugging if configure makes a mistake.
2296
2297 It was created by libffi $as_me 3.4.2, which was
2298 generated by GNU Autoconf 2.69.  Invocation command line was
2299
2300   $ $0 $@
2301
2302 _ACEOF
2303 exec 5>>config.log
2304 {
2305 cat <<_ASUNAME
2306 ## --------- ##
2307 ## Platform. ##
2308 ## --------- ##
2309
2310 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2311 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2312 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2313 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2314 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2315
2316 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2317 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2318
2319 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2320 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2321 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2322 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2323 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2324 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2325 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2326
2327 _ASUNAME
2328
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332   IFS=$as_save_IFS
2333   test -z "$as_dir" && as_dir=.
2334     $as_echo "PATH: $as_dir"
2335   done
2336 IFS=$as_save_IFS
2337
2338 } >&5
2339
2340 cat >&5 <<_ACEOF
2341
2342
2343 ## ----------- ##
2344 ## Core tests. ##
2345 ## ----------- ##
2346
2347 _ACEOF
2348
2349
2350 # Keep a trace of the command line.
2351 # Strip out --no-create and --no-recursion so they do not pile up.
2352 # Strip out --silent because we don't want to record it for future runs.
2353 # Also quote any args containing shell meta-characters.
2354 # Make two passes to allow for proper duplicate-argument suppression.
2355 ac_configure_args=
2356 ac_configure_args0=
2357 ac_configure_args1=
2358 ac_must_keep_next=false
2359 for ac_pass in 1 2
2360 do
2361   for ac_arg
2362   do
2363     case $ac_arg in
2364     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2365     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2366     | -silent | --silent | --silen | --sile | --sil)
2367       continue ;;
2368     *\'*)
2369       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2370     esac
2371     case $ac_pass in
2372     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2373     2)
2374       as_fn_append ac_configure_args1 " '$ac_arg'"
2375       if test $ac_must_keep_next = true; then
2376         ac_must_keep_next=false # Got value, back to normal.
2377       else
2378         case $ac_arg in
2379           *=* | --config-cache | -C | -disable-* | --disable-* \
2380           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2381           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2382           | -with-* | --with-* | -without-* | --without-* | --x)
2383             case "$ac_configure_args0 " in
2384               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2385             esac
2386             ;;
2387           -* ) ac_must_keep_next=true ;;
2388         esac
2389       fi
2390       as_fn_append ac_configure_args " '$ac_arg'"
2391       ;;
2392     esac
2393   done
2394 done
2395 { ac_configure_args0=; unset ac_configure_args0;}
2396 { ac_configure_args1=; unset ac_configure_args1;}
2397
2398 # When interrupted or exit'd, cleanup temporary files, and complete
2399 # config.log.  We remove comments because anyway the quotes in there
2400 # would cause problems or look ugly.
2401 # WARNING: Use '\'' to represent an apostrophe within the trap.
2402 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2403 trap 'exit_status=$?
2404   # Save into config.log some information that might help in debugging.
2405   {
2406     echo
2407
2408     $as_echo "## ---------------- ##
2409 ## Cache variables. ##
2410 ## ---------------- ##"
2411     echo
2412     # The following way of writing the cache mishandles newlines in values,
2413 (
2414   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2415     eval ac_val=\$$ac_var
2416     case $ac_val in #(
2417     *${as_nl}*)
2418       case $ac_var in #(
2419       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2420 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2421       esac
2422       case $ac_var in #(
2423       _ | IFS | as_nl) ;; #(
2424       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425       *) { eval $ac_var=; unset $ac_var;} ;;
2426       esac ;;
2427     esac
2428   done
2429   (set) 2>&1 |
2430     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2431     *${as_nl}ac_space=\ *)
2432       sed -n \
2433         "s/'\''/'\''\\\\'\'''\''/g;
2434           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2435       ;; #(
2436     *)
2437       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2438       ;;
2439     esac |
2440     sort
2441 )
2442     echo
2443
2444     $as_echo "## ----------------- ##
2445 ## Output variables. ##
2446 ## ----------------- ##"
2447     echo
2448     for ac_var in $ac_subst_vars
2449     do
2450       eval ac_val=\$$ac_var
2451       case $ac_val in
2452       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453       esac
2454       $as_echo "$ac_var='\''$ac_val'\''"
2455     done | sort
2456     echo
2457
2458     if test -n "$ac_subst_files"; then
2459       $as_echo "## ------------------- ##
2460 ## File substitutions. ##
2461 ## ------------------- ##"
2462       echo
2463       for ac_var in $ac_subst_files
2464       do
2465         eval ac_val=\$$ac_var
2466         case $ac_val in
2467         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468         esac
2469         $as_echo "$ac_var='\''$ac_val'\''"
2470       done | sort
2471       echo
2472     fi
2473
2474     if test -s confdefs.h; then
2475       $as_echo "## ----------- ##
2476 ## confdefs.h. ##
2477 ## ----------- ##"
2478       echo
2479       cat confdefs.h
2480       echo
2481     fi
2482     test "$ac_signal" != 0 &&
2483       $as_echo "$as_me: caught signal $ac_signal"
2484     $as_echo "$as_me: exit $exit_status"
2485   } >&5
2486   rm -f core *.core core.conftest.* &&
2487     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2488     exit $exit_status
2489 ' 0
2490 for ac_signal in 1 2 13 15; do
2491   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2492 done
2493 ac_signal=0
2494
2495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2496 rm -f -r conftest* confdefs.h
2497
2498 $as_echo "/* confdefs.h */" > confdefs.h
2499
2500 # Predefined preprocessor variables.
2501
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_NAME "$PACKAGE_NAME"
2504 _ACEOF
2505
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2508 _ACEOF
2509
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2512 _ACEOF
2513
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_STRING "$PACKAGE_STRING"
2516 _ACEOF
2517
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2520 _ACEOF
2521
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_URL "$PACKAGE_URL"
2524 _ACEOF
2525
2526
2527 # Let the site file select an alternate cache file if it wants to.
2528 # Prefer an explicitly selected file to automatically selected ones.
2529 ac_site_file1=NONE
2530 ac_site_file2=NONE
2531 if test -n "$CONFIG_SITE"; then
2532   # We do not want a PATH search for config.site.
2533   case $CONFIG_SITE in #((
2534     -*)  ac_site_file1=./$CONFIG_SITE;;
2535     */*) ac_site_file1=$CONFIG_SITE;;
2536     *)   ac_site_file1=./$CONFIG_SITE;;
2537   esac
2538 elif test "x$prefix" != xNONE; then
2539   ac_site_file1=$prefix/share/config.site
2540   ac_site_file2=$prefix/etc/config.site
2541 else
2542   ac_site_file1=$ac_default_prefix/share/config.site
2543   ac_site_file2=$ac_default_prefix/etc/config.site
2544 fi
2545 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2546 do
2547   test "x$ac_site_file" = xNONE && continue
2548   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2549     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2550 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2551     sed 's/^/| /' "$ac_site_file" >&5
2552     . "$ac_site_file" \
2553       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 as_fn_error $? "failed to load site script $ac_site_file
2556 See \`config.log' for more details" "$LINENO" 5; }
2557   fi
2558 done
2559
2560 if test -r "$cache_file"; then
2561   # Some versions of bash will fail to source /dev/null (special files
2562   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2563   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2564     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565 $as_echo "$as_me: loading cache $cache_file" >&6;}
2566     case $cache_file in
2567       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2568       *)                      . "./$cache_file";;
2569     esac
2570   fi
2571 else
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573 $as_echo "$as_me: creating cache $cache_file" >&6;}
2574   >$cache_file
2575 fi
2576
2577 # Check that the precious variables saved in the cache have kept the same
2578 # value.
2579 ac_cache_corrupted=false
2580 for ac_var in $ac_precious_vars; do
2581   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582   eval ac_new_set=\$ac_env_${ac_var}_set
2583   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584   eval ac_new_val=\$ac_env_${ac_var}_value
2585   case $ac_old_set,$ac_new_set in
2586     set,)
2587       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589       ac_cache_corrupted=: ;;
2590     ,set)
2591       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593       ac_cache_corrupted=: ;;
2594     ,);;
2595     *)
2596       if test "x$ac_old_val" != "x$ac_new_val"; then
2597         # differences in whitespace do not lead to failure.
2598         ac_old_val_w=`echo x $ac_old_val`
2599         ac_new_val_w=`echo x $ac_new_val`
2600         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603           ac_cache_corrupted=:
2604         else
2605           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607           eval $ac_var=\$ac_old_val
2608         fi
2609         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2610 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2611         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2612 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2613       fi;;
2614   esac
2615   # Pass precious variables to config.status.
2616   if test "$ac_new_set" = set; then
2617     case $ac_new_val in
2618     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619     *) ac_arg=$ac_var=$ac_new_val ;;
2620     esac
2621     case " $ac_configure_args " in
2622       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2623       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624     esac
2625   fi
2626 done
2627 if $ac_cache_corrupted; then
2628   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2632   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2633 fi
2634 ## -------------------- ##
2635 ## Main body of script. ##
2636 ## -------------------- ##
2637
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644
2645
2646
2647
2648 ac_config_headers="$ac_config_headers fficonfig.h"
2649
2650
2651 # Default to --enable-multilib
2652 # Check whether --enable-multilib was given.
2653 if test "${enable_multilib+set}" = set; then :
2654   enableval=$enable_multilib; case "$enableval" in
2655   yes) multilib=yes ;;
2656   no)  multilib=no ;;
2657   *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2658  esac
2659 else
2660   multilib=yes
2661 fi
2662
2663
2664 # We may get other options which we leave undocumented:
2665 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2666 # See config-ml.in if you want the gory details.
2667
2668 if test "$srcdir" = "."; then
2669   if test "$with_target_subdir" != "."; then
2670     multi_basedir="$srcdir/$with_multisrctop../.."
2671   else
2672     multi_basedir="$srcdir/$with_multisrctop.."
2673   fi
2674 else
2675   multi_basedir="$srcdir/.."
2676 fi
2677
2678
2679 # Even if the default multilib is not a cross compilation,
2680 # it may be that some of the other multilibs are.
2681 if test $cross_compiling = no && test $multilib = yes \
2682    && test "x${with_multisubdir}" != x ; then
2683    cross_compiling=maybe
2684 fi
2685
2686 ac_config_commands="$ac_config_commands default-1"
2687
2688
2689 ac_aux_dir=
2690 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2691   if test -f "$ac_dir/install-sh"; then
2692     ac_aux_dir=$ac_dir
2693     ac_install_sh="$ac_aux_dir/install-sh -c"
2694     break
2695   elif test -f "$ac_dir/install.sh"; then
2696     ac_aux_dir=$ac_dir
2697     ac_install_sh="$ac_aux_dir/install.sh -c"
2698     break
2699   elif test -f "$ac_dir/shtool"; then
2700     ac_aux_dir=$ac_dir
2701     ac_install_sh="$ac_aux_dir/shtool install -c"
2702     break
2703   fi
2704 done
2705 if test -z "$ac_aux_dir"; then
2706   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2707 fi
2708
2709 # These three variables are undocumented and unsupported,
2710 # and are intended to be withdrawn in a future Autoconf release.
2711 # They can cause serious problems if a builder's source tree is in a directory
2712 # whose full name contains unusual characters.
2713 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2714 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2715 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2716
2717
2718 # Make sure we can run config.sub.
2719 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2720   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2721
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2723 $as_echo_n "checking build system type... " >&6; }
2724 if ${ac_cv_build+:} false; then :
2725   $as_echo_n "(cached) " >&6
2726 else
2727   ac_build_alias=$build_alias
2728 test "x$ac_build_alias" = x &&
2729   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2730 test "x$ac_build_alias" = x &&
2731   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2732 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2733   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2734
2735 fi
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2737 $as_echo "$ac_cv_build" >&6; }
2738 case $ac_cv_build in
2739 *-*-*) ;;
2740 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2741 esac
2742 build=$ac_cv_build
2743 ac_save_IFS=$IFS; IFS='-'
2744 set x $ac_cv_build
2745 shift
2746 build_cpu=$1
2747 build_vendor=$2
2748 shift; shift
2749 # Remember, the first character of IFS is used to create $*,
2750 # except with old shells:
2751 build_os=$*
2752 IFS=$ac_save_IFS
2753 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2754
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2757 $as_echo_n "checking host system type... " >&6; }
2758 if ${ac_cv_host+:} false; then :
2759   $as_echo_n "(cached) " >&6
2760 else
2761   if test "x$host_alias" = x; then
2762   ac_cv_host=$ac_cv_build
2763 else
2764   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2765     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2766 fi
2767
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2770 $as_echo "$ac_cv_host" >&6; }
2771 case $ac_cv_host in
2772 *-*-*) ;;
2773 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2774 esac
2775 host=$ac_cv_host
2776 ac_save_IFS=$IFS; IFS='-'
2777 set x $ac_cv_host
2778 shift
2779 host_cpu=$1
2780 host_vendor=$2
2781 shift; shift
2782 # Remember, the first character of IFS is used to create $*,
2783 # except with old shells:
2784 host_os=$*
2785 IFS=$ac_save_IFS
2786 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2787
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2790 $as_echo_n "checking target system type... " >&6; }
2791 if ${ac_cv_target+:} false; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   if test "x$target_alias" = x; then
2795   ac_cv_target=$ac_cv_host
2796 else
2797   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2798     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2799 fi
2800
2801 fi
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2803 $as_echo "$ac_cv_target" >&6; }
2804 case $ac_cv_target in
2805 *-*-*) ;;
2806 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2807 esac
2808 target=$ac_cv_target
2809 ac_save_IFS=$IFS; IFS='-'
2810 set x $ac_cv_target
2811 shift
2812 target_cpu=$1
2813 target_vendor=$2
2814 shift; shift
2815 # Remember, the first character of IFS is used to create $*,
2816 # except with old shells:
2817 target_os=$*
2818 IFS=$ac_save_IFS
2819 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2820
2821
2822 # The aliases save the names the user supplied, while $host etc.
2823 # will get canonicalized.
2824 test -n "$target_alias" &&
2825   test "$program_prefix$program_suffix$program_transform_name" = \
2826     NONENONEs,x,x, &&
2827   program_prefix=${target_alias}-
2828
2829 target_alias=${target_alias-$host_alias}
2830
2831 am__api_version='1.15'
2832
2833 # Find a good install program.  We prefer a C program (faster),
2834 # so one script is as good as another.  But avoid the broken or
2835 # incompatible versions:
2836 # SysV /etc/install, /usr/sbin/install
2837 # SunOS /usr/etc/install
2838 # IRIX /sbin/install
2839 # AIX /bin/install
2840 # AmigaOS /C/install, which installs bootblocks on floppy discs
2841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2844 # OS/2's system install, which has a completely different semantic
2845 # ./install, which can be erroneously created by make from ./install.sh.
2846 # Reject install programs that cannot install multiple files.
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2848 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2849 if test -z "$INSTALL"; then
2850 if ${ac_cv_path_install+:} false; then :
2851   $as_echo_n "(cached) " >&6
2852 else
2853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858     # Account for people who put trailing slashes in PATH elements.
2859 case $as_dir/ in #((
2860   ./ | .// | /[cC]/* | \
2861   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2862   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2863   /usr/ucb/* ) ;;
2864   *)
2865     # OSF1 and SCO ODT 3.0 have their own names for install.
2866     # Don't use installbsd from OSF since it installs stuff as root
2867     # by default.
2868     for ac_prog in ginstall scoinst install; do
2869       for ac_exec_ext in '' $ac_executable_extensions; do
2870         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2871           if test $ac_prog = install &&
2872             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2873             # AIX install.  It has an incompatible calling convention.
2874             :
2875           elif test $ac_prog = install &&
2876             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2877             # program-specific install script used by HP pwplus--don't use.
2878             :
2879           else
2880             rm -rf conftest.one conftest.two conftest.dir
2881             echo one > conftest.one
2882             echo two > conftest.two
2883             mkdir conftest.dir
2884             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2885               test -s conftest.one && test -s conftest.two &&
2886               test -s conftest.dir/conftest.one &&
2887               test -s conftest.dir/conftest.two
2888             then
2889               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2890               break 3
2891             fi
2892           fi
2893         fi
2894       done
2895     done
2896     ;;
2897 esac
2898
2899   done
2900 IFS=$as_save_IFS
2901
2902 rm -rf conftest.one conftest.two conftest.dir
2903
2904 fi
2905   if test "${ac_cv_path_install+set}" = set; then
2906     INSTALL=$ac_cv_path_install
2907   else
2908     # As a last resort, use the slow shell script.  Don't cache a
2909     # value for INSTALL within a source directory, because that will
2910     # break other packages using the cache if that directory is
2911     # removed, or if the value is a relative name.
2912     INSTALL=$ac_install_sh
2913   fi
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2916 $as_echo "$INSTALL" >&6; }
2917
2918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2919 # It thinks the first close brace ends the variable substitution.
2920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2921
2922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2923
2924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2927 $as_echo_n "checking whether build environment is sane... " >&6; }
2928 # Reject unsafe characters in $srcdir or the absolute working directory
2929 # name.  Accept space and tab only in the latter.
2930 am_lf='
2931 '
2932 case `pwd` in
2933   *[\\\"\#\$\&\'\`$am_lf]*)
2934     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2935 esac
2936 case $srcdir in
2937   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2938     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2939 esac
2940
2941 # Do 'set' in a subshell so we don't clobber the current shell's
2942 # arguments.  Must try -L first in case configure is actually a
2943 # symlink; some systems play weird games with the mod time of symlinks
2944 # (eg FreeBSD returns the mod time of the symlink's containing
2945 # directory).
2946 if (
2947    am_has_slept=no
2948    for am_try in 1 2; do
2949      echo "timestamp, slept: $am_has_slept" > conftest.file
2950      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2951      if test "$*" = "X"; then
2952         # -L didn't work.
2953         set X `ls -t "$srcdir/configure" conftest.file`
2954      fi
2955      if test "$*" != "X $srcdir/configure conftest.file" \
2956         && test "$*" != "X conftest.file $srcdir/configure"; then
2957
2958         # If neither matched, then we have a broken ls.  This can happen
2959         # if, for instance, CONFIG_SHELL is bash and it inherits a
2960         # broken ls alias from the environment.  This has actually
2961         # happened.  Such a system could not be considered "sane".
2962         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2963   alias in your environment" "$LINENO" 5
2964      fi
2965      if test "$2" = conftest.file || test $am_try -eq 2; then
2966        break
2967      fi
2968      # Just in case.
2969      sleep 1
2970      am_has_slept=yes
2971    done
2972    test "$2" = conftest.file
2973    )
2974 then
2975    # Ok.
2976    :
2977 else
2978    as_fn_error $? "newly created file is older than distributed files!
2979 Check your system clock" "$LINENO" 5
2980 fi
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2982 $as_echo "yes" >&6; }
2983 # If we didn't sleep, we still need to ensure time stamps of config.status and
2984 # generated files are strictly newer.
2985 am_sleep_pid=
2986 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2987   ( sleep 1 ) &
2988   am_sleep_pid=$!
2989 fi
2990
2991 rm -f conftest.file
2992
2993 test "$program_prefix" != NONE &&
2994   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2995 # Use a double $ so make ignores it.
2996 test "$program_suffix" != NONE &&
2997   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2998 # Double any \ or $.
2999 # By default was `s,x,x', remove it if useless.
3000 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3001 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3002
3003 # Expand $ac_aux_dir to an absolute path.
3004 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3005
3006 if test x"${MISSING+set}" != xset; then
3007   case $am_aux_dir in
3008   *\ * | *\     *)
3009     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3010   *)
3011     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3012   esac
3013 fi
3014 # Use eval to expand $SHELL
3015 if eval "$MISSING --is-lightweight"; then
3016   am_missing_run="$MISSING "
3017 else
3018   am_missing_run=
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3020 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3021 fi
3022
3023 if test x"${install_sh+set}" != xset; then
3024   case $am_aux_dir in
3025   *\ * | *\     *)
3026     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3027   *)
3028     install_sh="\${SHELL} $am_aux_dir/install-sh"
3029   esac
3030 fi
3031
3032 # Installed binaries are usually stripped using 'strip' when the user
3033 # run "make install-strip".  However 'strip' might not be the right
3034 # tool to use in cross-compilation environments, therefore Automake
3035 # will honor the 'STRIP' environment variable to overrule this program.
3036 if test "$cross_compiling" != no; then
3037   if test -n "$ac_tool_prefix"; then
3038   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3039 set dummy ${ac_tool_prefix}strip; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_STRIP+:} false; then :
3043   $as_echo_n "(cached) " >&6
3044 else
3045   if test -n "$STRIP"; then
3046   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051   IFS=$as_save_IFS
3052   test -z "$as_dir" && as_dir=.
3053     for ac_exec_ext in '' $ac_executable_extensions; do
3054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057     break 2
3058   fi
3059 done
3060   done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 STRIP=$ac_cv_prog_STRIP
3066 if test -n "$STRIP"; then
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3068 $as_echo "$STRIP" >&6; }
3069 else
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 fi
3076 if test -z "$ac_cv_prog_STRIP"; then
3077   ac_ct_STRIP=$STRIP
3078   # Extract the first word of "strip", so it can be a program name with args.
3079 set dummy strip; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3083   $as_echo_n "(cached) " >&6
3084 else
3085   if test -n "$ac_ct_STRIP"; then
3086   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093     for ac_exec_ext in '' $ac_executable_extensions; do
3094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095     ac_cv_prog_ac_ct_STRIP="strip"
3096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100   done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3106 if test -n "$ac_ct_STRIP"; then
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3108 $as_echo "$ac_ct_STRIP" >&6; }
3109 else
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114   if test "x$ac_ct_STRIP" = x; then
3115     STRIP=":"
3116   else
3117     case $cross_compiling:$ac_tool_warned in
3118 yes:)
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned=yes ;;
3122 esac
3123     STRIP=$ac_ct_STRIP
3124   fi
3125 else
3126   STRIP="$ac_cv_prog_STRIP"
3127 fi
3128
3129 fi
3130 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3131
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3133 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3134 if test -z "$MKDIR_P"; then
3135   if ${ac_cv_path_mkdir+:} false; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143     for ac_prog in mkdir gmkdir; do
3144          for ac_exec_ext in '' $ac_executable_extensions; do
3145            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3146            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3147              'mkdir (GNU coreutils) '* | \
3148              'mkdir (coreutils) '* | \
3149              'mkdir (fileutils) '4.1*)
3150                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3151                break 3;;
3152            esac
3153          done
3154        done
3155   done
3156 IFS=$as_save_IFS
3157
3158 fi
3159
3160   test -d ./--version && rmdir ./--version
3161   if test "${ac_cv_path_mkdir+set}" = set; then
3162     MKDIR_P="$ac_cv_path_mkdir -p"
3163   else
3164     # As a last resort, use the slow shell script.  Don't cache a
3165     # value for MKDIR_P within a source directory, because that will
3166     # break other packages using the cache if that directory is
3167     # removed, or if the value is a relative name.
3168     MKDIR_P="$ac_install_sh -d"
3169   fi
3170 fi
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3172 $as_echo "$MKDIR_P" >&6; }
3173
3174 for ac_prog in gawk mawk nawk awk
3175 do
3176   # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_AWK+:} false; then :
3181   $as_echo_n "(cached) " >&6
3182 else
3183   if test -n "$AWK"; then
3184   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189   IFS=$as_save_IFS
3190   test -z "$as_dir" && as_dir=.
3191     for ac_exec_ext in '' $ac_executable_extensions; do
3192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193     ac_cv_prog_AWK="$ac_prog"
3194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195     break 2
3196   fi
3197 done
3198   done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 AWK=$ac_cv_prog_AWK
3204 if test -n "$AWK"; then
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3206 $as_echo "$AWK" >&6; }
3207 else
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213   test -n "$AWK" && break
3214 done
3215
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3217 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3218 set x ${MAKE-make}
3219 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3220 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3221   $as_echo_n "(cached) " >&6
3222 else
3223   cat >conftest.make <<\_ACEOF
3224 SHELL = /bin/sh
3225 all:
3226         @echo '@@@%%%=$(MAKE)=@@@%%%'
3227 _ACEOF
3228 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3230   *@@@%%%=?*=@@@%%%*)
3231     eval ac_cv_prog_make_${ac_make}_set=yes;;
3232   *)
3233     eval ac_cv_prog_make_${ac_make}_set=no;;
3234 esac
3235 rm -f conftest.make
3236 fi
3237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3240   SET_MAKE=
3241 else
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244   SET_MAKE="MAKE=${MAKE-make}"
3245 fi
3246
3247 rm -rf .tst 2>/dev/null
3248 mkdir .tst 2>/dev/null
3249 if test -d .tst; then
3250   am__leading_dot=.
3251 else
3252   am__leading_dot=_
3253 fi
3254 rmdir .tst 2>/dev/null
3255
3256 # Check whether --enable-silent-rules was given.
3257 if test "${enable_silent_rules+set}" = set; then :
3258   enableval=$enable_silent_rules;
3259 fi
3260
3261 case $enable_silent_rules in # (((
3262   yes) AM_DEFAULT_VERBOSITY=0;;
3263    no) AM_DEFAULT_VERBOSITY=1;;
3264     *) AM_DEFAULT_VERBOSITY=1;;
3265 esac
3266 am_make=${MAKE-make}
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3268 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3269 if ${am_cv_make_support_nested_variables+:} false; then :
3270   $as_echo_n "(cached) " >&6
3271 else
3272   if $as_echo 'TRUE=$(BAR$(V))
3273 BAR0=false
3274 BAR1=true
3275 V=1
3276 am__doit:
3277         @$(TRUE)
3278 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3279   am_cv_make_support_nested_variables=yes
3280 else
3281   am_cv_make_support_nested_variables=no
3282 fi
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3285 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3286 if test $am_cv_make_support_nested_variables = yes; then
3287     AM_V='$(V)'
3288   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3289 else
3290   AM_V=$AM_DEFAULT_VERBOSITY
3291   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3292 fi
3293 AM_BACKSLASH='\'
3294
3295 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3296   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3297   # is not polluted with repeated "-I."
3298   am__isrc=' -I$(srcdir)'
3299   # test to see if srcdir already configured
3300   if test -f $srcdir/config.status; then
3301     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3302   fi
3303 fi
3304
3305 # test whether we have cygpath
3306 if test -z "$CYGPATH_W"; then
3307   if (cygpath --version) >/dev/null 2>/dev/null; then
3308     CYGPATH_W='cygpath -w'
3309   else
3310     CYGPATH_W=echo
3311   fi
3312 fi
3313
3314
3315 # Define the identity of the package.
3316  PACKAGE='libffi'
3317  VERSION='3.4.2'
3318
3319
3320 cat >>confdefs.h <<_ACEOF
3321 #define PACKAGE "$PACKAGE"
3322 _ACEOF
3323
3324
3325 cat >>confdefs.h <<_ACEOF
3326 #define VERSION "$VERSION"
3327 _ACEOF
3328
3329 # Some tools Automake needs.
3330
3331 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3332
3333
3334 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3335
3336
3337 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3338
3339
3340 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3341
3342
3343 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3344
3345 # For better backward compatibility.  To be removed once Automake 1.9.x
3346 # dies out for good.  For more background, see:
3347 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3348 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3349 mkdir_p='$(MKDIR_P)'
3350
3351 # We need awk for the "check" target (and possibly the TAP driver).  The
3352 # system "awk" is bad on some platforms.
3353 # Always define AMTAR for backward compatibility.  Yes, it's still used
3354 # in the wild :-(  We should find a proper way to deprecate it ...
3355 AMTAR='$${TAR-tar}'
3356
3357
3358 # We'll loop over all known methods to create a tar archive until one works.
3359 _am_tools='gnutar  pax cpio none'
3360
3361 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3362
3363
3364
3365
3366
3367
3368 # POSIX will say in a future version that running "rm -f" with no argument
3369 # is OK; and we want to be able to make that assumption in our Makefile
3370 # recipes.  So use an aggressive probe to check that the usage we want is
3371 # actually supported "in the wild" to an acceptable degree.
3372 # See automake bug#10828.
3373 # To make any issue more visible, cause the running configure to be aborted
3374 # by default if the 'rm' program in use doesn't match our expectations; the
3375 # user can still override this though.
3376 if rm -f && rm -fr && rm -rf; then : OK; else
3377   cat >&2 <<'END'
3378 Oops!
3379
3380 Your 'rm' program seems unable to run without file operands specified
3381 on the command line, even when the '-f' option is present.  This is contrary
3382 to the behaviour of most rm programs out there, and not conforming with
3383 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3384
3385 Please tell bug-automake@gnu.org about your system, including the value
3386 of your $PATH and any error possibly output before this message.  This
3387 can help us improve future automake versions.
3388
3389 END
3390   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3391     echo 'Configuration will proceed anyway, since you have set the' >&2
3392     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3393     echo >&2
3394   else
3395     cat >&2 <<'END'
3396 Aborting the configuration process, to ensure you take notice of the issue.
3397
3398 You can download and install GNU coreutils to get an 'rm' implementation
3399 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3400
3401 If you want to complete the configuration process using your problematic
3402 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3403 to "yes", and re-run configure.
3404
3405 END
3406     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3407   fi
3408 fi
3409
3410
3411 # We would like our source tree to be readonly. However when releases or
3412 # pre-releases are generated, the flex/bison generated files as well as the
3413 # various formats of manuals need to be included along with the rest of the
3414 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3415 # just that.
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3417 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3418 # Check whether --enable-generated-files-in-srcdir was given.
3419 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3420   enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3421  yes) enable_generated_files_in_srcdir=yes ;;
3422  no)  enable_generated_files_in_srcdir=no ;;
3423  *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3424  esac
3425 else
3426   enable_generated_files_in_srcdir=no
3427 fi
3428
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3430 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3431  if test "$enable_generated_files_in_srcdir" = yes; then
3432   GENINSRC_TRUE=
3433   GENINSRC_FALSE='#'
3434 else
3435   GENINSRC_TRUE='#'
3436   GENINSRC_FALSE=
3437 fi
3438
3439
3440 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3441 # We must force CC to /not/ be precious variables; otherwise
3442 # the wrong, non-multilib-adjusted value will be used in multilibs.
3443 # As a side effect, we have to subst CFLAGS ourselves.
3444 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3445 # defaults of its own if none are provided.
3446
3447
3448
3449 save_CFLAGS=$CFLAGS
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 if test -n "$ac_tool_prefix"; then
3456   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_prog_CC+:} false; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   if test -n "$CC"; then
3464   ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471     for ac_exec_ext in '' $ac_executable_extensions; do
3472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478   done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3490 fi
3491
3492
3493 fi
3494 if test -z "$ac_cv_prog_CC"; then
3495   ac_ct_CC=$CC
3496   # Extract the first word of "gcc", so it can be a program name with args.
3497 set dummy gcc; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   if test -n "$ac_ct_CC"; then
3504   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3505 else
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_prog_ac_ct_CC="gcc"
3514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518   done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526 $as_echo "$ac_ct_CC" >&6; }
3527 else
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 fi
3531
3532   if test "x$ac_ct_CC" = x; then
3533     CC=""
3534   else
3535     case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned=yes ;;
3540 esac
3541     CC=$ac_ct_CC
3542   fi
3543 else
3544   CC="$ac_cv_prog_CC"
3545 fi
3546
3547 if test -z "$CC"; then
3548           if test -n "$ac_tool_prefix"; then
3549     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3550 set dummy ${ac_tool_prefix}cc; ac_word=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if ${ac_cv_prog_CC+:} false; then :
3554   $as_echo_n "(cached) " >&6
3555 else
3556   if test -n "$CC"; then
3557   ac_cv_prog_CC="$CC" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3561 do
3562   IFS=$as_save_IFS
3563   test -z "$as_dir" && as_dir=.
3564     for ac_exec_ext in '' $ac_executable_extensions; do
3565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566     ac_cv_prog_CC="${ac_tool_prefix}cc"
3567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568     break 2
3569   fi
3570 done
3571   done
3572 IFS=$as_save_IFS
3573
3574 fi
3575 fi
3576 CC=$ac_cv_prog_CC
3577 if test -n "$CC"; then
3578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579 $as_echo "$CC" >&6; }
3580 else
3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3583 fi
3584
3585
3586   fi
3587 fi
3588 if test -z "$CC"; then
3589   # Extract the first word of "cc", so it can be a program name with args.
3590 set dummy cc; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if ${ac_cv_prog_CC+:} false; then :
3594   $as_echo_n "(cached) " >&6
3595 else
3596   if test -n "$CC"; then
3597   ac_cv_prog_CC="$CC" # Let the user override the test.
3598 else
3599   ac_prog_rejected=no
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603   IFS=$as_save_IFS
3604   test -z "$as_dir" && as_dir=.
3605     for ac_exec_ext in '' $ac_executable_extensions; do
3606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3608        ac_prog_rejected=yes
3609        continue
3610      fi
3611     ac_cv_prog_CC="cc"
3612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613     break 2
3614   fi
3615 done
3616   done
3617 IFS=$as_save_IFS
3618
3619 if test $ac_prog_rejected = yes; then
3620   # We found a bogon in the path, so make sure we never use it.
3621   set dummy $ac_cv_prog_CC
3622   shift
3623   if test $# != 0; then
3624     # We chose a different compiler from the bogus one.
3625     # However, it has the same basename, so the bogon will be chosen
3626     # first if we set CC to just the basename; use the full file name.
3627     shift
3628     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3629   fi
3630 fi
3631 fi
3632 fi
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 $as_echo "$CC" >&6; }
3637 else
3638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 fi
3641
3642
3643 fi
3644 if test -z "$CC"; then
3645   if test -n "$ac_tool_prefix"; then
3646   for ac_prog in cl.exe
3647   do
3648     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if ${ac_cv_prog_CC+:} false; then :
3653   $as_echo_n "(cached) " >&6
3654 else
3655   if test -n "$CC"; then
3656   ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661   IFS=$as_save_IFS
3662   test -z "$as_dir" && as_dir=.
3663     for ac_exec_ext in '' $ac_executable_extensions; do
3664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667     break 2
3668   fi
3669 done
3670   done
3671 IFS=$as_save_IFS
3672
3673 fi
3674 fi
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3679 else
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 fi
3683
3684
3685     test -n "$CC" && break
3686   done
3687 fi
3688 if test -z "$CC"; then
3689   ac_ct_CC=$CC
3690   for ac_prog in cl.exe
3691 do
3692   # Extract the first word of "$ac_prog", so it can be a program name with args.
3693 set dummy $ac_prog; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3697   $as_echo_n "(cached) " >&6
3698 else
3699   if test -n "$ac_ct_CC"; then
3700   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705   IFS=$as_save_IFS
3706   test -z "$as_dir" && as_dir=.
3707     for ac_exec_ext in '' $ac_executable_extensions; do
3708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3709     ac_cv_prog_ac_ct_CC="$ac_prog"
3710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711     break 2
3712   fi
3713 done
3714   done
3715 IFS=$as_save_IFS
3716
3717 fi
3718 fi
3719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3720 if test -n "$ac_ct_CC"; then
3721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3722 $as_echo "$ac_ct_CC" >&6; }
3723 else
3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3726 fi
3727
3728
3729   test -n "$ac_ct_CC" && break
3730 done
3731
3732   if test "x$ac_ct_CC" = x; then
3733     CC=""
3734   else
3735     case $cross_compiling:$ac_tool_warned in
3736 yes:)
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739 ac_tool_warned=yes ;;
3740 esac
3741     CC=$ac_ct_CC
3742   fi
3743 fi
3744
3745 fi
3746
3747
3748 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $? "no acceptable C compiler found in \$PATH
3751 See \`config.log' for more details" "$LINENO" 5; }
3752
3753 # Provide some information about the compiler.
3754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3755 set X $ac_compile
3756 ac_compiler=$2
3757 for ac_option in --version -v -V -qversion; do
3758   { { ac_try="$ac_compiler $ac_option >&5"
3759 case "(($ac_try" in
3760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761   *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3766   ac_status=$?
3767   if test -s conftest.err; then
3768     sed '10a\
3769 ... rest of stderr output deleted ...
3770          10q' conftest.err >conftest.er1
3771     cat conftest.er1 >&5
3772   fi
3773   rm -f conftest.er1 conftest.err
3774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775   test $ac_status = 0; }
3776 done
3777
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h.  */
3780
3781 int
3782 main ()
3783 {
3784
3785   ;
3786   return 0;
3787 }
3788 _ACEOF
3789 ac_clean_files_save=$ac_clean_files
3790 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3791 # Try to create an executable without -o first, disregard a.out.
3792 # It will help us diagnose broken compilers, and finding out an intuition
3793 # of exeext.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3795 $as_echo_n "checking whether the C compiler works... " >&6; }
3796 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3797
3798 # The possible output files:
3799 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3800
3801 ac_rmfiles=
3802 for ac_file in $ac_files
3803 do
3804   case $ac_file in
3805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3806     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3807   esac
3808 done
3809 rm -f $ac_rmfiles
3810
3811 if { { ac_try="$ac_link_default"
3812 case "(($ac_try" in
3813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814   *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818   (eval "$ac_link_default") 2>&5
3819   ac_status=$?
3820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821   test $ac_status = 0; }; then :
3822   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3824 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3825 # so that the user can short-circuit this test for compilers unknown to
3826 # Autoconf.
3827 for ac_file in $ac_files ''
3828 do
3829   test -f "$ac_file" || continue
3830   case $ac_file in
3831     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3832         ;;
3833     [ab].out )
3834         # We found the default executable, but exeext='' is most
3835         # certainly right.
3836         break;;
3837     *.* )
3838         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3839         then :; else
3840            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3841         fi
3842         # We set ac_cv_exeext here because the later test for it is not
3843         # safe: cross compilers may not add the suffix if given an `-o'
3844         # argument, so we may need to know it at that point already.
3845         # Even if this section looks crufty: it has the advantage of
3846         # actually working.
3847         break;;
3848     * )
3849         break;;
3850   esac
3851 done
3852 test "$ac_cv_exeext" = no && ac_cv_exeext=
3853
3854 else
3855   ac_file=''
3856 fi
3857 if test -z "$ac_file"; then :
3858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error 77 "C compiler cannot create executables
3866 See \`config.log' for more details" "$LINENO" 5; }
3867 else
3868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3869 $as_echo "yes" >&6; }
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3872 $as_echo_n "checking for C compiler default output file name... " >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3874 $as_echo "$ac_file" >&6; }
3875 ac_exeext=$ac_cv_exeext
3876
3877 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3878 ac_clean_files=$ac_clean_files_save
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3880 $as_echo_n "checking for suffix of executables... " >&6; }
3881 if { { ac_try="$ac_link"
3882 case "(($ac_try" in
3883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884   *) ac_try_echo=$ac_try;;
3885 esac
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888   (eval "$ac_link") 2>&5
3889   ac_status=$?
3890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891   test $ac_status = 0; }; then :
3892   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3893 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3894 # work properly (i.e., refer to `conftest.exe'), while it won't with
3895 # `rm'.
3896 for ac_file in conftest.exe conftest conftest.*; do
3897   test -f "$ac_file" || continue
3898   case $ac_file in
3899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3900     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901           break;;
3902     * ) break;;
3903   esac
3904 done
3905 else
3906   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3909 See \`config.log' for more details" "$LINENO" 5; }
3910 fi
3911 rm -f conftest conftest$ac_cv_exeext
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3913 $as_echo "$ac_cv_exeext" >&6; }
3914
3915 rm -f conftest.$ac_ext
3916 EXEEXT=$ac_cv_exeext
3917 ac_exeext=$EXEEXT
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h.  */
3920 #include <stdio.h>
3921 int
3922 main ()
3923 {
3924 FILE *f = fopen ("conftest.out", "w");
3925  return ferror (f) || fclose (f) != 0;
3926
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 ac_clean_files="$ac_clean_files conftest.out"
3932 # Check that the compiler produces executables we can run.  If not, either
3933 # the compiler is broken, or we cross compile.
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3935 $as_echo_n "checking whether we are cross compiling... " >&6; }
3936 if test "$cross_compiling" != yes; then
3937   { { ac_try="$ac_link"
3938 case "(($ac_try" in
3939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940   *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944   (eval "$ac_link") 2>&5
3945   ac_status=$?
3946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947   test $ac_status = 0; }
3948   if { ac_try='./conftest$ac_cv_exeext'
3949   { { case "(($ac_try" in
3950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951   *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955   (eval "$ac_try") 2>&5
3956   ac_status=$?
3957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958   test $ac_status = 0; }; }; then
3959     cross_compiling=no
3960   else
3961     if test "$cross_compiling" = maybe; then
3962         cross_compiling=yes
3963     else
3964         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error $? "cannot run C compiled programs.
3967 If you meant to cross compile, use \`--host'.
3968 See \`config.log' for more details" "$LINENO" 5; }
3969     fi
3970   fi
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3974
3975 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3976 ac_clean_files=$ac_clean_files_save
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3978 $as_echo_n "checking for suffix of object files... " >&6; }
3979 if ${ac_cv_objext+:} false; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h.  */
3984
3985 int
3986 main ()
3987 {
3988
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.o conftest.obj
3994 if { { ac_try="$ac_compile"
3995 case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001   (eval "$ac_compile") 2>&5
4002   ac_status=$?
4003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004   test $ac_status = 0; }; then :
4005   for ac_file in conftest.o conftest.obj conftest.*; do
4006   test -f "$ac_file" || continue;
4007   case $ac_file in
4008     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4009     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4010        break;;
4011   esac
4012 done
4013 else
4014   $as_echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error $? "cannot compute suffix of object files: cannot compile
4020 See \`config.log' for more details" "$LINENO" 5; }
4021 fi
4022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4025 $as_echo "$ac_cv_objext" >&6; }
4026 OBJEXT=$ac_cv_objext
4027 ac_objext=$OBJEXT
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4029 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4030 if ${ac_cv_c_compiler_gnu+:} false; then :
4031   $as_echo_n "(cached) " >&6
4032 else
4033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h.  */
4035
4036 int
4037 main ()
4038 {
4039 #ifndef __GNUC__
4040        choke me
4041 #endif
4042
4043   ;
4044   return 0;
4045 }
4046 _ACEOF
4047 if ac_fn_c_try_compile "$LINENO"; then :
4048   ac_compiler_gnu=yes
4049 else
4050   ac_compiler_gnu=no
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4054
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4058 if test $ac_compiler_gnu = yes; then
4059   GCC=yes
4060 else
4061   GCC=
4062 fi
4063 ac_test_CFLAGS=${CFLAGS+set}
4064 ac_save_CFLAGS=$CFLAGS
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4067 if ${ac_cv_prog_cc_g+:} false; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   ac_save_c_werror_flag=$ac_c_werror_flag
4071    ac_c_werror_flag=yes
4072    ac_cv_prog_cc_g=no
4073    CFLAGS="-g"
4074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h.  */
4076
4077 int
4078 main ()
4079 {
4080
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086   ac_cv_prog_cc_g=yes
4087 else
4088   CFLAGS=""
4089       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h.  */
4091
4092 int
4093 main ()
4094 {
4095
4096   ;
4097   return 0;
4098 }
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101
4102 else
4103   ac_c_werror_flag=$ac_save_c_werror_flag
4104          CFLAGS="-g"
4105          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h.  */
4107
4108 int
4109 main ()
4110 {
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117   ac_cv_prog_cc_g=yes
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124    ac_c_werror_flag=$ac_save_c_werror_flag
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4127 $as_echo "$ac_cv_prog_cc_g" >&6; }
4128 if test "$ac_test_CFLAGS" = set; then
4129   CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131   if test "$GCC" = yes; then
4132     CFLAGS="-g -O2"
4133   else
4134     CFLAGS="-g"
4135   fi
4136 else
4137   if test "$GCC" = yes; then
4138     CFLAGS="-O2"
4139   else
4140     CFLAGS=
4141   fi
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145 if ${ac_cv_prog_cc_c89+:} false; then :
4146   $as_echo_n "(cached) " >&6
4147 else
4148   ac_cv_prog_cc_c89=no
4149 ac_save_CC=$CC
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h.  */
4152 #include <stdarg.h>
4153 #include <stdio.h>
4154 struct stat;
4155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4156 struct buf { int x; };
4157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4158 static char *e (p, i)
4159      char **p;
4160      int i;
4161 {
4162   return p[i];
4163 }
4164 static char *f (char * (*g) (char **, int), char **p, ...)
4165 {
4166   char *s;
4167   va_list v;
4168   va_start (v,p);
4169   s = g (p, va_arg (v,int));
4170   va_end (v);
4171   return s;
4172 }
4173
4174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4175    function prototypes and stuff, but not '\xHH' hex character constants.
4176    These don't provoke an error unfortunately, instead are silently treated
4177    as 'x'.  The following induces an error, until -std is added to get
4178    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4179    array size at least.  It's necessary to write '\x00'==0 to get something
4180    that's true only with -std.  */
4181 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4182
4183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4184    inside strings and character constants.  */
4185 #define FOO(x) 'x'
4186 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4187
4188 int test (int i, double x);
4189 struct s1 {int (*f) (int a);};
4190 struct s2 {int (*f) (double a);};
4191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4192 int argc;
4193 char **argv;
4194 int
4195 main ()
4196 {
4197 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4203         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4204 do
4205   CC="$ac_save_CC $ac_arg"
4206   if ac_fn_c_try_compile "$LINENO"; then :
4207   ac_cv_prog_cc_c89=$ac_arg
4208 fi
4209 rm -f core conftest.err conftest.$ac_objext
4210   test "x$ac_cv_prog_cc_c89" != "xno" && break
4211 done
4212 rm -f conftest.$ac_ext
4213 CC=$ac_save_CC
4214
4215 fi
4216 # AC_CACHE_VAL
4217 case "x$ac_cv_prog_cc_c89" in
4218   x)
4219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4220 $as_echo "none needed" >&6; } ;;
4221   xno)
4222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4223 $as_echo "unsupported" >&6; } ;;
4224   *)
4225     CC="$CC $ac_cv_prog_cc_c89"
4226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4227 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4228 esac
4229 if test "x$ac_cv_prog_cc_c89" != xno; then :
4230
4231 fi
4232
4233 ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238
4239 ac_ext=c
4240 ac_cpp='$CPP $CPPFLAGS'
4241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4245 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4246 if ${am_cv_prog_cc_c_o+:} false; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h.  */
4251
4252 int
4253 main ()
4254 {
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260   # Make sure it works both with $CC and with simple cc.
4261   # Following AC_PROG_CC_C_O, we do the test twice because some
4262   # compilers refuse to overwrite an existing .o file with -o,
4263   # though they will create one.
4264   am_cv_prog_cc_c_o=yes
4265   for am_i in 1 2; do
4266     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4267    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4268    ac_status=$?
4269    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270    (exit $ac_status); } \
4271          && test -f conftest2.$ac_objext; then
4272       : OK
4273     else
4274       am_cv_prog_cc_c_o=no
4275       break
4276     fi
4277   done
4278   rm -f core conftest*
4279   unset am_i
4280 fi
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4282 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4283 if test "$am_cv_prog_cc_c_o" != yes; then
4284    # Losing compiler, so override with the script.
4285    # FIXME: It is wrong to rewrite CC.
4286    # But if we don't then we get into trouble of one sort or another.
4287    # A longer-term fix would be to have automake use am__CC in this case,
4288    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4289    CC="$am_aux_dir/compile $CC"
4290 fi
4291 ac_ext=c
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296
4297 DEPDIR="${am__leading_dot}deps"
4298
4299 ac_config_commands="$ac_config_commands depfiles"
4300
4301
4302 am_make=${MAKE-make}
4303 cat > confinc << 'END'
4304 am__doit:
4305         @echo this is the am__doit target
4306 .PHONY: am__doit
4307 END
4308 # If we don't find an include directive, just comment out the code.
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4310 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4311 am__include="#"
4312 am__quote=
4313 _am_result=none
4314 # First try GNU make style include.
4315 echo "include confinc" > confmf
4316 # Ignore all kinds of additional output from 'make'.
4317 case `$am_make -s -f confmf 2> /dev/null` in #(
4318 *the\ am__doit\ target*)
4319   am__include=include
4320   am__quote=
4321   _am_result=GNU
4322   ;;
4323 esac
4324 # Now try BSD make style include.
4325 if test "$am__include" = "#"; then
4326    echo '.include "confinc"' > confmf
4327    case `$am_make -s -f confmf 2> /dev/null` in #(
4328    *the\ am__doit\ target*)
4329      am__include=.include
4330      am__quote="\""
4331      _am_result=BSD
4332      ;;
4333    esac
4334 fi
4335
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4338 $as_echo "$_am_result" >&6; }
4339 rm -f confinc confmf
4340
4341 # Check whether --enable-dependency-tracking was given.
4342 if test "${enable_dependency_tracking+set}" = set; then :
4343   enableval=$enable_dependency_tracking;
4344 fi
4345
4346 if test "x$enable_dependency_tracking" != xno; then
4347   am_depcomp="$ac_aux_dir/depcomp"
4348   AMDEPBACKSLASH='\'
4349   am__nodep='_no'
4350 fi
4351  if test "x$enable_dependency_tracking" != xno; then
4352   AMDEP_TRUE=
4353   AMDEP_FALSE='#'
4354 else
4355   AMDEP_TRUE='#'
4356   AMDEP_FALSE=
4357 fi
4358
4359
4360
4361 depcc="$CC"   am_compiler_list=
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4364 $as_echo_n "checking dependency style of $depcc... " >&6; }
4365 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4369   # We make a subdir and do the tests there.  Otherwise we can end up
4370   # making bogus files that we don't know about and never remove.  For
4371   # instance it was reported that on HP-UX the gcc test will end up
4372   # making a dummy file named 'D' -- because '-MD' means "put the output
4373   # in D".
4374   rm -rf conftest.dir
4375   mkdir conftest.dir
4376   # Copy depcomp to subdir because otherwise we won't find it if we're
4377   # using a relative directory.
4378   cp "$am_depcomp" conftest.dir
4379   cd conftest.dir
4380   # We will build objects and dependencies in a subdirectory because
4381   # it helps to detect inapplicable dependency modes.  For instance
4382   # both Tru64's cc and ICC support -MD to output dependencies as a
4383   # side effect of compilation, but ICC will put the dependencies in
4384   # the current directory while Tru64 will put them in the object
4385   # directory.
4386   mkdir sub
4387
4388   am_cv_CC_dependencies_compiler_type=none
4389   if test "$am_compiler_list" = ""; then
4390      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4391   fi
4392   am__universal=false
4393   case " $depcc " in #(
4394      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4395      esac
4396
4397   for depmode in $am_compiler_list; do
4398     # Setup a source with many dependencies, because some compilers
4399     # like to wrap large dependency lists on column 80 (with \), and
4400     # we should not choose a depcomp mode which is confused by this.
4401     #
4402     # We need to recreate these files for each test, as the compiler may
4403     # overwrite some of them when testing with obscure command lines.
4404     # This happens at least with the AIX C compiler.
4405     : > sub/conftest.c
4406     for i in 1 2 3 4 5 6; do
4407       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4408       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4409       # Solaris 10 /bin/sh.
4410       echo '/* dummy */' > sub/conftst$i.h
4411     done
4412     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4413
4414     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4415     # mode.  It turns out that the SunPro C++ compiler does not properly
4416     # handle '-M -o', and we need to detect this.  Also, some Intel
4417     # versions had trouble with output in subdirs.
4418     am__obj=sub/conftest.${OBJEXT-o}
4419     am__minus_obj="-o $am__obj"
4420     case $depmode in
4421     gcc)
4422       # This depmode causes a compiler race in universal mode.
4423       test "$am__universal" = false || continue
4424       ;;
4425     nosideeffect)
4426       # After this tag, mechanisms are not by side-effect, so they'll
4427       # only be used when explicitly requested.
4428       if test "x$enable_dependency_tracking" = xyes; then
4429         continue
4430       else
4431         break
4432       fi
4433       ;;
4434     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4435       # This compiler won't grok '-c -o', but also, the minuso test has
4436       # not run yet.  These depmodes are late enough in the game, and
4437       # so weak that their functioning should not be impacted.
4438       am__obj=conftest.${OBJEXT-o}
4439       am__minus_obj=
4440       ;;
4441     none) break ;;
4442     esac
4443     if depmode=$depmode \
4444        source=sub/conftest.c object=$am__obj \
4445        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4446        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4447          >/dev/null 2>conftest.err &&
4448        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4449        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4450        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4451        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4452       # icc doesn't choke on unknown options, it will just issue warnings
4453       # or remarks (even with -Werror).  So we grep stderr for any message
4454       # that says an option was ignored or not supported.
4455       # When given -MP, icc 7.0 and 7.1 complain thusly:
4456       #   icc: Command line warning: ignoring option '-M'; no argument required
4457       # The diagnosis changed in icc 8.0:
4458       #   icc: Command line remark: option '-MP' not supported
4459       if (grep 'ignoring option' conftest.err ||
4460           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4461         am_cv_CC_dependencies_compiler_type=$depmode
4462         break
4463       fi
4464     fi
4465   done
4466
4467   cd ..
4468   rm -rf conftest.dir
4469 else
4470   am_cv_CC_dependencies_compiler_type=none
4471 fi
4472
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4475 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4476 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4477
4478  if
4479   test "x$enable_dependency_tracking" != xno \
4480   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4481   am__fastdepCC_TRUE=
4482   am__fastdepCC_FALSE='#'
4483 else
4484   am__fastdepCC_TRUE='#'
4485   am__fastdepCC_FALSE=
4486 fi
4487
4488
4489 ac_ext=cpp
4490 ac_cpp='$CXXCPP $CPPFLAGS'
4491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4494 if test -z "$CXX"; then
4495   if test -n "$CCC"; then
4496     CXX=$CCC
4497   else
4498     if test -n "$ac_tool_prefix"; then
4499   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4500   do
4501     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_CXX+:} false; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508   if test -n "$CXX"; then
4509   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516     for ac_exec_ext in '' $ac_executable_extensions; do
4517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520     break 2
4521   fi
4522 done
4523   done
4524 IFS=$as_save_IFS
4525
4526 fi
4527 fi
4528 CXX=$ac_cv_prog_CXX
4529 if test -n "$CXX"; then
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4531 $as_echo "$CXX" >&6; }
4532 else
4533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4535 fi
4536
4537
4538     test -n "$CXX" && break
4539   done
4540 fi
4541 if test -z "$CXX"; then
4542   ac_ct_CXX=$CXX
4543   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4544 do
4545   # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   if test -n "$ac_ct_CXX"; then
4553   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_exec_ext in '' $ac_executable_extensions; do
4561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562     ac_cv_prog_ac_ct_CXX="$ac_prog"
4563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567   done
4568 IFS=$as_save_IFS
4569
4570 fi
4571 fi
4572 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4573 if test -n "$ac_ct_CXX"; then
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4575 $as_echo "$ac_ct_CXX" >&6; }
4576 else
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580
4581
4582   test -n "$ac_ct_CXX" && break
4583 done
4584
4585   if test "x$ac_ct_CXX" = x; then
4586     CXX="g++"
4587   else
4588     case $cross_compiling:$ac_tool_warned in
4589 yes:)
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4592 ac_tool_warned=yes ;;
4593 esac
4594     CXX=$ac_ct_CXX
4595   fi
4596 fi
4597
4598   fi
4599 fi
4600 # Provide some information about the compiler.
4601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4602 set X $ac_compile
4603 ac_compiler=$2
4604 for ac_option in --version -v -V -qversion; do
4605   { { ac_try="$ac_compiler $ac_option >&5"
4606 case "(($ac_try" in
4607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608   *) ac_try_echo=$ac_try;;
4609 esac
4610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611 $as_echo "$ac_try_echo"; } >&5
4612   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4613   ac_status=$?
4614   if test -s conftest.err; then
4615     sed '10a\
4616 ... rest of stderr output deleted ...
4617          10q' conftest.err >conftest.er1
4618     cat conftest.er1 >&5
4619   fi
4620   rm -f conftest.er1 conftest.err
4621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622   test $ac_status = 0; }
4623 done
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4626 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4627 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4628   $as_echo_n "(cached) " >&6
4629 else
4630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h.  */
4632
4633 int
4634 main ()
4635 {
4636 #ifndef __GNUC__
4637        choke me
4638 #endif
4639
4640   ;
4641   return 0;
4642 }
4643 _ACEOF
4644 if ac_fn_cxx_try_compile "$LINENO"; then :
4645   ac_compiler_gnu=yes
4646 else
4647   ac_compiler_gnu=no
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4651
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4654 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4655 if test $ac_compiler_gnu = yes; then
4656   GXX=yes
4657 else
4658   GXX=
4659 fi
4660 ac_test_CXXFLAGS=${CXXFLAGS+set}
4661 ac_save_CXXFLAGS=$CXXFLAGS
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4663 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4664 if ${ac_cv_prog_cxx_g+:} false; then :
4665   $as_echo_n "(cached) " >&6
4666 else
4667   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4668    ac_cxx_werror_flag=yes
4669    ac_cv_prog_cxx_g=no
4670    CXXFLAGS="-g"
4671    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_cxx_try_compile "$LINENO"; then :
4683   ac_cv_prog_cxx_g=yes
4684 else
4685   CXXFLAGS=""
4686       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h.  */
4688
4689 int
4690 main ()
4691 {
4692
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 if ac_fn_cxx_try_compile "$LINENO"; then :
4698
4699 else
4700   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4701          CXXFLAGS="-g"
4702          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h.  */
4704
4705 int
4706 main ()
4707 {
4708
4709   ;
4710   return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_cxx_try_compile "$LINENO"; then :
4714   ac_cv_prog_cxx_g=yes
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 fi
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4724 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4725 if test "$ac_test_CXXFLAGS" = set; then
4726   CXXFLAGS=$ac_save_CXXFLAGS
4727 elif test $ac_cv_prog_cxx_g = yes; then
4728   if test "$GXX" = yes; then
4729     CXXFLAGS="-g -O2"
4730   else
4731     CXXFLAGS="-g"
4732   fi
4733 else
4734   if test "$GXX" = yes; then
4735     CXXFLAGS="-O2"
4736   else
4737     CXXFLAGS=
4738   fi
4739 fi
4740 ac_ext=c
4741 ac_cpp='$CPP $CPPFLAGS'
4742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745
4746 depcc="$CXX"  am_compiler_list=
4747
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4749 $as_echo_n "checking dependency style of $depcc... " >&6; }
4750 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4751   $as_echo_n "(cached) " >&6
4752 else
4753   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4754   # We make a subdir and do the tests there.  Otherwise we can end up
4755   # making bogus files that we don't know about and never remove.  For
4756   # instance it was reported that on HP-UX the gcc test will end up
4757   # making a dummy file named 'D' -- because '-MD' means "put the output
4758   # in D".
4759   rm -rf conftest.dir
4760   mkdir conftest.dir
4761   # Copy depcomp to subdir because otherwise we won't find it if we're
4762   # using a relative directory.
4763   cp "$am_depcomp" conftest.dir
4764   cd conftest.dir
4765   # We will build objects and dependencies in a subdirectory because
4766   # it helps to detect inapplicable dependency modes.  For instance
4767   # both Tru64's cc and ICC support -MD to output dependencies as a
4768   # side effect of compilation, but ICC will put the dependencies in
4769   # the current directory while Tru64 will put them in the object
4770   # directory.
4771   mkdir sub
4772
4773   am_cv_CXX_dependencies_compiler_type=none
4774   if test "$am_compiler_list" = ""; then
4775      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4776   fi
4777   am__universal=false
4778   case " $depcc " in #(
4779      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4780      esac
4781
4782   for depmode in $am_compiler_list; do
4783     # Setup a source with many dependencies, because some compilers
4784     # like to wrap large dependency lists on column 80 (with \), and
4785     # we should not choose a depcomp mode which is confused by this.
4786     #
4787     # We need to recreate these files for each test, as the compiler may
4788     # overwrite some of them when testing with obscure command lines.
4789     # This happens at least with the AIX C compiler.
4790     : > sub/conftest.c
4791     for i in 1 2 3 4 5 6; do
4792       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4793       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4794       # Solaris 10 /bin/sh.
4795       echo '/* dummy */' > sub/conftst$i.h
4796     done
4797     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4798
4799     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4800     # mode.  It turns out that the SunPro C++ compiler does not properly
4801     # handle '-M -o', and we need to detect this.  Also, some Intel
4802     # versions had trouble with output in subdirs.
4803     am__obj=sub/conftest.${OBJEXT-o}
4804     am__minus_obj="-o $am__obj"
4805     case $depmode in
4806     gcc)
4807       # This depmode causes a compiler race in universal mode.
4808       test "$am__universal" = false || continue
4809       ;;
4810     nosideeffect)
4811       # After this tag, mechanisms are not by side-effect, so they'll
4812       # only be used when explicitly requested.
4813       if test "x$enable_dependency_tracking" = xyes; then
4814         continue
4815       else
4816         break
4817       fi
4818       ;;
4819     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4820       # This compiler won't grok '-c -o', but also, the minuso test has
4821       # not run yet.  These depmodes are late enough in the game, and
4822       # so weak that their functioning should not be impacted.
4823       am__obj=conftest.${OBJEXT-o}
4824       am__minus_obj=
4825       ;;
4826     none) break ;;
4827     esac
4828     if depmode=$depmode \
4829        source=sub/conftest.c object=$am__obj \
4830        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4831        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4832          >/dev/null 2>conftest.err &&
4833        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4834        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4835        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4836        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4837       # icc doesn't choke on unknown options, it will just issue warnings
4838       # or remarks (even with -Werror).  So we grep stderr for any message
4839       # that says an option was ignored or not supported.
4840       # When given -MP, icc 7.0 and 7.1 complain thusly:
4841       #   icc: Command line warning: ignoring option '-M'; no argument required
4842       # The diagnosis changed in icc 8.0:
4843       #   icc: Command line remark: option '-MP' not supported
4844       if (grep 'ignoring option' conftest.err ||
4845           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4846         am_cv_CXX_dependencies_compiler_type=$depmode
4847         break
4848       fi
4849     fi
4850   done
4851
4852   cd ..
4853   rm -rf conftest.dir
4854 else
4855   am_cv_CXX_dependencies_compiler_type=none
4856 fi
4857
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4860 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4861 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4862
4863  if
4864   test "x$enable_dependency_tracking" != xno \
4865   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4866   am__fastdepCXX_TRUE=
4867   am__fastdepCXX_FALSE='#'
4868 else
4869   am__fastdepCXX_TRUE='#'
4870   am__fastdepCXX_FALSE=
4871 fi
4872
4873
4874 CFLAGS=$save_CFLAGS
4875
4876
4877
4878
4879
4880 # By default we simply use the C compiler to build assembly code.
4881
4882 test "${CCAS+set}" = set || CCAS=$CC
4883 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4884
4885
4886
4887 depcc="$CCAS"   am_compiler_list=
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4890 $as_echo_n "checking dependency style of $depcc... " >&6; }
4891 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4895   # We make a subdir and do the tests there.  Otherwise we can end up
4896   # making bogus files that we don't know about and never remove.  For
4897   # instance it was reported that on HP-UX the gcc test will end up
4898   # making a dummy file named 'D' -- because '-MD' means "put the output
4899   # in D".
4900   rm -rf conftest.dir
4901   mkdir conftest.dir
4902   # Copy depcomp to subdir because otherwise we won't find it if we're
4903   # using a relative directory.
4904   cp "$am_depcomp" conftest.dir
4905   cd conftest.dir
4906   # We will build objects and dependencies in a subdirectory because
4907   # it helps to detect inapplicable dependency modes.  For instance
4908   # both Tru64's cc and ICC support -MD to output dependencies as a
4909   # side effect of compilation, but ICC will put the dependencies in
4910   # the current directory while Tru64 will put them in the object
4911   # directory.
4912   mkdir sub
4913
4914   am_cv_CCAS_dependencies_compiler_type=none
4915   if test "$am_compiler_list" = ""; then
4916      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4917   fi
4918   am__universal=false
4919
4920
4921   for depmode in $am_compiler_list; do
4922     # Setup a source with many dependencies, because some compilers
4923     # like to wrap large dependency lists on column 80 (with \), and
4924     # we should not choose a depcomp mode which is confused by this.
4925     #
4926     # We need to recreate these files for each test, as the compiler may
4927     # overwrite some of them when testing with obscure command lines.
4928     # This happens at least with the AIX C compiler.
4929     : > sub/conftest.c
4930     for i in 1 2 3 4 5 6; do
4931       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4932       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4933       # Solaris 10 /bin/sh.
4934       echo '/* dummy */' > sub/conftst$i.h
4935     done
4936     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4937
4938     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4939     # mode.  It turns out that the SunPro C++ compiler does not properly
4940     # handle '-M -o', and we need to detect this.  Also, some Intel
4941     # versions had trouble with output in subdirs.
4942     am__obj=sub/conftest.${OBJEXT-o}
4943     am__minus_obj="-o $am__obj"
4944     case $depmode in
4945     gcc)
4946       # This depmode causes a compiler race in universal mode.
4947       test "$am__universal" = false || continue
4948       ;;
4949     nosideeffect)
4950       # After this tag, mechanisms are not by side-effect, so they'll
4951       # only be used when explicitly requested.
4952       if test "x$enable_dependency_tracking" = xyes; then
4953         continue
4954       else
4955         break
4956       fi
4957       ;;
4958     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4959       # This compiler won't grok '-c -o', but also, the minuso test has
4960       # not run yet.  These depmodes are late enough in the game, and
4961       # so weak that their functioning should not be impacted.
4962       am__obj=conftest.${OBJEXT-o}
4963       am__minus_obj=
4964       ;;
4965     none) break ;;
4966     esac
4967     if depmode=$depmode \
4968        source=sub/conftest.c object=$am__obj \
4969        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4970        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4971          >/dev/null 2>conftest.err &&
4972        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4973        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4974        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4975        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4976       # icc doesn't choke on unknown options, it will just issue warnings
4977       # or remarks (even with -Werror).  So we grep stderr for any message
4978       # that says an option was ignored or not supported.
4979       # When given -MP, icc 7.0 and 7.1 complain thusly:
4980       #   icc: Command line warning: ignoring option '-M'; no argument required
4981       # The diagnosis changed in icc 8.0:
4982       #   icc: Command line remark: option '-MP' not supported
4983       if (grep 'ignoring option' conftest.err ||
4984           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4985         am_cv_CCAS_dependencies_compiler_type=$depmode
4986         break
4987       fi
4988     fi
4989   done
4990
4991   cd ..
4992   rm -rf conftest.dir
4993 else
4994   am_cv_CCAS_dependencies_compiler_type=none
4995 fi
4996
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4999 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5000 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5001
5002  if
5003   test "x$enable_dependency_tracking" != xno \
5004   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5005   am__fastdepCCAS_TRUE=
5006   am__fastdepCCAS_FALSE='#'
5007 else
5008   am__fastdepCCAS_TRUE='#'
5009   am__fastdepCCAS_FALSE=
5010 fi
5011
5012
5013
5014 case `pwd` in
5015   *\ * | *\     *)
5016     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5017 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5018 esac
5019
5020
5021
5022 macro_version='2.2.7a'
5023 macro_revision='1.3134'
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037 ltmain="$ac_aux_dir/ltmain.sh"
5038
5039 # Backslashify metacharacters that are still active within
5040 # double-quoted strings.
5041 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5042
5043 # Same as above, but do not quote variable references.
5044 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5045
5046 # Sed substitution to delay expansion of an escaped shell variable in a
5047 # double_quote_subst'ed string.
5048 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5049
5050 # Sed substitution to delay expansion of an escaped single quote.
5051 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5052
5053 # Sed substitution to avoid accidental globbing in evaled expressions
5054 no_glob_subst='s/\*/\\\*/g'
5055
5056 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5057 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5058 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5061 $as_echo_n "checking how to print strings... " >&6; }
5062 # Test print first, because it will be a builtin if present.
5063 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5064    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5065   ECHO='print -r --'
5066 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5067   ECHO='printf %s\n'
5068 else
5069   # Use this function as a fallback that always works.
5070   func_fallback_echo ()
5071   {
5072     eval 'cat <<_LTECHO_EOF
5073 $1
5074 _LTECHO_EOF'
5075   }
5076   ECHO='func_fallback_echo'
5077 fi
5078
5079 # func_echo_all arg...
5080 # Invoke $ECHO with all args, space-separated.
5081 func_echo_all ()
5082 {
5083     $ECHO ""
5084 }
5085
5086 case "$ECHO" in
5087   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5088 $as_echo "printf" >&6; } ;;
5089   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5090 $as_echo "print -r" >&6; } ;;
5091   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5092 $as_echo "cat" >&6; } ;;
5093 esac
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5109 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5110 if ${ac_cv_path_SED+:} false; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5114      for ac_i in 1 2 3 4 5 6 7; do
5115        ac_script="$ac_script$as_nl$ac_script"
5116      done
5117      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5118      { ac_script=; unset ac_script;}
5119      if test -z "$SED"; then
5120   ac_path_SED_found=false
5121   # Loop through the user's path and test for each of PROGNAME-LIST
5122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127     for ac_prog in sed gsed; do
5128     for ac_exec_ext in '' $ac_executable_extensions; do
5129       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5130       as_fn_executable_p "$ac_path_SED" || continue
5131 # Check for GNU ac_path_SED and select it if it is found.
5132   # Check for GNU $ac_path_SED
5133 case `"$ac_path_SED" --version 2>&1` in
5134 *GNU*)
5135   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5136 *)
5137   ac_count=0
5138   $as_echo_n 0123456789 >"conftest.in"
5139   while :
5140   do
5141     cat "conftest.in" "conftest.in" >"conftest.tmp"
5142     mv "conftest.tmp" "conftest.in"
5143     cp "conftest.in" "conftest.nl"
5144     $as_echo '' >> "conftest.nl"
5145     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5146     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5147     as_fn_arith $ac_count + 1 && ac_count=$as_val
5148     if test $ac_count -gt ${ac_path_SED_max-0}; then
5149       # Best one so far, save it but keep looking for a better one
5150       ac_cv_path_SED="$ac_path_SED"
5151       ac_path_SED_max=$ac_count
5152     fi
5153     # 10*(2^10) chars as input seems more than enough
5154     test $ac_count -gt 10 && break
5155   done
5156   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5157 esac
5158
5159       $ac_path_SED_found && break 3
5160     done
5161   done
5162   done
5163 IFS=$as_save_IFS
5164   if test -z "$ac_cv_path_SED"; then
5165     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5166   fi
5167 else
5168   ac_cv_path_SED=$SED
5169 fi
5170
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5173 $as_echo "$ac_cv_path_SED" >&6; }
5174  SED="$ac_cv_path_SED"
5175   rm -f conftest.sed
5176
5177 test -z "$SED" && SED=sed
5178 Xsed="$SED -e 1s/^X//"
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5191 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5192 if ${ac_cv_path_GREP+:} false; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195   if test -z "$GREP"; then
5196   ac_path_GREP_found=false
5197   # Loop through the user's path and test for each of PROGNAME-LIST
5198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203     for ac_prog in grep ggrep; do
5204     for ac_exec_ext in '' $ac_executable_extensions; do
5205       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5206       as_fn_executable_p "$ac_path_GREP" || continue
5207 # Check for GNU ac_path_GREP and select it if it is found.
5208   # Check for GNU $ac_path_GREP
5209 case `"$ac_path_GREP" --version 2>&1` in
5210 *GNU*)
5211   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5212 *)
5213   ac_count=0
5214   $as_echo_n 0123456789 >"conftest.in"
5215   while :
5216   do
5217     cat "conftest.in" "conftest.in" >"conftest.tmp"
5218     mv "conftest.tmp" "conftest.in"
5219     cp "conftest.in" "conftest.nl"
5220     $as_echo 'GREP' >> "conftest.nl"
5221     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5222     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5223     as_fn_arith $ac_count + 1 && ac_count=$as_val
5224     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5225       # Best one so far, save it but keep looking for a better one
5226       ac_cv_path_GREP="$ac_path_GREP"
5227       ac_path_GREP_max=$ac_count
5228     fi
5229     # 10*(2^10) chars as input seems more than enough
5230     test $ac_count -gt 10 && break
5231   done
5232   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5233 esac
5234
5235       $ac_path_GREP_found && break 3
5236     done
5237   done
5238   done
5239 IFS=$as_save_IFS
5240   if test -z "$ac_cv_path_GREP"; then
5241     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5242   fi
5243 else
5244   ac_cv_path_GREP=$GREP
5245 fi
5246
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5249 $as_echo "$ac_cv_path_GREP" >&6; }
5250  GREP="$ac_cv_path_GREP"
5251
5252
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5254 $as_echo_n "checking for egrep... " >&6; }
5255 if ${ac_cv_path_EGREP+:} false; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5259    then ac_cv_path_EGREP="$GREP -E"
5260    else
5261      if test -z "$EGREP"; then
5262   ac_path_EGREP_found=false
5263   # Loop through the user's path and test for each of PROGNAME-LIST
5264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5266 do
5267   IFS=$as_save_IFS
5268   test -z "$as_dir" && as_dir=.
5269     for ac_prog in egrep; do
5270     for ac_exec_ext in '' $ac_executable_extensions; do
5271       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5272       as_fn_executable_p "$ac_path_EGREP" || continue
5273 # Check for GNU ac_path_EGREP and select it if it is found.
5274   # Check for GNU $ac_path_EGREP
5275 case `"$ac_path_EGREP" --version 2>&1` in
5276 *GNU*)
5277   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5278 *)
5279   ac_count=0
5280   $as_echo_n 0123456789 >"conftest.in"
5281   while :
5282   do
5283     cat "conftest.in" "conftest.in" >"conftest.tmp"
5284     mv "conftest.tmp" "conftest.in"
5285     cp "conftest.in" "conftest.nl"
5286     $as_echo 'EGREP' >> "conftest.nl"
5287     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5288     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5289     as_fn_arith $ac_count + 1 && ac_count=$as_val
5290     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5291       # Best one so far, save it but keep looking for a better one
5292       ac_cv_path_EGREP="$ac_path_EGREP"
5293       ac_path_EGREP_max=$ac_count
5294     fi
5295     # 10*(2^10) chars as input seems more than enough
5296     test $ac_count -gt 10 && break
5297   done
5298   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5299 esac
5300
5301       $ac_path_EGREP_found && break 3
5302     done
5303   done
5304   done
5305 IFS=$as_save_IFS
5306   if test -z "$ac_cv_path_EGREP"; then
5307     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5308   fi
5309 else
5310   ac_cv_path_EGREP=$EGREP
5311 fi
5312
5313    fi
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5316 $as_echo "$ac_cv_path_EGREP" >&6; }
5317  EGREP="$ac_cv_path_EGREP"
5318
5319
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5321 $as_echo_n "checking for fgrep... " >&6; }
5322 if ${ac_cv_path_FGREP+:} false; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5326    then ac_cv_path_FGREP="$GREP -F"
5327    else
5328      if test -z "$FGREP"; then
5329   ac_path_FGREP_found=false
5330   # Loop through the user's path and test for each of PROGNAME-LIST
5331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5333 do
5334   IFS=$as_save_IFS
5335   test -z "$as_dir" && as_dir=.
5336     for ac_prog in fgrep; do
5337     for ac_exec_ext in '' $ac_executable_extensions; do
5338       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5339       as_fn_executable_p "$ac_path_FGREP" || continue
5340 # Check for GNU ac_path_FGREP and select it if it is found.
5341   # Check for GNU $ac_path_FGREP
5342 case `"$ac_path_FGREP" --version 2>&1` in
5343 *GNU*)
5344   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5345 *)
5346   ac_count=0
5347   $as_echo_n 0123456789 >"conftest.in"
5348   while :
5349   do
5350     cat "conftest.in" "conftest.in" >"conftest.tmp"
5351     mv "conftest.tmp" "conftest.in"
5352     cp "conftest.in" "conftest.nl"
5353     $as_echo 'FGREP' >> "conftest.nl"
5354     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5355     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5356     as_fn_arith $ac_count + 1 && ac_count=$as_val
5357     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5358       # Best one so far, save it but keep looking for a better one
5359       ac_cv_path_FGREP="$ac_path_FGREP"
5360       ac_path_FGREP_max=$ac_count
5361     fi
5362     # 10*(2^10) chars as input seems more than enough
5363     test $ac_count -gt 10 && break
5364   done
5365   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5366 esac
5367
5368       $ac_path_FGREP_found && break 3
5369     done
5370   done
5371   done
5372 IFS=$as_save_IFS
5373   if test -z "$ac_cv_path_FGREP"; then
5374     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5375   fi
5376 else
5377   ac_cv_path_FGREP=$FGREP
5378 fi
5379
5380    fi
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5383 $as_echo "$ac_cv_path_FGREP" >&6; }
5384  FGREP="$ac_cv_path_FGREP"
5385
5386
5387 test -z "$GREP" && GREP=grep
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407 # Check whether --with-gnu-ld was given.
5408 if test "${with_gnu_ld+set}" = set; then :
5409   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5410 else
5411   with_gnu_ld=no
5412 fi
5413
5414 ac_prog=ld
5415 if test "$GCC" = yes; then
5416   # Check if gcc -print-prog-name=ld gives a path.
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5418 $as_echo_n "checking for ld used by $CC... " >&6; }
5419   case $host in
5420   *-*-mingw*)
5421     # gcc leaves a trailing carriage return which upsets mingw
5422     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5423   *)
5424     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5425   esac
5426   case $ac_prog in
5427     # Accept absolute paths.
5428     [\\/]* | ?:[\\/]*)
5429       re_direlt='/[^/][^/]*/\.\./'
5430       # Canonicalize the pathname of ld
5431       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5432       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5433         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5434       done
5435       test -z "$LD" && LD="$ac_prog"
5436       ;;
5437   "")
5438     # If it fails, then pretend we aren't using GCC.
5439     ac_prog=ld
5440     ;;
5441   *)
5442     # If it is relative, then search for the first ld in PATH.
5443     with_gnu_ld=unknown
5444     ;;
5445   esac
5446 elif test "$with_gnu_ld" = yes; then
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5448 $as_echo_n "checking for GNU ld... " >&6; }
5449 else
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5451 $as_echo_n "checking for non-GNU ld... " >&6; }
5452 fi
5453 if ${lt_cv_path_LD+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   if test -z "$LD"; then
5457   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5458   for ac_dir in $PATH; do
5459     IFS="$lt_save_ifs"
5460     test -z "$ac_dir" && ac_dir=.
5461     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5462       lt_cv_path_LD="$ac_dir/$ac_prog"
5463       # Check to see if the program is GNU ld.  I'd rather use --version,
5464       # but apparently some variants of GNU ld only accept -v.
5465       # Break only if it was the GNU/non-GNU ld that we prefer.
5466       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5467       *GNU* | *'with BFD'*)
5468         test "$with_gnu_ld" != no && break
5469         ;;
5470       *)
5471         test "$with_gnu_ld" != yes && break
5472         ;;
5473       esac
5474     fi
5475   done
5476   IFS="$lt_save_ifs"
5477 else
5478   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5479 fi
5480 fi
5481
5482 LD="$lt_cv_path_LD"
5483 if test -n "$LD"; then
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5485 $as_echo "$LD" >&6; }
5486 else
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5490 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5493 if ${lt_cv_prog_gnu_ld+:} false; then :
5494   $as_echo_n "(cached) " >&6
5495 else
5496   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5497 case `$LD -v 2>&1 </dev/null` in
5498 *GNU* | *'with BFD'*)
5499   lt_cv_prog_gnu_ld=yes
5500   ;;
5501 *)
5502   lt_cv_prog_gnu_ld=no
5503   ;;
5504 esac
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5507 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5508 with_gnu_ld=$lt_cv_prog_gnu_ld
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5519 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5520 if ${lt_cv_path_NM+:} false; then :
5521   $as_echo_n "(cached) " >&6
5522 else
5523   if test -n "$NM"; then
5524   # Let the user override the test.
5525   lt_cv_path_NM="$NM"
5526 else
5527   lt_nm_to_check="${ac_tool_prefix}nm"
5528   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5529     lt_nm_to_check="$lt_nm_to_check nm"
5530   fi
5531   for lt_tmp_nm in $lt_nm_to_check; do
5532     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5533     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5534       IFS="$lt_save_ifs"
5535       test -z "$ac_dir" && ac_dir=.
5536       tmp_nm="$ac_dir/$lt_tmp_nm"
5537       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5538         # Check to see if the nm accepts a BSD-compat flag.
5539         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5540         #   nm: unknown option "B" ignored
5541         # Tru64's nm complains that /dev/null is an invalid object file
5542         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5543         */dev/null* | *'Invalid file or object type'*)
5544           lt_cv_path_NM="$tmp_nm -B"
5545           break
5546           ;;
5547         *)
5548           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5549           */dev/null*)
5550             lt_cv_path_NM="$tmp_nm -p"
5551             break
5552             ;;
5553           *)
5554             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5555             continue # so that we can try to find one that supports BSD flags
5556             ;;
5557           esac
5558           ;;
5559         esac
5560       fi
5561     done
5562     IFS="$lt_save_ifs"
5563   done
5564   : ${lt_cv_path_NM=no}
5565 fi
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5568 $as_echo "$lt_cv_path_NM" >&6; }
5569 if test "$lt_cv_path_NM" != "no"; then
5570   NM="$lt_cv_path_NM"
5571 else
5572   # Didn't find any BSD compatible name lister, look for dumpbin.
5573   if test -n "$DUMPBIN"; then :
5574     # Let the user override the test.
5575   else
5576     if test -n "$ac_tool_prefix"; then
5577   for ac_prog in dumpbin "link -dump"
5578   do
5579     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_DUMPBIN+:} false; then :
5584   $as_echo_n "(cached) " >&6
5585 else
5586   if test -n "$DUMPBIN"; then
5587   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594     for ac_exec_ext in '' $ac_executable_extensions; do
5595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601   done
5602 IFS=$as_save_IFS
5603
5604 fi
5605 fi
5606 DUMPBIN=$ac_cv_prog_DUMPBIN
5607 if test -n "$DUMPBIN"; then
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5609 $as_echo "$DUMPBIN" >&6; }
5610 else
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614
5615
5616     test -n "$DUMPBIN" && break
5617   done
5618 fi
5619 if test -z "$DUMPBIN"; then
5620   ac_ct_DUMPBIN=$DUMPBIN
5621   for ac_prog in dumpbin "link -dump"
5622 do
5623   # Extract the first word of "$ac_prog", so it can be a program name with args.
5624 set dummy $ac_prog; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630   if test -n "$ac_ct_DUMPBIN"; then
5631   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638     for ac_exec_ext in '' $ac_executable_extensions; do
5639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642     break 2
5643   fi
5644 done
5645   done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5651 if test -n "$ac_ct_DUMPBIN"; then
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5653 $as_echo "$ac_ct_DUMPBIN" >&6; }
5654 else
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658
5659
5660   test -n "$ac_ct_DUMPBIN" && break
5661 done
5662
5663   if test "x$ac_ct_DUMPBIN" = x; then
5664     DUMPBIN=":"
5665   else
5666     case $cross_compiling:$ac_tool_warned in
5667 yes:)
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670 ac_tool_warned=yes ;;
5671 esac
5672     DUMPBIN=$ac_ct_DUMPBIN
5673   fi
5674 fi
5675
5676     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5677     *COFF*)
5678       DUMPBIN="$DUMPBIN -symbols"
5679       ;;
5680     *)
5681       DUMPBIN=:
5682       ;;
5683     esac
5684   fi
5685
5686   if test "$DUMPBIN" != ":"; then
5687     NM="$DUMPBIN"
5688   fi
5689 fi
5690 test -z "$NM" && NM=nm
5691
5692
5693
5694
5695
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5698 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5699 if ${lt_cv_nm_interface+:} false; then :
5700   $as_echo_n "(cached) " >&6
5701 else
5702   lt_cv_nm_interface="BSD nm"
5703   echo "int some_variable = 0;" > conftest.$ac_ext
5704   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5705   (eval "$ac_compile" 2>conftest.err)
5706   cat conftest.err >&5
5707   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5708   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5709   cat conftest.err >&5
5710   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5711   cat conftest.out >&5
5712   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5713     lt_cv_nm_interface="MS dumpbin"
5714   fi
5715   rm -f conftest*
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5718 $as_echo "$lt_cv_nm_interface" >&6; }
5719
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5721 $as_echo_n "checking whether ln -s works... " >&6; }
5722 LN_S=$as_ln_s
5723 if test "$LN_S" = "ln -s"; then
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725 $as_echo "yes" >&6; }
5726 else
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5728 $as_echo "no, using $LN_S" >&6; }
5729 fi
5730
5731 # find the maximum length of command line arguments
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5733 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5734 if ${lt_cv_sys_max_cmd_len+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737     i=0
5738   teststring="ABCD"
5739
5740   case $build_os in
5741   msdosdjgpp*)
5742     # On DJGPP, this test can blow up pretty badly due to problems in libc
5743     # (any single argument exceeding 2000 bytes causes a buffer overrun
5744     # during glob expansion).  Even if it were fixed, the result of this
5745     # check would be larger than it should be.
5746     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5747     ;;
5748
5749   gnu*)
5750     # Under GNU Hurd, this test is not required because there is
5751     # no limit to the length of command line arguments.
5752     # Libtool will interpret -1 as no limit whatsoever
5753     lt_cv_sys_max_cmd_len=-1;
5754     ;;
5755
5756   cygwin* | mingw* | cegcc*)
5757     # On Win9x/ME, this test blows up -- it succeeds, but takes
5758     # about 5 minutes as the teststring grows exponentially.
5759     # Worse, since 9x/ME are not pre-emptively multitasking,
5760     # you end up with a "frozen" computer, even though with patience
5761     # the test eventually succeeds (with a max line length of 256k).
5762     # Instead, let's just punt: use the minimum linelength reported by
5763     # all of the supported platforms: 8192 (on NT/2K/XP).
5764     lt_cv_sys_max_cmd_len=8192;
5765     ;;
5766
5767   mint*)
5768     # On MiNT this can take a long time and run out of memory.
5769     lt_cv_sys_max_cmd_len=8192;
5770     ;;
5771
5772   amigaos*)
5773     # On AmigaOS with pdksh, this test takes hours, literally.
5774     # So we just punt and use a minimum line length of 8192.
5775     lt_cv_sys_max_cmd_len=8192;
5776     ;;
5777
5778   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5779     # This has been around since 386BSD, at least.  Likely further.
5780     if test -x /sbin/sysctl; then
5781       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5782     elif test -x /usr/sbin/sysctl; then
5783       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5784     else
5785       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5786     fi
5787     # And add a safety zone
5788     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5789     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5790     ;;
5791
5792   interix*)
5793     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5794     lt_cv_sys_max_cmd_len=196608
5795     ;;
5796
5797   osf*)
5798     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5799     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5800     # nice to cause kernel panics so lets avoid the loop below.
5801     # First set a reasonable default.
5802     lt_cv_sys_max_cmd_len=16384
5803     #
5804     if test -x /sbin/sysconfig; then
5805       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5806         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5807       esac
5808     fi
5809     ;;
5810   sco3.2v5*)
5811     lt_cv_sys_max_cmd_len=102400
5812     ;;
5813   sysv5* | sco5v6* | sysv4.2uw2*)
5814     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5815     if test -n "$kargmax"; then
5816       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5817     else
5818       lt_cv_sys_max_cmd_len=32768
5819     fi
5820     ;;
5821   *)
5822     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5823     if test -n "$lt_cv_sys_max_cmd_len"; then
5824       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5825       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5826     else
5827       # Make teststring a little bigger before we do anything with it.
5828       # a 1K string should be a reasonable start.
5829       for i in 1 2 3 4 5 6 7 8 ; do
5830         teststring=$teststring$teststring
5831       done
5832       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5833       # If test is not a shell built-in, we'll probably end up computing a
5834       # maximum length that is only half of the actual maximum length, but
5835       # we can't tell.
5836       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5837                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5838               test $i != 17 # 1/2 MB should be enough
5839       do
5840         i=`expr $i + 1`
5841         teststring=$teststring$teststring
5842       done
5843       # Only check the string length outside the loop.
5844       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5845       teststring=
5846       # Add a significant safety factor because C++ compilers can tack on
5847       # massive amounts of additional arguments before passing them to the
5848       # linker.  It appears as though 1/2 is a usable value.
5849       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5850     fi
5851     ;;
5852   esac
5853
5854 fi
5855
5856 if test -n $lt_cv_sys_max_cmd_len ; then
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5858 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5859 else
5860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5861 $as_echo "none" >&6; }
5862 fi
5863 max_cmd_len=$lt_cv_sys_max_cmd_len
5864
5865
5866
5867
5868
5869
5870 : ${CP="cp -f"}
5871 : ${MV="mv -f"}
5872 : ${RM="rm -f"}
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5875 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5876 # Try some XSI features
5877 xsi_shell=no
5878 ( _lt_dummy="a/b/c"
5879   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5880       = c,a/b,, \
5881     && eval 'test $(( 1 + 1 )) -eq 2 \
5882     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5883   && xsi_shell=yes
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5885 $as_echo "$xsi_shell" >&6; }
5886
5887
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5889 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5890 lt_shell_append=no
5891 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5892     >/dev/null 2>&1 \
5893   && lt_shell_append=yes
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5895 $as_echo "$lt_shell_append" >&6; }
5896
5897
5898 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5899   lt_unset=unset
5900 else
5901   lt_unset=false
5902 fi
5903
5904
5905
5906
5907
5908 # test EBCDIC or ASCII
5909 case `echo X|tr X '\101'` in
5910  A) # ASCII based system
5911     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5912   lt_SP2NL='tr \040 \012'
5913   lt_NL2SP='tr \015\012 \040\040'
5914   ;;
5915  *) # EBCDIC based system
5916   lt_SP2NL='tr \100 \n'
5917   lt_NL2SP='tr \r\n \100\100'
5918   ;;
5919 esac
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5930 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5931 if ${lt_cv_ld_reload_flag+:} false; then :
5932   $as_echo_n "(cached) " >&6
5933 else
5934   lt_cv_ld_reload_flag='-r'
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5937 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5938 reload_flag=$lt_cv_ld_reload_flag
5939 case $reload_flag in
5940 "" | " "*) ;;
5941 *) reload_flag=" $reload_flag" ;;
5942 esac
5943 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5944 case $host_os in
5945   darwin*)
5946     if test "$GCC" = yes; then
5947       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5948     else
5949       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5950     fi
5951     ;;
5952 esac
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962 if test -n "$ac_tool_prefix"; then
5963   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5964 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if ${ac_cv_prog_OBJDUMP+:} false; then :
5968   $as_echo_n "(cached) " >&6
5969 else
5970   if test -n "$OBJDUMP"; then
5971   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978     for ac_exec_ext in '' $ac_executable_extensions; do
5979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985   done
5986 IFS=$as_save_IFS
5987
5988 fi
5989 fi
5990 OBJDUMP=$ac_cv_prog_OBJDUMP
5991 if test -n "$OBJDUMP"; then
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5993 $as_echo "$OBJDUMP" >&6; }
5994 else
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998
5999
6000 fi
6001 if test -z "$ac_cv_prog_OBJDUMP"; then
6002   ac_ct_OBJDUMP=$OBJDUMP
6003   # Extract the first word of "objdump", so it can be a program name with args.
6004 set dummy objdump; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   if test -n "$ac_ct_OBJDUMP"; then
6011   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018     for ac_exec_ext in '' $ac_executable_extensions; do
6019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025   done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6031 if test -n "$ac_ct_OBJDUMP"; then
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6033 $as_echo "$ac_ct_OBJDUMP" >&6; }
6034 else
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039   if test "x$ac_ct_OBJDUMP" = x; then
6040     OBJDUMP="false"
6041   else
6042     case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048     OBJDUMP=$ac_ct_OBJDUMP
6049   fi
6050 else
6051   OBJDUMP="$ac_cv_prog_OBJDUMP"
6052 fi
6053
6054 test -z "$OBJDUMP" && OBJDUMP=objdump
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6065 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6066 if ${lt_cv_deplibs_check_method+:} false; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   lt_cv_file_magic_cmd='$MAGIC_CMD'
6070 lt_cv_file_magic_test_file=
6071 lt_cv_deplibs_check_method='unknown'
6072 # Need to set the preceding variable on all platforms that support
6073 # interlibrary dependencies.
6074 # 'none' -- dependencies not supported.
6075 # `unknown' -- same as none, but documents that we really don't know.
6076 # 'pass_all' -- all dependencies passed with no checks.
6077 # 'test_compile' -- check by making test program.
6078 # 'file_magic [[regex]]' -- check by looking for files in library path
6079 # which responds to the $file_magic_cmd with a given extended regex.
6080 # If you have `file' or equivalent on your system and you're not sure
6081 # whether `pass_all' will *always* work, you probably want this one.
6082
6083 case $host_os in
6084 aix[4-9]*)
6085   lt_cv_deplibs_check_method=pass_all
6086   ;;
6087
6088 beos*)
6089   lt_cv_deplibs_check_method=pass_all
6090   ;;
6091
6092 bsdi[45]*)
6093   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6094   lt_cv_file_magic_cmd='/usr/bin/file -L'
6095   lt_cv_file_magic_test_file=/shlib/libc.so
6096   ;;
6097
6098 cygwin*)
6099   # func_win32_libid is a shell function defined in ltmain.sh
6100   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6101   lt_cv_file_magic_cmd='func_win32_libid'
6102   ;;
6103
6104 mingw* | pw32*)
6105   # Base MSYS/MinGW do not provide the 'file' command needed by
6106   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6107   # unless we find 'file', for example because we are cross-compiling.
6108   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6109   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6110     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6111     lt_cv_file_magic_cmd='func_win32_libid'
6112   else
6113     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6114     lt_cv_file_magic_cmd='$OBJDUMP -f'
6115   fi
6116   ;;
6117
6118 cegcc*)
6119   # use the weaker test based on 'objdump'. See mingw*.
6120   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6121   lt_cv_file_magic_cmd='$OBJDUMP -f'
6122   ;;
6123
6124 darwin* | rhapsody*)
6125   lt_cv_deplibs_check_method=pass_all
6126   ;;
6127
6128 freebsd* | dragonfly*)
6129   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6130     case $host_cpu in
6131     i*86 )
6132       # Not sure whether the presence of OpenBSD here was a mistake.
6133       # Let's accept both of them until this is cleared up.
6134       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6135       lt_cv_file_magic_cmd=/usr/bin/file
6136       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6137       ;;
6138     esac
6139   else
6140     lt_cv_deplibs_check_method=pass_all
6141   fi
6142   ;;
6143
6144 gnu*)
6145   lt_cv_deplibs_check_method=pass_all
6146   ;;
6147
6148 haiku*)
6149   lt_cv_deplibs_check_method=pass_all
6150   ;;
6151
6152 hpux10.20* | hpux11*)
6153   lt_cv_file_magic_cmd=/usr/bin/file
6154   case $host_cpu in
6155   ia64*)
6156     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6157     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6158     ;;
6159   hppa*64*)
6160     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]'
6161     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6162     ;;
6163   *)
6164     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6165     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6166     ;;
6167   esac
6168   ;;
6169
6170 interix[3-9]*)
6171   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6172   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6173   ;;
6174
6175 irix5* | irix6* | nonstopux*)
6176   case $LD in
6177   *-32|*"-32 ") libmagic=32-bit;;
6178   *-n32|*"-n32 ") libmagic=N32;;
6179   *-64|*"-64 ") libmagic=64-bit;;
6180   *) libmagic=never-match;;
6181   esac
6182   lt_cv_deplibs_check_method=pass_all
6183   ;;
6184
6185 # This must be Linux ELF.
6186 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6187   lt_cv_deplibs_check_method=pass_all
6188   ;;
6189
6190 netbsd*)
6191   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6192     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6193   else
6194     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6195   fi
6196   ;;
6197
6198 newos6*)
6199   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6200   lt_cv_file_magic_cmd=/usr/bin/file
6201   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6202   ;;
6203
6204 *nto* | *qnx*)
6205   lt_cv_deplibs_check_method=pass_all
6206   ;;
6207
6208 openbsd*)
6209   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6210     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6211   else
6212     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6213   fi
6214   ;;
6215
6216 osf3* | osf4* | osf5*)
6217   lt_cv_deplibs_check_method=pass_all
6218   ;;
6219
6220 rdos*)
6221   lt_cv_deplibs_check_method=pass_all
6222   ;;
6223
6224 solaris*)
6225   lt_cv_deplibs_check_method=pass_all
6226   ;;
6227
6228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6229   lt_cv_deplibs_check_method=pass_all
6230   ;;
6231
6232 sysv4 | sysv4.3*)
6233   case $host_vendor in
6234   motorola)
6235     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]'
6236     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6237     ;;
6238   ncr)
6239     lt_cv_deplibs_check_method=pass_all
6240     ;;
6241   sequent)
6242     lt_cv_file_magic_cmd='/bin/file'
6243     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6244     ;;
6245   sni)
6246     lt_cv_file_magic_cmd='/bin/file'
6247     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6248     lt_cv_file_magic_test_file=/lib/libc.so
6249     ;;
6250   siemens)
6251     lt_cv_deplibs_check_method=pass_all
6252     ;;
6253   pc)
6254     lt_cv_deplibs_check_method=pass_all
6255     ;;
6256   esac
6257   ;;
6258
6259 tpf*)
6260   lt_cv_deplibs_check_method=pass_all
6261   ;;
6262 esac
6263
6264 fi
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6266 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6267 file_magic_cmd=$lt_cv_file_magic_cmd
6268 deplibs_check_method=$lt_cv_deplibs_check_method
6269 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282 if test -n "$ac_tool_prefix"; then
6283   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}ar; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_AR+:} false; then :
6288   $as_echo_n "(cached) " >&6
6289 else
6290   if test -n "$AR"; then
6291   ac_cv_prog_AR="$AR" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298     for ac_exec_ext in '' $ac_executable_extensions; do
6299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300     ac_cv_prog_AR="${ac_tool_prefix}ar"
6301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305   done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 AR=$ac_cv_prog_AR
6311 if test -n "$AR"; then
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6313 $as_echo "$AR" >&6; }
6314 else
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319
6320 fi
6321 if test -z "$ac_cv_prog_AR"; then
6322   ac_ct_AR=$AR
6323   # Extract the first word of "ar", so it can be a program name with args.
6324 set dummy ar; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6328   $as_echo_n "(cached) " >&6
6329 else
6330   if test -n "$ac_ct_AR"; then
6331   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338     for ac_exec_ext in '' $ac_executable_extensions; do
6339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340     ac_cv_prog_ac_ct_AR="ar"
6341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345   done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6351 if test -n "$ac_ct_AR"; then
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6353 $as_echo "$ac_ct_AR" >&6; }
6354 else
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6357 fi
6358
6359   if test "x$ac_ct_AR" = x; then
6360     AR="false"
6361   else
6362     case $cross_compiling:$ac_tool_warned in
6363 yes:)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366 ac_tool_warned=yes ;;
6367 esac
6368     AR=$ac_ct_AR
6369   fi
6370 else
6371   AR="$ac_cv_prog_AR"
6372 fi
6373
6374 test -z "$AR" && AR=ar
6375 test -z "$AR_FLAGS" && AR_FLAGS=cru
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387 if test -n "$ac_tool_prefix"; then
6388   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}strip; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_STRIP+:} false; then :
6393   $as_echo_n "(cached) " >&6
6394 else
6395   if test -n "$STRIP"; then
6396   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403     for ac_exec_ext in '' $ac_executable_extensions; do
6404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410   done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 STRIP=$ac_cv_prog_STRIP
6416 if test -n "$STRIP"; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6418 $as_echo "$STRIP" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 fi
6426 if test -z "$ac_cv_prog_STRIP"; then
6427   ac_ct_STRIP=$STRIP
6428   # Extract the first word of "strip", so it can be a program name with args.
6429 set dummy strip; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   if test -n "$ac_ct_STRIP"; then
6436   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443     for ac_exec_ext in '' $ac_executable_extensions; do
6444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445     ac_cv_prog_ac_ct_STRIP="strip"
6446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450   done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6456 if test -n "$ac_ct_STRIP"; then
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6458 $as_echo "$ac_ct_STRIP" >&6; }
6459 else
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464   if test "x$ac_ct_STRIP" = x; then
6465     STRIP=":"
6466   else
6467     case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473     STRIP=$ac_ct_STRIP
6474   fi
6475 else
6476   STRIP="$ac_cv_prog_STRIP"
6477 fi
6478
6479 test -z "$STRIP" && STRIP=:
6480
6481
6482
6483
6484
6485
6486 if test -n "$ac_tool_prefix"; then
6487   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if ${ac_cv_prog_RANLIB+:} false; then :
6492   $as_echo_n "(cached) " >&6
6493 else
6494   if test -n "$RANLIB"; then
6495   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502     for ac_exec_ext in '' $ac_executable_extensions; do
6503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509   done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 RANLIB=$ac_cv_prog_RANLIB
6515 if test -n "$RANLIB"; then
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6517 $as_echo "$RANLIB" >&6; }
6518 else
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523
6524 fi
6525 if test -z "$ac_cv_prog_RANLIB"; then
6526   ac_ct_RANLIB=$RANLIB
6527   # Extract the first word of "ranlib", so it can be a program name with args.
6528 set dummy ranlib; ac_word=$2
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6532   $as_echo_n "(cached) " >&6
6533 else
6534   if test -n "$ac_ct_RANLIB"; then
6535   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540   IFS=$as_save_IFS
6541   test -z "$as_dir" && as_dir=.
6542     for ac_exec_ext in '' $ac_executable_extensions; do
6543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6544     ac_cv_prog_ac_ct_RANLIB="ranlib"
6545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6546     break 2
6547   fi
6548 done
6549   done
6550 IFS=$as_save_IFS
6551
6552 fi
6553 fi
6554 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6555 if test -n "$ac_ct_RANLIB"; then
6556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6557 $as_echo "$ac_ct_RANLIB" >&6; }
6558 else
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 $as_echo "no" >&6; }
6561 fi
6562
6563   if test "x$ac_ct_RANLIB" = x; then
6564     RANLIB=":"
6565   else
6566     case $cross_compiling:$ac_tool_warned in
6567 yes:)
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6570 ac_tool_warned=yes ;;
6571 esac
6572     RANLIB=$ac_ct_RANLIB
6573   fi
6574 else
6575   RANLIB="$ac_cv_prog_RANLIB"
6576 fi
6577
6578 test -z "$RANLIB" && RANLIB=:
6579
6580
6581
6582
6583
6584
6585 # Determine commands to create old-style static archives.
6586 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6587 old_postinstall_cmds='chmod 644 $oldlib'
6588 old_postuninstall_cmds=
6589
6590 if test -n "$RANLIB"; then
6591   case $host_os in
6592   openbsd*)
6593     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6594     ;;
6595   *)
6596     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6597     ;;
6598   esac
6599   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6600 fi
6601
6602 case $host_os in
6603   darwin*)
6604     lock_old_archive_extraction=yes ;;
6605   *)
6606     lock_old_archive_extraction=no ;;
6607 esac
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 # If no C compiler was specified, use CC.
6648 LTCC=${LTCC-"$CC"}
6649
6650 # If no C compiler flags were specified, use CFLAGS.
6651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6652
6653 # Allow CC to be a program name with arguments.
6654 compiler=$CC
6655
6656
6657 # Check for command to grab the raw symbol name followed by C symbol from nm.
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6659 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6660 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663
6664 # These are sane defaults that work on at least a few old systems.
6665 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6666
6667 # Character class describing NM global symbol codes.
6668 symcode='[BCDEGRST]'
6669
6670 # Regexp to match symbols that can be accessed directly from C.
6671 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6672
6673 # Define system-specific variables.
6674 case $host_os in
6675 aix*)
6676   symcode='[BCDT]'
6677   ;;
6678 cygwin* | mingw* | pw32* | cegcc*)
6679   symcode='[ABCDGISTW]'
6680   ;;
6681 hpux*)
6682   if test "$host_cpu" = ia64; then
6683     symcode='[ABCDEGRST]'
6684   fi
6685   ;;
6686 irix* | nonstopux*)
6687   symcode='[BCDEGRST]'
6688   ;;
6689 osf*)
6690   symcode='[BCDEGQRST]'
6691   ;;
6692 solaris*)
6693   symcode='[BDRT]'
6694   ;;
6695 sco3.2v5*)
6696   symcode='[DT]'
6697   ;;
6698 sysv4.2uw2*)
6699   symcode='[DT]'
6700   ;;
6701 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6702   symcode='[ABDT]'
6703   ;;
6704 sysv4)
6705   symcode='[DFNSTU]'
6706   ;;
6707 esac
6708
6709 # If we're using GNU nm, then use its standard symbol codes.
6710 case `$NM -V 2>&1` in
6711 *GNU* | *'with BFD'*)
6712   symcode='[ABCDGIRSTW]' ;;
6713 esac
6714
6715 # Transform an extracted symbol line into a proper C declaration.
6716 # Some systems (esp. on ia64) link data and code symbols differently,
6717 # so use this general approach.
6718 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6719
6720 # Transform an extracted symbol line into symbol name and symbol address
6721 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6722 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'"
6723
6724 # Handle CRLF in mingw tool chain
6725 opt_cr=
6726 case $build_os in
6727 mingw*)
6728   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6729   ;;
6730 esac
6731
6732 # Try without a prefix underscore, then with it.
6733 for ac_symprfx in "" "_"; do
6734
6735   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6736   symxfrm="\\1 $ac_symprfx\\2 \\2"
6737
6738   # Write the raw and C identifiers.
6739   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6740     # Fake it for dumpbin and say T for any non-static function
6741     # and D for any global variable.
6742     # Also find C++ and __fastcall symbols from MSVC++,
6743     # which start with @ or ?.
6744     lt_cv_sys_global_symbol_pipe="$AWK '"\
6745 "     {last_section=section; section=\$ 3};"\
6746 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6747 "     \$ 0!~/External *\|/{next};"\
6748 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6749 "     {if(hide[section]) next};"\
6750 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6751 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6752 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6753 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6754 "     ' prfx=^$ac_symprfx"
6755   else
6756     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6757   fi
6758
6759   # Check to see that the pipe works correctly.
6760   pipe_works=no
6761
6762   rm -f conftest*
6763   cat > conftest.$ac_ext <<_LT_EOF
6764 #ifdef __cplusplus
6765 extern "C" {
6766 #endif
6767 char nm_test_var;
6768 void nm_test_func(void);
6769 void nm_test_func(void){}
6770 #ifdef __cplusplus
6771 }
6772 #endif
6773 int main(){nm_test_var='a';nm_test_func();return(0);}
6774 _LT_EOF
6775
6776   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777   (eval $ac_compile) 2>&5
6778   ac_status=$?
6779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780   test $ac_status = 0; }; then
6781     # Now try to grab the symbols.
6782     nlist=conftest.nm
6783     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6784   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6785   ac_status=$?
6786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787   test $ac_status = 0; } && test -s "$nlist"; then
6788       # Try sorting and uniquifying the output.
6789       if sort "$nlist" | uniq > "$nlist"T; then
6790         mv -f "$nlist"T "$nlist"
6791       else
6792         rm -f "$nlist"T
6793       fi
6794
6795       # Make sure that we snagged all the symbols we need.
6796       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6797         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6798           cat <<_LT_EOF > conftest.$ac_ext
6799 #ifdef __cplusplus
6800 extern "C" {
6801 #endif
6802
6803 _LT_EOF
6804           # Now generate the symbol file.
6805           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6806
6807           cat <<_LT_EOF >> conftest.$ac_ext
6808
6809 /* The mapping between symbol names and symbols.  */
6810 const struct {
6811   const char *name;
6812   void       *address;
6813 }
6814 lt__PROGRAM__LTX_preloaded_symbols[] =
6815 {
6816   { "@PROGRAM@", (void *) 0 },
6817 _LT_EOF
6818           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6819           cat <<\_LT_EOF >> conftest.$ac_ext
6820   {0, (void *) 0}
6821 };
6822
6823 /* This works around a problem in FreeBSD linker */
6824 #ifdef FREEBSD_WORKAROUND
6825 static const void *lt_preloaded_setup() {
6826   return lt__PROGRAM__LTX_preloaded_symbols;
6827 }
6828 #endif
6829
6830 #ifdef __cplusplus
6831 }
6832 #endif
6833 _LT_EOF
6834           # Now try linking the two files.
6835           mv conftest.$ac_objext conftstm.$ac_objext
6836           lt_save_LIBS="$LIBS"
6837           lt_save_CFLAGS="$CFLAGS"
6838           LIBS="conftstm.$ac_objext"
6839           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6840           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6841   (eval $ac_link) 2>&5
6842   ac_status=$?
6843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6845             pipe_works=yes
6846           fi
6847           LIBS="$lt_save_LIBS"
6848           CFLAGS="$lt_save_CFLAGS"
6849         else
6850           echo "cannot find nm_test_func in $nlist" >&5
6851         fi
6852       else
6853         echo "cannot find nm_test_var in $nlist" >&5
6854       fi
6855     else
6856       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6857     fi
6858   else
6859     echo "$progname: failed program was:" >&5
6860     cat conftest.$ac_ext >&5
6861   fi
6862   rm -rf conftest* conftst*
6863
6864   # Do not use the global_symbol_pipe unless it works.
6865   if test "$pipe_works" = yes; then
6866     break
6867   else
6868     lt_cv_sys_global_symbol_pipe=
6869   fi
6870 done
6871
6872 fi
6873
6874 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6875   lt_cv_sys_global_symbol_to_cdecl=
6876 fi
6877 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6879 $as_echo "failed" >&6; }
6880 else
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6882 $as_echo "ok" >&6; }
6883 fi
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907 # Check whether --enable-libtool-lock was given.
6908 if test "${enable_libtool_lock+set}" = set; then :
6909   enableval=$enable_libtool_lock;
6910 fi
6911
6912 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6913
6914 # Some flags need to be propagated to the compiler or linker for good
6915 # libtool support.
6916 case $host in
6917 ia64-*-hpux*)
6918   # Find out which ABI we are using.
6919   echo 'int i;' > conftest.$ac_ext
6920   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6921   (eval $ac_compile) 2>&5
6922   ac_status=$?
6923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924   test $ac_status = 0; }; then
6925     case `/usr/bin/file conftest.$ac_objext` in
6926       *ELF-32*)
6927         HPUX_IA64_MODE="32"
6928         ;;
6929       *ELF-64*)
6930         HPUX_IA64_MODE="64"
6931         ;;
6932     esac
6933   fi
6934   rm -rf conftest*
6935   ;;
6936 *-*-irix6*)
6937   # Find out which ABI we are using.
6938   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6939   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6940   (eval $ac_compile) 2>&5
6941   ac_status=$?
6942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943   test $ac_status = 0; }; then
6944     if test "$lt_cv_prog_gnu_ld" = yes; then
6945       case `/usr/bin/file conftest.$ac_objext` in
6946         *32-bit*)
6947           LD="${LD-ld} -melf32bsmip"
6948           ;;
6949         *N32*)
6950           LD="${LD-ld} -melf32bmipn32"
6951           ;;
6952         *64-bit*)
6953           LD="${LD-ld} -melf64bmip"
6954         ;;
6955       esac
6956     else
6957       case `/usr/bin/file conftest.$ac_objext` in
6958         *32-bit*)
6959           LD="${LD-ld} -32"
6960           ;;
6961         *N32*)
6962           LD="${LD-ld} -n32"
6963           ;;
6964         *64-bit*)
6965           LD="${LD-ld} -64"
6966           ;;
6967       esac
6968     fi
6969   fi
6970   rm -rf conftest*
6971   ;;
6972
6973 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6974 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6975   # Find out which ABI we are using.
6976   echo 'int i;' > conftest.$ac_ext
6977   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6978   (eval $ac_compile) 2>&5
6979   ac_status=$?
6980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6981   test $ac_status = 0; }; then
6982     case `/usr/bin/file conftest.o` in
6983       *32-bit*)
6984         case $host in
6985           x86_64-*kfreebsd*-gnu)
6986             LD="${LD-ld} -m elf_i386_fbsd"
6987             ;;
6988           x86_64-*linux*)
6989             case `/usr/bin/file conftest.o` in
6990               *x86-64*)
6991                 LD="${LD-ld} -m elf32_x86_64"
6992                 ;;
6993               *)
6994                 LD="${LD-ld} -m elf_i386"
6995                 ;;
6996             esac
6997             ;;
6998           powerpc64le-*linux*)
6999             LD="${LD-ld} -m elf32lppclinux"
7000             ;;
7001           powerpc64-*linux*)
7002             LD="${LD-ld} -m elf32ppclinux"
7003             ;;
7004           s390x-*linux*)
7005             LD="${LD-ld} -m elf_s390"
7006             ;;
7007           sparc64-*linux*)
7008             LD="${LD-ld} -m elf32_sparc"
7009             ;;
7010         esac
7011         ;;
7012       *64-bit*)
7013         case $host in
7014           x86_64-*kfreebsd*-gnu)
7015             LD="${LD-ld} -m elf_x86_64_fbsd"
7016             ;;
7017           x86_64-*linux*)
7018             LD="${LD-ld} -m elf_x86_64"
7019             ;;
7020           powerpcle-*linux*)
7021             LD="${LD-ld} -m elf64lppc"
7022             ;;
7023           powerpc-*linux*)
7024             LD="${LD-ld} -m elf64ppc"
7025             ;;
7026           s390*-*linux*|s390*-*tpf*)
7027             LD="${LD-ld} -m elf64_s390"
7028             ;;
7029           sparc*-*linux*)
7030             LD="${LD-ld} -m elf64_sparc"
7031             ;;
7032         esac
7033         ;;
7034     esac
7035   fi
7036   rm -rf conftest*
7037   ;;
7038
7039 *-*-sco3.2v5*)
7040   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7041   SAVE_CFLAGS="$CFLAGS"
7042   CFLAGS="$CFLAGS -belf"
7043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7044 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7045 if ${lt_cv_cc_needs_belf+:} false; then :
7046   $as_echo_n "(cached) " >&6
7047 else
7048   ac_ext=c
7049 ac_cpp='$CPP $CPPFLAGS'
7050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7053
7054      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h.  */
7056
7057 int
7058 main ()
7059 {
7060
7061   ;
7062   return 0;
7063 }
7064 _ACEOF
7065 if ac_fn_c_try_link "$LINENO"; then :
7066   lt_cv_cc_needs_belf=yes
7067 else
7068   lt_cv_cc_needs_belf=no
7069 fi
7070 rm -f core conftest.err conftest.$ac_objext \
7071     conftest$ac_exeext conftest.$ac_ext
7072      ac_ext=c
7073 ac_cpp='$CPP $CPPFLAGS'
7074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7077
7078 fi
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7080 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7081   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7082     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7083     CFLAGS="$SAVE_CFLAGS"
7084   fi
7085   ;;
7086 sparc*-*solaris*)
7087   # Find out which ABI we are using.
7088   echo 'int i;' > conftest.$ac_ext
7089   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7090   (eval $ac_compile) 2>&5
7091   ac_status=$?
7092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093   test $ac_status = 0; }; then
7094     case `/usr/bin/file conftest.o` in
7095     *64-bit*)
7096       case $lt_cv_prog_gnu_ld in
7097       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7098       *)
7099         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7100           LD="${LD-ld} -64"
7101         fi
7102         ;;
7103       esac
7104       ;;
7105     esac
7106   fi
7107   rm -rf conftest*
7108   ;;
7109 esac
7110
7111 need_locks="$enable_libtool_lock"
7112
7113
7114   case $host_os in
7115     rhapsody* | darwin*)
7116     if test -n "$ac_tool_prefix"; then
7117   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124   if test -n "$DSYMUTIL"; then
7125   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132     for ac_exec_ext in '' $ac_executable_extensions; do
7133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139   done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7145 if test -n "$DSYMUTIL"; then
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7147 $as_echo "$DSYMUTIL" >&6; }
7148 else
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153
7154 fi
7155 if test -z "$ac_cv_prog_DSYMUTIL"; then
7156   ac_ct_DSYMUTIL=$DSYMUTIL
7157   # Extract the first word of "dsymutil", so it can be a program name with args.
7158 set dummy dsymutil; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   if test -n "$ac_ct_DSYMUTIL"; then
7165   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172     for ac_exec_ext in '' $ac_executable_extensions; do
7173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179   done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7185 if test -n "$ac_ct_DSYMUTIL"; then
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7187 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7188 else
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193   if test "x$ac_ct_DSYMUTIL" = x; then
7194     DSYMUTIL=":"
7195   else
7196     case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned=yes ;;
7201 esac
7202     DSYMUTIL=$ac_ct_DSYMUTIL
7203   fi
7204 else
7205   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7206 fi
7207
7208     if test -n "$ac_tool_prefix"; then
7209   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7210 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_NMEDIT+:} false; then :
7214   $as_echo_n "(cached) " >&6
7215 else
7216   if test -n "$NMEDIT"; then
7217   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224     for ac_exec_ext in '' $ac_executable_extensions; do
7225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231   done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 NMEDIT=$ac_cv_prog_NMEDIT
7237 if test -n "$NMEDIT"; then
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7239 $as_echo "$NMEDIT" >&6; }
7240 else
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245
7246 fi
7247 if test -z "$ac_cv_prog_NMEDIT"; then
7248   ac_ct_NMEDIT=$NMEDIT
7249   # Extract the first word of "nmedit", so it can be a program name with args.
7250 set dummy nmedit; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   if test -n "$ac_ct_NMEDIT"; then
7257   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264     for ac_exec_ext in '' $ac_executable_extensions; do
7265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271   done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7277 if test -n "$ac_ct_NMEDIT"; then
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7279 $as_echo "$ac_ct_NMEDIT" >&6; }
7280 else
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285   if test "x$ac_ct_NMEDIT" = x; then
7286     NMEDIT=":"
7287   else
7288     case $cross_compiling:$ac_tool_warned in
7289 yes:)
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7292 ac_tool_warned=yes ;;
7293 esac
7294     NMEDIT=$ac_ct_NMEDIT
7295   fi
7296 else
7297   NMEDIT="$ac_cv_prog_NMEDIT"
7298 fi
7299
7300     if test -n "$ac_tool_prefix"; then
7301   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_LIPO+:} false; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   if test -n "$LIPO"; then
7309   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323   done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 LIPO=$ac_cv_prog_LIPO
7329 if test -n "$LIPO"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7331 $as_echo "$LIPO" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337
7338 fi
7339 if test -z "$ac_cv_prog_LIPO"; then
7340   ac_ct_LIPO=$LIPO
7341   # Extract the first word of "lipo", so it can be a program name with args.
7342 set dummy lipo; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   if test -n "$ac_ct_LIPO"; then
7349   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356     for ac_exec_ext in '' $ac_executable_extensions; do
7357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358     ac_cv_prog_ac_ct_LIPO="lipo"
7359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363   done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7369 if test -n "$ac_ct_LIPO"; then
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7371 $as_echo "$ac_ct_LIPO" >&6; }
7372 else
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377   if test "x$ac_ct_LIPO" = x; then
7378     LIPO=":"
7379   else
7380     case $cross_compiling:$ac_tool_warned in
7381 yes:)
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384 ac_tool_warned=yes ;;
7385 esac
7386     LIPO=$ac_ct_LIPO
7387   fi
7388 else
7389   LIPO="$ac_cv_prog_LIPO"
7390 fi
7391
7392     if test -n "$ac_tool_prefix"; then
7393   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7394 set dummy ${ac_tool_prefix}otool; 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 ${ac_cv_prog_OTOOL+:} false; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   if test -n "$OTOOL"; then
7401   ac_cv_prog_OTOOL="$OTOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
7421 if test -n "$OTOOL"; then
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7423 $as_echo "$OTOOL" >&6; }
7424 else
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 fi
7428
7429
7430 fi
7431 if test -z "$ac_cv_prog_OTOOL"; then
7432   ac_ct_OTOOL=$OTOOL
7433   # Extract the first word of "otool", so it can be a program name with args.
7434 set dummy otool; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   if test -n "$ac_ct_OTOOL"; then
7441   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448     for ac_exec_ext in '' $ac_executable_extensions; do
7449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450     ac_cv_prog_ac_ct_OTOOL="otool"
7451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455   done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7461 if test -n "$ac_ct_OTOOL"; then
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7463 $as_echo "$ac_ct_OTOOL" >&6; }
7464 else
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469   if test "x$ac_ct_OTOOL" = x; then
7470     OTOOL=":"
7471   else
7472     case $cross_compiling:$ac_tool_warned in
7473 yes:)
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7476 ac_tool_warned=yes ;;
7477 esac
7478     OTOOL=$ac_ct_OTOOL
7479   fi
7480 else
7481   OTOOL="$ac_cv_prog_OTOOL"
7482 fi
7483
7484     if test -n "$ac_tool_prefix"; then
7485   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7486 set dummy ${ac_tool_prefix}otool64; 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 ${ac_cv_prog_OTOOL64+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   if test -n "$OTOOL64"; then
7493   ac_cv_prog_OTOOL64="$OTOOL64" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
7513 if test -n "$OTOOL64"; then
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7515 $as_echo "$OTOOL64" >&6; }
7516 else
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521
7522 fi
7523 if test -z "$ac_cv_prog_OTOOL64"; then
7524   ac_ct_OTOOL64=$OTOOL64
7525   # Extract the first word of "otool64", so it can be a program name with args.
7526 set dummy otool64; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7530   $as_echo_n "(cached) " >&6
7531 else
7532   if test -n "$ac_ct_OTOOL64"; then
7533   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540     for ac_exec_ext in '' $ac_executable_extensions; do
7541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542     ac_cv_prog_ac_ct_OTOOL64="otool64"
7543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547   done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7553 if test -n "$ac_ct_OTOOL64"; then
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7555 $as_echo "$ac_ct_OTOOL64" >&6; }
7556 else
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561   if test "x$ac_ct_OTOOL64" = x; then
7562     OTOOL64=":"
7563   else
7564     case $cross_compiling:$ac_tool_warned in
7565 yes:)
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7569 esac
7570     OTOOL64=$ac_ct_OTOOL64
7571   fi
7572 else
7573   OTOOL64="$ac_cv_prog_OTOOL64"
7574 fi
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7603 $as_echo_n "checking for -single_module linker flag... " >&6; }
7604 if ${lt_cv_apple_cc_single_mod+:} false; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   lt_cv_apple_cc_single_mod=no
7608       if test -z "${LT_MULTI_MODULE}"; then
7609         # By default we will add the -single_module flag. You can override
7610         # by either setting the environment variable LT_MULTI_MODULE
7611         # non-empty at configure time, or by adding -multi_module to the
7612         # link flags.
7613         rm -rf libconftest.dylib*
7614         echo "int foo(void){return 1;}" > conftest.c
7615         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7616 -dynamiclib -Wl,-single_module conftest.c" >&5
7617         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7618           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7619         _lt_result=$?
7620         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7621           lt_cv_apple_cc_single_mod=yes
7622         else
7623           cat conftest.err >&5
7624         fi
7625         rm -rf libconftest.dylib*
7626         rm -f conftest.*
7627       fi
7628 fi
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7630 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7632 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7633 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   lt_cv_ld_exported_symbols_list=no
7637       save_LDFLAGS=$LDFLAGS
7638       echo "_main" > conftest.sym
7639       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7640       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h.  */
7642
7643 int
7644 main ()
7645 {
7646
7647   ;
7648   return 0;
7649 }
7650 _ACEOF
7651 if ac_fn_c_try_link "$LINENO"; then :
7652   lt_cv_ld_exported_symbols_list=yes
7653 else
7654   lt_cv_ld_exported_symbols_list=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext \
7657     conftest$ac_exeext conftest.$ac_ext
7658         LDFLAGS="$save_LDFLAGS"
7659
7660 fi
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7662 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7664 $as_echo_n "checking for -force_load linker flag... " >&6; }
7665 if ${lt_cv_ld_force_load+:} false; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668   lt_cv_ld_force_load=no
7669       cat > conftest.c << _LT_EOF
7670 int forced_loaded() { return 2;}
7671 _LT_EOF
7672       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7673       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7674       echo "$AR cru libconftest.a conftest.o" >&5
7675       $AR cru libconftest.a conftest.o 2>&5
7676       cat > conftest.c << _LT_EOF
7677 int main() { return 0;}
7678 _LT_EOF
7679       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7680       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7681       _lt_result=$?
7682       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7683         lt_cv_ld_force_load=yes
7684       else
7685         cat conftest.err >&5
7686       fi
7687         rm -f conftest.err libconftest.a conftest conftest.c
7688         rm -rf conftest.dSYM
7689
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7692 $as_echo "$lt_cv_ld_force_load" >&6; }
7693     # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7694     # build without first building modern cctools / linker.
7695     case $host_cpu-$host_os in
7696     *-rhapsody* | *-darwin1.[012])
7697       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7698     *-darwin1.*)
7699       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7700     *-darwin*)
7701       # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7702       # deployment target is forced to an earlier version.
7703       case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7704         UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7705           ;;
7706         10.[012][,.]*)
7707           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7708           ;;
7709         *)
7710           ;;
7711      esac
7712     ;;
7713   esac
7714     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7715       _lt_dar_single_mod='$single_module'
7716     fi
7717     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7718       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7719     else
7720       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7721     fi
7722     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7723       _lt_dsymutil='~$DSYMUTIL $lib || :'
7724     else
7725       _lt_dsymutil=
7726     fi
7727     ;;
7728   esac
7729
7730 ac_ext=c
7731 ac_cpp='$CPP $CPPFLAGS'
7732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7736 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7737 # On Suns, sometimes $CPP names a directory.
7738 if test -n "$CPP" && test -d "$CPP"; then
7739   CPP=
7740 fi
7741 if test -z "$CPP"; then
7742   if ${ac_cv_prog_CPP+:} false; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745       # Double quotes because CPP needs to be expanded
7746     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7747     do
7748       ac_preproc_ok=false
7749 for ac_c_preproc_warn_flag in '' yes
7750 do
7751   # Use a header file that comes with gcc, so configuring glibc
7752   # with a fresh cross-compiler works.
7753   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7754   # <limits.h> exists even on freestanding compilers.
7755   # On the NeXT, cc -E runs the code through the compiler's parser,
7756   # not just through cpp. "Syntax error" is here to catch this case.
7757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h.  */
7759 #ifdef __STDC__
7760 # include <limits.h>
7761 #else
7762 # include <assert.h>
7763 #endif
7764                      Syntax error
7765 _ACEOF
7766 if ac_fn_c_try_cpp "$LINENO"; then :
7767
7768 else
7769   # Broken: fails on valid input.
7770 continue
7771 fi
7772 rm -f conftest.err conftest.i conftest.$ac_ext
7773
7774   # OK, works on sane cases.  Now check whether nonexistent headers
7775   # can be detected and how.
7776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h.  */
7778 #include <ac_nonexistent.h>
7779 _ACEOF
7780 if ac_fn_c_try_cpp "$LINENO"; then :
7781   # Broken: success on invalid input.
7782 continue
7783 else
7784   # Passes both tests.
7785 ac_preproc_ok=:
7786 break
7787 fi
7788 rm -f conftest.err conftest.i conftest.$ac_ext
7789
7790 done
7791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7792 rm -f conftest.i conftest.err conftest.$ac_ext
7793 if $ac_preproc_ok; then :
7794   break
7795 fi
7796
7797     done
7798     ac_cv_prog_CPP=$CPP
7799
7800 fi
7801   CPP=$ac_cv_prog_CPP
7802 else
7803   ac_cv_prog_CPP=$CPP
7804 fi
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7806 $as_echo "$CPP" >&6; }
7807 ac_preproc_ok=false
7808 for ac_c_preproc_warn_flag in '' yes
7809 do
7810   # Use a header file that comes with gcc, so configuring glibc
7811   # with a fresh cross-compiler works.
7812   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7813   # <limits.h> exists even on freestanding compilers.
7814   # On the NeXT, cc -E runs the code through the compiler's parser,
7815   # not just through cpp. "Syntax error" is here to catch this case.
7816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h.  */
7818 #ifdef __STDC__
7819 # include <limits.h>
7820 #else
7821 # include <assert.h>
7822 #endif
7823                      Syntax error
7824 _ACEOF
7825 if ac_fn_c_try_cpp "$LINENO"; then :
7826
7827 else
7828   # Broken: fails on valid input.
7829 continue
7830 fi
7831 rm -f conftest.err conftest.i conftest.$ac_ext
7832
7833   # OK, works on sane cases.  Now check whether nonexistent headers
7834   # can be detected and how.
7835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h.  */
7837 #include <ac_nonexistent.h>
7838 _ACEOF
7839 if ac_fn_c_try_cpp "$LINENO"; then :
7840   # Broken: success on invalid input.
7841 continue
7842 else
7843   # Passes both tests.
7844 ac_preproc_ok=:
7845 break
7846 fi
7847 rm -f conftest.err conftest.i conftest.$ac_ext
7848
7849 done
7850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7851 rm -f conftest.i conftest.err conftest.$ac_ext
7852 if $ac_preproc_ok; then :
7853
7854 else
7855   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7857 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7858 See \`config.log' for more details" "$LINENO" 5; }
7859 fi
7860
7861 ac_ext=c
7862 ac_cpp='$CPP $CPPFLAGS'
7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7866
7867
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7869 $as_echo_n "checking for ANSI C header files... " >&6; }
7870 if ${ac_cv_header_stdc+:} false; then :
7871   $as_echo_n "(cached) " >&6
7872 else
7873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h.  */
7875 #include <stdlib.h>
7876 #include <stdarg.h>
7877 #include <string.h>
7878 #include <float.h>
7879
7880 int
7881 main ()
7882 {
7883
7884   ;
7885   return 0;
7886 }
7887 _ACEOF
7888 if ac_fn_c_try_compile "$LINENO"; then :
7889   ac_cv_header_stdc=yes
7890 else
7891   ac_cv_header_stdc=no
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894
7895 if test $ac_cv_header_stdc = yes; then
7896   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h.  */
7899 #include <string.h>
7900
7901 _ACEOF
7902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7903   $EGREP "memchr" >/dev/null 2>&1; then :
7904
7905 else
7906   ac_cv_header_stdc=no
7907 fi
7908 rm -f conftest*
7909
7910 fi
7911
7912 if test $ac_cv_header_stdc = yes; then
7913   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h.  */
7916 #include <stdlib.h>
7917
7918 _ACEOF
7919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7920   $EGREP "free" >/dev/null 2>&1; then :
7921
7922 else
7923   ac_cv_header_stdc=no
7924 fi
7925 rm -f conftest*
7926
7927 fi
7928
7929 if test $ac_cv_header_stdc = yes; then
7930   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7931   if test "$cross_compiling" = yes; then :
7932   :
7933 else
7934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h.  */
7936 #include <ctype.h>
7937 #include <stdlib.h>
7938 #if ((' ' & 0x0FF) == 0x020)
7939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7941 #else
7942 # define ISLOWER(c) \
7943                    (('a' <= (c) && (c) <= 'i') \
7944                      || ('j' <= (c) && (c) <= 'r') \
7945                      || ('s' <= (c) && (c) <= 'z'))
7946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7947 #endif
7948
7949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7950 int
7951 main ()
7952 {
7953   int i;
7954   for (i = 0; i < 256; i++)
7955     if (XOR (islower (i), ISLOWER (i))
7956         || toupper (i) != TOUPPER (i))
7957       return 2;
7958   return 0;
7959 }
7960 _ACEOF
7961 if ac_fn_c_try_run "$LINENO"; then :
7962
7963 else
7964   ac_cv_header_stdc=no
7965 fi
7966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7967   conftest.$ac_objext conftest.beam conftest.$ac_ext
7968 fi
7969
7970 fi
7971 fi
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7973 $as_echo "$ac_cv_header_stdc" >&6; }
7974 if test $ac_cv_header_stdc = yes; then
7975
7976 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7977
7978 fi
7979
7980 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7981 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7982                   inttypes.h stdint.h unistd.h
7983 do :
7984   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7985 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7986 "
7987 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7988   cat >>confdefs.h <<_ACEOF
7989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7990 _ACEOF
7991
7992 fi
7993
7994 done
7995
7996
7997 for ac_header in dlfcn.h
7998 do :
7999   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8000 "
8001 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8002   cat >>confdefs.h <<_ACEOF
8003 #define HAVE_DLFCN_H 1
8004 _ACEOF
8005
8006 fi
8007
8008 done
8009
8010
8011
8012
8013
8014
8015 # Set options
8016
8017
8018
8019         enable_dlopen=no
8020
8021
8022   enable_win32_dll=no
8023
8024
8025             # Check whether --enable-shared was given.
8026 if test "${enable_shared+set}" = set; then :
8027   enableval=$enable_shared; p=${PACKAGE-default}
8028     case $enableval in
8029     yes) enable_shared=yes ;;
8030     no) enable_shared=no ;;
8031     *)
8032       enable_shared=no
8033       # Look at the argument we got.  We use all the common list separators.
8034       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8035       for pkg in $enableval; do
8036         IFS="$lt_save_ifs"
8037         if test "X$pkg" = "X$p"; then
8038           enable_shared=yes
8039         fi
8040       done
8041       IFS="$lt_save_ifs"
8042       ;;
8043     esac
8044 else
8045   enable_shared=yes
8046 fi
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056   # Check whether --enable-static was given.
8057 if test "${enable_static+set}" = set; then :
8058   enableval=$enable_static; p=${PACKAGE-default}
8059     case $enableval in
8060     yes) enable_static=yes ;;
8061     no) enable_static=no ;;
8062     *)
8063      enable_static=no
8064       # Look at the argument we got.  We use all the common list separators.
8065       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8066       for pkg in $enableval; do
8067         IFS="$lt_save_ifs"
8068         if test "X$pkg" = "X$p"; then
8069           enable_static=yes
8070         fi
8071       done
8072       IFS="$lt_save_ifs"
8073       ;;
8074     esac
8075 else
8076   enable_static=yes
8077 fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088 # Check whether --with-pic was given.
8089 if test "${with_pic+set}" = set; then :
8090   withval=$with_pic; pic_mode="$withval"
8091 else
8092   pic_mode=default
8093 fi
8094
8095
8096 test -z "$pic_mode" && pic_mode=default
8097
8098
8099
8100
8101
8102
8103
8104   # Check whether --enable-fast-install was given.
8105 if test "${enable_fast_install+set}" = set; then :
8106   enableval=$enable_fast_install; p=${PACKAGE-default}
8107     case $enableval in
8108     yes) enable_fast_install=yes ;;
8109     no) enable_fast_install=no ;;
8110     *)
8111       enable_fast_install=no
8112       # Look at the argument we got.  We use all the common list separators.
8113       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114       for pkg in $enableval; do
8115         IFS="$lt_save_ifs"
8116         if test "X$pkg" = "X$p"; then
8117           enable_fast_install=yes
8118         fi
8119       done
8120       IFS="$lt_save_ifs"
8121       ;;
8122     esac
8123 else
8124   enable_fast_install=yes
8125 fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 # This can be used to rebuild libtool when needed
8138 LIBTOOL_DEPS="$ltmain"
8139
8140 # Always use our own libtool.
8141 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168 test -z "$LN_S" && LN_S="ln -s"
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183 if test -n "${ZSH_VERSION+set}" ; then
8184    setopt NO_GLOB_SUBST
8185 fi
8186
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188 $as_echo_n "checking for objdir... " >&6; }
8189 if ${lt_cv_objdir+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192   rm -f .libs 2>/dev/null
8193 mkdir .libs 2>/dev/null
8194 if test -d .libs; then
8195   lt_cv_objdir=.libs
8196 else
8197   # MS-DOS does not allow filenames that begin with a dot.
8198   lt_cv_objdir=_libs
8199 fi
8200 rmdir .libs 2>/dev/null
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203 $as_echo "$lt_cv_objdir" >&6; }
8204 objdir=$lt_cv_objdir
8205
8206
8207
8208
8209
8210 cat >>confdefs.h <<_ACEOF
8211 #define LT_OBJDIR "$lt_cv_objdir/"
8212 _ACEOF
8213
8214
8215
8216
8217 case $host_os in
8218 aix3*)
8219   # AIX sometimes has problems with the GCC collect2 program.  For some
8220   # reason, if we set the COLLECT_NAMES environment variable, the problems
8221   # vanish in a puff of smoke.
8222   if test "X${COLLECT_NAMES+set}" != Xset; then
8223     COLLECT_NAMES=
8224     export COLLECT_NAMES
8225   fi
8226   ;;
8227 esac
8228
8229 # Global variables:
8230 ofile=libtool
8231 can_build_shared=yes
8232
8233 # All known linkers require a `.a' archive for static linking (except MSVC,
8234 # which needs '.lib').
8235 libext=a
8236
8237 with_gnu_ld="$lt_cv_prog_gnu_ld"
8238
8239 old_CC="$CC"
8240 old_CFLAGS="$CFLAGS"
8241
8242 # Set sane defaults for various variables
8243 test -z "$CC" && CC=cc
8244 test -z "$LTCC" && LTCC=$CC
8245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246 test -z "$LD" && LD=ld
8247 test -z "$ac_objext" && ac_objext=o
8248
8249 for cc_temp in $compiler""; do
8250   case $cc_temp in
8251     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8253     \-*) ;;
8254     *) break;;
8255   esac
8256 done
8257 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8258
8259
8260 # Only perform the check for file, if the check method requires it
8261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262 case $deplibs_check_method in
8263 file_magic*)
8264   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   case $MAGIC_CMD in
8271 [\\/*] |  ?:[\\/]*)
8272   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273   ;;
8274 *)
8275   lt_save_MAGIC_CMD="$MAGIC_CMD"
8276   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278   for ac_dir in $ac_dummy; do
8279     IFS="$lt_save_ifs"
8280     test -z "$ac_dir" && ac_dir=.
8281     if test -f $ac_dir/${ac_tool_prefix}file; then
8282       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283       if test -n "$file_magic_test_file"; then
8284         case $deplibs_check_method in
8285         "file_magic "*)
8286           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289             $EGREP "$file_magic_regex" > /dev/null; then
8290             :
8291           else
8292             cat <<_LT_EOF 1>&2
8293
8294 *** Warning: the command libtool uses to detect shared libraries,
8295 *** $file_magic_cmd, produces output that libtool cannot recognize.
8296 *** The result is that libtool may fail to recognize shared libraries
8297 *** as such.  This will affect the creation of libtool libraries that
8298 *** depend on shared libraries, but programs linked with such libtool
8299 *** libraries will work regardless of this problem.  Nevertheless, you
8300 *** may want to report the problem to your system manager and/or to
8301 *** bug-libtool@gnu.org
8302
8303 _LT_EOF
8304           fi ;;
8305         esac
8306       fi
8307       break
8308     fi
8309   done
8310   IFS="$lt_save_ifs"
8311   MAGIC_CMD="$lt_save_MAGIC_CMD"
8312   ;;
8313 esac
8314 fi
8315
8316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317 if test -n "$MAGIC_CMD"; then
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319 $as_echo "$MAGIC_CMD" >&6; }
8320 else
8321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8323 fi
8324
8325
8326
8327
8328
8329 if test -z "$lt_cv_path_MAGIC_CMD"; then
8330   if test -n "$ac_tool_prefix"; then
8331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332 $as_echo_n "checking for file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334   $as_echo_n "(cached) " >&6
8335 else
8336   case $MAGIC_CMD in
8337 [\\/*] |  ?:[\\/]*)
8338   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8339   ;;
8340 *)
8341   lt_save_MAGIC_CMD="$MAGIC_CMD"
8342   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344   for ac_dir in $ac_dummy; do
8345     IFS="$lt_save_ifs"
8346     test -z "$ac_dir" && ac_dir=.
8347     if test -f $ac_dir/file; then
8348       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349       if test -n "$file_magic_test_file"; then
8350         case $deplibs_check_method in
8351         "file_magic "*)
8352           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355             $EGREP "$file_magic_regex" > /dev/null; then
8356             :
8357           else
8358             cat <<_LT_EOF 1>&2
8359
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such.  This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem.  Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8368
8369 _LT_EOF
8370           fi ;;
8371         esac
8372       fi
8373       break
8374     fi
8375   done
8376   IFS="$lt_save_ifs"
8377   MAGIC_CMD="$lt_save_MAGIC_CMD"
8378   ;;
8379 esac
8380 fi
8381
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8386 else
8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391
8392   else
8393     MAGIC_CMD=:
8394   fi
8395 fi
8396
8397   fi
8398   ;;
8399 esac
8400
8401 # Use C for the default configuration in the libtool script
8402
8403 lt_save_CC="$CC"
8404 ac_ext=c
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411 # Source file extension for C test sources.
8412 ac_ext=c
8413
8414 # Object file extension for compiled C test sources.
8415 objext=o
8416 objext=$objext
8417
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;"
8420
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}'
8423
8424
8425
8426
8427
8428
8429
8430 # If no C compiler was specified, use CC.
8431 LTCC=${LTCC-"$CC"}
8432
8433 # If no C compiler flags were specified, use CFLAGS.
8434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8435
8436 # Allow CC to be a program name with arguments.
8437 compiler=$CC
8438
8439 # Save the default compiler, since it gets overwritten when the other
8440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441 compiler_DEFAULT=$CC
8442
8443 # save warnings/boilerplate of simple test code
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_compiler_boilerplate=`cat conftest.err`
8448 $RM conftest*
8449
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_linker_boilerplate=`cat conftest.err`
8454 $RM -r conftest*
8455
8456
8457 ## CAVEAT EMPTOR:
8458 ## There is no encapsulation within the following macros, do not change
8459 ## the running order or otherwise move them around unless you know exactly
8460 ## what you are doing...
8461 if test -n "$compiler"; then
8462
8463 lt_prog_compiler_no_builtin_flag=
8464
8465 if test "$GCC" = yes; then
8466   case $cc_basename in
8467   nvcc*)
8468     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8469   *)
8470     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8471   esac
8472
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8474 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8475 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8476   $as_echo_n "(cached) " >&6
8477 else
8478   lt_cv_prog_compiler_rtti_exceptions=no
8479    ac_outfile=conftest.$ac_objext
8480    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481    lt_compiler_flag="-fno-rtti -fno-exceptions"
8482    # Insert the option either (1) after the last *FLAGS variable, or
8483    # (2) before a word containing "conftest.", or (3) at the end.
8484    # Note that $ac_compile itself does not contain backslashes and begins
8485    # with a dollar sign (not a hyphen), so the echo should work correctly.
8486    # The option is referenced via a variable to avoid confusing sed.
8487    lt_compile=`echo "$ac_compile" | $SED \
8488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490    -e 's:$: $lt_compiler_flag:'`
8491    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8492    (eval "$lt_compile" 2>conftest.err)
8493    ac_status=$?
8494    cat conftest.err >&5
8495    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496    if (exit $ac_status) && test -s "$ac_outfile"; then
8497      # The compiler can only warn and ignore the option if not recognized
8498      # So say no if there are warnings other than the usual output.
8499      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8500      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502        lt_cv_prog_compiler_rtti_exceptions=yes
8503      fi
8504    fi
8505    $RM conftest*
8506
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8509 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8510
8511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8512     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8513 else
8514     :
8515 fi
8516
8517 fi
8518
8519
8520
8521
8522
8523
8524   lt_prog_compiler_wl=
8525 lt_prog_compiler_pic=
8526 lt_prog_compiler_static=
8527
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8530
8531   if test "$GCC" = yes; then
8532     lt_prog_compiler_wl='-Wl,'
8533     lt_prog_compiler_static='-static'
8534
8535     case $host_os in
8536       aix*)
8537       # All AIX code is PIC.
8538       if test "$host_cpu" = ia64; then
8539         # AIX 5 now supports IA64 processor
8540         lt_prog_compiler_static='-Bstatic'
8541       fi
8542       lt_prog_compiler_pic='-fPIC'
8543       ;;
8544
8545     amigaos*)
8546       case $host_cpu in
8547       powerpc)
8548             # see comment about AmigaOS4 .so support
8549             lt_prog_compiler_pic='-fPIC'
8550         ;;
8551       m68k)
8552             # FIXME: we need at least 68020 code to build shared libraries, but
8553             # adding the `-m68020' flag to GCC prevents building anything better,
8554             # like `-m68040'.
8555             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8556         ;;
8557       esac
8558       ;;
8559
8560     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8561       # PIC is the default for these OSes.
8562       ;;
8563
8564     mingw* | cygwin* | pw32* | os2* | cegcc*)
8565       # This hack is so that the source file can tell whether it is being
8566       # built for inclusion in a dll (and should export symbols for example).
8567       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8568       # (--disable-auto-import) libraries
8569       lt_prog_compiler_pic='-DDLL_EXPORT'
8570       ;;
8571
8572     darwin* | rhapsody*)
8573       # PIC is the default on this platform
8574       # Common symbols not allowed in MH_DYLIB files
8575       lt_prog_compiler_pic='-fno-common'
8576       ;;
8577
8578     haiku*)
8579       # PIC is the default for Haiku.
8580       # The "-static" flag exists, but is broken.
8581       lt_prog_compiler_static=
8582       ;;
8583
8584     hpux*)
8585       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8586       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8587       # sets the default TLS model and affects inlining.
8588       case $host_cpu in
8589       hppa*64*)
8590         # +Z the default
8591         ;;
8592       *)
8593         lt_prog_compiler_pic='-fPIC'
8594         ;;
8595       esac
8596       ;;
8597
8598     interix[3-9]*)
8599       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8600       # Instead, we relocate shared libraries at runtime.
8601       ;;
8602
8603     msdosdjgpp*)
8604       # Just because we use GCC doesn't mean we suddenly get shared libraries
8605       # on systems that don't support them.
8606       lt_prog_compiler_can_build_shared=no
8607       enable_shared=no
8608       ;;
8609
8610     *nto* | *qnx*)
8611       # QNX uses GNU C++, but need to define -shared option too, otherwise
8612       # it will coredump.
8613       lt_prog_compiler_pic='-fPIC -shared'
8614       ;;
8615
8616     sysv4*MP*)
8617       if test -d /usr/nec; then
8618         lt_prog_compiler_pic=-Kconform_pic
8619       fi
8620       ;;
8621
8622     *)
8623       lt_prog_compiler_pic='-fPIC'
8624       ;;
8625     esac
8626
8627     case $cc_basename in
8628     nvcc*) # Cuda Compiler Driver 2.2
8629       lt_prog_compiler_wl='-Xlinker '
8630       lt_prog_compiler_pic='-Xcompiler -fPIC'
8631       ;;
8632     esac
8633   else
8634     # PORTME Check for flag to pass linker flags through the system compiler.
8635     case $host_os in
8636     aix*)
8637       lt_prog_compiler_wl='-Wl,'
8638       if test "$host_cpu" = ia64; then
8639         # AIX 5 now supports IA64 processor
8640         lt_prog_compiler_static='-Bstatic'
8641       else
8642         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8643       fi
8644       ;;
8645
8646     mingw* | cygwin* | pw32* | os2* | cegcc*)
8647       # This hack is so that the source file can tell whether it is being
8648       # built for inclusion in a dll (and should export symbols for example).
8649       lt_prog_compiler_pic='-DDLL_EXPORT'
8650       ;;
8651
8652     hpux9* | hpux10* | hpux11*)
8653       lt_prog_compiler_wl='-Wl,'
8654       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8655       # not for PA HP-UX.
8656       case $host_cpu in
8657       hppa*64*|ia64*)
8658         # +Z the default
8659         ;;
8660       *)
8661         lt_prog_compiler_pic='+Z'
8662         ;;
8663       esac
8664       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8665       lt_prog_compiler_static='${wl}-a ${wl}archive'
8666       ;;
8667
8668     irix5* | irix6* | nonstopux*)
8669       lt_prog_compiler_wl='-Wl,'
8670       # PIC (with -KPIC) is the default.
8671       lt_prog_compiler_static='-non_shared'
8672       ;;
8673
8674     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8675       case $cc_basename in
8676       # old Intel for x86_64 which still supported -KPIC.
8677       ecc*)
8678         lt_prog_compiler_wl='-Wl,'
8679         lt_prog_compiler_pic='-KPIC'
8680         lt_prog_compiler_static='-static'
8681         ;;
8682       # icc used to be incompatible with GCC.
8683       # ICC 10 doesn't accept -KPIC any more.
8684       icc* | ifort*)
8685         lt_prog_compiler_wl='-Wl,'
8686         lt_prog_compiler_pic='-fPIC'
8687         lt_prog_compiler_static='-static'
8688         ;;
8689       # Lahey Fortran 8.1.
8690       lf95*)
8691         lt_prog_compiler_wl='-Wl,'
8692         lt_prog_compiler_pic='--shared'
8693         lt_prog_compiler_static='--static'
8694         ;;
8695       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8696         # Portland Group compilers (*not* the Pentium gcc compiler,
8697         # which looks to be a dead project)
8698         lt_prog_compiler_wl='-Wl,'
8699         lt_prog_compiler_pic='-fpic'
8700         lt_prog_compiler_static='-Bstatic'
8701         ;;
8702       ccc*)
8703         lt_prog_compiler_wl='-Wl,'
8704         # All Alpha code is PIC.
8705         lt_prog_compiler_static='-non_shared'
8706         ;;
8707       xl* | bgxl* | bgf* | mpixl*)
8708         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8709         lt_prog_compiler_wl='-Wl,'
8710         lt_prog_compiler_pic='-qpic'
8711         lt_prog_compiler_static='-qstaticlink'
8712         ;;
8713       *)
8714         case `$CC -V 2>&1 | sed 5q` in
8715         *Sun\ F* | *Sun*Fortran*)
8716           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8717           lt_prog_compiler_pic='-KPIC'
8718           lt_prog_compiler_static='-Bstatic'
8719           lt_prog_compiler_wl=''
8720           ;;
8721         *Sun\ C*)
8722           # Sun C 5.9
8723           lt_prog_compiler_pic='-KPIC'
8724           lt_prog_compiler_static='-Bstatic'
8725           lt_prog_compiler_wl='-Wl,'
8726           ;;
8727         esac
8728         ;;
8729       esac
8730       ;;
8731
8732     newsos6)
8733       lt_prog_compiler_pic='-KPIC'
8734       lt_prog_compiler_static='-Bstatic'
8735       ;;
8736
8737     *nto* | *qnx*)
8738       # QNX uses GNU C++, but need to define -shared option too, otherwise
8739       # it will coredump.
8740       lt_prog_compiler_pic='-fPIC -shared'
8741       ;;
8742
8743     osf3* | osf4* | osf5*)
8744       lt_prog_compiler_wl='-Wl,'
8745       # All OSF/1 code is PIC.
8746       lt_prog_compiler_static='-non_shared'
8747       ;;
8748
8749     rdos*)
8750       lt_prog_compiler_static='-non_shared'
8751       ;;
8752
8753     solaris*)
8754       lt_prog_compiler_pic='-KPIC'
8755       lt_prog_compiler_static='-Bstatic'
8756       case $cc_basename in
8757       f77* | f90* | f95*)
8758         lt_prog_compiler_wl='-Qoption ld ';;
8759       *)
8760         lt_prog_compiler_wl='-Wl,';;
8761       esac
8762       ;;
8763
8764     sunos4*)
8765       lt_prog_compiler_wl='-Qoption ld '
8766       lt_prog_compiler_pic='-PIC'
8767       lt_prog_compiler_static='-Bstatic'
8768       ;;
8769
8770     sysv4 | sysv4.2uw2* | sysv4.3*)
8771       lt_prog_compiler_wl='-Wl,'
8772       lt_prog_compiler_pic='-KPIC'
8773       lt_prog_compiler_static='-Bstatic'
8774       ;;
8775
8776     sysv4*MP*)
8777       if test -d /usr/nec ;then
8778         lt_prog_compiler_pic='-Kconform_pic'
8779         lt_prog_compiler_static='-Bstatic'
8780       fi
8781       ;;
8782
8783     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8784       lt_prog_compiler_wl='-Wl,'
8785       lt_prog_compiler_pic='-KPIC'
8786       lt_prog_compiler_static='-Bstatic'
8787       ;;
8788
8789     unicos*)
8790       lt_prog_compiler_wl='-Wl,'
8791       lt_prog_compiler_can_build_shared=no
8792       ;;
8793
8794     uts4*)
8795       lt_prog_compiler_pic='-pic'
8796       lt_prog_compiler_static='-Bstatic'
8797       ;;
8798
8799     *)
8800       lt_prog_compiler_can_build_shared=no
8801       ;;
8802     esac
8803   fi
8804
8805 case $host_os in
8806   # For platforms which do not support PIC, -DPIC is meaningless:
8807   *djgpp*)
8808     lt_prog_compiler_pic=
8809     ;;
8810   *)
8811     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8812     ;;
8813 esac
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8815 $as_echo "$lt_prog_compiler_pic" >&6; }
8816
8817
8818
8819
8820
8821
8822 #
8823 # Check to make sure the PIC flag actually works.
8824 #
8825 if test -n "$lt_prog_compiler_pic"; then
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8827 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8828 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8829   $as_echo_n "(cached) " >&6
8830 else
8831   lt_cv_prog_compiler_pic_works=no
8832    ac_outfile=conftest.$ac_objext
8833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8835    # Insert the option either (1) after the last *FLAGS variable, or
8836    # (2) before a word containing "conftest.", or (3) at the end.
8837    # Note that $ac_compile itself does not contain backslashes and begins
8838    # with a dollar sign (not a hyphen), so the echo should work correctly.
8839    # The option is referenced via a variable to avoid confusing sed.
8840    lt_compile=`echo "$ac_compile" | $SED \
8841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8843    -e 's:$: $lt_compiler_flag:'`
8844    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8845    (eval "$lt_compile" 2>conftest.err)
8846    ac_status=$?
8847    cat conftest.err >&5
8848    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849    if (exit $ac_status) && test -s "$ac_outfile"; then
8850      # The compiler can only warn and ignore the option if not recognized
8851      # So say no if there are warnings other than the usual output.
8852      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8853      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8854      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8855        lt_cv_prog_compiler_pic_works=yes
8856      fi
8857    fi
8858    $RM conftest*
8859
8860 fi
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8862 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8863
8864 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8865     case $lt_prog_compiler_pic in
8866      "" | " "*) ;;
8867      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8868      esac
8869 else
8870     lt_prog_compiler_pic=
8871      lt_prog_compiler_can_build_shared=no
8872 fi
8873
8874 fi
8875
8876
8877
8878
8879
8880
8881 #
8882 # Check to make sure the static flag actually works.
8883 #
8884 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8886 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8887 if ${lt_cv_prog_compiler_static_works+:} false; then :
8888   $as_echo_n "(cached) " >&6
8889 else
8890   lt_cv_prog_compiler_static_works=no
8891    save_LDFLAGS="$LDFLAGS"
8892    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8893    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8894    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8895      # The linker can only warn and ignore the option if not recognized
8896      # So say no if there are warnings
8897      if test -s conftest.err; then
8898        # Append any errors to the config.log.
8899        cat conftest.err 1>&5
8900        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8901        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8902        if diff conftest.exp conftest.er2 >/dev/null; then
8903          lt_cv_prog_compiler_static_works=yes
8904        fi
8905      else
8906        lt_cv_prog_compiler_static_works=yes
8907      fi
8908    fi
8909    $RM -r conftest*
8910    LDFLAGS="$save_LDFLAGS"
8911
8912 fi
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8915
8916 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8917     :
8918 else
8919     lt_prog_compiler_static=
8920 fi
8921
8922
8923
8924
8925
8926
8927
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8930 if ${lt_cv_prog_compiler_c_o+:} false; then :
8931   $as_echo_n "(cached) " >&6
8932 else
8933   lt_cv_prog_compiler_c_o=no
8934    $RM -r conftest 2>/dev/null
8935    mkdir conftest
8936    cd conftest
8937    mkdir out
8938    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939
8940    lt_compiler_flag="-o out/conftest2.$ac_objext"
8941    # Insert the option either (1) after the last *FLAGS variable, or
8942    # (2) before a word containing "conftest.", or (3) at the end.
8943    # Note that $ac_compile itself does not contain backslashes and begins
8944    # with a dollar sign (not a hyphen), so the echo should work correctly.
8945    lt_compile=`echo "$ac_compile" | $SED \
8946    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948    -e 's:$: $lt_compiler_flag:'`
8949    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8950    (eval "$lt_compile" 2>out/conftest.err)
8951    ac_status=$?
8952    cat out/conftest.err >&5
8953    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8955    then
8956      # The compiler can only warn and ignore the option if not recognized
8957      # So say no if there are warnings
8958      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8959      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8960      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8961        lt_cv_prog_compiler_c_o=yes
8962      fi
8963    fi
8964    chmod u+w . 2>&5
8965    $RM conftest*
8966    # SGI C++ compiler will create directory out/ii_files/ for
8967    # template instantiation
8968    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8969    $RM out/* && rmdir out
8970    cd ..
8971    $RM -r conftest
8972    $RM conftest*
8973
8974 fi
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8977
8978
8979
8980
8981
8982
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8985 if ${lt_cv_prog_compiler_c_o+:} false; then :
8986   $as_echo_n "(cached) " >&6
8987 else
8988   lt_cv_prog_compiler_c_o=no
8989    $RM -r conftest 2>/dev/null
8990    mkdir conftest
8991    cd conftest
8992    mkdir out
8993    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8994
8995    lt_compiler_flag="-o out/conftest2.$ac_objext"
8996    # Insert the option either (1) after the last *FLAGS variable, or
8997    # (2) before a word containing "conftest.", or (3) at the end.
8998    # Note that $ac_compile itself does not contain backslashes and begins
8999    # with a dollar sign (not a hyphen), so the echo should work correctly.
9000    lt_compile=`echo "$ac_compile" | $SED \
9001    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003    -e 's:$: $lt_compiler_flag:'`
9004    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9005    (eval "$lt_compile" 2>out/conftest.err)
9006    ac_status=$?
9007    cat out/conftest.err >&5
9008    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9010    then
9011      # The compiler can only warn and ignore the option if not recognized
9012      # So say no if there are warnings
9013      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9014      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9015      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9016        lt_cv_prog_compiler_c_o=yes
9017      fi
9018    fi
9019    chmod u+w . 2>&5
9020    $RM conftest*
9021    # SGI C++ compiler will create directory out/ii_files/ for
9022    # template instantiation
9023    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9024    $RM out/* && rmdir out
9025    cd ..
9026    $RM -r conftest
9027    $RM conftest*
9028
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9032
9033
9034
9035
9036 hard_links="nottested"
9037 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9038   # do not overwrite the value of need_locks provided by the user
9039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9040 $as_echo_n "checking if we can lock with hard links... " >&6; }
9041   hard_links=yes
9042   $RM conftest*
9043   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9044   touch conftest.a
9045   ln conftest.a conftest.b 2>&5 || hard_links=no
9046   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9048 $as_echo "$hard_links" >&6; }
9049   if test "$hard_links" = no; then
9050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9051 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9052     need_locks=warn
9053   fi
9054 else
9055   need_locks=no
9056 fi
9057
9058
9059
9060
9061
9062
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9065
9066   runpath_var=
9067   allow_undefined_flag=
9068   always_export_symbols=no
9069   archive_cmds=
9070   archive_expsym_cmds=
9071   compiler_needs_object=no
9072   enable_shared_with_static_runtimes=no
9073   export_dynamic_flag_spec=
9074   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9075   hardcode_automatic=no
9076   hardcode_direct=no
9077   hardcode_direct_absolute=no
9078   hardcode_libdir_flag_spec=
9079   hardcode_libdir_flag_spec_ld=
9080   hardcode_libdir_separator=
9081   hardcode_minus_L=no
9082   hardcode_shlibpath_var=unsupported
9083   inherit_rpath=no
9084   link_all_deplibs=unknown
9085   module_cmds=
9086   module_expsym_cmds=
9087   old_archive_from_new_cmds=
9088   old_archive_from_expsyms_cmds=
9089   thread_safe_flag_spec=
9090   whole_archive_flag_spec=
9091   # include_expsyms should be a list of space-separated symbols to be *always*
9092   # included in the symbol list
9093   include_expsyms=
9094   # exclude_expsyms can be an extended regexp of symbols to exclude
9095   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9096   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9097   # as well as any symbol that contains `d'.
9098   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9099   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9100   # platforms (ab)use it in PIC code, but their linkers get confused if
9101   # the symbol is explicitly referenced.  Since portable code cannot
9102   # rely on this symbol name, it's probably fine to never include it in
9103   # preloaded symbol tables.
9104   # Exclude shared library initialization/finalization symbols.
9105   extract_expsyms_cmds=
9106
9107   case $host_os in
9108   cygwin* | mingw* | pw32* | cegcc*)
9109     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9110     # When not using gcc, we currently assume that we are using
9111     # Microsoft Visual C++.
9112     if test "$GCC" != yes; then
9113       with_gnu_ld=no
9114     fi
9115     ;;
9116   interix*)
9117     # we just hope/assume this is gcc and not c89 (= MSVC++)
9118     with_gnu_ld=yes
9119     ;;
9120   openbsd*)
9121     with_gnu_ld=no
9122     ;;
9123   esac
9124
9125   ld_shlibs=yes
9126
9127   # On some targets, GNU ld is compatible enough with the native linker
9128   # that we're better off using the native interface for both.
9129   lt_use_gnu_ld_interface=no
9130   if test "$with_gnu_ld" = yes; then
9131     case $host_os in
9132       aix*)
9133         # The AIX port of GNU ld has always aspired to compatibility
9134         # with the native linker.  However, as the warning in the GNU ld
9135         # block says, versions before 2.19.5* couldn't really create working
9136         # shared libraries, regardless of the interface used.
9137         case `$LD -v 2>&1` in
9138           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9139           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9140           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9141           *)
9142             lt_use_gnu_ld_interface=yes
9143             ;;
9144         esac
9145         ;;
9146       *)
9147         lt_use_gnu_ld_interface=yes
9148         ;;
9149     esac
9150   fi
9151
9152   if test "$lt_use_gnu_ld_interface" = yes; then
9153     # If archive_cmds runs LD, not CC, wlarc should be empty
9154     wlarc='${wl}'
9155
9156     # Set some defaults for GNU ld with shared library support. These
9157     # are reset later if shared libraries are not supported. Putting them
9158     # here allows them to be overridden if necessary.
9159     runpath_var=LD_RUN_PATH
9160     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161     export_dynamic_flag_spec='${wl}--export-dynamic'
9162     # ancient GNU ld didn't support --whole-archive et. al.
9163     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9164       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9165     else
9166       whole_archive_flag_spec=
9167     fi
9168     supports_anon_versioning=no
9169     case `$LD -v 2>&1` in
9170       *GNU\ gold*) supports_anon_versioning=yes ;;
9171       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9172       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9173       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9174       *\ 2.11.*) ;; # other 2.11 versions
9175       *) supports_anon_versioning=yes ;;
9176     esac
9177
9178     # See if GNU ld supports shared libraries.
9179     case $host_os in
9180     aix[3-9]*)
9181       # On AIX/PPC, the GNU linker is very broken
9182       if test "$host_cpu" != ia64; then
9183         ld_shlibs=no
9184         cat <<_LT_EOF 1>&2
9185
9186 *** Warning: the GNU linker, at least up to release 2.19, is reported
9187 *** to be unable to reliably create shared libraries on AIX.
9188 *** Therefore, libtool is disabling shared libraries support.  If you
9189 *** really care for shared libraries, you may want to install binutils
9190 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9191 *** You will then need to restart the configuration process.
9192
9193 _LT_EOF
9194       fi
9195       ;;
9196
9197     amigaos*)
9198       case $host_cpu in
9199       powerpc)
9200             # see comment about AmigaOS4 .so support
9201             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202             archive_expsym_cmds=''
9203         ;;
9204       m68k)
9205             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)'
9206             hardcode_libdir_flag_spec='-L$libdir'
9207             hardcode_minus_L=yes
9208         ;;
9209       esac
9210       ;;
9211
9212     beos*)
9213       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9214         allow_undefined_flag=unsupported
9215         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9216         # support --undefined.  This deserves some investigation.  FIXME
9217         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218       else
9219         ld_shlibs=no
9220       fi
9221       ;;
9222
9223     cygwin* | mingw* | pw32* | cegcc*)
9224       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9225       # as there is no search path for DLLs.
9226       hardcode_libdir_flag_spec='-L$libdir'
9227       export_dynamic_flag_spec='${wl}--export-all-symbols'
9228       allow_undefined_flag=unsupported
9229       always_export_symbols=no
9230       enable_shared_with_static_runtimes=yes
9231       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9232
9233       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9234         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9235         # If the export-symbols file already is a .def file (1st line
9236         # is EXPORTS), use it as is; otherwise, prepend...
9237         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9238           cp $export_symbols $output_objdir/$soname.def;
9239         else
9240           echo EXPORTS > $output_objdir/$soname.def;
9241           cat $export_symbols >> $output_objdir/$soname.def;
9242         fi~
9243         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9244       else
9245         ld_shlibs=no
9246       fi
9247       ;;
9248
9249     haiku*)
9250       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251       link_all_deplibs=yes
9252       ;;
9253
9254     interix[3-9]*)
9255       hardcode_direct=no
9256       hardcode_shlibpath_var=no
9257       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9258       export_dynamic_flag_spec='${wl}-E'
9259       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9260       # Instead, shared libraries are loaded at an image base (0x10000000 by
9261       # default) and relocated if they conflict, which is a slow very memory
9262       # consuming and fragmenting process.  To avoid this, we pick a random,
9263       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9264       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9265       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9266       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'
9267       ;;
9268
9269     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9270       tmp_diet=no
9271       if test "$host_os" = linux-dietlibc; then
9272         case $cc_basename in
9273           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9274         esac
9275       fi
9276       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9277          && test "$tmp_diet" = no
9278       then
9279         tmp_addflag=' $pic_flag'
9280         tmp_sharedflag='-shared'
9281         case $cc_basename,$host_cpu in
9282         pgcc*)                          # Portland Group C compiler
9283           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'
9284           tmp_addflag=' $pic_flag'
9285           ;;
9286         pgf77* | pgf90* | pgf95* | pgfortran*)
9287                                         # Portland Group f77 and f90 compilers
9288           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'
9289           tmp_addflag=' $pic_flag -Mnomain' ;;
9290         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9291           tmp_addflag=' -i_dynamic' ;;
9292         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9293           tmp_addflag=' -i_dynamic -nofor_main' ;;
9294         ifc* | ifort*)                  # Intel Fortran compiler
9295           tmp_addflag=' -nofor_main' ;;
9296         lf95*)                          # Lahey Fortran 8.1
9297           whole_archive_flag_spec=
9298           tmp_sharedflag='--shared' ;;
9299         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9300           tmp_sharedflag='-qmkshrobj'
9301           tmp_addflag= ;;
9302         nvcc*)  # Cuda Compiler Driver 2.2
9303           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'
9304           compiler_needs_object=yes
9305           ;;
9306         esac
9307         case `$CC -V 2>&1 | sed 5q` in
9308         *Sun\ C*)                       # Sun C 5.9
9309           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'
9310           compiler_needs_object=yes
9311           tmp_sharedflag='-G' ;;
9312         *Sun\ F*)                       # Sun Fortran 8.3
9313           tmp_sharedflag='-G' ;;
9314         esac
9315         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316
9317         if test "x$supports_anon_versioning" = xyes; then
9318           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9319             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9320             echo "local: *; };" >> $output_objdir/$libname.ver~
9321             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9322         fi
9323
9324         case $cc_basename in
9325         xlf* | bgf* | bgxlf* | mpixlf*)
9326           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9327           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9328           hardcode_libdir_flag_spec=
9329           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9330           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9331           if test "x$supports_anon_versioning" = xyes; then
9332             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334               echo "local: *; };" >> $output_objdir/$libname.ver~
9335               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9336           fi
9337           ;;
9338         esac
9339       else
9340         ld_shlibs=no
9341       fi
9342       ;;
9343
9344     netbsd*)
9345       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9346         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9347         wlarc=
9348       else
9349         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351       fi
9352       ;;
9353
9354     solaris*)
9355       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9356         ld_shlibs=no
9357         cat <<_LT_EOF 1>&2
9358
9359 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9360 *** create shared libraries on Solaris systems.  Therefore, libtool
9361 *** is disabling shared libraries support.  We urge you to upgrade GNU
9362 *** binutils to release 2.9.1 or newer.  Another option is to modify
9363 *** your PATH or compiler configuration so that the native linker is
9364 *** used, and then restart.
9365
9366 _LT_EOF
9367       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9370       else
9371         ld_shlibs=no
9372       fi
9373       ;;
9374
9375     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9376       case `$LD -v 2>&1` in
9377         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9378         ld_shlibs=no
9379         cat <<_LT_EOF 1>&2
9380
9381 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9382 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9383 *** is disabling shared libraries support.  We urge you to upgrade GNU
9384 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9385 *** your PATH or compiler configuration so that the native linker is
9386 *** used, and then restart.
9387
9388 _LT_EOF
9389         ;;
9390         *)
9391           # For security reasons, it is highly recommended that you always
9392           # use absolute paths for naming shared libraries, and exclude the
9393           # DT_RUNPATH tag from executables and libraries.  But doing so
9394           # requires that you compile everything twice, which is a pain.
9395           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399           else
9400             ld_shlibs=no
9401           fi
9402         ;;
9403       esac
9404       ;;
9405
9406     sunos4*)
9407       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9408       wlarc=
9409       hardcode_direct=yes
9410       hardcode_shlibpath_var=no
9411       ;;
9412
9413     *)
9414       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9415         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9417       else
9418         ld_shlibs=no
9419       fi
9420       ;;
9421     esac
9422
9423     if test "$ld_shlibs" = no; then
9424       runpath_var=
9425       hardcode_libdir_flag_spec=
9426       export_dynamic_flag_spec=
9427       whole_archive_flag_spec=
9428     fi
9429   else
9430     # PORTME fill in a description of your system's linker (not GNU ld)
9431     case $host_os in
9432     aix3*)
9433       allow_undefined_flag=unsupported
9434       always_export_symbols=yes
9435       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'
9436       # Note: this linker hardcodes the directories in LIBPATH if there
9437       # are no directories specified by -L.
9438       hardcode_minus_L=yes
9439       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9440         # Neither direct hardcoding nor static linking is supported with a
9441         # broken collect2.
9442         hardcode_direct=unsupported
9443       fi
9444       ;;
9445
9446     aix[4-9]*)
9447       if test "$host_cpu" = ia64; then
9448         # On IA64, the linker does run time linking by default, so we don't
9449         # have to do anything special.
9450         aix_use_runtimelinking=no
9451         exp_sym_flag='-Bexport'
9452         no_entry_flag=""
9453       else
9454         # If we're using GNU nm, then we don't want the "-C" option.
9455         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9456         # Also, AIX nm treats weak defined symbols like other global
9457         # defined symbols, whereas GNU nm marks them as "W".
9458         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9459           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'
9460         else
9461           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9462         fi
9463         aix_use_runtimelinking=no
9464
9465         # Test if we are trying to use run time linking or normal
9466         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467         # need to do runtime linking.
9468         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9469           for ld_flag in $LDFLAGS; do
9470           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9471             aix_use_runtimelinking=yes
9472             break
9473           fi
9474           done
9475           ;;
9476         esac
9477
9478         exp_sym_flag='-bexport'
9479         no_entry_flag='-bnoentry'
9480       fi
9481
9482       # When large executables or shared objects are built, AIX ld can
9483       # have problems creating the table of contents.  If linking a library
9484       # or program results in "error TOC overflow" add -mminimal-toc to
9485       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9486       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9487
9488       archive_cmds=''
9489       hardcode_direct=yes
9490       hardcode_direct_absolute=yes
9491       hardcode_libdir_separator=':'
9492       link_all_deplibs=yes
9493       file_list_spec='${wl}-f,'
9494
9495       if test "$GCC" = yes; then
9496         case $host_os in aix4.[012]|aix4.[012].*)
9497         # We only want to do this on AIX 4.2 and lower, the check
9498         # below for broken collect2 doesn't work under 4.3+
9499           collect2name=`${CC} -print-prog-name=collect2`
9500           if test -f "$collect2name" &&
9501            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502           then
9503           # We have reworked collect2
9504           :
9505           else
9506           # We have old collect2
9507           hardcode_direct=unsupported
9508           # It fails to find uninstalled libraries when the uninstalled
9509           # path is not listed in the libpath.  Setting hardcode_minus_L
9510           # to unsupported forces relinking
9511           hardcode_minus_L=yes
9512           hardcode_libdir_flag_spec='-L$libdir'
9513           hardcode_libdir_separator=
9514           fi
9515           ;;
9516         esac
9517         shared_flag='-shared'
9518         if test "$aix_use_runtimelinking" = yes; then
9519           shared_flag="$shared_flag "'${wl}-G'
9520         fi
9521       else
9522         # not using gcc
9523         if test "$host_cpu" = ia64; then
9524         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525         # chokes on -Wl,-G. The following line is correct:
9526           shared_flag='-G'
9527         else
9528           if test "$aix_use_runtimelinking" = yes; then
9529             shared_flag='${wl}-G'
9530           else
9531             shared_flag='${wl}-bM:SRE'
9532           fi
9533         fi
9534       fi
9535
9536       export_dynamic_flag_spec='${wl}-bexpall'
9537       # It seems that -bexpall does not export symbols beginning with
9538       # underscore (_), so it is better to generate a list of symbols to export.
9539       always_export_symbols=yes
9540       if test "$aix_use_runtimelinking" = yes; then
9541         # Warning - without using the other runtime loading flags (-brtl),
9542         # -berok will link without error, but may produce a broken library.
9543         allow_undefined_flag='-berok'
9544         # Determine the default libpath from the value encoded in an
9545         # empty executable.
9546         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h.  */
9548
9549 int
9550 main ()
9551 {
9552
9553   ;
9554   return 0;
9555 }
9556 _ACEOF
9557 if ac_fn_c_try_link "$LINENO"; then :
9558
9559 lt_aix_libpath_sed='
9560     /Import File Strings/,/^$/ {
9561         /^0/ {
9562             s/^0  *\(.*\)$/\1/
9563             p
9564         }
9565     }'
9566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 # Check for a 64-bit object if we didn't find anything.
9568 if test -z "$aix_libpath"; then
9569   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9570 fi
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext \
9573     conftest$ac_exeext conftest.$ac_ext
9574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9575
9576         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9577         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"
9578       else
9579         if test "$host_cpu" = ia64; then
9580           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9581           allow_undefined_flag="-z nodefs"
9582           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"
9583         else
9584          # Determine the default libpath from the value encoded in an
9585          # empty executable.
9586          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h.  */
9588
9589 int
9590 main ()
9591 {
9592
9593   ;
9594   return 0;
9595 }
9596 _ACEOF
9597 if ac_fn_c_try_link "$LINENO"; then :
9598
9599 lt_aix_libpath_sed='
9600     /Import File Strings/,/^$/ {
9601         /^0/ {
9602             s/^0  *\(.*\)$/\1/
9603             p
9604         }
9605     }'
9606 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 # Check for a 64-bit object if we didn't find anything.
9608 if test -z "$aix_libpath"; then
9609   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9610 fi
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext \
9613     conftest$ac_exeext conftest.$ac_ext
9614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9615
9616          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9617           # Warning - without using the other run time loading flags,
9618           # -berok will link without error, but may produce a broken library.
9619           no_undefined_flag=' ${wl}-bernotok'
9620           allow_undefined_flag=' ${wl}-berok'
9621           if test "$with_gnu_ld" = yes; then
9622             # We only use this code for GNU lds that support --whole-archive.
9623             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9624           else
9625             # Exported symbols can be pulled into shared objects from archives
9626             whole_archive_flag_spec='$convenience'
9627           fi
9628           archive_cmds_need_lc=yes
9629           # This is similar to how AIX traditionally builds its shared libraries.
9630           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'
9631         fi
9632       fi
9633       ;;
9634
9635     amigaos*)
9636       case $host_cpu in
9637       powerpc)
9638             # see comment about AmigaOS4 .so support
9639             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9640             archive_expsym_cmds=''
9641         ;;
9642       m68k)
9643             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)'
9644             hardcode_libdir_flag_spec='-L$libdir'
9645             hardcode_minus_L=yes
9646         ;;
9647       esac
9648       ;;
9649
9650     bsdi[45]*)
9651       export_dynamic_flag_spec=-rdynamic
9652       ;;
9653
9654     cygwin* | mingw* | pw32* | cegcc*)
9655       # When not using gcc, we currently assume that we are using
9656       # Microsoft Visual C++.
9657       # hardcode_libdir_flag_spec is actually meaningless, as there is
9658       # no search path for DLLs.
9659       hardcode_libdir_flag_spec=' '
9660       allow_undefined_flag=unsupported
9661       # Tell ltmain to make .lib files, not .a files.
9662       libext=lib
9663       # Tell ltmain to make .dll files, not .so files.
9664       shrext_cmds=".dll"
9665       # FIXME: Setting linknames here is a bad hack.
9666       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9667       # The linker will automatically build a .lib file if we build a DLL.
9668       old_archive_from_new_cmds='true'
9669       # FIXME: Should let the user specify the lib program.
9670       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9671       fix_srcfile_path='`cygpath -w "$srcfile"`'
9672       enable_shared_with_static_runtimes=yes
9673       ;;
9674
9675     darwin* | rhapsody*)
9676
9677
9678   archive_cmds_need_lc=no
9679   hardcode_direct=no
9680   hardcode_automatic=yes
9681   hardcode_shlibpath_var=unsupported
9682   if test "$lt_cv_ld_force_load" = "yes"; then
9683     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\"`'
9684   else
9685     whole_archive_flag_spec=''
9686   fi
9687   link_all_deplibs=yes
9688   allow_undefined_flag="$_lt_dar_allow_undefined"
9689   case $cc_basename in
9690      ifort*) _lt_dar_can_shared=yes ;;
9691      *) _lt_dar_can_shared=$GCC ;;
9692   esac
9693   if test "$_lt_dar_can_shared" = "yes"; then
9694     output_verbose_link_cmd=func_echo_all
9695     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9696     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9697     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}"
9698     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}"
9699
9700   else
9701   ld_shlibs=no
9702   fi
9703
9704       ;;
9705
9706     dgux*)
9707       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708       hardcode_libdir_flag_spec='-L$libdir'
9709       hardcode_shlibpath_var=no
9710       ;;
9711
9712     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9713     # support.  Future versions do this automatically, but an explicit c++rt0.o
9714     # does not break anything, and helps significantly (at the cost of a little
9715     # extra space).
9716     freebsd2.2*)
9717       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9718       hardcode_libdir_flag_spec='-R$libdir'
9719       hardcode_direct=yes
9720       hardcode_shlibpath_var=no
9721       ;;
9722
9723     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9724     freebsd2.*)
9725       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9726       hardcode_direct=yes
9727       hardcode_minus_L=yes
9728       hardcode_shlibpath_var=no
9729       ;;
9730
9731     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9732     freebsd* | dragonfly*)
9733       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9734       hardcode_libdir_flag_spec='-R$libdir'
9735       hardcode_direct=yes
9736       hardcode_shlibpath_var=no
9737       ;;
9738
9739     hpux9*)
9740       if test "$GCC" = yes; then
9741         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'
9742       else
9743         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'
9744       fi
9745       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9746       hardcode_libdir_separator=:
9747       hardcode_direct=yes
9748
9749       # hardcode_minus_L: Not really in the search PATH,
9750       # but as the default location of the library.
9751       hardcode_minus_L=yes
9752       export_dynamic_flag_spec='${wl}-E'
9753       ;;
9754
9755     hpux10*)
9756       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9757         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9758       else
9759         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9760       fi
9761       if test "$with_gnu_ld" = no; then
9762         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9763         hardcode_libdir_flag_spec_ld='+b $libdir'
9764         hardcode_libdir_separator=:
9765         hardcode_direct=yes
9766         hardcode_direct_absolute=yes
9767         export_dynamic_flag_spec='${wl}-E'
9768         # hardcode_minus_L: Not really in the search PATH,
9769         # but as the default location of the library.
9770         hardcode_minus_L=yes
9771       fi
9772       ;;
9773
9774     hpux11*)
9775       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9776         case $host_cpu in
9777         hppa*64*)
9778           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9779           ;;
9780         ia64*)
9781           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9782           ;;
9783         *)
9784           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9785           ;;
9786         esac
9787       else
9788         case $host_cpu in
9789         hppa*64*)
9790           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9791           ;;
9792         ia64*)
9793           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9794           ;;
9795         *)
9796
9797           # Older versions of the 11.00 compiler do not understand -b yet
9798           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9799           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9800 $as_echo_n "checking if $CC understands -b... " >&6; }
9801 if ${lt_cv_prog_compiler__b+:} false; then :
9802   $as_echo_n "(cached) " >&6
9803 else
9804   lt_cv_prog_compiler__b=no
9805    save_LDFLAGS="$LDFLAGS"
9806    LDFLAGS="$LDFLAGS -b"
9807    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9808    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9809      # The linker can only warn and ignore the option if not recognized
9810      # So say no if there are warnings
9811      if test -s conftest.err; then
9812        # Append any errors to the config.log.
9813        cat conftest.err 1>&5
9814        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9815        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9816        if diff conftest.exp conftest.er2 >/dev/null; then
9817          lt_cv_prog_compiler__b=yes
9818        fi
9819      else
9820        lt_cv_prog_compiler__b=yes
9821      fi
9822    fi
9823    $RM -r conftest*
9824    LDFLAGS="$save_LDFLAGS"
9825
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9828 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9829
9830 if test x"$lt_cv_prog_compiler__b" = xyes; then
9831     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9832 else
9833     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9834 fi
9835
9836           ;;
9837         esac
9838       fi
9839       if test "$with_gnu_ld" = no; then
9840         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9841         hardcode_libdir_separator=:
9842
9843         case $host_cpu in
9844         hppa*64*|ia64*)
9845           hardcode_direct=no
9846           hardcode_shlibpath_var=no
9847           ;;
9848         *)
9849           hardcode_direct=yes
9850           hardcode_direct_absolute=yes
9851           export_dynamic_flag_spec='${wl}-E'
9852
9853           # hardcode_minus_L: Not really in the search PATH,
9854           # but as the default location of the library.
9855           hardcode_minus_L=yes
9856           ;;
9857         esac
9858       fi
9859       ;;
9860
9861     irix5* | irix6* | nonstopux*)
9862       if test "$GCC" = yes; then
9863         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'
9864         # Try to use the -exported_symbol ld option, if it does not
9865         # work, assume that -exports_file does not work either and
9866         # implicitly export all symbols.
9867         save_LDFLAGS="$LDFLAGS"
9868         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9869         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h.  */
9871 int foo(void) {}
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874   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'
9875
9876 fi
9877 rm -f core conftest.err conftest.$ac_objext \
9878     conftest$ac_exeext conftest.$ac_ext
9879         LDFLAGS="$save_LDFLAGS"
9880       else
9881         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'
9882         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'
9883       fi
9884       archive_cmds_need_lc='no'
9885       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9886       hardcode_libdir_separator=:
9887       inherit_rpath=yes
9888       link_all_deplibs=yes
9889       ;;
9890
9891     netbsd*)
9892       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9893         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9894       else
9895         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9896       fi
9897       hardcode_libdir_flag_spec='-R$libdir'
9898       hardcode_direct=yes
9899       hardcode_shlibpath_var=no
9900       ;;
9901
9902     newsos6)
9903       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904       hardcode_direct=yes
9905       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9906       hardcode_libdir_separator=:
9907       hardcode_shlibpath_var=no
9908       ;;
9909
9910     *nto* | *qnx*)
9911       ;;
9912
9913     openbsd*)
9914       if test -f /usr/libexec/ld.so; then
9915         hardcode_direct=yes
9916         hardcode_shlibpath_var=no
9917         hardcode_direct_absolute=yes
9918         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9919           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9920           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9921           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9922           export_dynamic_flag_spec='${wl}-E'
9923         else
9924           case $host_os in
9925            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9926              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9927              hardcode_libdir_flag_spec='-R$libdir'
9928              ;;
9929            *)
9930              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9931              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9932              ;;
9933           esac
9934         fi
9935       else
9936         ld_shlibs=no
9937       fi
9938       ;;
9939
9940     os2*)
9941       hardcode_libdir_flag_spec='-L$libdir'
9942       hardcode_minus_L=yes
9943       allow_undefined_flag=unsupported
9944       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'
9945       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9946       ;;
9947
9948     osf3*)
9949       if test "$GCC" = yes; then
9950         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9951         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'
9952       else
9953         allow_undefined_flag=' -expect_unresolved \*'
9954         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'
9955       fi
9956       archive_cmds_need_lc='no'
9957       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958       hardcode_libdir_separator=:
9959       ;;
9960
9961     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9962       if test "$GCC" = yes; then
9963         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9964         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'
9965         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9966       else
9967         allow_undefined_flag=' -expect_unresolved \*'
9968         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'
9969         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~
9970         $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'
9971
9972         # Both c and cxx compiler support -rpath directly
9973         hardcode_libdir_flag_spec='-rpath $libdir'
9974       fi
9975       archive_cmds_need_lc='no'
9976       hardcode_libdir_separator=:
9977       ;;
9978
9979     solaris*)
9980       no_undefined_flag=' -z defs'
9981       if test "$GCC" = yes; then
9982         wlarc='${wl}'
9983         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9984         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9985           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9986       else
9987         case `$CC -V 2>&1` in
9988         *"Compilers 5.0"*)
9989           wlarc=''
9990           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9993           ;;
9994         *)
9995           wlarc='${wl}'
9996           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9997           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9999           ;;
10000         esac
10001       fi
10002       hardcode_libdir_flag_spec='-R$libdir'
10003       hardcode_shlibpath_var=no
10004       case $host_os in
10005       solaris2.[0-5] | solaris2.[0-5].*) ;;
10006       *)
10007         # The compiler driver will combine and reorder linker options,
10008         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10009         # but is careful enough not to reorder.
10010         # Supported since Solaris 2.6 (maybe 2.5.1?)
10011         if test "$GCC" = yes; then
10012           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10013         else
10014           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10015         fi
10016         ;;
10017       esac
10018       link_all_deplibs=yes
10019       ;;
10020
10021     sunos4*)
10022       if test "x$host_vendor" = xsequent; then
10023         # Use $CC to link under sequent, because it throws in some extra .o
10024         # files that make .init and .fini sections work.
10025         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10026       else
10027         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10028       fi
10029       hardcode_libdir_flag_spec='-L$libdir'
10030       hardcode_direct=yes
10031       hardcode_minus_L=yes
10032       hardcode_shlibpath_var=no
10033       ;;
10034
10035     sysv4)
10036       case $host_vendor in
10037         sni)
10038           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039           hardcode_direct=yes # is this really true???
10040         ;;
10041         siemens)
10042           ## LD is ld it makes a PLAMLIB
10043           ## CC just makes a GrossModule.
10044           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10045           reload_cmds='$CC -r -o $output$reload_objs'
10046           hardcode_direct=no
10047         ;;
10048         motorola)
10049           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10051         ;;
10052       esac
10053       runpath_var='LD_RUN_PATH'
10054       hardcode_shlibpath_var=no
10055       ;;
10056
10057     sysv4.3*)
10058       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059       hardcode_shlibpath_var=no
10060       export_dynamic_flag_spec='-Bexport'
10061       ;;
10062
10063     sysv4*MP*)
10064       if test -d /usr/nec; then
10065         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066         hardcode_shlibpath_var=no
10067         runpath_var=LD_RUN_PATH
10068         hardcode_runpath_var=yes
10069         ld_shlibs=yes
10070       fi
10071       ;;
10072
10073     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10074       no_undefined_flag='${wl}-z,text'
10075       archive_cmds_need_lc=no
10076       hardcode_shlibpath_var=no
10077       runpath_var='LD_RUN_PATH'
10078
10079       if test "$GCC" = yes; then
10080         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082       else
10083         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10085       fi
10086       ;;
10087
10088     sysv5* | sco3.2v5* | sco5v6*)
10089       # Note: We can NOT use -z defs as we might desire, because we do not
10090       # link with -lc, and that would cause any symbols used from libc to
10091       # always be unresolved, which means just about no library would
10092       # ever link correctly.  If we're not using GNU ld we use -z text
10093       # though, which does catch some bad symbols but isn't as heavy-handed
10094       # as -z defs.
10095       no_undefined_flag='${wl}-z,text'
10096       allow_undefined_flag='${wl}-z,nodefs'
10097       archive_cmds_need_lc=no
10098       hardcode_shlibpath_var=no
10099       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10100       hardcode_libdir_separator=':'
10101       link_all_deplibs=yes
10102       export_dynamic_flag_spec='${wl}-Bexport'
10103       runpath_var='LD_RUN_PATH'
10104
10105       if test "$GCC" = yes; then
10106         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108       else
10109         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111       fi
10112       ;;
10113
10114     uts4*)
10115       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116       hardcode_libdir_flag_spec='-L$libdir'
10117       hardcode_shlibpath_var=no
10118       ;;
10119
10120     *)
10121       ld_shlibs=no
10122       ;;
10123     esac
10124
10125     if test x$host_vendor = xsni; then
10126       case $host in
10127       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10128         export_dynamic_flag_spec='${wl}-Blargedynsym'
10129         ;;
10130       esac
10131     fi
10132   fi
10133
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10135 $as_echo "$ld_shlibs" >&6; }
10136 test "$ld_shlibs" = no && can_build_shared=no
10137
10138 with_gnu_ld=$with_gnu_ld
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154 #
10155 # Do we need to explicitly link libc?
10156 #
10157 case "x$archive_cmds_need_lc" in
10158 x|xyes)
10159   # Assume -lc should be added
10160   archive_cmds_need_lc=yes
10161
10162   if test "$enable_shared" = yes && test "$GCC" = yes; then
10163     case $archive_cmds in
10164     *'~'*)
10165       # FIXME: we may have to deal with multi-command sequences.
10166       ;;
10167     '$CC '*)
10168       # Test whether the compiler implicitly links with -lc since on some
10169       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10170       # to ld, don't add -lc before -lgcc.
10171       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10172 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10173 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10174   $as_echo_n "(cached) " >&6
10175 else
10176   $RM conftest*
10177         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10178
10179         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10180   (eval $ac_compile) 2>&5
10181   ac_status=$?
10182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10183   test $ac_status = 0; } 2>conftest.err; then
10184           soname=conftest
10185           lib=conftest
10186           libobjs=conftest.$ac_objext
10187           deplibs=
10188           wl=$lt_prog_compiler_wl
10189           pic_flag=$lt_prog_compiler_pic
10190           compiler_flags=-v
10191           linker_flags=-v
10192           verstring=
10193           output_objdir=.
10194           libname=conftest
10195           lt_save_allow_undefined_flag=$allow_undefined_flag
10196           allow_undefined_flag=
10197           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10198   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10199   ac_status=$?
10200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10201   test $ac_status = 0; }
10202           then
10203             lt_cv_archive_cmds_need_lc=no
10204           else
10205             lt_cv_archive_cmds_need_lc=yes
10206           fi
10207           allow_undefined_flag=$lt_save_allow_undefined_flag
10208         else
10209           cat conftest.err 1>&5
10210         fi
10211         $RM conftest*
10212
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10215 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10216       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10217       ;;
10218     esac
10219   fi
10220   ;;
10221 esac
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10380 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10381
10382 if test "$GCC" = yes; then
10383   case $host_os in
10384     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10385     *) lt_awk_arg="/^libraries:/" ;;
10386   esac
10387   case $host_os in
10388     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10389     *) lt_sed_strip_eq="s,=/,/,g" ;;
10390   esac
10391   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10392   case $lt_search_path_spec in
10393   *\;*)
10394     # if the path contains ";" then we assume it to be the separator
10395     # otherwise default to the standard path separator (i.e. ":") - it is
10396     # assumed that no part of a normal pathname contains ";" but that should
10397     # okay in the real world where ";" in dirpaths is itself problematic.
10398     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10399     ;;
10400   *)
10401     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10402     ;;
10403   esac
10404   # Ok, now we have the path, separated by spaces, we can step through it
10405   # and add multilib dir if necessary.
10406   lt_tmp_lt_search_path_spec=
10407   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10408   for lt_sys_path in $lt_search_path_spec; do
10409     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10410       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10411     else
10412       test -d "$lt_sys_path" && \
10413         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10414     fi
10415   done
10416   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10417 BEGIN {RS=" "; FS="/|\n";} {
10418   lt_foo="";
10419   lt_count=0;
10420   for (lt_i = NF; lt_i > 0; lt_i--) {
10421     if ($lt_i != "" && $lt_i != ".") {
10422       if ($lt_i == "..") {
10423         lt_count++;
10424       } else {
10425         if (lt_count == 0) {
10426           lt_foo="/" $lt_i lt_foo;
10427         } else {
10428           lt_count--;
10429         }
10430       }
10431     }
10432   }
10433   if (lt_foo != "") { lt_freq[lt_foo]++; }
10434   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10435 }'`
10436   # AWK program above erroneously prepends '/' to C:/dos/paths
10437   # for these hosts.
10438   case $host_os in
10439     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10440       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10441   esac
10442   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10443 else
10444   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10445 fi
10446 library_names_spec=
10447 libname_spec='lib$name'
10448 soname_spec=
10449 shrext_cmds=".so"
10450 postinstall_cmds=
10451 postuninstall_cmds=
10452 finish_cmds=
10453 finish_eval=
10454 shlibpath_var=
10455 shlibpath_overrides_runpath=unknown
10456 version_type=none
10457 dynamic_linker="$host_os ld.so"
10458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10459 need_lib_prefix=unknown
10460 hardcode_into_libs=no
10461
10462 # when you set need_version to no, make sure it does not cause -set_version
10463 # flags to be left without arguments
10464 need_version=unknown
10465
10466 case $host_os in
10467 aix3*)
10468   version_type=linux
10469   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10470   shlibpath_var=LIBPATH
10471
10472   # AIX 3 has no versioning support, so we append a major version to the name.
10473   soname_spec='${libname}${release}${shared_ext}$major'
10474   ;;
10475
10476 aix[4-9]*)
10477   version_type=linux
10478   need_lib_prefix=no
10479   need_version=no
10480   hardcode_into_libs=yes
10481   if test "$host_cpu" = ia64; then
10482     # AIX 5 supports IA64
10483     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10484     shlibpath_var=LD_LIBRARY_PATH
10485   else
10486     # With GCC up to 2.95.x, collect2 would create an import file
10487     # for dependence libraries.  The import file would start with
10488     # the line `#! .'.  This would cause the generated library to
10489     # depend on `.', always an invalid library.  This was fixed in
10490     # development snapshots of GCC prior to 3.0.
10491     case $host_os in
10492       aix4 | aix4.[01] | aix4.[01].*)
10493       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10494            echo ' yes '
10495            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10496         :
10497       else
10498         can_build_shared=no
10499       fi
10500       ;;
10501     esac
10502     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10503     # soname into executable. Probably we can add versioning support to
10504     # collect2, so additional links can be useful in future.
10505     if test "$aix_use_runtimelinking" = yes; then
10506       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10507       # instead of lib<name>.a to let people know that these are not
10508       # typical AIX shared libraries.
10509       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510     else
10511       # We preserve .a as extension for shared libraries through AIX4.2
10512       # and later when we are not doing run time linking.
10513       library_names_spec='${libname}${release}.a $libname.a'
10514       soname_spec='${libname}${release}${shared_ext}$major'
10515     fi
10516     shlibpath_var=LIBPATH
10517   fi
10518   ;;
10519
10520 amigaos*)
10521   case $host_cpu in
10522   powerpc)
10523     # Since July 2007 AmigaOS4 officially supports .so libraries.
10524     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526     ;;
10527   m68k)
10528     library_names_spec='$libname.ixlibrary $libname.a'
10529     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10530     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'
10531     ;;
10532   esac
10533   ;;
10534
10535 beos*)
10536   library_names_spec='${libname}${shared_ext}'
10537   dynamic_linker="$host_os ld.so"
10538   shlibpath_var=LIBRARY_PATH
10539   ;;
10540
10541 bsdi[45]*)
10542   version_type=linux
10543   need_version=no
10544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545   soname_spec='${libname}${release}${shared_ext}$major'
10546   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10547   shlibpath_var=LD_LIBRARY_PATH
10548   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10549   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10550   # the default ld.so.conf also contains /usr/contrib/lib and
10551   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10552   # libtool to hard-code these into programs
10553   ;;
10554
10555 cygwin* | mingw* | pw32* | cegcc*)
10556   version_type=windows
10557   shrext_cmds=".dll"
10558   need_version=no
10559   need_lib_prefix=no
10560
10561   case $GCC,$host_os in
10562   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10563     library_names_spec='$libname.dll.a'
10564     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10565     postinstall_cmds='base_file=`basename \${file}`~
10566       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10567       dldir=$destdir/`dirname \$dlpath`~
10568       test -d \$dldir || mkdir -p \$dldir~
10569       $install_prog $dir/$dlname \$dldir/$dlname~
10570       chmod a+x \$dldir/$dlname~
10571       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10572         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10573       fi'
10574     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10575       dlpath=$dir/\$dldll~
10576        $RM \$dlpath'
10577     shlibpath_overrides_runpath=yes
10578
10579     case $host_os in
10580     cygwin*)
10581       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10582       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10583
10584       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10585       ;;
10586     mingw* | cegcc*)
10587       # MinGW DLLs use traditional 'lib' prefix
10588       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10589       ;;
10590     pw32*)
10591       # pw32 DLLs use 'pw' prefix rather than 'lib'
10592       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10593       ;;
10594     esac
10595     ;;
10596
10597   *)
10598     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10599     ;;
10600   esac
10601   dynamic_linker='Win32 ld.exe'
10602   # FIXME: first we should search . and the directory the executable is in
10603   shlibpath_var=PATH
10604   ;;
10605
10606 darwin* | rhapsody*)
10607   dynamic_linker="$host_os dyld"
10608   version_type=darwin
10609   need_lib_prefix=no
10610   need_version=no
10611   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10612   soname_spec='${libname}${release}${major}$shared_ext'
10613   shlibpath_overrides_runpath=yes
10614   shlibpath_var=DYLD_LIBRARY_PATH
10615   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10616
10617   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10618   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10619   ;;
10620
10621 dgux*)
10622   version_type=linux
10623   need_lib_prefix=no
10624   need_version=no
10625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10626   soname_spec='${libname}${release}${shared_ext}$major'
10627   shlibpath_var=LD_LIBRARY_PATH
10628   ;;
10629
10630 freebsd* | dragonfly*)
10631   # DragonFly does not have aout.  When/if they implement a new
10632   # versioning mechanism, adjust this.
10633   if test -x /usr/bin/objformat; then
10634     objformat=`/usr/bin/objformat`
10635   else
10636     case $host_os in
10637     freebsd[23].*) objformat=aout ;;
10638     *) objformat=elf ;;
10639     esac
10640   fi
10641   version_type=freebsd-$objformat
10642   case $version_type in
10643     freebsd-elf*)
10644       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645       need_version=no
10646       need_lib_prefix=no
10647       ;;
10648     freebsd-*)
10649       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10650       need_version=yes
10651       ;;
10652   esac
10653   shlibpath_var=LD_LIBRARY_PATH
10654   case $host_os in
10655   freebsd2.*)
10656     shlibpath_overrides_runpath=yes
10657     ;;
10658   freebsd3.[01]* | freebsdelf3.[01]*)
10659     shlibpath_overrides_runpath=yes
10660     hardcode_into_libs=yes
10661     ;;
10662   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10663   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10664     shlibpath_overrides_runpath=no
10665     hardcode_into_libs=yes
10666     ;;
10667   *) # from 4.6 on, and DragonFly
10668     shlibpath_overrides_runpath=yes
10669     hardcode_into_libs=yes
10670     ;;
10671   esac
10672   ;;
10673
10674 haiku*)
10675   version_type=linux
10676   need_lib_prefix=no
10677   need_version=no
10678   dynamic_linker="$host_os runtime_loader"
10679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10680   soname_spec='${libname}${release}${shared_ext}$major'
10681   shlibpath_var=LIBRARY_PATH
10682   shlibpath_overrides_runpath=yes
10683   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10684   hardcode_into_libs=yes
10685   ;;
10686
10687 hpux9* | hpux10* | hpux11*)
10688   # Give a soname corresponding to the major version so that dld.sl refuses to
10689   # link against other versions.
10690   version_type=sunos
10691   need_lib_prefix=no
10692   need_version=no
10693   case $host_cpu in
10694   ia64*)
10695     shrext_cmds='.so'
10696     hardcode_into_libs=yes
10697     dynamic_linker="$host_os dld.so"
10698     shlibpath_var=LD_LIBRARY_PATH
10699     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701     soname_spec='${libname}${release}${shared_ext}$major'
10702     if test "X$HPUX_IA64_MODE" = X32; then
10703       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10704     else
10705       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10706     fi
10707     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10708     ;;
10709   hppa*64*)
10710     shrext_cmds='.sl'
10711     hardcode_into_libs=yes
10712     dynamic_linker="$host_os dld.sl"
10713     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10714     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716     soname_spec='${libname}${release}${shared_ext}$major'
10717     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10718     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10719     ;;
10720   *)
10721     shrext_cmds='.sl'
10722     dynamic_linker="$host_os dld.sl"
10723     shlibpath_var=SHLIB_PATH
10724     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726     soname_spec='${libname}${release}${shared_ext}$major'
10727     ;;
10728   esac
10729   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10730   postinstall_cmds='chmod 555 $lib'
10731   # or fails outright, so override atomically:
10732   install_override_mode=555
10733   ;;
10734
10735 interix[3-9]*)
10736   version_type=linux
10737   need_lib_prefix=no
10738   need_version=no
10739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10740   soname_spec='${libname}${release}${shared_ext}$major'
10741   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10742   shlibpath_var=LD_LIBRARY_PATH
10743   shlibpath_overrides_runpath=no
10744   hardcode_into_libs=yes
10745   ;;
10746
10747 irix5* | irix6* | nonstopux*)
10748   case $host_os in
10749     nonstopux*) version_type=nonstopux ;;
10750     *)
10751         if test "$lt_cv_prog_gnu_ld" = yes; then
10752                 version_type=linux
10753         else
10754                 version_type=irix
10755         fi ;;
10756   esac
10757   need_lib_prefix=no
10758   need_version=no
10759   soname_spec='${libname}${release}${shared_ext}$major'
10760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10761   case $host_os in
10762   irix5* | nonstopux*)
10763     libsuff= shlibsuff=
10764     ;;
10765   *)
10766     case $LD in # libtool.m4 will add one of these switches to LD
10767     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10768       libsuff= shlibsuff= libmagic=32-bit;;
10769     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10770       libsuff=32 shlibsuff=N32 libmagic=N32;;
10771     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10772       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10773     *) libsuff= shlibsuff= libmagic=never-match;;
10774     esac
10775     ;;
10776   esac
10777   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10778   shlibpath_overrides_runpath=no
10779   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10780   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10781   hardcode_into_libs=yes
10782   ;;
10783
10784 # No shared lib support for Linux oldld, aout, or coff.
10785 linux*oldld* | linux*aout* | linux*coff*)
10786   dynamic_linker=no
10787   ;;
10788
10789 # This must be Linux ELF.
10790
10791 # uclinux* changes (here and below) have been submitted to the libtool
10792 # project, but have not yet been accepted: they are GCC-local changes
10793 # for the time being.  (See
10794 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10795 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10796   version_type=linux
10797   need_lib_prefix=no
10798   need_version=no
10799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800   soname_spec='${libname}${release}${shared_ext}$major'
10801   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10802   shlibpath_var=LD_LIBRARY_PATH
10803   shlibpath_overrides_runpath=no
10804
10805   # Some binutils ld are patched to set DT_RUNPATH
10806   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10807   $as_echo_n "(cached) " >&6
10808 else
10809   lt_cv_shlibpath_overrides_runpath=no
10810     save_LDFLAGS=$LDFLAGS
10811     save_libdir=$libdir
10812     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10813          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10814     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h.  */
10816
10817 int
10818 main ()
10819 {
10820
10821   ;
10822   return 0;
10823 }
10824 _ACEOF
10825 if ac_fn_c_try_link "$LINENO"; then :
10826   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10827   lt_cv_shlibpath_overrides_runpath=yes
10828 fi
10829 fi
10830 rm -f core conftest.err conftest.$ac_objext \
10831     conftest$ac_exeext conftest.$ac_ext
10832     LDFLAGS=$save_LDFLAGS
10833     libdir=$save_libdir
10834
10835 fi
10836
10837   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10838
10839   # This implies no fast_install, which is unacceptable.
10840   # Some rework will be needed to allow for fast_install
10841   # before this can be enabled.
10842   hardcode_into_libs=yes
10843
10844   # Append ld.so.conf contents to the search path
10845   if test -f /etc/ld.so.conf; then
10846     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' ' '`
10847     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10848   fi
10849
10850   # We used to test for /lib/ld.so.1 and disable shared libraries on
10851   # powerpc, because MkLinux only supported shared libraries with the
10852   # GNU dynamic linker.  Since this was broken with cross compilers,
10853   # most powerpc-linux boxes support dynamic linking these days and
10854   # people can always --disable-shared, the test was removed, and we
10855   # assume the GNU/Linux dynamic linker is in use.
10856   dynamic_linker='GNU/Linux ld.so'
10857   ;;
10858
10859 netbsd*)
10860   version_type=sunos
10861   need_lib_prefix=no
10862   need_version=no
10863   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10864     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10865     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10866     dynamic_linker='NetBSD (a.out) ld.so'
10867   else
10868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10869     soname_spec='${libname}${release}${shared_ext}$major'
10870     dynamic_linker='NetBSD ld.elf_so'
10871   fi
10872   shlibpath_var=LD_LIBRARY_PATH
10873   shlibpath_overrides_runpath=yes
10874   hardcode_into_libs=yes
10875   ;;
10876
10877 newsos6)
10878   version_type=linux
10879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880   shlibpath_var=LD_LIBRARY_PATH
10881   shlibpath_overrides_runpath=yes
10882   ;;
10883
10884 *nto* | *qnx*)
10885   version_type=qnx
10886   need_lib_prefix=no
10887   need_version=no
10888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889   soname_spec='${libname}${release}${shared_ext}$major'
10890   shlibpath_var=LD_LIBRARY_PATH
10891   shlibpath_overrides_runpath=no
10892   hardcode_into_libs=yes
10893   dynamic_linker='ldqnx.so'
10894   ;;
10895
10896 openbsd*)
10897   version_type=sunos
10898   sys_lib_dlsearch_path_spec="/usr/lib"
10899   need_lib_prefix=no
10900   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10901   case $host_os in
10902     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10903     *)                          need_version=no  ;;
10904   esac
10905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10906   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10907   shlibpath_var=LD_LIBRARY_PATH
10908   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10909     case $host_os in
10910       openbsd2.[89] | openbsd2.[89].*)
10911         shlibpath_overrides_runpath=no
10912         ;;
10913       *)
10914         shlibpath_overrides_runpath=yes
10915         ;;
10916       esac
10917   else
10918     shlibpath_overrides_runpath=yes
10919   fi
10920   ;;
10921
10922 os2*)
10923   libname_spec='$name'
10924   shrext_cmds=".dll"
10925   need_lib_prefix=no
10926   library_names_spec='$libname${shared_ext} $libname.a'
10927   dynamic_linker='OS/2 ld.exe'
10928   shlibpath_var=LIBPATH
10929   ;;
10930
10931 osf3* | osf4* | osf5*)
10932   version_type=osf
10933   need_lib_prefix=no
10934   need_version=no
10935   soname_spec='${libname}${release}${shared_ext}$major'
10936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937   shlibpath_var=LD_LIBRARY_PATH
10938   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10939   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10940   ;;
10941
10942 rdos*)
10943   dynamic_linker=no
10944   ;;
10945
10946 solaris*)
10947   version_type=linux
10948   need_lib_prefix=no
10949   need_version=no
10950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951   soname_spec='${libname}${release}${shared_ext}$major'
10952   shlibpath_var=LD_LIBRARY_PATH
10953   shlibpath_overrides_runpath=yes
10954   hardcode_into_libs=yes
10955   # ldd complains unless libraries are executable
10956   postinstall_cmds='chmod +x $lib'
10957   ;;
10958
10959 sunos4*)
10960   version_type=sunos
10961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10962   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10963   shlibpath_var=LD_LIBRARY_PATH
10964   shlibpath_overrides_runpath=yes
10965   if test "$with_gnu_ld" = yes; then
10966     need_lib_prefix=no
10967   fi
10968   need_version=yes
10969   ;;
10970
10971 sysv4 | sysv4.3*)
10972   version_type=linux
10973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974   soname_spec='${libname}${release}${shared_ext}$major'
10975   shlibpath_var=LD_LIBRARY_PATH
10976   case $host_vendor in
10977     sni)
10978       shlibpath_overrides_runpath=no
10979       need_lib_prefix=no
10980       runpath_var=LD_RUN_PATH
10981       ;;
10982     siemens)
10983       need_lib_prefix=no
10984       ;;
10985     motorola)
10986       need_lib_prefix=no
10987       need_version=no
10988       shlibpath_overrides_runpath=no
10989       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10990       ;;
10991   esac
10992   ;;
10993
10994 sysv4*MP*)
10995   if test -d /usr/nec ;then
10996     version_type=linux
10997     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10998     soname_spec='$libname${shared_ext}.$major'
10999     shlibpath_var=LD_LIBRARY_PATH
11000   fi
11001   ;;
11002
11003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11004   version_type=freebsd-elf
11005   need_lib_prefix=no
11006   need_version=no
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11008   soname_spec='${libname}${release}${shared_ext}$major'
11009   shlibpath_var=LD_LIBRARY_PATH
11010   shlibpath_overrides_runpath=yes
11011   hardcode_into_libs=yes
11012   if test "$with_gnu_ld" = yes; then
11013     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11014   else
11015     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11016     case $host_os in
11017       sco3.2v5*)
11018         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11019         ;;
11020     esac
11021   fi
11022   sys_lib_dlsearch_path_spec='/usr/lib'
11023   ;;
11024
11025 tpf*)
11026   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11027   version_type=linux
11028   need_lib_prefix=no
11029   need_version=no
11030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031   shlibpath_var=LD_LIBRARY_PATH
11032   shlibpath_overrides_runpath=no
11033   hardcode_into_libs=yes
11034   ;;
11035
11036 uts4*)
11037   version_type=linux
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   shlibpath_var=LD_LIBRARY_PATH
11041   ;;
11042
11043 *)
11044   dynamic_linker=no
11045   ;;
11046 esac
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11048 $as_echo "$dynamic_linker" >&6; }
11049 test "$dynamic_linker" = no && can_build_shared=no
11050
11051 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11052 if test "$GCC" = yes; then
11053   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11054 fi
11055
11056 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11057   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11058 fi
11059 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11060   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11061 fi
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11155 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11156 hardcode_action=
11157 if test -n "$hardcode_libdir_flag_spec" ||
11158    test -n "$runpath_var" ||
11159    test "X$hardcode_automatic" = "Xyes" ; then
11160
11161   # We can hardcode non-existent directories.
11162   if test "$hardcode_direct" != no &&
11163      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11164      # have to relink, otherwise we might link with an installed library
11165      # when we should be linking with a yet-to-be-installed one
11166      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11167      test "$hardcode_minus_L" != no; then
11168     # Linking always hardcodes the temporary library directory.
11169     hardcode_action=relink
11170   else
11171     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11172     hardcode_action=immediate
11173   fi
11174 else
11175   # We cannot hardcode anything, or else we can only hardcode existing
11176   # directories.
11177   hardcode_action=unsupported
11178 fi
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11180 $as_echo "$hardcode_action" >&6; }
11181
11182 if test "$hardcode_action" = relink ||
11183    test "$inherit_rpath" = yes; then
11184   # Fast installation is not supported
11185   enable_fast_install=no
11186 elif test "$shlibpath_overrides_runpath" = yes ||
11187      test "$enable_shared" = no; then
11188   # Fast installation is not necessary
11189   enable_fast_install=needless
11190 fi
11191
11192
11193
11194
11195
11196
11197   if test "x$enable_dlopen" != xyes; then
11198   enable_dlopen=unknown
11199   enable_dlopen_self=unknown
11200   enable_dlopen_self_static=unknown
11201 else
11202   lt_cv_dlopen=no
11203   lt_cv_dlopen_libs=
11204
11205   case $host_os in
11206   beos*)
11207     lt_cv_dlopen="load_add_on"
11208     lt_cv_dlopen_libs=
11209     lt_cv_dlopen_self=yes
11210     ;;
11211
11212   mingw* | pw32* | cegcc*)
11213     lt_cv_dlopen="LoadLibrary"
11214     lt_cv_dlopen_libs=
11215     ;;
11216
11217   cygwin*)
11218     lt_cv_dlopen="dlopen"
11219     lt_cv_dlopen_libs=
11220     ;;
11221
11222   darwin*)
11223   # if libdl is installed we need to link against it
11224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11225 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11226 if ${ac_cv_lib_dl_dlopen+:} false; then :
11227   $as_echo_n "(cached) " >&6
11228 else
11229   ac_check_lib_save_LIBS=$LIBS
11230 LIBS="-ldl  $LIBS"
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h.  */
11233
11234 /* Override any GCC internal prototype to avoid an error.
11235    Use char because int might match the return type of a GCC
11236    builtin and then its argument prototype would still apply.  */
11237 #ifdef __cplusplus
11238 extern "C"
11239 #endif
11240 char dlopen ();
11241 int
11242 main ()
11243 {
11244 return dlopen ();
11245   ;
11246   return 0;
11247 }
11248 _ACEOF
11249 if ac_fn_c_try_link "$LINENO"; then :
11250   ac_cv_lib_dl_dlopen=yes
11251 else
11252   ac_cv_lib_dl_dlopen=no
11253 fi
11254 rm -f core conftest.err conftest.$ac_objext \
11255     conftest$ac_exeext conftest.$ac_ext
11256 LIBS=$ac_check_lib_save_LIBS
11257 fi
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11259 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11260 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11261   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11262 else
11263
11264     lt_cv_dlopen="dyld"
11265     lt_cv_dlopen_libs=
11266     lt_cv_dlopen_self=yes
11267
11268 fi
11269
11270     ;;
11271
11272   *)
11273     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11274 if test "x$ac_cv_func_shl_load" = xyes; then :
11275   lt_cv_dlopen="shl_load"
11276 else
11277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11278 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11279 if ${ac_cv_lib_dld_shl_load+:} false; then :
11280   $as_echo_n "(cached) " >&6
11281 else
11282   ac_check_lib_save_LIBS=$LIBS
11283 LIBS="-ldld  $LIBS"
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h.  */
11286
11287 /* Override any GCC internal prototype to avoid an error.
11288    Use char because int might match the return type of a GCC
11289    builtin and then its argument prototype would still apply.  */
11290 #ifdef __cplusplus
11291 extern "C"
11292 #endif
11293 char shl_load ();
11294 int
11295 main ()
11296 {
11297 return shl_load ();
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303   ac_cv_lib_dld_shl_load=yes
11304 else
11305   ac_cv_lib_dld_shl_load=no
11306 fi
11307 rm -f core conftest.err conftest.$ac_objext \
11308     conftest$ac_exeext conftest.$ac_ext
11309 LIBS=$ac_check_lib_save_LIBS
11310 fi
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11312 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11313 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11314   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11315 else
11316   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11317 if test "x$ac_cv_func_dlopen" = xyes; then :
11318   lt_cv_dlopen="dlopen"
11319 else
11320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11321 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11322 if ${ac_cv_lib_dl_dlopen+:} false; then :
11323   $as_echo_n "(cached) " >&6
11324 else
11325   ac_check_lib_save_LIBS=$LIBS
11326 LIBS="-ldl  $LIBS"
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h.  */
11329
11330 /* Override any GCC internal prototype to avoid an error.
11331    Use char because int might match the return type of a GCC
11332    builtin and then its argument prototype would still apply.  */
11333 #ifdef __cplusplus
11334 extern "C"
11335 #endif
11336 char dlopen ();
11337 int
11338 main ()
11339 {
11340 return dlopen ();
11341   ;
11342   return 0;
11343 }
11344 _ACEOF
11345 if ac_fn_c_try_link "$LINENO"; then :
11346   ac_cv_lib_dl_dlopen=yes
11347 else
11348   ac_cv_lib_dl_dlopen=no
11349 fi
11350 rm -f core conftest.err conftest.$ac_objext \
11351     conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_lib_save_LIBS
11353 fi
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11355 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11356 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11357   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11358 else
11359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11360 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11361 if ${ac_cv_lib_svld_dlopen+:} false; then :
11362   $as_echo_n "(cached) " >&6
11363 else
11364   ac_check_lib_save_LIBS=$LIBS
11365 LIBS="-lsvld  $LIBS"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h.  */
11368
11369 /* Override any GCC internal prototype to avoid an error.
11370    Use char because int might match the return type of a GCC
11371    builtin and then its argument prototype would still apply.  */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char dlopen ();
11376 int
11377 main ()
11378 {
11379 return dlopen ();
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385   ac_cv_lib_svld_dlopen=yes
11386 else
11387   ac_cv_lib_svld_dlopen=no
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext \
11390     conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11394 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11395 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11396   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11397 else
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11399 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11400 if ${ac_cv_lib_dld_dld_link+:} false; then :
11401   $as_echo_n "(cached) " >&6
11402 else
11403   ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-ldld  $LIBS"
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h.  */
11407
11408 /* Override any GCC internal prototype to avoid an error.
11409    Use char because int might match the return type of a GCC
11410    builtin and then its argument prototype would still apply.  */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char dld_link ();
11415 int
11416 main ()
11417 {
11418 return dld_link ();
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424   ac_cv_lib_dld_dld_link=yes
11425 else
11426   ac_cv_lib_dld_dld_link=no
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext \
11429     conftest$ac_exeext conftest.$ac_ext
11430 LIBS=$ac_check_lib_save_LIBS
11431 fi
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11433 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11434 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11435   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11436 fi
11437
11438
11439 fi
11440
11441
11442 fi
11443
11444
11445 fi
11446
11447
11448 fi
11449
11450
11451 fi
11452
11453     ;;
11454   esac
11455
11456   if test "x$lt_cv_dlopen" != xno; then
11457     enable_dlopen=yes
11458   else
11459     enable_dlopen=no
11460   fi
11461
11462   case $lt_cv_dlopen in
11463   dlopen)
11464     save_CPPFLAGS="$CPPFLAGS"
11465     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11466
11467     save_LDFLAGS="$LDFLAGS"
11468     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11469
11470     save_LIBS="$LIBS"
11471     LIBS="$lt_cv_dlopen_libs $LIBS"
11472
11473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11474 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11475 if ${lt_cv_dlopen_self+:} false; then :
11476   $as_echo_n "(cached) " >&6
11477 else
11478           if test "$cross_compiling" = yes; then :
11479   lt_cv_dlopen_self=cross
11480 else
11481   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11482   lt_status=$lt_dlunknown
11483   cat > conftest.$ac_ext <<_LT_EOF
11484 #line 11484 "configure"
11485 #include "confdefs.h"
11486
11487 #if HAVE_DLFCN_H
11488 #include <dlfcn.h>
11489 #endif
11490
11491 #include <stdio.h>
11492
11493 #ifdef RTLD_GLOBAL
11494 #  define LT_DLGLOBAL           RTLD_GLOBAL
11495 #else
11496 #  ifdef DL_GLOBAL
11497 #    define LT_DLGLOBAL         DL_GLOBAL
11498 #  else
11499 #    define LT_DLGLOBAL         0
11500 #  endif
11501 #endif
11502
11503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11504    find out it does not work in some platform. */
11505 #ifndef LT_DLLAZY_OR_NOW
11506 #  ifdef RTLD_LAZY
11507 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11508 #  else
11509 #    ifdef DL_LAZY
11510 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11511 #    else
11512 #      ifdef RTLD_NOW
11513 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11514 #      else
11515 #        ifdef DL_NOW
11516 #          define LT_DLLAZY_OR_NOW      DL_NOW
11517 #        else
11518 #          define LT_DLLAZY_OR_NOW      0
11519 #        endif
11520 #      endif
11521 #    endif
11522 #  endif
11523 #endif
11524
11525 /* When -fvisbility=hidden is used, assume the code has been annotated
11526    correspondingly for the symbols needed.  */
11527 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11528 void fnord () __attribute__((visibility("default")));
11529 #endif
11530
11531 void fnord () { int i=42; }
11532 int main ()
11533 {
11534   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11535   int status = $lt_dlunknown;
11536
11537   if (self)
11538     {
11539       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11540       else
11541         {
11542           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11543           else puts (dlerror ());
11544         }
11545       /* dlclose (self); */
11546     }
11547   else
11548     puts (dlerror ());
11549
11550   return status;
11551 }
11552 _LT_EOF
11553   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11554   (eval $ac_link) 2>&5
11555   ac_status=$?
11556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11557   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11558     (./conftest; exit; ) >&5 2>/dev/null
11559     lt_status=$?
11560     case x$lt_status in
11561       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11562       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11563       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11564     esac
11565   else :
11566     # compilation failed
11567     lt_cv_dlopen_self=no
11568   fi
11569 fi
11570 rm -fr conftest*
11571
11572
11573 fi
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11575 $as_echo "$lt_cv_dlopen_self" >&6; }
11576
11577     if test "x$lt_cv_dlopen_self" = xyes; then
11578       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11579       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11580 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11581 if ${lt_cv_dlopen_self_static+:} false; then :
11582   $as_echo_n "(cached) " >&6
11583 else
11584           if test "$cross_compiling" = yes; then :
11585   lt_cv_dlopen_self_static=cross
11586 else
11587   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11588   lt_status=$lt_dlunknown
11589   cat > conftest.$ac_ext <<_LT_EOF
11590 #line 11590 "configure"
11591 #include "confdefs.h"
11592
11593 #if HAVE_DLFCN_H
11594 #include <dlfcn.h>
11595 #endif
11596
11597 #include <stdio.h>
11598
11599 #ifdef RTLD_GLOBAL
11600 #  define LT_DLGLOBAL           RTLD_GLOBAL
11601 #else
11602 #  ifdef DL_GLOBAL
11603 #    define LT_DLGLOBAL         DL_GLOBAL
11604 #  else
11605 #    define LT_DLGLOBAL         0
11606 #  endif
11607 #endif
11608
11609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11610    find out it does not work in some platform. */
11611 #ifndef LT_DLLAZY_OR_NOW
11612 #  ifdef RTLD_LAZY
11613 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11614 #  else
11615 #    ifdef DL_LAZY
11616 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11617 #    else
11618 #      ifdef RTLD_NOW
11619 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11620 #      else
11621 #        ifdef DL_NOW
11622 #          define LT_DLLAZY_OR_NOW      DL_NOW
11623 #        else
11624 #          define LT_DLLAZY_OR_NOW      0
11625 #        endif
11626 #      endif
11627 #    endif
11628 #  endif
11629 #endif
11630
11631 /* When -fvisbility=hidden is used, assume the code has been annotated
11632    correspondingly for the symbols needed.  */
11633 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11634 void fnord () __attribute__((visibility("default")));
11635 #endif
11636
11637 void fnord () { int i=42; }
11638 int main ()
11639 {
11640   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11641   int status = $lt_dlunknown;
11642
11643   if (self)
11644     {
11645       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11646       else
11647         {
11648           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11649           else puts (dlerror ());
11650         }
11651       /* dlclose (self); */
11652     }
11653   else
11654     puts (dlerror ());
11655
11656   return status;
11657 }
11658 _LT_EOF
11659   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11660   (eval $ac_link) 2>&5
11661   ac_status=$?
11662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11664     (./conftest; exit; ) >&5 2>/dev/null
11665     lt_status=$?
11666     case x$lt_status in
11667       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11668       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11669       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11670     esac
11671   else :
11672     # compilation failed
11673     lt_cv_dlopen_self_static=no
11674   fi
11675 fi
11676 rm -fr conftest*
11677
11678
11679 fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11681 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11682     fi
11683
11684     CPPFLAGS="$save_CPPFLAGS"
11685     LDFLAGS="$save_LDFLAGS"
11686     LIBS="$save_LIBS"
11687     ;;
11688   esac
11689
11690   case $lt_cv_dlopen_self in
11691   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11692   *) enable_dlopen_self=unknown ;;
11693   esac
11694
11695   case $lt_cv_dlopen_self_static in
11696   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11697   *) enable_dlopen_self_static=unknown ;;
11698   esac
11699 fi
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717 striplib=
11718 old_striplib=
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11720 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11721 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11722   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11723   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11725 $as_echo "yes" >&6; }
11726 else
11727 # FIXME - insert some real tests, host_os isn't really good enough
11728   case $host_os in
11729   darwin*)
11730     if test -n "$STRIP" ; then
11731       striplib="$STRIP -x"
11732       old_striplib="$STRIP -S"
11733       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734 $as_echo "yes" >&6; }
11735     else
11736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11738     fi
11739     ;;
11740   *)
11741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743     ;;
11744   esac
11745 fi
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758   # Report which library types will actually be built
11759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11760 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11762 $as_echo "$can_build_shared" >&6; }
11763
11764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11765 $as_echo_n "checking whether to build shared libraries... " >&6; }
11766   test "$can_build_shared" = "no" && enable_shared=no
11767
11768   # On AIX, shared libraries and static libraries use the same namespace, and
11769   # are all built from PIC.
11770   case $host_os in
11771   aix3*)
11772     test "$enable_shared" = yes && enable_static=no
11773     if test -n "$RANLIB"; then
11774       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11775       postinstall_cmds='$RANLIB $lib'
11776     fi
11777     ;;
11778
11779   aix[4-9]*)
11780     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11781       test "$enable_shared" = yes && enable_static=no
11782     fi
11783     ;;
11784   esac
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11786 $as_echo "$enable_shared" >&6; }
11787
11788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11789 $as_echo_n "checking whether to build static libraries... " >&6; }
11790   # Make sure either enable_shared or enable_static is yes.
11791   test "$enable_shared" = yes || enable_static=yes
11792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11793 $as_echo "$enable_static" >&6; }
11794
11795
11796
11797
11798 fi
11799 ac_ext=c
11800 ac_cpp='$CPP $CPPFLAGS'
11801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11804
11805 CC="$lt_save_CC"
11806
11807       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11808     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11809     (test "X$CXX" != "Xg++"))) ; then
11810   ac_ext=cpp
11811 ac_cpp='$CXXCPP $CPPFLAGS'
11812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11816 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11817 if test -z "$CXXCPP"; then
11818   if ${ac_cv_prog_CXXCPP+:} false; then :
11819   $as_echo_n "(cached) " >&6
11820 else
11821       # Double quotes because CXXCPP needs to be expanded
11822     for CXXCPP in "$CXX -E" "/lib/cpp"
11823     do
11824       ac_preproc_ok=false
11825 for ac_cxx_preproc_warn_flag in '' yes
11826 do
11827   # Use a header file that comes with gcc, so configuring glibc
11828   # with a fresh cross-compiler works.
11829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11830   # <limits.h> exists even on freestanding compilers.
11831   # On the NeXT, cc -E runs the code through the compiler's parser,
11832   # not just through cpp. "Syntax error" is here to catch this case.
11833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h.  */
11835 #ifdef __STDC__
11836 # include <limits.h>
11837 #else
11838 # include <assert.h>
11839 #endif
11840                      Syntax error
11841 _ACEOF
11842 if ac_fn_cxx_try_cpp "$LINENO"; then :
11843
11844 else
11845   # Broken: fails on valid input.
11846 continue
11847 fi
11848 rm -f conftest.err conftest.i conftest.$ac_ext
11849
11850   # OK, works on sane cases.  Now check whether nonexistent headers
11851   # can be detected and how.
11852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h.  */
11854 #include <ac_nonexistent.h>
11855 _ACEOF
11856 if ac_fn_cxx_try_cpp "$LINENO"; then :
11857   # Broken: success on invalid input.
11858 continue
11859 else
11860   # Passes both tests.
11861 ac_preproc_ok=:
11862 break
11863 fi
11864 rm -f conftest.err conftest.i conftest.$ac_ext
11865
11866 done
11867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11868 rm -f conftest.i conftest.err conftest.$ac_ext
11869 if $ac_preproc_ok; then :
11870   break
11871 fi
11872
11873     done
11874     ac_cv_prog_CXXCPP=$CXXCPP
11875
11876 fi
11877   CXXCPP=$ac_cv_prog_CXXCPP
11878 else
11879   ac_cv_prog_CXXCPP=$CXXCPP
11880 fi
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11882 $as_echo "$CXXCPP" >&6; }
11883 ac_preproc_ok=false
11884 for ac_cxx_preproc_warn_flag in '' yes
11885 do
11886   # Use a header file that comes with gcc, so configuring glibc
11887   # with a fresh cross-compiler works.
11888   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11889   # <limits.h> exists even on freestanding compilers.
11890   # On the NeXT, cc -E runs the code through the compiler's parser,
11891   # not just through cpp. "Syntax error" is here to catch this case.
11892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h.  */
11894 #ifdef __STDC__
11895 # include <limits.h>
11896 #else
11897 # include <assert.h>
11898 #endif
11899                      Syntax error
11900 _ACEOF
11901 if ac_fn_cxx_try_cpp "$LINENO"; then :
11902
11903 else
11904   # Broken: fails on valid input.
11905 continue
11906 fi
11907 rm -f conftest.err conftest.i conftest.$ac_ext
11908
11909   # OK, works on sane cases.  Now check whether nonexistent headers
11910   # can be detected and how.
11911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h.  */
11913 #include <ac_nonexistent.h>
11914 _ACEOF
11915 if ac_fn_cxx_try_cpp "$LINENO"; then :
11916   # Broken: success on invalid input.
11917 continue
11918 else
11919   # Passes both tests.
11920 ac_preproc_ok=:
11921 break
11922 fi
11923 rm -f conftest.err conftest.i conftest.$ac_ext
11924
11925 done
11926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11927 rm -f conftest.i conftest.err conftest.$ac_ext
11928 if $ac_preproc_ok; then :
11929
11930 else
11931   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11933 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11934 See \`config.log' for more details" "$LINENO" 5; }
11935 fi
11936
11937 ac_ext=c
11938 ac_cpp='$CPP $CPPFLAGS'
11939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11942
11943 else
11944   _lt_caught_CXX_error=yes
11945 fi
11946
11947 ac_ext=cpp
11948 ac_cpp='$CXXCPP $CPPFLAGS'
11949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11952
11953 archive_cmds_need_lc_CXX=no
11954 allow_undefined_flag_CXX=
11955 always_export_symbols_CXX=no
11956 archive_expsym_cmds_CXX=
11957 compiler_needs_object_CXX=no
11958 export_dynamic_flag_spec_CXX=
11959 hardcode_direct_CXX=no
11960 hardcode_direct_absolute_CXX=no
11961 hardcode_libdir_flag_spec_CXX=
11962 hardcode_libdir_flag_spec_ld_CXX=
11963 hardcode_libdir_separator_CXX=
11964 hardcode_minus_L_CXX=no
11965 hardcode_shlibpath_var_CXX=unsupported
11966 hardcode_automatic_CXX=no
11967 inherit_rpath_CXX=no
11968 module_cmds_CXX=
11969 module_expsym_cmds_CXX=
11970 link_all_deplibs_CXX=unknown
11971 old_archive_cmds_CXX=$old_archive_cmds
11972 reload_flag_CXX=$reload_flag
11973 reload_cmds_CXX=$reload_cmds
11974 no_undefined_flag_CXX=
11975 whole_archive_flag_spec_CXX=
11976 enable_shared_with_static_runtimes_CXX=no
11977
11978 # Source file extension for C++ test sources.
11979 ac_ext=cpp
11980
11981 # Object file extension for compiled C++ test sources.
11982 objext=o
11983 objext_CXX=$objext
11984
11985 # No sense in running all these tests if we already determined that
11986 # the CXX compiler isn't working.  Some variables (like enable_shared)
11987 # are currently assumed to apply to all compilers on this platform,
11988 # and will be corrupted by setting them based on a non-working compiler.
11989 if test "$_lt_caught_CXX_error" != yes; then
11990   # Code to be used in simple compile tests
11991   lt_simple_compile_test_code="int some_variable = 0;"
11992
11993   # Code to be used in simple link tests
11994   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11995
11996   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11997
11998
11999
12000
12001
12002
12003 # If no C compiler was specified, use CC.
12004 LTCC=${LTCC-"$CC"}
12005
12006 # If no C compiler flags were specified, use CFLAGS.
12007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12008
12009 # Allow CC to be a program name with arguments.
12010 compiler=$CC
12011
12012
12013   # save warnings/boilerplate of simple test code
12014   ac_outfile=conftest.$ac_objext
12015 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12016 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12017 _lt_compiler_boilerplate=`cat conftest.err`
12018 $RM conftest*
12019
12020   ac_outfile=conftest.$ac_objext
12021 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12022 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12023 _lt_linker_boilerplate=`cat conftest.err`
12024 $RM -r conftest*
12025
12026
12027   # Allow CC to be a program name with arguments.
12028   lt_save_CC=$CC
12029   lt_save_LD=$LD
12030   lt_save_GCC=$GCC
12031   GCC=$GXX
12032   lt_save_with_gnu_ld=$with_gnu_ld
12033   lt_save_path_LD=$lt_cv_path_LD
12034   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12035     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12036   else
12037     $as_unset lt_cv_prog_gnu_ld
12038   fi
12039   if test -n "${lt_cv_path_LDCXX+set}"; then
12040     lt_cv_path_LD=$lt_cv_path_LDCXX
12041   else
12042     $as_unset lt_cv_path_LD
12043   fi
12044   test -z "${LDCXX+set}" || LD=$LDCXX
12045   CC=${CXX-"c++"}
12046   compiler=$CC
12047   compiler_CXX=$CC
12048   for cc_temp in $compiler""; do
12049   case $cc_temp in
12050     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12051     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12052     \-*) ;;
12053     *) break;;
12054   esac
12055 done
12056 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12057
12058
12059   if test -n "$compiler"; then
12060     # We don't want -fno-exception when compiling C++ code, so set the
12061     # no_builtin_flag separately
12062     if test "$GXX" = yes; then
12063       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12064     else
12065       lt_prog_compiler_no_builtin_flag_CXX=
12066     fi
12067
12068     if test "$GXX" = yes; then
12069       # Set up default GNU C++ configuration
12070
12071
12072
12073 # Check whether --with-gnu-ld was given.
12074 if test "${with_gnu_ld+set}" = set; then :
12075   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12076 else
12077   with_gnu_ld=no
12078 fi
12079
12080 ac_prog=ld
12081 if test "$GCC" = yes; then
12082   # Check if gcc -print-prog-name=ld gives a path.
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12084 $as_echo_n "checking for ld used by $CC... " >&6; }
12085   case $host in
12086   *-*-mingw*)
12087     # gcc leaves a trailing carriage return which upsets mingw
12088     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12089   *)
12090     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12091   esac
12092   case $ac_prog in
12093     # Accept absolute paths.
12094     [\\/]* | ?:[\\/]*)
12095       re_direlt='/[^/][^/]*/\.\./'
12096       # Canonicalize the pathname of ld
12097       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12098       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12099         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12100       done
12101       test -z "$LD" && LD="$ac_prog"
12102       ;;
12103   "")
12104     # If it fails, then pretend we aren't using GCC.
12105     ac_prog=ld
12106     ;;
12107   *)
12108     # If it is relative, then search for the first ld in PATH.
12109     with_gnu_ld=unknown
12110     ;;
12111   esac
12112 elif test "$with_gnu_ld" = yes; then
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12114 $as_echo_n "checking for GNU ld... " >&6; }
12115 else
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12117 $as_echo_n "checking for non-GNU ld... " >&6; }
12118 fi
12119 if ${lt_cv_path_LD+:} false; then :
12120   $as_echo_n "(cached) " >&6
12121 else
12122   if test -z "$LD"; then
12123   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12124   for ac_dir in $PATH; do
12125     IFS="$lt_save_ifs"
12126     test -z "$ac_dir" && ac_dir=.
12127     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12128       lt_cv_path_LD="$ac_dir/$ac_prog"
12129       # Check to see if the program is GNU ld.  I'd rather use --version,
12130       # but apparently some variants of GNU ld only accept -v.
12131       # Break only if it was the GNU/non-GNU ld that we prefer.
12132       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12133       *GNU* | *'with BFD'*)
12134         test "$with_gnu_ld" != no && break
12135         ;;
12136       *)
12137         test "$with_gnu_ld" != yes && break
12138         ;;
12139       esac
12140     fi
12141   done
12142   IFS="$lt_save_ifs"
12143 else
12144   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12145 fi
12146 fi
12147
12148 LD="$lt_cv_path_LD"
12149 if test -n "$LD"; then
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12151 $as_echo "$LD" >&6; }
12152 else
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12158 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12159 if ${lt_cv_prog_gnu_ld+:} false; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12163 case `$LD -v 2>&1 </dev/null` in
12164 *GNU* | *'with BFD'*)
12165   lt_cv_prog_gnu_ld=yes
12166   ;;
12167 *)
12168   lt_cv_prog_gnu_ld=no
12169   ;;
12170 esac
12171 fi
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12173 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12174 with_gnu_ld=$lt_cv_prog_gnu_ld
12175
12176
12177
12178
12179
12180
12181
12182       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12183       # archiving commands below assume that GNU ld is being used.
12184       if test "$with_gnu_ld" = yes; then
12185         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12186         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12187
12188         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12189         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12190
12191         # If archive_cmds runs LD, not CC, wlarc should be empty
12192         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12193         #     investigate it a little bit more. (MM)
12194         wlarc='${wl}'
12195
12196         # ancient GNU ld didn't support --whole-archive et. al.
12197         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12198           $GREP 'no-whole-archive' > /dev/null; then
12199           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12200         else
12201           whole_archive_flag_spec_CXX=
12202         fi
12203       else
12204         with_gnu_ld=no
12205         wlarc=
12206
12207         # A generic and very simple default shared library creation
12208         # command for GNU C++ for the case where it uses the native
12209         # linker, instead of GNU ld.  If possible, this setting should
12210         # overridden to take advantage of the native linker features on
12211         # the platform it is being used on.
12212         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12213       fi
12214
12215       # Commands to make compiler produce verbose output that lists
12216       # what "hidden" libraries, object files and flags are used when
12217       # linking a shared library.
12218       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12219
12220     else
12221       GXX=no
12222       with_gnu_ld=no
12223       wlarc=
12224     fi
12225
12226     # PORTME: fill in a description of your system's C++ link characteristics
12227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12228 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12229     ld_shlibs_CXX=yes
12230     case $host_os in
12231       aix3*)
12232         # FIXME: insert proper C++ library support
12233         ld_shlibs_CXX=no
12234         ;;
12235       aix[4-9]*)
12236         if test "$host_cpu" = ia64; then
12237           # On IA64, the linker does run time linking by default, so we don't
12238           # have to do anything special.
12239           aix_use_runtimelinking=no
12240           exp_sym_flag='-Bexport'
12241           no_entry_flag=""
12242         else
12243           aix_use_runtimelinking=no
12244
12245           # Test if we are trying to use run time linking or normal
12246           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12247           # need to do runtime linking.
12248           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12249             for ld_flag in $LDFLAGS; do
12250               case $ld_flag in
12251               *-brtl*)
12252                 aix_use_runtimelinking=yes
12253                 break
12254                 ;;
12255               esac
12256             done
12257             ;;
12258           esac
12259
12260           exp_sym_flag='-bexport'
12261           no_entry_flag='-bnoentry'
12262         fi
12263
12264         # When large executables or shared objects are built, AIX ld can
12265         # have problems creating the table of contents.  If linking a library
12266         # or program results in "error TOC overflow" add -mminimal-toc to
12267         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12268         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12269
12270         archive_cmds_CXX=''
12271         hardcode_direct_CXX=yes
12272         hardcode_direct_absolute_CXX=yes
12273         hardcode_libdir_separator_CXX=':'
12274         link_all_deplibs_CXX=yes
12275         file_list_spec_CXX='${wl}-f,'
12276
12277         if test "$GXX" = yes; then
12278           case $host_os in aix4.[012]|aix4.[012].*)
12279           # We only want to do this on AIX 4.2 and lower, the check
12280           # below for broken collect2 doesn't work under 4.3+
12281           collect2name=`${CC} -print-prog-name=collect2`
12282           if test -f "$collect2name" &&
12283              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12284           then
12285             # We have reworked collect2
12286             :
12287           else
12288             # We have old collect2
12289             hardcode_direct_CXX=unsupported
12290             # It fails to find uninstalled libraries when the uninstalled
12291             # path is not listed in the libpath.  Setting hardcode_minus_L
12292             # to unsupported forces relinking
12293             hardcode_minus_L_CXX=yes
12294             hardcode_libdir_flag_spec_CXX='-L$libdir'
12295             hardcode_libdir_separator_CXX=
12296           fi
12297           esac
12298           shared_flag='-shared'
12299           if test "$aix_use_runtimelinking" = yes; then
12300             shared_flag="$shared_flag "'${wl}-G'
12301           fi
12302         else
12303           # not using gcc
12304           if test "$host_cpu" = ia64; then
12305           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12306           # chokes on -Wl,-G. The following line is correct:
12307           shared_flag='-G'
12308           else
12309             if test "$aix_use_runtimelinking" = yes; then
12310               shared_flag='${wl}-G'
12311             else
12312               shared_flag='${wl}-bM:SRE'
12313             fi
12314           fi
12315         fi
12316
12317         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12318         # It seems that -bexpall does not export symbols beginning with
12319         # underscore (_), so it is better to generate a list of symbols to
12320         # export.
12321         always_export_symbols_CXX=yes
12322         if test "$aix_use_runtimelinking" = yes; then
12323           # Warning - without using the other runtime loading flags (-brtl),
12324           # -berok will link without error, but may produce a broken library.
12325           allow_undefined_flag_CXX='-berok'
12326           # Determine the default libpath from the value encoded in an empty
12327           # executable.
12328           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h.  */
12330
12331 int
12332 main ()
12333 {
12334
12335   ;
12336   return 0;
12337 }
12338 _ACEOF
12339 if ac_fn_cxx_try_link "$LINENO"; then :
12340
12341 lt_aix_libpath_sed='
12342     /Import File Strings/,/^$/ {
12343         /^0/ {
12344             s/^0  *\(.*\)$/\1/
12345             p
12346         }
12347     }'
12348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12349 # Check for a 64-bit object if we didn't find anything.
12350 if test -z "$aix_libpath"; then
12351   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12352 fi
12353 fi
12354 rm -f core conftest.err conftest.$ac_objext \
12355     conftest$ac_exeext conftest.$ac_ext
12356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12357
12358           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12359
12360           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"
12361         else
12362           if test "$host_cpu" = ia64; then
12363             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12364             allow_undefined_flag_CXX="-z nodefs"
12365             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"
12366           else
12367             # Determine the default libpath from the value encoded in an
12368             # empty executable.
12369             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h.  */
12371
12372 int
12373 main ()
12374 {
12375
12376   ;
12377   return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_cxx_try_link "$LINENO"; then :
12381
12382 lt_aix_libpath_sed='
12383     /Import File Strings/,/^$/ {
12384         /^0/ {
12385             s/^0  *\(.*\)$/\1/
12386             p
12387         }
12388     }'
12389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12390 # Check for a 64-bit object if we didn't find anything.
12391 if test -z "$aix_libpath"; then
12392   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12393 fi
12394 fi
12395 rm -f core conftest.err conftest.$ac_objext \
12396     conftest$ac_exeext conftest.$ac_ext
12397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12398
12399             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12400             # Warning - without using the other run time loading flags,
12401             # -berok will link without error, but may produce a broken library.
12402             no_undefined_flag_CXX=' ${wl}-bernotok'
12403             allow_undefined_flag_CXX=' ${wl}-berok'
12404             if test "$with_gnu_ld" = yes; then
12405               # We only use this code for GNU lds that support --whole-archive.
12406               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12407             else
12408               # Exported symbols can be pulled into shared objects from archives
12409               whole_archive_flag_spec_CXX='$convenience'
12410             fi
12411             archive_cmds_need_lc_CXX=yes
12412             # This is similar to how AIX traditionally builds its shared
12413             # libraries.
12414             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'
12415           fi
12416         fi
12417         ;;
12418
12419       beos*)
12420         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12421           allow_undefined_flag_CXX=unsupported
12422           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12423           # support --undefined.  This deserves some investigation.  FIXME
12424           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425         else
12426           ld_shlibs_CXX=no
12427         fi
12428         ;;
12429
12430       chorus*)
12431         case $cc_basename in
12432           *)
12433           # FIXME: insert proper C++ library support
12434           ld_shlibs_CXX=no
12435           ;;
12436         esac
12437         ;;
12438
12439       cygwin* | mingw* | pw32* | cegcc*)
12440         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12441         # as there is no search path for DLLs.
12442         hardcode_libdir_flag_spec_CXX='-L$libdir'
12443         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12444         allow_undefined_flag_CXX=unsupported
12445         always_export_symbols_CXX=no
12446         enable_shared_with_static_runtimes_CXX=yes
12447
12448         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12449           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'
12450           # If the export-symbols file already is a .def file (1st line
12451           # is EXPORTS), use it as is; otherwise, prepend...
12452           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12453             cp $export_symbols $output_objdir/$soname.def;
12454           else
12455             echo EXPORTS > $output_objdir/$soname.def;
12456             cat $export_symbols >> $output_objdir/$soname.def;
12457           fi~
12458           $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'
12459         else
12460           ld_shlibs_CXX=no
12461         fi
12462         ;;
12463       darwin* | rhapsody*)
12464
12465
12466   archive_cmds_need_lc_CXX=no
12467   hardcode_direct_CXX=no
12468   hardcode_automatic_CXX=yes
12469   hardcode_shlibpath_var_CXX=unsupported
12470   if test "$lt_cv_ld_force_load" = "yes"; then
12471     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\"`'
12472   else
12473     whole_archive_flag_spec_CXX=''
12474   fi
12475   link_all_deplibs_CXX=yes
12476   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12477   case $cc_basename in
12478      ifort*) _lt_dar_can_shared=yes ;;
12479      *) _lt_dar_can_shared=$GCC ;;
12480   esac
12481   if test "$_lt_dar_can_shared" = "yes"; then
12482     output_verbose_link_cmd=func_echo_all
12483     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}"
12484     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12485     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}"
12486     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}"
12487        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12488       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}"
12489       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}"
12490     fi
12491
12492   else
12493   ld_shlibs_CXX=no
12494   fi
12495
12496         ;;
12497
12498       dgux*)
12499         case $cc_basename in
12500           ec++*)
12501             # FIXME: insert proper C++ library support
12502             ld_shlibs_CXX=no
12503             ;;
12504           ghcx*)
12505             # Green Hills C++ Compiler
12506             # FIXME: insert proper C++ library support
12507             ld_shlibs_CXX=no
12508             ;;
12509           *)
12510             # FIXME: insert proper C++ library support
12511             ld_shlibs_CXX=no
12512             ;;
12513         esac
12514         ;;
12515
12516       freebsd2.*)
12517         # C++ shared libraries reported to be fairly broken before
12518         # switch to ELF
12519         ld_shlibs_CXX=no
12520         ;;
12521
12522       freebsd-elf*)
12523         archive_cmds_need_lc_CXX=no
12524         ;;
12525
12526       freebsd* | dragonfly*)
12527         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12528         # conventions
12529         ld_shlibs_CXX=yes
12530         ;;
12531
12532       gnu*)
12533         ;;
12534
12535       haiku*)
12536         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12537         link_all_deplibs_CXX=yes
12538         ;;
12539
12540       hpux9*)
12541         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12542         hardcode_libdir_separator_CXX=:
12543         export_dynamic_flag_spec_CXX='${wl}-E'
12544         hardcode_direct_CXX=yes
12545         hardcode_minus_L_CXX=yes # Not in the search PATH,
12546                                              # but as the default
12547                                              # location of the library.
12548
12549         case $cc_basename in
12550           CC*)
12551             # FIXME: insert proper C++ library support
12552             ld_shlibs_CXX=no
12553             ;;
12554           aCC*)
12555             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'
12556             # Commands to make compiler produce verbose output that lists
12557             # what "hidden" libraries, object files and flags are used when
12558             # linking a shared library.
12559             #
12560             # There doesn't appear to be a way to prevent this compiler from
12561             # explicitly linking system object files so we need to strip them
12562             # from the output so that they don't get included in the library
12563             # dependencies.
12564             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"'
12565             ;;
12566           *)
12567             if test "$GXX" = yes; then
12568               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'
12569             else
12570               # FIXME: insert proper C++ library support
12571               ld_shlibs_CXX=no
12572             fi
12573             ;;
12574         esac
12575         ;;
12576
12577       hpux10*|hpux11*)
12578         if test $with_gnu_ld = no; then
12579           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12580           hardcode_libdir_separator_CXX=:
12581
12582           case $host_cpu in
12583             hppa*64*|ia64*)
12584               ;;
12585             *)
12586               export_dynamic_flag_spec_CXX='${wl}-E'
12587               ;;
12588           esac
12589         fi
12590         case $host_cpu in
12591           hppa*64*|ia64*)
12592             hardcode_direct_CXX=no
12593             hardcode_shlibpath_var_CXX=no
12594             ;;
12595           *)
12596             hardcode_direct_CXX=yes
12597             hardcode_direct_absolute_CXX=yes
12598             hardcode_minus_L_CXX=yes # Not in the search PATH,
12599                                                  # but as the default
12600                                                  # location of the library.
12601             ;;
12602         esac
12603
12604         case $cc_basename in
12605           CC*)
12606             # FIXME: insert proper C++ library support
12607             ld_shlibs_CXX=no
12608             ;;
12609           aCC*)
12610             case $host_cpu in
12611               hppa*64*)
12612                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12613                 ;;
12614               ia64*)
12615                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12616                 ;;
12617               *)
12618                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12619                 ;;
12620             esac
12621             # Commands to make compiler produce verbose output that lists
12622             # what "hidden" libraries, object files and flags are used when
12623             # linking a shared library.
12624             #
12625             # There doesn't appear to be a way to prevent this compiler from
12626             # explicitly linking system object files so we need to strip them
12627             # from the output so that they don't get included in the library
12628             # dependencies.
12629             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"'
12630             ;;
12631           *)
12632             if test "$GXX" = yes; then
12633               if test $with_gnu_ld = no; then
12634                 case $host_cpu in
12635                   hppa*64*)
12636                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12637                     ;;
12638                   ia64*)
12639                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12640                     ;;
12641                   *)
12642                     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'
12643                     ;;
12644                 esac
12645               fi
12646             else
12647               # FIXME: insert proper C++ library support
12648               ld_shlibs_CXX=no
12649             fi
12650             ;;
12651         esac
12652         ;;
12653
12654       interix[3-9]*)
12655         hardcode_direct_CXX=no
12656         hardcode_shlibpath_var_CXX=no
12657         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12658         export_dynamic_flag_spec_CXX='${wl}-E'
12659         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12660         # Instead, shared libraries are loaded at an image base (0x10000000 by
12661         # default) and relocated if they conflict, which is a slow very memory
12662         # consuming and fragmenting process.  To avoid this, we pick a random,
12663         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12664         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12665         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'
12666         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'
12667         ;;
12668       irix5* | irix6*)
12669         case $cc_basename in
12670           CC*)
12671             # SGI C++
12672             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'
12673
12674             # Archives containing C++ object files must be created using
12675             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12676             # necessary to make sure instantiated templates are included
12677             # in the archive.
12678             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12679             ;;
12680           *)
12681             if test "$GXX" = yes; then
12682               if test "$with_gnu_ld" = no; then
12683                 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'
12684               else
12685                 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'
12686               fi
12687             fi
12688             link_all_deplibs_CXX=yes
12689             ;;
12690         esac
12691         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12692         hardcode_libdir_separator_CXX=:
12693         inherit_rpath_CXX=yes
12694         ;;
12695
12696       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12697         case $cc_basename in
12698           KCC*)
12699             # Kuck and Associates, Inc. (KAI) C++ Compiler
12700
12701             # KCC will only create a shared library if the output file
12702             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12703             # to its proper name (with version) after linking.
12704             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'
12705             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'
12706             # Commands to make compiler produce verbose output that lists
12707             # what "hidden" libraries, object files and flags are used when
12708             # linking a shared library.
12709             #
12710             # There doesn't appear to be a way to prevent this compiler from
12711             # explicitly linking system object files so we need to strip them
12712             # from the output so that they don't get included in the library
12713             # dependencies.
12714             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"'
12715
12716             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12717             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12718
12719             # Archives containing C++ object files must be created using
12720             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12721             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12722             ;;
12723           icpc* | ecpc* )
12724             # Intel C++
12725             with_gnu_ld=yes
12726             # version 8.0 and above of icpc choke on multiply defined symbols
12727             # if we add $predep_objects and $postdep_objects, however 7.1 and
12728             # earlier do not add the objects themselves.
12729             case `$CC -V 2>&1` in
12730               *"Version 7."*)
12731                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12732                 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'
12733                 ;;
12734               *)  # Version 8.0 or newer
12735                 tmp_idyn=
12736                 case $host_cpu in
12737                   ia64*) tmp_idyn=' -i_dynamic';;
12738                 esac
12739                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740                 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'
12741                 ;;
12742             esac
12743             archive_cmds_need_lc_CXX=no
12744             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12745             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12746             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12747             ;;
12748           pgCC* | pgcpp*)
12749             # Portland Group C++ compiler
12750             case `$CC -V` in
12751             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12752               prelink_cmds_CXX='tpldir=Template.dir~
12753                 rm -rf $tpldir~
12754                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12755                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12756               old_archive_cmds_CXX='tpldir=Template.dir~
12757                 rm -rf $tpldir~
12758                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12759                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12760                 $RANLIB $oldlib'
12761               archive_cmds_CXX='tpldir=Template.dir~
12762                 rm -rf $tpldir~
12763                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12764                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12765               archive_expsym_cmds_CXX='tpldir=Template.dir~
12766                 rm -rf $tpldir~
12767                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12768                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12769               ;;
12770             *) # Version 6 and above use weak symbols
12771               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12772               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'
12773               ;;
12774             esac
12775
12776             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12777             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12778             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'
12779             ;;
12780           cxx*)
12781             # Compaq C++
12782             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12783             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'
12784
12785             runpath_var=LD_RUN_PATH
12786             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12787             hardcode_libdir_separator_CXX=:
12788
12789             # Commands to make compiler produce verbose output that lists
12790             # what "hidden" libraries, object files and flags are used when
12791             # linking a shared library.
12792             #
12793             # There doesn't appear to be a way to prevent this compiler from
12794             # explicitly linking system object files so we need to strip them
12795             # from the output so that they don't get included in the library
12796             # dependencies.
12797             output_verbose_link_cmd='templist=`$CC -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'
12798             ;;
12799           xl* | mpixl* | bgxl*)
12800             # IBM XL 8.0 on PPC, with GNU ld
12801             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12802             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12803             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12804             if test "x$supports_anon_versioning" = xyes; then
12805               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12806                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12807                 echo "local: *; };" >> $output_objdir/$libname.ver~
12808                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12809             fi
12810             ;;
12811           *)
12812             case `$CC -V 2>&1 | sed 5q` in
12813             *Sun\ C*)
12814               # Sun C++ 5.9
12815               no_undefined_flag_CXX=' -zdefs'
12816               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12817               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'
12818               hardcode_libdir_flag_spec_CXX='-R$libdir'
12819               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'
12820               compiler_needs_object_CXX=yes
12821
12822               # Not sure whether something based on
12823               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12824               # would be better.
12825               output_verbose_link_cmd='func_echo_all'
12826
12827               # Archives containing C++ object files must be created using
12828               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12829               # necessary to make sure instantiated templates are included
12830               # in the archive.
12831               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12832               ;;
12833             esac
12834             ;;
12835         esac
12836         ;;
12837
12838       lynxos*)
12839         # FIXME: insert proper C++ library support
12840         ld_shlibs_CXX=no
12841         ;;
12842
12843       m88k*)
12844         # FIXME: insert proper C++ library support
12845         ld_shlibs_CXX=no
12846         ;;
12847
12848       mvs*)
12849         case $cc_basename in
12850           cxx*)
12851             # FIXME: insert proper C++ library support
12852             ld_shlibs_CXX=no
12853             ;;
12854           *)
12855             # FIXME: insert proper C++ library support
12856             ld_shlibs_CXX=no
12857             ;;
12858         esac
12859         ;;
12860
12861       netbsd*)
12862         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12863           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12864           wlarc=
12865           hardcode_libdir_flag_spec_CXX='-R$libdir'
12866           hardcode_direct_CXX=yes
12867           hardcode_shlibpath_var_CXX=no
12868         fi
12869         # Workaround some broken pre-1.5 toolchains
12870         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12871         ;;
12872
12873       *nto* | *qnx*)
12874         ld_shlibs_CXX=yes
12875         ;;
12876
12877       openbsd2*)
12878         # C++ shared libraries are fairly broken
12879         ld_shlibs_CXX=no
12880         ;;
12881
12882       openbsd*)
12883         if test -f /usr/libexec/ld.so; then
12884           hardcode_direct_CXX=yes
12885           hardcode_shlibpath_var_CXX=no
12886           hardcode_direct_absolute_CXX=yes
12887           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12888           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12889           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12890             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12891             export_dynamic_flag_spec_CXX='${wl}-E'
12892             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12893           fi
12894           output_verbose_link_cmd=func_echo_all
12895         else
12896           ld_shlibs_CXX=no
12897         fi
12898         ;;
12899
12900       osf3* | osf4* | osf5*)
12901         case $cc_basename in
12902           KCC*)
12903             # Kuck and Associates, Inc. (KAI) C++ Compiler
12904
12905             # KCC will only create a shared library if the output file
12906             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12907             # to its proper name (with version) after linking.
12908             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'
12909
12910             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12911             hardcode_libdir_separator_CXX=:
12912
12913             # Archives containing C++ object files must be created using
12914             # the KAI C++ compiler.
12915             case $host in
12916               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12917               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12918             esac
12919             ;;
12920           RCC*)
12921             # Rational C++ 2.4.1
12922             # FIXME: insert proper C++ library support
12923             ld_shlibs_CXX=no
12924             ;;
12925           cxx*)
12926             case $host in
12927               osf3*)
12928                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12929                 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'
12930                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12931                 ;;
12932               *)
12933                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12934                 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'
12935                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12936                   echo "-hidden">> $lib.exp~
12937                   $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~
12938                   $RM $lib.exp'
12939                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12940                 ;;
12941             esac
12942
12943             hardcode_libdir_separator_CXX=:
12944
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 -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"'
12954             ;;
12955           *)
12956             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12957               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12958               case $host in
12959                 osf3*)
12960                   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'
12961                   ;;
12962                 *)
12963                   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'
12964                   ;;
12965               esac
12966
12967               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12968               hardcode_libdir_separator_CXX=:
12969
12970               # Commands to make compiler produce verbose output that lists
12971               # what "hidden" libraries, object files and flags are used when
12972               # linking a shared library.
12973               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12974
12975             else
12976               # FIXME: insert proper C++ library support
12977               ld_shlibs_CXX=no
12978             fi
12979             ;;
12980         esac
12981         ;;
12982
12983       psos*)
12984         # FIXME: insert proper C++ library support
12985         ld_shlibs_CXX=no
12986         ;;
12987
12988       sunos4*)
12989         case $cc_basename in
12990           CC*)
12991             # Sun C++ 4.x
12992             # FIXME: insert proper C++ library support
12993             ld_shlibs_CXX=no
12994             ;;
12995           lcc*)
12996             # Lucid
12997             # FIXME: insert proper C++ library support
12998             ld_shlibs_CXX=no
12999             ;;
13000           *)
13001             # FIXME: insert proper C++ library support
13002             ld_shlibs_CXX=no
13003             ;;
13004         esac
13005         ;;
13006
13007       solaris*)
13008         case $cc_basename in
13009           CC*)
13010             # Sun C++ 4.2, 5.x and Centerline C++
13011             archive_cmds_need_lc_CXX=yes
13012             no_undefined_flag_CXX=' -zdefs'
13013             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13014             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13015               $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'
13016
13017             hardcode_libdir_flag_spec_CXX='-R$libdir'
13018             hardcode_shlibpath_var_CXX=no
13019             case $host_os in
13020               solaris2.[0-5] | solaris2.[0-5].*) ;;
13021               *)
13022                 # The compiler driver will combine and reorder linker options,
13023                 # but understands `-z linker_flag'.
13024                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13025                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13026                 ;;
13027             esac
13028             link_all_deplibs_CXX=yes
13029
13030             output_verbose_link_cmd='func_echo_all'
13031
13032             # Archives containing C++ object files must be created using
13033             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13034             # necessary to make sure instantiated templates are included
13035             # in the archive.
13036             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13037             ;;
13038           gcx*)
13039             # Green Hills C++ Compiler
13040             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13041
13042             # The C++ compiler must be used to create the archive.
13043             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13044             ;;
13045           *)
13046             # GNU C++ compiler with Solaris linker
13047             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13048               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13049               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13050                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13051                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13052                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13053
13054                 # Commands to make compiler produce verbose output that lists
13055                 # what "hidden" libraries, object files and flags are used when
13056                 # linking a shared library.
13057                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13058               else
13059                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13060                 # platform.
13061                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13062                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13063                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13064
13065                 # Commands to make compiler produce verbose output that lists
13066                 # what "hidden" libraries, object files and flags are used when
13067                 # linking a shared library.
13068                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13069               fi
13070
13071               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13072               case $host_os in
13073                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13074                 *)
13075                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13076                   ;;
13077               esac
13078             fi
13079             ;;
13080         esac
13081         ;;
13082
13083     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13084       no_undefined_flag_CXX='${wl}-z,text'
13085       archive_cmds_need_lc_CXX=no
13086       hardcode_shlibpath_var_CXX=no
13087       runpath_var='LD_RUN_PATH'
13088
13089       case $cc_basename in
13090         CC*)
13091           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13092           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13093           ;;
13094         *)
13095           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13096           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097           ;;
13098       esac
13099       ;;
13100
13101       sysv5* | sco3.2v5* | sco5v6*)
13102         # Note: We can NOT use -z defs as we might desire, because we do not
13103         # link with -lc, and that would cause any symbols used from libc to
13104         # always be unresolved, which means just about no library would
13105         # ever link correctly.  If we're not using GNU ld we use -z text
13106         # though, which does catch some bad symbols but isn't as heavy-handed
13107         # as -z defs.
13108         no_undefined_flag_CXX='${wl}-z,text'
13109         allow_undefined_flag_CXX='${wl}-z,nodefs'
13110         archive_cmds_need_lc_CXX=no
13111         hardcode_shlibpath_var_CXX=no
13112         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13113         hardcode_libdir_separator_CXX=':'
13114         link_all_deplibs_CXX=yes
13115         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13116         runpath_var='LD_RUN_PATH'
13117
13118         case $cc_basename in
13119           CC*)
13120             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13121             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13122             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13123               '"$old_archive_cmds_CXX"
13124             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13125               '"$reload_cmds_CXX"
13126             ;;
13127           *)
13128             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13129             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13130             ;;
13131         esac
13132       ;;
13133
13134       tandem*)
13135         case $cc_basename in
13136           NCC*)
13137             # NonStop-UX NCC 3.20
13138             # FIXME: insert proper C++ library support
13139             ld_shlibs_CXX=no
13140             ;;
13141           *)
13142             # FIXME: insert proper C++ library support
13143             ld_shlibs_CXX=no
13144             ;;
13145         esac
13146         ;;
13147
13148       vxworks*)
13149         # FIXME: insert proper C++ library support
13150         ld_shlibs_CXX=no
13151         ;;
13152
13153       *)
13154         # FIXME: insert proper C++ library support
13155         ld_shlibs_CXX=no
13156         ;;
13157     esac
13158
13159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13160 $as_echo "$ld_shlibs_CXX" >&6; }
13161     test "$ld_shlibs_CXX" = no && can_build_shared=no
13162
13163     GCC_CXX="$GXX"
13164     LD_CXX="$LD"
13165
13166     ## CAVEAT EMPTOR:
13167     ## There is no encapsulation within the following macros, do not change
13168     ## the running order or otherwise move them around unless you know exactly
13169     ## what you are doing...
13170     # Dependencies to place before and after the object being linked:
13171 predep_objects_CXX=
13172 postdep_objects_CXX=
13173 predeps_CXX=
13174 postdeps_CXX=
13175 compiler_lib_search_path_CXX=
13176
13177 cat > conftest.$ac_ext <<_LT_EOF
13178 class Foo
13179 {
13180 public:
13181   Foo (void) { a = 0; }
13182 private:
13183   int a;
13184 };
13185 _LT_EOF
13186
13187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13188   (eval $ac_compile) 2>&5
13189   ac_status=$?
13190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13191   test $ac_status = 0; }; then
13192   # Parse the compiler output and extract the necessary
13193   # objects, libraries and library flags.
13194
13195   # Sentinel used to keep track of whether or not we are before
13196   # the conftest object file.
13197   pre_test_object_deps_done=no
13198
13199   for p in `eval "$output_verbose_link_cmd"`; do
13200     case $p in
13201
13202     -L* | -R* | -l*)
13203        # Some compilers place space between "-{L,R}" and the path.
13204        # Remove the space.
13205        if test $p = "-L" ||
13206           test $p = "-R"; then
13207          prev=$p
13208          continue
13209        else
13210          prev=
13211        fi
13212
13213        if test "$pre_test_object_deps_done" = no; then
13214          case $p in
13215          -L* | -R*)
13216            # Internal compiler library paths should come after those
13217            # provided the user.  The postdeps already come after the
13218            # user supplied libs so there is no need to process them.
13219            if test -z "$compiler_lib_search_path_CXX"; then
13220              compiler_lib_search_path_CXX="${prev}${p}"
13221            else
13222              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13223            fi
13224            ;;
13225          # The "-l" case would never come before the object being
13226          # linked, so don't bother handling this case.
13227          esac
13228        else
13229          if test -z "$postdeps_CXX"; then
13230            postdeps_CXX="${prev}${p}"
13231          else
13232            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13233          fi
13234        fi
13235        ;;
13236
13237     *.$objext)
13238        # This assumes that the test object file only shows up
13239        # once in the compiler output.
13240        if test "$p" = "conftest.$objext"; then
13241          pre_test_object_deps_done=yes
13242          continue
13243        fi
13244
13245        if test "$pre_test_object_deps_done" = no; then
13246          if test -z "$predep_objects_CXX"; then
13247            predep_objects_CXX="$p"
13248          else
13249            predep_objects_CXX="$predep_objects_CXX $p"
13250          fi
13251        else
13252          if test -z "$postdep_objects_CXX"; then
13253            postdep_objects_CXX="$p"
13254          else
13255            postdep_objects_CXX="$postdep_objects_CXX $p"
13256          fi
13257        fi
13258        ;;
13259
13260     *) ;; # Ignore the rest.
13261
13262     esac
13263   done
13264
13265   # Clean up.
13266   rm -f a.out a.exe
13267 else
13268   echo "libtool.m4: error: problem compiling CXX test program"
13269 fi
13270
13271 $RM -f confest.$objext
13272
13273 # PORTME: override above test on systems where it is broken
13274 case $host_os in
13275 interix[3-9]*)
13276   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13277   # hack all around it, let's just trust "g++" to DTRT.
13278   predep_objects_CXX=
13279   postdep_objects_CXX=
13280   postdeps_CXX=
13281   ;;
13282
13283 linux*)
13284   case `$CC -V 2>&1 | sed 5q` in
13285   *Sun\ C*)
13286     # Sun C++ 5.9
13287
13288     # The more standards-conforming stlport4 library is
13289     # incompatible with the Cstd library. Avoid specifying
13290     # it if it's in CXXFLAGS. Ignore libCrun as
13291     # -library=stlport4 depends on it.
13292     case " $CXX $CXXFLAGS " in
13293     *" -library=stlport4 "*)
13294       solaris_use_stlport4=yes
13295       ;;
13296     esac
13297
13298     if test "$solaris_use_stlport4" != yes; then
13299       postdeps_CXX='-library=Cstd -library=Crun'
13300     fi
13301     ;;
13302   esac
13303   ;;
13304
13305 solaris*)
13306   case $cc_basename in
13307   CC*)
13308     # The more standards-conforming stlport4 library is
13309     # incompatible with the Cstd library. Avoid specifying
13310     # it if it's in CXXFLAGS. Ignore libCrun as
13311     # -library=stlport4 depends on it.
13312     case " $CXX $CXXFLAGS " in
13313     *" -library=stlport4 "*)
13314       solaris_use_stlport4=yes
13315       ;;
13316     esac
13317
13318     # Adding this requires a known-good setup of shared libraries for
13319     # Sun compiler versions before 5.6, else PIC objects from an old
13320     # archive will be linked into the output, leading to subtle bugs.
13321     if test "$solaris_use_stlport4" != yes; then
13322       postdeps_CXX='-library=Cstd -library=Crun'
13323     fi
13324     ;;
13325   esac
13326   ;;
13327 esac
13328
13329
13330 case " $postdeps_CXX " in
13331 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13332 esac
13333  compiler_lib_search_dirs_CXX=
13334 if test -n "${compiler_lib_search_path_CXX}"; then
13335  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13336 fi
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368     lt_prog_compiler_wl_CXX=
13369 lt_prog_compiler_pic_CXX=
13370 lt_prog_compiler_static_CXX=
13371
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13373 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13374
13375   # C++ specific cases for pic, static, wl, etc.
13376   if test "$GXX" = yes; then
13377     lt_prog_compiler_wl_CXX='-Wl,'
13378     lt_prog_compiler_static_CXX='-static'
13379
13380     case $host_os in
13381     aix*)
13382       # All AIX code is PIC.
13383       if test "$host_cpu" = ia64; then
13384         # AIX 5 now supports IA64 processor
13385         lt_prog_compiler_static_CXX='-Bstatic'
13386       fi
13387       lt_prog_compiler_pic_CXX='-fPIC'
13388       ;;
13389
13390     amigaos*)
13391       case $host_cpu in
13392       powerpc)
13393             # see comment about AmigaOS4 .so support
13394             lt_prog_compiler_pic_CXX='-fPIC'
13395         ;;
13396       m68k)
13397             # FIXME: we need at least 68020 code to build shared libraries, but
13398             # adding the `-m68020' flag to GCC prevents building anything better,
13399             # like `-m68040'.
13400             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13401         ;;
13402       esac
13403       ;;
13404
13405     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13406       # PIC is the default for these OSes.
13407       ;;
13408     mingw* | cygwin* | os2* | pw32* | cegcc*)
13409       # This hack is so that the source file can tell whether it is being
13410       # built for inclusion in a dll (and should export symbols for example).
13411       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13412       # (--disable-auto-import) libraries
13413       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13414       ;;
13415     darwin* | rhapsody*)
13416       # PIC is the default on this platform
13417       # Common symbols not allowed in MH_DYLIB files
13418       lt_prog_compiler_pic_CXX='-fno-common'
13419       ;;
13420     *djgpp*)
13421       # DJGPP does not support shared libraries at all
13422       lt_prog_compiler_pic_CXX=
13423       ;;
13424     haiku*)
13425       # PIC is the default for Haiku.
13426       # The "-static" flag exists, but is broken.
13427       lt_prog_compiler_static_CXX=
13428       ;;
13429     interix[3-9]*)
13430       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13431       # Instead, we relocate shared libraries at runtime.
13432       ;;
13433     sysv4*MP*)
13434       if test -d /usr/nec; then
13435         lt_prog_compiler_pic_CXX=-Kconform_pic
13436       fi
13437       ;;
13438     hpux*)
13439       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13440       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13441       # sets the default TLS model and affects inlining.
13442       case $host_cpu in
13443       hppa*64*)
13444         ;;
13445       *)
13446         lt_prog_compiler_pic_CXX='-fPIC'
13447         ;;
13448       esac
13449       ;;
13450     *qnx* | *nto*)
13451       # QNX uses GNU C++, but need to define -shared option too, otherwise
13452       # it will coredump.
13453       lt_prog_compiler_pic_CXX='-fPIC -shared'
13454       ;;
13455     *)
13456       lt_prog_compiler_pic_CXX='-fPIC'
13457       ;;
13458     esac
13459   else
13460     case $host_os in
13461       aix[4-9]*)
13462         # All AIX code is PIC.
13463         if test "$host_cpu" = ia64; then
13464           # AIX 5 now supports IA64 processor
13465           lt_prog_compiler_static_CXX='-Bstatic'
13466         else
13467           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13468         fi
13469         ;;
13470       chorus*)
13471         case $cc_basename in
13472         cxch68*)
13473           # Green Hills C++ Compiler
13474           # _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"
13475           ;;
13476         esac
13477         ;;
13478       dgux*)
13479         case $cc_basename in
13480           ec++*)
13481             lt_prog_compiler_pic_CXX='-KPIC'
13482             ;;
13483           ghcx*)
13484             # Green Hills C++ Compiler
13485             lt_prog_compiler_pic_CXX='-pic'
13486             ;;
13487           *)
13488             ;;
13489         esac
13490         ;;
13491       freebsd* | dragonfly*)
13492         # FreeBSD uses GNU C++
13493         ;;
13494       hpux9* | hpux10* | hpux11*)
13495         case $cc_basename in
13496           CC*)
13497             lt_prog_compiler_wl_CXX='-Wl,'
13498             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13499             if test "$host_cpu" != ia64; then
13500               lt_prog_compiler_pic_CXX='+Z'
13501             fi
13502             ;;
13503           aCC*)
13504             lt_prog_compiler_wl_CXX='-Wl,'
13505             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13506             case $host_cpu in
13507             hppa*64*|ia64*)
13508               # +Z the default
13509               ;;
13510             *)
13511               lt_prog_compiler_pic_CXX='+Z'
13512               ;;
13513             esac
13514             ;;
13515           *)
13516             ;;
13517         esac
13518         ;;
13519       interix*)
13520         # This is c89, which is MS Visual C++ (no shared libs)
13521         # Anyone wants to do a port?
13522         ;;
13523       irix5* | irix6* | nonstopux*)
13524         case $cc_basename in
13525           CC*)
13526             lt_prog_compiler_wl_CXX='-Wl,'
13527             lt_prog_compiler_static_CXX='-non_shared'
13528             # CC pic flag -KPIC is the default.
13529             ;;
13530           *)
13531             ;;
13532         esac
13533         ;;
13534       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13535         case $cc_basename in
13536           KCC*)
13537             # KAI C++ Compiler
13538             lt_prog_compiler_wl_CXX='--backend -Wl,'
13539             lt_prog_compiler_pic_CXX='-fPIC'
13540             ;;
13541           ecpc* )
13542             # old Intel C++ for x86_64 which still supported -KPIC.
13543             lt_prog_compiler_wl_CXX='-Wl,'
13544             lt_prog_compiler_pic_CXX='-KPIC'
13545             lt_prog_compiler_static_CXX='-static'
13546             ;;
13547           icpc* )
13548             # Intel C++, used to be incompatible with GCC.
13549             # ICC 10 doesn't accept -KPIC any more.
13550             lt_prog_compiler_wl_CXX='-Wl,'
13551             lt_prog_compiler_pic_CXX='-fPIC'
13552             lt_prog_compiler_static_CXX='-static'
13553             ;;
13554           pgCC* | pgcpp*)
13555             # Portland Group C++ compiler
13556             lt_prog_compiler_wl_CXX='-Wl,'
13557             lt_prog_compiler_pic_CXX='-fpic'
13558             lt_prog_compiler_static_CXX='-Bstatic'
13559             ;;
13560           cxx*)
13561             # Compaq C++
13562             # Make sure the PIC flag is empty.  It appears that all Alpha
13563             # Linux and Compaq Tru64 Unix objects are PIC.
13564             lt_prog_compiler_pic_CXX=
13565             lt_prog_compiler_static_CXX='-non_shared'
13566             ;;
13567           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13568             # IBM XL 8.0, 9.0 on PPC and BlueGene
13569             lt_prog_compiler_wl_CXX='-Wl,'
13570             lt_prog_compiler_pic_CXX='-qpic'
13571             lt_prog_compiler_static_CXX='-qstaticlink'
13572             ;;
13573           *)
13574             case `$CC -V 2>&1 | sed 5q` in
13575             *Sun\ C*)
13576               # Sun C++ 5.9
13577               lt_prog_compiler_pic_CXX='-KPIC'
13578               lt_prog_compiler_static_CXX='-Bstatic'
13579               lt_prog_compiler_wl_CXX='-Qoption ld '
13580               ;;
13581             esac
13582             ;;
13583         esac
13584         ;;
13585       lynxos*)
13586         ;;
13587       m88k*)
13588         ;;
13589       mvs*)
13590         case $cc_basename in
13591           cxx*)
13592             lt_prog_compiler_pic_CXX='-W c,exportall'
13593             ;;
13594           *)
13595             ;;
13596         esac
13597         ;;
13598       netbsd*)
13599         ;;
13600       *qnx* | *nto*)
13601         # QNX uses GNU C++, but need to define -shared option too, otherwise
13602         # it will coredump.
13603         lt_prog_compiler_pic_CXX='-fPIC -shared'
13604         ;;
13605       osf3* | osf4* | osf5*)
13606         case $cc_basename in
13607           KCC*)
13608             lt_prog_compiler_wl_CXX='--backend -Wl,'
13609             ;;
13610           RCC*)
13611             # Rational C++ 2.4.1
13612             lt_prog_compiler_pic_CXX='-pic'
13613             ;;
13614           cxx*)
13615             # Digital/Compaq C++
13616             lt_prog_compiler_wl_CXX='-Wl,'
13617             # Make sure the PIC flag is empty.  It appears that all Alpha
13618             # Linux and Compaq Tru64 Unix objects are PIC.
13619             lt_prog_compiler_pic_CXX=
13620             lt_prog_compiler_static_CXX='-non_shared'
13621             ;;
13622           *)
13623             ;;
13624         esac
13625         ;;
13626       psos*)
13627         ;;
13628       solaris*)
13629         case $cc_basename in
13630           CC*)
13631             # Sun C++ 4.2, 5.x and Centerline C++
13632             lt_prog_compiler_pic_CXX='-KPIC'
13633             lt_prog_compiler_static_CXX='-Bstatic'
13634             lt_prog_compiler_wl_CXX='-Qoption ld '
13635             ;;
13636           gcx*)
13637             # Green Hills C++ Compiler
13638             lt_prog_compiler_pic_CXX='-PIC'
13639             ;;
13640           *)
13641             ;;
13642         esac
13643         ;;
13644       sunos4*)
13645         case $cc_basename in
13646           CC*)
13647             # Sun C++ 4.x
13648             lt_prog_compiler_pic_CXX='-pic'
13649             lt_prog_compiler_static_CXX='-Bstatic'
13650             ;;
13651           lcc*)
13652             # Lucid
13653             lt_prog_compiler_pic_CXX='-pic'
13654             ;;
13655           *)
13656             ;;
13657         esac
13658         ;;
13659       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13660         case $cc_basename in
13661           CC*)
13662             lt_prog_compiler_wl_CXX='-Wl,'
13663             lt_prog_compiler_pic_CXX='-KPIC'
13664             lt_prog_compiler_static_CXX='-Bstatic'
13665             ;;
13666         esac
13667         ;;
13668       tandem*)
13669         case $cc_basename in
13670           NCC*)
13671             # NonStop-UX NCC 3.20
13672             lt_prog_compiler_pic_CXX='-KPIC'
13673             ;;
13674           *)
13675             ;;
13676         esac
13677         ;;
13678       vxworks*)
13679         ;;
13680       *)
13681         lt_prog_compiler_can_build_shared_CXX=no
13682         ;;
13683     esac
13684   fi
13685
13686 case $host_os in
13687   # For platforms which do not support PIC, -DPIC is meaningless:
13688   *djgpp*)
13689     lt_prog_compiler_pic_CXX=
13690     ;;
13691   *)
13692     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13693     ;;
13694 esac
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13696 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13697
13698
13699
13700 #
13701 # Check to make sure the PIC flag actually works.
13702 #
13703 if test -n "$lt_prog_compiler_pic_CXX"; then
13704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13705 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13706 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13707   $as_echo_n "(cached) " >&6
13708 else
13709   lt_cv_prog_compiler_pic_works_CXX=no
13710    ac_outfile=conftest.$ac_objext
13711    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13712    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13713    # Insert the option either (1) after the last *FLAGS variable, or
13714    # (2) before a word containing "conftest.", or (3) at the end.
13715    # Note that $ac_compile itself does not contain backslashes and begins
13716    # with a dollar sign (not a hyphen), so the echo should work correctly.
13717    # The option is referenced via a variable to avoid confusing sed.
13718    lt_compile=`echo "$ac_compile" | $SED \
13719    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13721    -e 's:$: $lt_compiler_flag:'`
13722    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13723    (eval "$lt_compile" 2>conftest.err)
13724    ac_status=$?
13725    cat conftest.err >&5
13726    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727    if (exit $ac_status) && test -s "$ac_outfile"; then
13728      # The compiler can only warn and ignore the option if not recognized
13729      # So say no if there are warnings other than the usual output.
13730      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13731      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13732      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13733        lt_cv_prog_compiler_pic_works_CXX=yes
13734      fi
13735    fi
13736    $RM conftest*
13737
13738 fi
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13740 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13741
13742 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13743     case $lt_prog_compiler_pic_CXX in
13744      "" | " "*) ;;
13745      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13746      esac
13747 else
13748     lt_prog_compiler_pic_CXX=
13749      lt_prog_compiler_can_build_shared_CXX=no
13750 fi
13751
13752 fi
13753
13754
13755
13756 #
13757 # Check to make sure the static flag actually works.
13758 #
13759 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13761 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13762 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13763   $as_echo_n "(cached) " >&6
13764 else
13765   lt_cv_prog_compiler_static_works_CXX=no
13766    save_LDFLAGS="$LDFLAGS"
13767    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13768    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13769    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13770      # The linker can only warn and ignore the option if not recognized
13771      # So say no if there are warnings
13772      if test -s conftest.err; then
13773        # Append any errors to the config.log.
13774        cat conftest.err 1>&5
13775        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13776        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13777        if diff conftest.exp conftest.er2 >/dev/null; then
13778          lt_cv_prog_compiler_static_works_CXX=yes
13779        fi
13780      else
13781        lt_cv_prog_compiler_static_works_CXX=yes
13782      fi
13783    fi
13784    $RM -r conftest*
13785    LDFLAGS="$save_LDFLAGS"
13786
13787 fi
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13789 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13790
13791 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13792     :
13793 else
13794     lt_prog_compiler_static_CXX=
13795 fi
13796
13797
13798
13799
13800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13802 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13803   $as_echo_n "(cached) " >&6
13804 else
13805   lt_cv_prog_compiler_c_o_CXX=no
13806    $RM -r conftest 2>/dev/null
13807    mkdir conftest
13808    cd conftest
13809    mkdir out
13810    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13811
13812    lt_compiler_flag="-o out/conftest2.$ac_objext"
13813    # Insert the option either (1) after the last *FLAGS variable, or
13814    # (2) before a word containing "conftest.", or (3) at the end.
13815    # Note that $ac_compile itself does not contain backslashes and begins
13816    # with a dollar sign (not a hyphen), so the echo should work correctly.
13817    lt_compile=`echo "$ac_compile" | $SED \
13818    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820    -e 's:$: $lt_compiler_flag:'`
13821    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13822    (eval "$lt_compile" 2>out/conftest.err)
13823    ac_status=$?
13824    cat out/conftest.err >&5
13825    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13827    then
13828      # The compiler can only warn and ignore the option if not recognized
13829      # So say no if there are warnings
13830      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13831      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13832      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13833        lt_cv_prog_compiler_c_o_CXX=yes
13834      fi
13835    fi
13836    chmod u+w . 2>&5
13837    $RM conftest*
13838    # SGI C++ compiler will create directory out/ii_files/ for
13839    # template instantiation
13840    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13841    $RM out/* && rmdir out
13842    cd ..
13843    $RM -r conftest
13844    $RM conftest*
13845
13846 fi
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13848 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13849
13850
13851
13852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13854 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13855   $as_echo_n "(cached) " >&6
13856 else
13857   lt_cv_prog_compiler_c_o_CXX=no
13858    $RM -r conftest 2>/dev/null
13859    mkdir conftest
13860    cd conftest
13861    mkdir out
13862    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13863
13864    lt_compiler_flag="-o out/conftest2.$ac_objext"
13865    # Insert the option either (1) after the last *FLAGS variable, or
13866    # (2) before a word containing "conftest.", or (3) at the end.
13867    # Note that $ac_compile itself does not contain backslashes and begins
13868    # with a dollar sign (not a hyphen), so the echo should work correctly.
13869    lt_compile=`echo "$ac_compile" | $SED \
13870    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13871    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13872    -e 's:$: $lt_compiler_flag:'`
13873    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13874    (eval "$lt_compile" 2>out/conftest.err)
13875    ac_status=$?
13876    cat out/conftest.err >&5
13877    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13879    then
13880      # The compiler can only warn and ignore the option if not recognized
13881      # So say no if there are warnings
13882      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13883      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13884      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13885        lt_cv_prog_compiler_c_o_CXX=yes
13886      fi
13887    fi
13888    chmod u+w . 2>&5
13889    $RM conftest*
13890    # SGI C++ compiler will create directory out/ii_files/ for
13891    # template instantiation
13892    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13893    $RM out/* && rmdir out
13894    cd ..
13895    $RM -r conftest
13896    $RM conftest*
13897
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13900 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13901
13902
13903
13904
13905 hard_links="nottested"
13906 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13907   # do not overwrite the value of need_locks provided by the user
13908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13909 $as_echo_n "checking if we can lock with hard links... " >&6; }
13910   hard_links=yes
13911   $RM conftest*
13912   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13913   touch conftest.a
13914   ln conftest.a conftest.b 2>&5 || hard_links=no
13915   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13917 $as_echo "$hard_links" >&6; }
13918   if test "$hard_links" = no; then
13919     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13920 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13921     need_locks=warn
13922   fi
13923 else
13924   need_locks=no
13925 fi
13926
13927
13928
13929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13931
13932   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13933   case $host_os in
13934   aix[4-9]*)
13935     # If we're using GNU nm, then we don't want the "-C" option.
13936     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13937     # Also, AIX nm treats weak defined symbols like other global defined
13938     # symbols, whereas GNU nm marks them as "W".
13939     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13940       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'
13941     else
13942       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13943     fi
13944     ;;
13945   pw32*)
13946     export_symbols_cmds_CXX="$ltdll_cmds"
13947   ;;
13948   cygwin* | mingw* | cegcc*)
13949     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'
13950   ;;
13951   *)
13952     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13953   ;;
13954   esac
13955   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13956
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13958 $as_echo "$ld_shlibs_CXX" >&6; }
13959 test "$ld_shlibs_CXX" = no && can_build_shared=no
13960
13961 with_gnu_ld_CXX=$with_gnu_ld
13962
13963
13964
13965
13966
13967
13968 #
13969 # Do we need to explicitly link libc?
13970 #
13971 case "x$archive_cmds_need_lc_CXX" in
13972 x|xyes)
13973   # Assume -lc should be added
13974   archive_cmds_need_lc_CXX=yes
13975
13976   if test "$enable_shared" = yes && test "$GCC" = yes; then
13977     case $archive_cmds_CXX in
13978     *'~'*)
13979       # FIXME: we may have to deal with multi-command sequences.
13980       ;;
13981     '$CC '*)
13982       # Test whether the compiler implicitly links with -lc since on some
13983       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13984       # to ld, don't add -lc before -lgcc.
13985       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13986 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13987 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13988   $as_echo_n "(cached) " >&6
13989 else
13990   $RM conftest*
13991         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13992
13993         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13994   (eval $ac_compile) 2>&5
13995   ac_status=$?
13996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13997   test $ac_status = 0; } 2>conftest.err; then
13998           soname=conftest
13999           lib=conftest
14000           libobjs=conftest.$ac_objext
14001           deplibs=
14002           wl=$lt_prog_compiler_wl_CXX
14003           pic_flag=$lt_prog_compiler_pic_CXX
14004           compiler_flags=-v
14005           linker_flags=-v
14006           verstring=
14007           output_objdir=.
14008           libname=conftest
14009           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14010           allow_undefined_flag_CXX=
14011           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14012   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14013   ac_status=$?
14014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14015   test $ac_status = 0; }
14016           then
14017             lt_cv_archive_cmds_need_lc_CXX=no
14018           else
14019             lt_cv_archive_cmds_need_lc_CXX=yes
14020           fi
14021           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14022         else
14023           cat conftest.err 1>&5
14024         fi
14025         $RM conftest*
14026
14027 fi
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14029 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14030       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14031       ;;
14032     esac
14033   fi
14034   ;;
14035 esac
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14101 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14102
14103 library_names_spec=
14104 libname_spec='lib$name'
14105 soname_spec=
14106 shrext_cmds=".so"
14107 postinstall_cmds=
14108 postuninstall_cmds=
14109 finish_cmds=
14110 finish_eval=
14111 shlibpath_var=
14112 shlibpath_overrides_runpath=unknown
14113 version_type=none
14114 dynamic_linker="$host_os ld.so"
14115 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14116 need_lib_prefix=unknown
14117 hardcode_into_libs=no
14118
14119 # when you set need_version to no, make sure it does not cause -set_version
14120 # flags to be left without arguments
14121 need_version=unknown
14122
14123 case $host_os in
14124 aix3*)
14125   version_type=linux
14126   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14127   shlibpath_var=LIBPATH
14128
14129   # AIX 3 has no versioning support, so we append a major version to the name.
14130   soname_spec='${libname}${release}${shared_ext}$major'
14131   ;;
14132
14133 aix[4-9]*)
14134   version_type=linux
14135   need_lib_prefix=no
14136   need_version=no
14137   hardcode_into_libs=yes
14138   if test "$host_cpu" = ia64; then
14139     # AIX 5 supports IA64
14140     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14141     shlibpath_var=LD_LIBRARY_PATH
14142   else
14143     # With GCC up to 2.95.x, collect2 would create an import file
14144     # for dependence libraries.  The import file would start with
14145     # the line `#! .'.  This would cause the generated library to
14146     # depend on `.', always an invalid library.  This was fixed in
14147     # development snapshots of GCC prior to 3.0.
14148     case $host_os in
14149       aix4 | aix4.[01] | aix4.[01].*)
14150       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14151            echo ' yes '
14152            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14153         :
14154       else
14155         can_build_shared=no
14156       fi
14157       ;;
14158     esac
14159     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14160     # soname into executable. Probably we can add versioning support to
14161     # collect2, so additional links can be useful in future.
14162     if test "$aix_use_runtimelinking" = yes; then
14163       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14164       # instead of lib<name>.a to let people know that these are not
14165       # typical AIX shared libraries.
14166       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14167     else
14168       # We preserve .a as extension for shared libraries through AIX4.2
14169       # and later when we are not doing run time linking.
14170       library_names_spec='${libname}${release}.a $libname.a'
14171       soname_spec='${libname}${release}${shared_ext}$major'
14172     fi
14173     shlibpath_var=LIBPATH
14174   fi
14175   ;;
14176
14177 amigaos*)
14178   case $host_cpu in
14179   powerpc)
14180     # Since July 2007 AmigaOS4 officially supports .so libraries.
14181     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183     ;;
14184   m68k)
14185     library_names_spec='$libname.ixlibrary $libname.a'
14186     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14187     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'
14188     ;;
14189   esac
14190   ;;
14191
14192 beos*)
14193   library_names_spec='${libname}${shared_ext}'
14194   dynamic_linker="$host_os ld.so"
14195   shlibpath_var=LIBRARY_PATH
14196   ;;
14197
14198 bsdi[45]*)
14199   version_type=linux
14200   need_version=no
14201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202   soname_spec='${libname}${release}${shared_ext}$major'
14203   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14204   shlibpath_var=LD_LIBRARY_PATH
14205   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14206   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14207   # the default ld.so.conf also contains /usr/contrib/lib and
14208   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14209   # libtool to hard-code these into programs
14210   ;;
14211
14212 cygwin* | mingw* | pw32* | cegcc*)
14213   version_type=windows
14214   shrext_cmds=".dll"
14215   need_version=no
14216   need_lib_prefix=no
14217
14218   case $GCC,$host_os in
14219   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14220     library_names_spec='$libname.dll.a'
14221     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14222     postinstall_cmds='base_file=`basename \${file}`~
14223       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14224       dldir=$destdir/`dirname \$dlpath`~
14225       test -d \$dldir || mkdir -p \$dldir~
14226       $install_prog $dir/$dlname \$dldir/$dlname~
14227       chmod a+x \$dldir/$dlname~
14228       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14229         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14230       fi'
14231     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14232       dlpath=$dir/\$dldll~
14233        $RM \$dlpath'
14234     shlibpath_overrides_runpath=yes
14235
14236     case $host_os in
14237     cygwin*)
14238       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14239       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14240
14241       ;;
14242     mingw* | cegcc*)
14243       # MinGW DLLs use traditional 'lib' prefix
14244       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14245       ;;
14246     pw32*)
14247       # pw32 DLLs use 'pw' prefix rather than 'lib'
14248       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14249       ;;
14250     esac
14251     ;;
14252
14253   *)
14254     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14255     ;;
14256   esac
14257   dynamic_linker='Win32 ld.exe'
14258   # FIXME: first we should search . and the directory the executable is in
14259   shlibpath_var=PATH
14260   ;;
14261
14262 darwin* | rhapsody*)
14263   dynamic_linker="$host_os dyld"
14264   version_type=darwin
14265   need_lib_prefix=no
14266   need_version=no
14267   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14268   soname_spec='${libname}${release}${major}$shared_ext'
14269   shlibpath_overrides_runpath=yes
14270   shlibpath_var=DYLD_LIBRARY_PATH
14271   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14272
14273   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14274   ;;
14275
14276 dgux*)
14277   version_type=linux
14278   need_lib_prefix=no
14279   need_version=no
14280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14281   soname_spec='${libname}${release}${shared_ext}$major'
14282   shlibpath_var=LD_LIBRARY_PATH
14283   ;;
14284
14285 freebsd* | dragonfly*)
14286   # DragonFly does not have aout.  When/if they implement a new
14287   # versioning mechanism, adjust this.
14288   if test -x /usr/bin/objformat; then
14289     objformat=`/usr/bin/objformat`
14290   else
14291     case $host_os in
14292     freebsd[23].*) objformat=aout ;;
14293     *) objformat=elf ;;
14294     esac
14295   fi
14296   version_type=freebsd-$objformat
14297   case $version_type in
14298     freebsd-elf*)
14299       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14300       need_version=no
14301       need_lib_prefix=no
14302       ;;
14303     freebsd-*)
14304       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14305       need_version=yes
14306       ;;
14307   esac
14308   shlibpath_var=LD_LIBRARY_PATH
14309   case $host_os in
14310   freebsd2.*)
14311     shlibpath_overrides_runpath=yes
14312     ;;
14313   freebsd3.[01]* | freebsdelf3.[01]*)
14314     shlibpath_overrides_runpath=yes
14315     hardcode_into_libs=yes
14316     ;;
14317   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14318   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14319     shlibpath_overrides_runpath=no
14320     hardcode_into_libs=yes
14321     ;;
14322   *) # from 4.6 on, and DragonFly
14323     shlibpath_overrides_runpath=yes
14324     hardcode_into_libs=yes
14325     ;;
14326   esac
14327   ;;
14328
14329 haiku*)
14330   version_type=linux
14331   need_lib_prefix=no
14332   need_version=no
14333   dynamic_linker="$host_os runtime_loader"
14334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14335   soname_spec='${libname}${release}${shared_ext}$major'
14336   shlibpath_var=LIBRARY_PATH
14337   shlibpath_overrides_runpath=yes
14338   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14339   hardcode_into_libs=yes
14340   ;;
14341
14342 hpux9* | hpux10* | hpux11*)
14343   # Give a soname corresponding to the major version so that dld.sl refuses to
14344   # link against other versions.
14345   version_type=sunos
14346   need_lib_prefix=no
14347   need_version=no
14348   case $host_cpu in
14349   ia64*)
14350     shrext_cmds='.so'
14351     hardcode_into_libs=yes
14352     dynamic_linker="$host_os dld.so"
14353     shlibpath_var=LD_LIBRARY_PATH
14354     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356     soname_spec='${libname}${release}${shared_ext}$major'
14357     if test "X$HPUX_IA64_MODE" = X32; then
14358       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14359     else
14360       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14361     fi
14362     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14363     ;;
14364   hppa*64*)
14365     shrext_cmds='.sl'
14366     hardcode_into_libs=yes
14367     dynamic_linker="$host_os dld.sl"
14368     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14369     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371     soname_spec='${libname}${release}${shared_ext}$major'
14372     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14373     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14374     ;;
14375   *)
14376     shrext_cmds='.sl'
14377     dynamic_linker="$host_os dld.sl"
14378     shlibpath_var=SHLIB_PATH
14379     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14381     soname_spec='${libname}${release}${shared_ext}$major'
14382     ;;
14383   esac
14384   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14385   postinstall_cmds='chmod 555 $lib'
14386   # or fails outright, so override atomically:
14387   install_override_mode=555
14388   ;;
14389
14390 interix[3-9]*)
14391   version_type=linux
14392   need_lib_prefix=no
14393   need_version=no
14394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14395   soname_spec='${libname}${release}${shared_ext}$major'
14396   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14397   shlibpath_var=LD_LIBRARY_PATH
14398   shlibpath_overrides_runpath=no
14399   hardcode_into_libs=yes
14400   ;;
14401
14402 irix5* | irix6* | nonstopux*)
14403   case $host_os in
14404     nonstopux*) version_type=nonstopux ;;
14405     *)
14406         if test "$lt_cv_prog_gnu_ld" = yes; then
14407                 version_type=linux
14408         else
14409                 version_type=irix
14410         fi ;;
14411   esac
14412   need_lib_prefix=no
14413   need_version=no
14414   soname_spec='${libname}${release}${shared_ext}$major'
14415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14416   case $host_os in
14417   irix5* | nonstopux*)
14418     libsuff= shlibsuff=
14419     ;;
14420   *)
14421     case $LD in # libtool.m4 will add one of these switches to LD
14422     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14423       libsuff= shlibsuff= libmagic=32-bit;;
14424     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14425       libsuff=32 shlibsuff=N32 libmagic=N32;;
14426     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14427       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14428     *) libsuff= shlibsuff= libmagic=never-match;;
14429     esac
14430     ;;
14431   esac
14432   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14433   shlibpath_overrides_runpath=no
14434   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14435   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14436   hardcode_into_libs=yes
14437   ;;
14438
14439 # No shared lib support for Linux oldld, aout, or coff.
14440 linux*oldld* | linux*aout* | linux*coff*)
14441   dynamic_linker=no
14442   ;;
14443
14444 # This must be Linux ELF.
14445
14446 # uclinux* changes (here and below) have been submitted to the libtool
14447 # project, but have not yet been accepted: they are GCC-local changes
14448 # for the time being.  (See
14449 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14450 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14451   version_type=linux
14452   need_lib_prefix=no
14453   need_version=no
14454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455   soname_spec='${libname}${release}${shared_ext}$major'
14456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14457   shlibpath_var=LD_LIBRARY_PATH
14458   shlibpath_overrides_runpath=no
14459
14460   # Some binutils ld are patched to set DT_RUNPATH
14461   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14462   $as_echo_n "(cached) " >&6
14463 else
14464   lt_cv_shlibpath_overrides_runpath=no
14465     save_LDFLAGS=$LDFLAGS
14466     save_libdir=$libdir
14467     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14468          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h.  */
14471
14472 int
14473 main ()
14474 {
14475
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 if ac_fn_cxx_try_link "$LINENO"; then :
14481   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14482   lt_cv_shlibpath_overrides_runpath=yes
14483 fi
14484 fi
14485 rm -f core conftest.err conftest.$ac_objext \
14486     conftest$ac_exeext conftest.$ac_ext
14487     LDFLAGS=$save_LDFLAGS
14488     libdir=$save_libdir
14489
14490 fi
14491
14492   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14493
14494   # This implies no fast_install, which is unacceptable.
14495   # Some rework will be needed to allow for fast_install
14496   # before this can be enabled.
14497   hardcode_into_libs=yes
14498
14499   # Append ld.so.conf contents to the search path
14500   if test -f /etc/ld.so.conf; then
14501     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' ' '`
14502     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14503   fi
14504
14505   # We used to test for /lib/ld.so.1 and disable shared libraries on
14506   # powerpc, because MkLinux only supported shared libraries with the
14507   # GNU dynamic linker.  Since this was broken with cross compilers,
14508   # most powerpc-linux boxes support dynamic linking these days and
14509   # people can always --disable-shared, the test was removed, and we
14510   # assume the GNU/Linux dynamic linker is in use.
14511   dynamic_linker='GNU/Linux ld.so'
14512   ;;
14513
14514 netbsd*)
14515   version_type=sunos
14516   need_lib_prefix=no
14517   need_version=no
14518   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14520     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14521     dynamic_linker='NetBSD (a.out) ld.so'
14522   else
14523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14524     soname_spec='${libname}${release}${shared_ext}$major'
14525     dynamic_linker='NetBSD ld.elf_so'
14526   fi
14527   shlibpath_var=LD_LIBRARY_PATH
14528   shlibpath_overrides_runpath=yes
14529   hardcode_into_libs=yes
14530   ;;
14531
14532 newsos6)
14533   version_type=linux
14534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535   shlibpath_var=LD_LIBRARY_PATH
14536   shlibpath_overrides_runpath=yes
14537   ;;
14538
14539 *nto* | *qnx*)
14540   version_type=qnx
14541   need_lib_prefix=no
14542   need_version=no
14543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544   soname_spec='${libname}${release}${shared_ext}$major'
14545   shlibpath_var=LD_LIBRARY_PATH
14546   shlibpath_overrides_runpath=no
14547   hardcode_into_libs=yes
14548   dynamic_linker='ldqnx.so'
14549   ;;
14550
14551 openbsd*)
14552   version_type=sunos
14553   sys_lib_dlsearch_path_spec="/usr/lib"
14554   need_lib_prefix=no
14555   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14556   case $host_os in
14557     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14558     *)                          need_version=no  ;;
14559   esac
14560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14561   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14562   shlibpath_var=LD_LIBRARY_PATH
14563   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14564     case $host_os in
14565       openbsd2.[89] | openbsd2.[89].*)
14566         shlibpath_overrides_runpath=no
14567         ;;
14568       *)
14569         shlibpath_overrides_runpath=yes
14570         ;;
14571       esac
14572   else
14573     shlibpath_overrides_runpath=yes
14574   fi
14575   ;;
14576
14577 os2*)
14578   libname_spec='$name'
14579   shrext_cmds=".dll"
14580   need_lib_prefix=no
14581   library_names_spec='$libname${shared_ext} $libname.a'
14582   dynamic_linker='OS/2 ld.exe'
14583   shlibpath_var=LIBPATH
14584   ;;
14585
14586 osf3* | osf4* | osf5*)
14587   version_type=osf
14588   need_lib_prefix=no
14589   need_version=no
14590   soname_spec='${libname}${release}${shared_ext}$major'
14591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592   shlibpath_var=LD_LIBRARY_PATH
14593   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14594   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14595   ;;
14596
14597 rdos*)
14598   dynamic_linker=no
14599   ;;
14600
14601 solaris*)
14602   version_type=linux
14603   need_lib_prefix=no
14604   need_version=no
14605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606   soname_spec='${libname}${release}${shared_ext}$major'
14607   shlibpath_var=LD_LIBRARY_PATH
14608   shlibpath_overrides_runpath=yes
14609   hardcode_into_libs=yes
14610   # ldd complains unless libraries are executable
14611   postinstall_cmds='chmod +x $lib'
14612   ;;
14613
14614 sunos4*)
14615   version_type=sunos
14616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14617   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14618   shlibpath_var=LD_LIBRARY_PATH
14619   shlibpath_overrides_runpath=yes
14620   if test "$with_gnu_ld" = yes; then
14621     need_lib_prefix=no
14622   fi
14623   need_version=yes
14624   ;;
14625
14626 sysv4 | sysv4.3*)
14627   version_type=linux
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   shlibpath_var=LD_LIBRARY_PATH
14631   case $host_vendor in
14632     sni)
14633       shlibpath_overrides_runpath=no
14634       need_lib_prefix=no
14635       runpath_var=LD_RUN_PATH
14636       ;;
14637     siemens)
14638       need_lib_prefix=no
14639       ;;
14640     motorola)
14641       need_lib_prefix=no
14642       need_version=no
14643       shlibpath_overrides_runpath=no
14644       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14645       ;;
14646   esac
14647   ;;
14648
14649 sysv4*MP*)
14650   if test -d /usr/nec ;then
14651     version_type=linux
14652     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14653     soname_spec='$libname${shared_ext}.$major'
14654     shlibpath_var=LD_LIBRARY_PATH
14655   fi
14656   ;;
14657
14658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14659   version_type=freebsd-elf
14660   need_lib_prefix=no
14661   need_version=no
14662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14663   soname_spec='${libname}${release}${shared_ext}$major'
14664   shlibpath_var=LD_LIBRARY_PATH
14665   shlibpath_overrides_runpath=yes
14666   hardcode_into_libs=yes
14667   if test "$with_gnu_ld" = yes; then
14668     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14669   else
14670     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14671     case $host_os in
14672       sco3.2v5*)
14673         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14674         ;;
14675     esac
14676   fi
14677   sys_lib_dlsearch_path_spec='/usr/lib'
14678   ;;
14679
14680 tpf*)
14681   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14682   version_type=linux
14683   need_lib_prefix=no
14684   need_version=no
14685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686   shlibpath_var=LD_LIBRARY_PATH
14687   shlibpath_overrides_runpath=no
14688   hardcode_into_libs=yes
14689   ;;
14690
14691 uts4*)
14692   version_type=linux
14693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694   soname_spec='${libname}${release}${shared_ext}$major'
14695   shlibpath_var=LD_LIBRARY_PATH
14696   ;;
14697
14698 *)
14699   dynamic_linker=no
14700   ;;
14701 esac
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14703 $as_echo "$dynamic_linker" >&6; }
14704 test "$dynamic_linker" = no && can_build_shared=no
14705
14706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14707 if test "$GCC" = yes; then
14708   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14709 fi
14710
14711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14712   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14713 fi
14714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14715   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14716 fi
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14757 hardcode_action_CXX=
14758 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14759    test -n "$runpath_var_CXX" ||
14760    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14761
14762   # We can hardcode non-existent directories.
14763   if test "$hardcode_direct_CXX" != no &&
14764      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14765      # have to relink, otherwise we might link with an installed library
14766      # when we should be linking with a yet-to-be-installed one
14767      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14768      test "$hardcode_minus_L_CXX" != no; then
14769     # Linking always hardcodes the temporary library directory.
14770     hardcode_action_CXX=relink
14771   else
14772     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14773     hardcode_action_CXX=immediate
14774   fi
14775 else
14776   # We cannot hardcode anything, or else we can only hardcode existing
14777   # directories.
14778   hardcode_action_CXX=unsupported
14779 fi
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14781 $as_echo "$hardcode_action_CXX" >&6; }
14782
14783 if test "$hardcode_action_CXX" = relink ||
14784    test "$inherit_rpath_CXX" = yes; then
14785   # Fast installation is not supported
14786   enable_fast_install=no
14787 elif test "$shlibpath_overrides_runpath" = yes ||
14788      test "$enable_shared" = no; then
14789   # Fast installation is not necessary
14790   enable_fast_install=needless
14791 fi
14792
14793
14794
14795
14796
14797
14798
14799   fi # test -n "$compiler"
14800
14801   CC=$lt_save_CC
14802   LDCXX=$LD
14803   LD=$lt_save_LD
14804   GCC=$lt_save_GCC
14805   with_gnu_ld=$lt_save_with_gnu_ld
14806   lt_cv_path_LDCXX=$lt_cv_path_LD
14807   lt_cv_path_LD=$lt_save_path_LD
14808   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14809   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14810 fi # test "$_lt_caught_CXX_error" != yes
14811
14812 ac_ext=c
14813 ac_cpp='$CPP $CPPFLAGS'
14814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830         ac_config_commands="$ac_config_commands libtool"
14831
14832
14833
14834
14835 # Only expand once:
14836
14837
14838
14839 if test -n "$ac_tool_prefix"; then
14840   # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
14841 set dummy ${ac_tool_prefix}readelf; ac_word=$2
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14843 $as_echo_n "checking for $ac_word... " >&6; }
14844 if ${ac_cv_prog_READELF+:} false; then :
14845   $as_echo_n "(cached) " >&6
14846 else
14847   if test -n "$READELF"; then
14848   ac_cv_prog_READELF="$READELF" # Let the user override the test.
14849 else
14850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14851 for as_dir in $PATH
14852 do
14853   IFS=$as_save_IFS
14854   test -z "$as_dir" && as_dir=.
14855     for ac_exec_ext in '' $ac_executable_extensions; do
14856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14857     ac_cv_prog_READELF="${ac_tool_prefix}readelf"
14858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14859     break 2
14860   fi
14861 done
14862   done
14863 IFS=$as_save_IFS
14864
14865 fi
14866 fi
14867 READELF=$ac_cv_prog_READELF
14868 if test -n "$READELF"; then
14869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14870 $as_echo "$READELF" >&6; }
14871 else
14872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873 $as_echo "no" >&6; }
14874 fi
14875
14876
14877 fi
14878 if test -z "$ac_cv_prog_READELF"; then
14879   ac_ct_READELF=$READELF
14880   # Extract the first word of "readelf", so it can be a program name with args.
14881 set dummy readelf; ac_word=$2
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14883 $as_echo_n "checking for $ac_word... " >&6; }
14884 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
14885   $as_echo_n "(cached) " >&6
14886 else
14887   if test -n "$ac_ct_READELF"; then
14888   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
14889 else
14890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14891 for as_dir in $PATH
14892 do
14893   IFS=$as_save_IFS
14894   test -z "$as_dir" && as_dir=.
14895     for ac_exec_ext in '' $ac_executable_extensions; do
14896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14897     ac_cv_prog_ac_ct_READELF="readelf"
14898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14899     break 2
14900   fi
14901 done
14902   done
14903 IFS=$as_save_IFS
14904
14905 fi
14906 fi
14907 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
14908 if test -n "$ac_ct_READELF"; then
14909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
14910 $as_echo "$ac_ct_READELF" >&6; }
14911 else
14912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14913 $as_echo "no" >&6; }
14914 fi
14915
14916   if test "x$ac_ct_READELF" = x; then
14917     READELF=""
14918   else
14919     case $cross_compiling:$ac_tool_warned in
14920 yes:)
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14923 ac_tool_warned=yes ;;
14924 esac
14925     READELF=$ac_ct_READELF
14926   fi
14927 else
14928   READELF="$ac_cv_prog_READELF"
14929 fi
14930
14931
14932 # Test for 64-bit build.
14933 # The cast to long int works around a bug in the HP C Compiler
14934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14936 # This bug is HP SR number 8606223364.
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14938 $as_echo_n "checking size of size_t... " >&6; }
14939 if ${ac_cv_sizeof_size_t+:} false; then :
14940   $as_echo_n "(cached) " >&6
14941 else
14942   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14943
14944 else
14945   if test "$ac_cv_type_size_t" = yes; then
14946      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14948 as_fn_error 77 "cannot compute sizeof (size_t)
14949 See \`config.log' for more details" "$LINENO" 5; }
14950    else
14951      ac_cv_sizeof_size_t=0
14952    fi
14953 fi
14954
14955 fi
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14957 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14958
14959
14960
14961 cat >>confdefs.h <<_ACEOF
14962 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14963 _ACEOF
14964
14965
14966
14967 cat > local.exp <<EOF
14968 set CC_FOR_TARGET "$CC"
14969 set CXX_FOR_TARGET "$CXX"
14970 set compiler_vendor "$ax_cv_c_compiler_vendor"
14971 EOF
14972
14973
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14975 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14976     # Check whether --enable-maintainer-mode was given.
14977 if test "${enable_maintainer_mode+set}" = set; then :
14978   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14979 else
14980   USE_MAINTAINER_MODE=no
14981 fi
14982
14983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14984 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14985    if test $USE_MAINTAINER_MODE = yes; then
14986   MAINTAINER_MODE_TRUE=
14987   MAINTAINER_MODE_FALSE='#'
14988 else
14989   MAINTAINER_MODE_TRUE='#'
14990   MAINTAINER_MODE_FALSE=
14991 fi
14992
14993   MAINT=$MAINTAINER_MODE_TRUE
14994
14995
14996
14997 for ac_header in sys/memfd.h
14998 do :
14999   ac_fn_c_check_header_mongrel "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
15000 if test "x$ac_cv_header_sys_memfd_h" = xyes; then :
15001   cat >>confdefs.h <<_ACEOF
15002 #define HAVE_SYS_MEMFD_H 1
15003 _ACEOF
15004
15005 fi
15006
15007 done
15008
15009 for ac_func in memfd_create
15010 do :
15011   ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
15012 if test "x$ac_cv_func_memfd_create" = xyes; then :
15013   cat >>confdefs.h <<_ACEOF
15014 #define HAVE_MEMFD_CREATE 1
15015 _ACEOF
15016
15017 fi
15018 done
15019
15020
15021 for ac_header in sys/mman.h
15022 do :
15023   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15024 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15025   cat >>confdefs.h <<_ACEOF
15026 #define HAVE_SYS_MMAN_H 1
15027 _ACEOF
15028
15029 fi
15030
15031 done
15032
15033 for ac_func in mmap mkostemp mkstemp
15034 do :
15035   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15036 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15037 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15038   cat >>confdefs.h <<_ACEOF
15039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15040 _ACEOF
15041
15042 fi
15043 done
15044
15045
15046 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15047 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15048   libffi_header_sys_mman_h=yes
15049 else
15050   libffi_header_sys_mman_h=no
15051 fi
15052
15053
15054 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15055 if test "x$ac_cv_func_mmap" = xyes; then :
15056   libffi_func_mmap=yes
15057 else
15058   libffi_func_mmap=no
15059 fi
15060
15061 if test "$libffi_header_sys_mman_h" != yes \
15062  || test "$libffi_func_mmap" != yes; then
15063    ac_cv_func_mmap_file=no
15064    ac_cv_func_mmap_dev_zero=no
15065    ac_cv_func_mmap_anon=no
15066 else
15067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15068 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15069 if ${ac_cv_func_mmap_file+:} false; then :
15070   $as_echo_n "(cached) " >&6
15071 else
15072   # Add a system to this blacklist if
15073    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15074    # memory area containing the same data that you'd get if you applied
15075    # read() to the same fd.  The only system known to have a problem here
15076    # is VMS, where text files have record structure.
15077    case "$host_os" in
15078      vms* | ultrix*)
15079         ac_cv_func_mmap_file=no ;;
15080      *)
15081         ac_cv_func_mmap_file=yes;;
15082    esac
15083 fi
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15085 $as_echo "$ac_cv_func_mmap_file" >&6; }
15086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15087 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15088 if ${ac_cv_func_mmap_dev_zero+:} false; then :
15089   $as_echo_n "(cached) " >&6
15090 else
15091   # Add a system to this blacklist if it has mmap() but /dev/zero
15092    # does not exist, or if mmapping /dev/zero does not give anonymous
15093    # zeroed pages with both the following properties:
15094    # 1. If you map N consecutive pages in with one call, and then
15095    #    unmap any subset of those pages, the pages that were not
15096    #    explicitly unmapped remain accessible.
15097    # 2. If you map two adjacent blocks of memory and then unmap them
15098    #    both at once, they must both go away.
15099    # Systems known to be in this category are Windows (all variants),
15100    # VMS, and Darwin.
15101    case "$host_os" in
15102      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15103         ac_cv_func_mmap_dev_zero=no ;;
15104      *)
15105         ac_cv_func_mmap_dev_zero=yes;;
15106    esac
15107 fi
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15109 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15110
15111    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15113 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15114 if ${ac_cv_decl_map_anon+:} false; then :
15115   $as_echo_n "(cached) " >&6
15116 else
15117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h.  */
15119 #include <sys/types.h>
15120 #include <sys/mman.h>
15121 #include <unistd.h>
15122
15123 #ifndef MAP_ANONYMOUS
15124 #define MAP_ANONYMOUS MAP_ANON
15125 #endif
15126
15127 int
15128 main ()
15129 {
15130 int n = MAP_ANONYMOUS;
15131   ;
15132   return 0;
15133 }
15134 _ACEOF
15135 if ac_fn_c_try_compile "$LINENO"; then :
15136   ac_cv_decl_map_anon=yes
15137 else
15138   ac_cv_decl_map_anon=no
15139 fi
15140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15141 fi
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15143 $as_echo "$ac_cv_decl_map_anon" >&6; }
15144
15145    if test $ac_cv_decl_map_anon = no; then
15146      ac_cv_func_mmap_anon=no
15147    else
15148      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15149 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15150 if ${ac_cv_func_mmap_anon+:} false; then :
15151   $as_echo_n "(cached) " >&6
15152 else
15153   # Add a system to this blacklist if it has mmap() and MAP_ANON or
15154    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15155    # doesn't give anonymous zeroed pages with the same properties listed
15156    # above for use of /dev/zero.
15157    # Systems known to be in this category are Windows, VMS, and SCO Unix.
15158    case "$host_os" in
15159      vms* | cygwin* | pe | mingw* | sco* | udk* )
15160         ac_cv_func_mmap_anon=no ;;
15161      *)
15162         ac_cv_func_mmap_anon=yes;;
15163    esac
15164 fi
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15166 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15167    fi
15168 fi
15169
15170 if test $ac_cv_func_mmap_file = yes; then
15171
15172 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15173
15174 fi
15175 if test $ac_cv_func_mmap_dev_zero = yes; then
15176
15177 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15178
15179 fi
15180 if test $ac_cv_func_mmap_anon = yes; then
15181
15182 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15183
15184 fi
15185
15186
15187  if test -d $srcdir/testsuite; then
15188   TESTSUBDIR_TRUE=
15189   TESTSUBDIR_FALSE='#'
15190 else
15191   TESTSUBDIR_TRUE='#'
15192   TESTSUBDIR_FALSE=
15193 fi
15194
15195
15196 TARGETDIR="unknown"
15197 HAVE_LONG_DOUBLE_VARIANT=0
15198
15199 . ${srcdir}/configure.host
15200
15201 if test -n "${UNSUPPORTED}"; then
15202   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15203 fi
15204
15205
15206
15207
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15209 $as_echo_n "checking for ANSI C header files... " >&6; }
15210 if ${ac_cv_header_stdc+:} false; then :
15211   $as_echo_n "(cached) " >&6
15212 else
15213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h.  */
15215 #include <stdlib.h>
15216 #include <stdarg.h>
15217 #include <string.h>
15218 #include <float.h>
15219
15220 int
15221 main ()
15222 {
15223
15224   ;
15225   return 0;
15226 }
15227 _ACEOF
15228 if ac_fn_c_try_compile "$LINENO"; then :
15229   ac_cv_header_stdc=yes
15230 else
15231   ac_cv_header_stdc=no
15232 fi
15233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15234
15235 if test $ac_cv_header_stdc = yes; then
15236   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h.  */
15239 #include <string.h>
15240
15241 _ACEOF
15242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15243   $EGREP "memchr" >/dev/null 2>&1; then :
15244
15245 else
15246   ac_cv_header_stdc=no
15247 fi
15248 rm -f conftest*
15249
15250 fi
15251
15252 if test $ac_cv_header_stdc = yes; then
15253   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h.  */
15256 #include <stdlib.h>
15257
15258 _ACEOF
15259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15260   $EGREP "free" >/dev/null 2>&1; then :
15261
15262 else
15263   ac_cv_header_stdc=no
15264 fi
15265 rm -f conftest*
15266
15267 fi
15268
15269 if test $ac_cv_header_stdc = yes; then
15270   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15271   if test "$cross_compiling" = yes; then :
15272   :
15273 else
15274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h.  */
15276 #include <ctype.h>
15277 #include <stdlib.h>
15278 #if ((' ' & 0x0FF) == 0x020)
15279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15281 #else
15282 # define ISLOWER(c) \
15283                    (('a' <= (c) && (c) <= 'i') \
15284                      || ('j' <= (c) && (c) <= 'r') \
15285                      || ('s' <= (c) && (c) <= 'z'))
15286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15287 #endif
15288
15289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15290 int
15291 main ()
15292 {
15293   int i;
15294   for (i = 0; i < 256; i++)
15295     if (XOR (islower (i), ISLOWER (i))
15296         || toupper (i) != TOUPPER (i))
15297       return 2;
15298   return 0;
15299 }
15300 _ACEOF
15301 if ac_fn_c_try_run "$LINENO"; then :
15302
15303 else
15304   ac_cv_header_stdc=no
15305 fi
15306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15307   conftest.$ac_objext conftest.beam conftest.$ac_ext
15308 fi
15309
15310 fi
15311 fi
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15313 $as_echo "$ac_cv_header_stdc" >&6; }
15314 if test $ac_cv_header_stdc = yes; then
15315
15316 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15317
15318 fi
15319
15320 for ac_func in memcpy
15321 do :
15322   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15323 if test "x$ac_cv_func_memcpy" = xyes; then :
15324   cat >>confdefs.h <<_ACEOF
15325 #define HAVE_MEMCPY 1
15326 _ACEOF
15327
15328 fi
15329 done
15330
15331 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15332 if test "x$ac_cv_type_size_t" = xyes; then :
15333
15334 else
15335
15336 cat >>confdefs.h <<_ACEOF
15337 #define size_t unsigned int
15338 _ACEOF
15339
15340 fi
15341
15342 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15343 # for constant arguments.  Useless!
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15345 $as_echo_n "checking for working alloca.h... " >&6; }
15346 if ${ac_cv_working_alloca_h+:} false; then :
15347   $as_echo_n "(cached) " >&6
15348 else
15349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15350 /* end confdefs.h.  */
15351 #include <alloca.h>
15352 int
15353 main ()
15354 {
15355 char *p = (char *) alloca (2 * sizeof (int));
15356                           if (p) return 0;
15357   ;
15358   return 0;
15359 }
15360 _ACEOF
15361 if ac_fn_c_try_link "$LINENO"; then :
15362   ac_cv_working_alloca_h=yes
15363 else
15364   ac_cv_working_alloca_h=no
15365 fi
15366 rm -f core conftest.err conftest.$ac_objext \
15367     conftest$ac_exeext conftest.$ac_ext
15368 fi
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15370 $as_echo "$ac_cv_working_alloca_h" >&6; }
15371 if test $ac_cv_working_alloca_h = yes; then
15372
15373 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15374
15375 fi
15376
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15378 $as_echo_n "checking for alloca... " >&6; }
15379 if ${ac_cv_func_alloca_works+:} false; then :
15380   $as_echo_n "(cached) " >&6
15381 else
15382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h.  */
15384 #ifdef __GNUC__
15385 # define alloca __builtin_alloca
15386 #else
15387 # ifdef _MSC_VER
15388 #  include <malloc.h>
15389 #  define alloca _alloca
15390 # else
15391 #  ifdef HAVE_ALLOCA_H
15392 #   include <alloca.h>
15393 #  else
15394 #   ifdef _AIX
15395  #pragma alloca
15396 #   else
15397 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15398 void *alloca (size_t);
15399 #    endif
15400 #   endif
15401 #  endif
15402 # endif
15403 #endif
15404
15405 int
15406 main ()
15407 {
15408 char *p = (char *) alloca (1);
15409                                     if (p) return 0;
15410   ;
15411   return 0;
15412 }
15413 _ACEOF
15414 if ac_fn_c_try_link "$LINENO"; then :
15415   ac_cv_func_alloca_works=yes
15416 else
15417   ac_cv_func_alloca_works=no
15418 fi
15419 rm -f core conftest.err conftest.$ac_objext \
15420     conftest$ac_exeext conftest.$ac_ext
15421 fi
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15423 $as_echo "$ac_cv_func_alloca_works" >&6; }
15424
15425 if test $ac_cv_func_alloca_works = yes; then
15426
15427 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15428
15429 else
15430   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15431 # that cause trouble.  Some versions do not even contain alloca or
15432 # contain a buggy version.  If you still want to use their alloca,
15433 # use ar to extract alloca.o from them instead of compiling alloca.c.
15434
15435 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15436
15437 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15438
15439
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15441 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15442 if ${ac_cv_os_cray+:} false; then :
15443   $as_echo_n "(cached) " >&6
15444 else
15445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h.  */
15447 #if defined CRAY && ! defined CRAY2
15448 webecray
15449 #else
15450 wenotbecray
15451 #endif
15452
15453 _ACEOF
15454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15455   $EGREP "webecray" >/dev/null 2>&1; then :
15456   ac_cv_os_cray=yes
15457 else
15458   ac_cv_os_cray=no
15459 fi
15460 rm -f conftest*
15461
15462 fi
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15464 $as_echo "$ac_cv_os_cray" >&6; }
15465 if test $ac_cv_os_cray = yes; then
15466   for ac_func in _getb67 GETB67 getb67; do
15467     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15469 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15470
15471 cat >>confdefs.h <<_ACEOF
15472 #define CRAY_STACKSEG_END $ac_func
15473 _ACEOF
15474
15475     break
15476 fi
15477
15478   done
15479 fi
15480
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15482 $as_echo_n "checking stack direction for C alloca... " >&6; }
15483 if ${ac_cv_c_stack_direction+:} false; then :
15484   $as_echo_n "(cached) " >&6
15485 else
15486   if test "$cross_compiling" = yes; then :
15487   ac_cv_c_stack_direction=0
15488 else
15489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h.  */
15491 $ac_includes_default
15492 int
15493 find_stack_direction (int *addr, int depth)
15494 {
15495   int dir, dummy = 0;
15496   if (! addr)
15497     addr = &dummy;
15498   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15499   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15500   return dir + dummy;
15501 }
15502
15503 int
15504 main (int argc, char **argv)
15505 {
15506   return find_stack_direction (0, argc + !argv + 20) < 0;
15507 }
15508 _ACEOF
15509 if ac_fn_c_try_run "$LINENO"; then :
15510   ac_cv_c_stack_direction=1
15511 else
15512   ac_cv_c_stack_direction=-1
15513 fi
15514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15515   conftest.$ac_objext conftest.beam conftest.$ac_ext
15516 fi
15517
15518 fi
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15520 $as_echo "$ac_cv_c_stack_direction" >&6; }
15521 cat >>confdefs.h <<_ACEOF
15522 #define STACK_DIRECTION $ac_cv_c_stack_direction
15523 _ACEOF
15524
15525
15526 fi
15527
15528
15529 # The cast to long int works around a bug in the HP C Compiler
15530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15532 # This bug is HP SR number 8606223364.
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15534 $as_echo_n "checking size of double... " >&6; }
15535 if ${ac_cv_sizeof_double+:} false; then :
15536   $as_echo_n "(cached) " >&6
15537 else
15538   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
15539
15540 else
15541   if test "$ac_cv_type_double" = yes; then
15542      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15544 as_fn_error 77 "cannot compute sizeof (double)
15545 See \`config.log' for more details" "$LINENO" 5; }
15546    else
15547      ac_cv_sizeof_double=0
15548    fi
15549 fi
15550
15551 fi
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15553 $as_echo "$ac_cv_sizeof_double" >&6; }
15554
15555
15556
15557 cat >>confdefs.h <<_ACEOF
15558 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15559 _ACEOF
15560
15561
15562 # The cast to long int works around a bug in the HP C Compiler
15563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15565 # This bug is HP SR number 8606223364.
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15567 $as_echo_n "checking size of long double... " >&6; }
15568 if ${ac_cv_sizeof_long_double+:} false; then :
15569   $as_echo_n "(cached) " >&6
15570 else
15571   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
15572
15573 else
15574   if test "$ac_cv_type_long_double" = yes; then
15575      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15577 as_fn_error 77 "cannot compute sizeof (long double)
15578 See \`config.log' for more details" "$LINENO" 5; }
15579    else
15580      ac_cv_sizeof_long_double=0
15581    fi
15582 fi
15583
15584 fi
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15586 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15587
15588
15589
15590 cat >>confdefs.h <<_ACEOF
15591 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15592 _ACEOF
15593
15594
15595
15596 # Also AC_SUBST this variable for ffi.h.
15597 if test -z "$HAVE_LONG_DOUBLE"; then
15598   HAVE_LONG_DOUBLE=0
15599   if test $ac_cv_sizeof_long_double != 0; then
15600     if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15601
15602 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15603
15604       HAVE_LONG_DOUBLE=1
15605     else
15606       if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15607         HAVE_LONG_DOUBLE=1
15608
15609 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15610
15611       fi
15612     fi
15613   fi
15614 fi
15615
15616
15617
15618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15619 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15620 if ${ac_cv_c_bigendian+:} false; then :
15621   $as_echo_n "(cached) " >&6
15622 else
15623   ac_cv_c_bigendian=unknown
15624     # See if we're dealing with a universal compiler.
15625     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h.  */
15627 #ifndef __APPLE_CC__
15628                not a universal capable compiler
15629              #endif
15630              typedef int dummy;
15631
15632 _ACEOF
15633 if ac_fn_c_try_compile "$LINENO"; then :
15634
15635         # Check for potential -arch flags.  It is not universal unless
15636         # there are at least two -arch flags with different values.
15637         ac_arch=
15638         ac_prev=
15639         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15640          if test -n "$ac_prev"; then
15641            case $ac_word in
15642              i?86 | x86_64 | ppc | ppc64)
15643                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15644                  ac_arch=$ac_word
15645                else
15646                  ac_cv_c_bigendian=universal
15647                  break
15648                fi
15649                ;;
15650            esac
15651            ac_prev=
15652          elif test "x$ac_word" = "x-arch"; then
15653            ac_prev=arch
15654          fi
15655        done
15656 fi
15657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658     if test $ac_cv_c_bigendian = unknown; then
15659       # See if sys/param.h defines the BYTE_ORDER macro.
15660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h.  */
15662 #include <sys/types.h>
15663              #include <sys/param.h>
15664
15665 int
15666 main ()
15667 {
15668 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15669                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15670                      && LITTLE_ENDIAN)
15671               bogus endian macros
15672              #endif
15673
15674   ;
15675   return 0;
15676 }
15677 _ACEOF
15678 if ac_fn_c_try_compile "$LINENO"; then :
15679   # It does; now see whether it defined to BIG_ENDIAN or not.
15680          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h.  */
15682 #include <sys/types.h>
15683                 #include <sys/param.h>
15684
15685 int
15686 main ()
15687 {
15688 #if BYTE_ORDER != BIG_ENDIAN
15689                  not big endian
15690                 #endif
15691
15692   ;
15693   return 0;
15694 }
15695 _ACEOF
15696 if ac_fn_c_try_compile "$LINENO"; then :
15697   ac_cv_c_bigendian=yes
15698 else
15699   ac_cv_c_bigendian=no
15700 fi
15701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15702 fi
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704     fi
15705     if test $ac_cv_c_bigendian = unknown; then
15706       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15707       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h.  */
15709 #include <limits.h>
15710
15711 int
15712 main ()
15713 {
15714 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15715               bogus endian macros
15716              #endif
15717
15718   ;
15719   return 0;
15720 }
15721 _ACEOF
15722 if ac_fn_c_try_compile "$LINENO"; then :
15723   # It does; now see whether it defined to _BIG_ENDIAN or not.
15724          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h.  */
15726 #include <limits.h>
15727
15728 int
15729 main ()
15730 {
15731 #ifndef _BIG_ENDIAN
15732                  not big endian
15733                 #endif
15734
15735   ;
15736   return 0;
15737 }
15738 _ACEOF
15739 if ac_fn_c_try_compile "$LINENO"; then :
15740   ac_cv_c_bigendian=yes
15741 else
15742   ac_cv_c_bigendian=no
15743 fi
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745 fi
15746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747     fi
15748     if test $ac_cv_c_bigendian = unknown; then
15749       # Compile a test program.
15750       if test "$cross_compiling" = yes; then :
15751   # Try to guess by grepping values from an object file.
15752          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h.  */
15754 short int ascii_mm[] =
15755                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15756                 short int ascii_ii[] =
15757                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15758                 int use_ascii (int i) {
15759                   return ascii_mm[i] + ascii_ii[i];
15760                 }
15761                 short int ebcdic_ii[] =
15762                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15763                 short int ebcdic_mm[] =
15764                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15765                 int use_ebcdic (int i) {
15766                   return ebcdic_mm[i] + ebcdic_ii[i];
15767                 }
15768                 extern int foo;
15769
15770 int
15771 main ()
15772 {
15773 return use_ascii (foo) == use_ebcdic (foo);
15774   ;
15775   return 0;
15776 }
15777 _ACEOF
15778 if ac_fn_c_try_compile "$LINENO"; then :
15779   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15780               ac_cv_c_bigendian=yes
15781             fi
15782             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15783               if test "$ac_cv_c_bigendian" = unknown; then
15784                 ac_cv_c_bigendian=no
15785               else
15786                 # finding both strings is unlikely to happen, but who knows?
15787                 ac_cv_c_bigendian=unknown
15788               fi
15789             fi
15790 fi
15791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792 else
15793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h.  */
15795 $ac_includes_default
15796 int
15797 main ()
15798 {
15799
15800              /* Are we little or big endian?  From Harbison&Steele.  */
15801              union
15802              {
15803                long int l;
15804                char c[sizeof (long int)];
15805              } u;
15806              u.l = 1;
15807              return u.c[sizeof (long int) - 1] == 1;
15808
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 if ac_fn_c_try_run "$LINENO"; then :
15814   ac_cv_c_bigendian=no
15815 else
15816   ac_cv_c_bigendian=yes
15817 fi
15818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15819   conftest.$ac_objext conftest.beam conftest.$ac_ext
15820 fi
15821
15822     fi
15823 fi
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15825 $as_echo "$ac_cv_c_bigendian" >&6; }
15826  case $ac_cv_c_bigendian in #(
15827    yes)
15828      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15829 ;; #(
15830    no)
15831       ;; #(
15832    universal)
15833
15834 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15835
15836      ;; #(
15837    *)
15838      as_fn_error $? "unknown endianness
15839  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15840  esac
15841
15842
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15844 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15845 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
15846   $as_echo_n "(cached) " >&6
15847 else
15848
15849     gcc_cv_as_cfi_pseudo_op=unknown
15850     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h.  */
15852 asm (".cfi_startproc\n\t.cfi_endproc");
15853 int
15854 main ()
15855 {
15856
15857   ;
15858   return 0;
15859 }
15860 _ACEOF
15861 if ac_fn_c_try_compile "$LINENO"; then :
15862   gcc_cv_as_cfi_pseudo_op=yes
15863 else
15864   gcc_cv_as_cfi_pseudo_op=no
15865 fi
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867
15868 fi
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15870 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15871  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15872
15873 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15874
15875  fi
15876
15877
15878 case "$TARGET" in
15879   SPARC)
15880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15881 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15882 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
15883   $as_echo_n "(cached) " >&6
15884 else
15885
15886         save_CFLAGS="$CFLAGS"
15887         save_LDFLAGS="$LDFLAGS"
15888         CFLAGS="$CFLAGS -fpic"
15889         LDFLAGS="$LDFLAGS -shared"
15890         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h.  */
15892 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15893 int
15894 main ()
15895 {
15896
15897   ;
15898   return 0;
15899 }
15900 _ACEOF
15901 if ac_fn_c_try_link "$LINENO"; then :
15902   libffi_cv_as_sparc_ua_pcrel=yes
15903 else
15904   libffi_cv_as_sparc_ua_pcrel=no
15905 fi
15906 rm -f core conftest.err conftest.$ac_objext \
15907     conftest$ac_exeext conftest.$ac_ext
15908         CFLAGS="$save_CFLAGS"
15909         LDFLAGS="$save_LDFLAGS"
15910 fi
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15912 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15913     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
15914
15915 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15916
15917     fi
15918
15919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15920 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15921 if ${libffi_cv_as_register_pseudo_op+:} false; then :
15922   $as_echo_n "(cached) " >&6
15923 else
15924
15925        libffi_cv_as_register_pseudo_op=unknown
15926        # Check if we have .register
15927        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h.  */
15929
15930 int
15931 main ()
15932 {
15933 asm (".register %g2, #scratch");
15934   ;
15935   return 0;
15936 }
15937 _ACEOF
15938 if ac_fn_c_try_compile "$LINENO"; then :
15939   libffi_cv_as_register_pseudo_op=yes
15940 else
15941   libffi_cv_as_register_pseudo_op=no
15942 fi
15943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15944
15945 fi
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15947 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15948     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15949
15950 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15951
15952     fi
15953     ;;
15954
15955   X86*)
15956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15957 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15958 if ${libffi_cv_as_x86_pcrel+:} false; then :
15959   $as_echo_n "(cached) " >&6
15960 else
15961
15962         libffi_cv_as_x86_pcrel=no
15963         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15964         if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15965             libffi_cv_as_x86_pcrel=yes
15966         fi
15967
15968 fi
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15970 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15971     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15972
15973 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15974
15975     fi
15976     ;;
15977
15978   S390)
15979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15980 $as_echo_n "checking compiler uses zarch features... " >&6; }
15981 if ${libffi_cv_as_s390_zarch+:} false; then :
15982   $as_echo_n "(cached) " >&6
15983 else
15984
15985         libffi_cv_as_s390_zarch=no
15986         echo 'void foo(void) { bar(); bar(); }' > conftest.c
15987         if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15988             if grep -q brasl conftest.s; then
15989                 libffi_cv_as_s390_zarch=yes
15990             fi
15991         fi
15992
15993 fi
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15995 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15996     if test "x$libffi_cv_as_s390_zarch" = xyes; then
15997
15998 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15999
16000     fi
16001     ;;
16002 esac
16003
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports pointer authentication" >&5
16005 $as_echo_n "checking whether compiler supports pointer authentication... " >&6; }
16006 if ${libffi_cv_as_ptrauth+:} false; then :
16007   $as_echo_n "(cached) " >&6
16008 else
16009
16010    libffi_cv_as_ptrauth=unknown
16011    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h.  */
16013
16014 int
16015 main ()
16016 {
16017
16018 #ifdef __clang__
16019 # if __has_feature(ptrauth_calls)
16020 #  define HAVE_PTRAUTH 1
16021 # endif
16022 #endif
16023
16024 #ifndef HAVE_PTRAUTH
16025 # error Pointer authentication not supported
16026 #endif
16027
16028   ;
16029   return 0;
16030 }
16031 _ACEOF
16032 if ac_fn_c_try_compile "$LINENO"; then :
16033   libffi_cv_as_ptrauth=yes
16034 else
16035   libffi_cv_as_ptrauth=no
16036 fi
16037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038
16039 fi
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ptrauth" >&5
16041 $as_echo "$libffi_cv_as_ptrauth" >&6; }
16042 if test "x$libffi_cv_as_ptrauth" = xyes; then
16043
16044 $as_echo "#define HAVE_PTRAUTH 1" >>confdefs.h
16045
16046 fi
16047
16048 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
16049 # Check whether --enable-pax_emutramp was given.
16050 if test "${enable_pax_emutramp+set}" = set; then :
16051   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
16052
16053 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
16054
16055   fi
16056 fi
16057
16058
16059 FFI_EXEC_TRAMPOLINE_TABLE=0
16060 case "$target" in
16061      *arm*-apple-* | aarch64-apple-*)
16062        FFI_EXEC_TRAMPOLINE_TABLE=1
16063
16064 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
16065
16066      ;;
16067      *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android*)
16068
16069 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
16070
16071      ;;
16072 esac
16073  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
16074   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
16075   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
16076 else
16077   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
16078   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16079 fi
16080
16081
16082
16083 if test x$TARGET = xX86_64; then
16084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16085 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16086 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16087   $as_echo_n "(cached) " >&6
16088 else
16089
16090         cat  > conftest1.s << EOF
16091 .text
16092 .globl foo
16093 foo:
16094 jmp bar
16095 .section .eh_frame,"a",@unwind
16096 bar:
16097 EOF
16098
16099         cat > conftest2.c  << EOF
16100 extern void foo();
16101 int main(){foo();}
16102 EOF
16103
16104         libffi_cv_as_x86_64_unwind_section_type=no
16105         # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16106         # since the compiler can support it and not the linker (ie old binutils)
16107         if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16108            $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16109             libffi_cv_as_x86_64_unwind_section_type=yes
16110         fi
16111
16112 fi
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16114 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16115     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16116
16117 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16118
16119     fi
16120 fi
16121
16122 if test "x$GCC" = "xyes"; then
16123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16124 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16125 if ${libffi_cv_ro_eh_frame+:} false; then :
16126   $as_echo_n "(cached) " >&6
16127 else
16128
16129         libffi_cv_ro_eh_frame=yes
16130         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16131         if $CC $CFLAGS -c -fpic -fexceptions -fno-lto -o conftest.o conftest.c > /dev/null 2>&1; then
16132             if $READELF -WS conftest.o | grep -q -n 'eh_frame .* WA'; then
16133                 libffi_cv_ro_eh_frame=no
16134             fi
16135         fi
16136         rm -f conftest.*
16137
16138 fi
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16140 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16141   if test "x$libffi_cv_ro_eh_frame" = xyes; then
16142
16143 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16144
16145
16146 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16147
16148   else
16149
16150 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16151
16152   fi
16153
16154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16155 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16156 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16157   $as_echo_n "(cached) " >&6
16158 else
16159
16160         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
16161         libffi_cv_hidden_visibility_attribute=no
16162         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16163   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16164   (eval $ac_try) 2>&5
16165   ac_status=$?
16166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16167   test $ac_status = 0; }; }; then
16168             if egrep '(\.hidden|\.private_extern).*foo' conftest.s >/dev/null; then
16169                 libffi_cv_hidden_visibility_attribute=yes
16170             fi
16171         fi
16172         rm -f conftest.*
16173
16174 fi
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16176 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16177   if test $libffi_cv_hidden_visibility_attribute = yes; then
16178
16179 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16180
16181   fi
16182 fi
16183
16184 # See if makeinfo has been installed and is modern enough
16185 # that we can use it.
16186
16187   # Extract the first word of "makeinfo", so it can be a program name with args.
16188 set dummy makeinfo; ac_word=$2
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16190 $as_echo_n "checking for $ac_word... " >&6; }
16191 if ${ac_cv_prog_MAKEINFO+:} false; then :
16192   $as_echo_n "(cached) " >&6
16193 else
16194   if test -n "$MAKEINFO"; then
16195   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
16196 else
16197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16198 for as_dir in $PATH
16199 do
16200   IFS=$as_save_IFS
16201   test -z "$as_dir" && as_dir=.
16202     for ac_exec_ext in '' $ac_executable_extensions; do
16203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16204     ac_cv_prog_MAKEINFO="makeinfo"
16205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16206     break 2
16207   fi
16208 done
16209   done
16210 IFS=$as_save_IFS
16211
16212 fi
16213 fi
16214 MAKEINFO=$ac_cv_prog_MAKEINFO
16215 if test -n "$MAKEINFO"; then
16216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16217 $as_echo "$MAKEINFO" >&6; }
16218 else
16219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220 $as_echo "no" >&6; }
16221 fi
16222
16223
16224   if test -n "$MAKEINFO"; then
16225     # Found it, now check the version.
16226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
16227 $as_echo_n "checking for modern makeinfo... " >&6; }
16228 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
16229   $as_echo_n "(cached) " >&6
16230 else
16231   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
16232                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
16233
16234                     case $ac_prog_version in
16235                       '')  gcc_cv_prog_makeinfo_modern=no;;
16236                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
16237                       *)   gcc_cv_prog_makeinfo_modern=no;;
16238                     esac
16239
16240 fi
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
16242 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
16243   else
16244     gcc_cv_prog_makeinfo_modern=no
16245   fi
16246   if test $gcc_cv_prog_makeinfo_modern = no; then
16247     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
16248   fi
16249
16250  if test $gcc_cv_prog_makeinfo_modern = "yes"; then
16251   BUILD_DOCS_TRUE=
16252   BUILD_DOCS_FALSE='#'
16253 else
16254   BUILD_DOCS_TRUE='#'
16255   BUILD_DOCS_FALSE=
16256 fi
16257
16258
16259
16260
16261
16262
16263
16264
16265 TARGET_OBJ=
16266 for i in $SOURCES; do
16267   TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16268 done
16269
16270
16271
16272
16273
16274 # Check whether --enable-debug was given.
16275 if test "${enable_debug+set}" = set; then :
16276   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16277
16278 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16279
16280   fi
16281 fi
16282
16283  if test "$enable_debug" = "yes"; then
16284   FFI_DEBUG_TRUE=
16285   FFI_DEBUG_FALSE='#'
16286 else
16287   FFI_DEBUG_TRUE='#'
16288   FFI_DEBUG_FALSE=
16289 fi
16290
16291
16292 # Check whether --enable-structs was given.
16293 if test "${enable_structs+set}" = set; then :
16294   enableval=$enable_structs; if test "$enable_structs" = "no"; then
16295
16296 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16297
16298   fi
16299 fi
16300
16301  if test "$enable_debug" = "yes"; then
16302   FFI_DEBUG_TRUE=
16303   FFI_DEBUG_FALSE='#'
16304 else
16305   FFI_DEBUG_TRUE='#'
16306   FFI_DEBUG_FALSE=
16307 fi
16308
16309
16310 # Check whether --enable-raw-api was given.
16311 if test "${enable_raw_api+set}" = set; then :
16312   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16313
16314 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16315
16316   fi
16317 fi
16318
16319
16320 # Check whether --enable-exec-static-tramp was given.
16321 if test "${enable_exec_static_tramp+set}" = set; then :
16322   enableval=$enable_exec_static_tramp;
16323 fi
16324
16325
16326 if test "$enable_exec_static_tramp" = yes; then
16327 case "$target" in
16328      *-cygwin*)
16329      ;;
16330      *arm*-*-linux-* | aarch64*-*-linux-* | i*86-*-linux-* | x86_64-*-linux-*)
16331
16332 $as_echo "#define FFI_EXEC_STATIC_TRAMP 1" >>confdefs.h
16333
16334      ;;
16335 esac
16336 fi
16337
16338 # Check whether --enable-purify-safety was given.
16339 if test "${enable_purify_safety+set}" = set; then :
16340   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16341
16342 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16343
16344   fi
16345 fi
16346
16347
16348
16349 # Check whether --with-toolexeclibdir was given.
16350 if test "${with_toolexeclibdir+set}" = set; then :
16351   withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16352   /)
16353     ;;
16354   */)
16355     with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
16356     ;;
16357 esac
16358 else
16359   with_toolexeclibdir=no
16360 fi
16361
16362
16363
16364 if test -n "$with_cross_host" &&
16365    test x"$with_cross_host" != x"no"; then
16366   toolexecdir='$(exec_prefix)/$(target_alias)'
16367   case ${with_toolexeclibdir} in
16368     no)
16369       toolexeclibdir='$(toolexecdir)/lib'
16370       ;;
16371     *)
16372       toolexeclibdir=${with_toolexeclibdir}
16373       ;;
16374   esac
16375 else
16376   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16377   toolexeclibdir='$(libdir)'
16378 fi
16379 multi_os_directory=`$CC -print-multi-os-directory`
16380 case $multi_os_directory in
16381   .) ;; # Avoid trailing /.
16382   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16383 esac
16384
16385
16386
16387 if test "${multilib}" = "yes"; then
16388   multilib_arg="--enable-multilib"
16389 else
16390   multilib_arg=
16391 fi
16392
16393 # Check linker support.
16394
16395
16396 # Check whether --with-gnu-ld was given.
16397 if test "${with_gnu_ld+set}" = set; then :
16398   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16399 else
16400   with_gnu_ld=no
16401 fi
16402
16403 ac_prog=ld
16404 if test "$GCC" = yes; then
16405   # Check if gcc -print-prog-name=ld gives a path.
16406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16407 $as_echo_n "checking for ld used by $CC... " >&6; }
16408   case $host in
16409   *-*-mingw*)
16410     # gcc leaves a trailing carriage return which upsets mingw
16411     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16412   *)
16413     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16414   esac
16415   case $ac_prog in
16416     # Accept absolute paths.
16417     [\\/]* | ?:[\\/]*)
16418       re_direlt='/[^/][^/]*/\.\./'
16419       # Canonicalize the pathname of ld
16420       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16421       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16422         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16423       done
16424       test -z "$LD" && LD="$ac_prog"
16425       ;;
16426   "")
16427     # If it fails, then pretend we aren't using GCC.
16428     ac_prog=ld
16429     ;;
16430   *)
16431     # If it is relative, then search for the first ld in PATH.
16432     with_gnu_ld=unknown
16433     ;;
16434   esac
16435 elif test "$with_gnu_ld" = yes; then
16436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16437 $as_echo_n "checking for GNU ld... " >&6; }
16438 else
16439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16440 $as_echo_n "checking for non-GNU ld... " >&6; }
16441 fi
16442 if ${lt_cv_path_LD+:} false; then :
16443   $as_echo_n "(cached) " >&6
16444 else
16445   if test -z "$LD"; then
16446   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16447   for ac_dir in $PATH; do
16448     IFS="$lt_save_ifs"
16449     test -z "$ac_dir" && ac_dir=.
16450     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16451       lt_cv_path_LD="$ac_dir/$ac_prog"
16452       # Check to see if the program is GNU ld.  I'd rather use --version,
16453       # but apparently some variants of GNU ld only accept -v.
16454       # Break only if it was the GNU/non-GNU ld that we prefer.
16455       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16456       *GNU* | *'with BFD'*)
16457         test "$with_gnu_ld" != no && break
16458         ;;
16459       *)
16460         test "$with_gnu_ld" != yes && break
16461         ;;
16462       esac
16463     fi
16464   done
16465   IFS="$lt_save_ifs"
16466 else
16467   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16468 fi
16469 fi
16470
16471 LD="$lt_cv_path_LD"
16472 if test -n "$LD"; then
16473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16474 $as_echo "$LD" >&6; }
16475 else
16476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477 $as_echo "no" >&6; }
16478 fi
16479 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16481 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16482 if ${lt_cv_prog_gnu_ld+:} false; then :
16483   $as_echo_n "(cached) " >&6
16484 else
16485   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16486 case `$LD -v 2>&1 </dev/null` in
16487 *GNU* | *'with BFD'*)
16488   lt_cv_prog_gnu_ld=yes
16489   ;;
16490 *)
16491   lt_cv_prog_gnu_ld=no
16492   ;;
16493 esac
16494 fi
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16496 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16497 with_gnu_ld=$lt_cv_prog_gnu_ld
16498
16499
16500
16501
16502
16503
16504
16505   # If we're not using GNU ld, then there's no point in even trying these
16506   # tests.  Check for that first.  We should have already tested for gld
16507   # by now (in libtool), but require it now just to be safe...
16508   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16509   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16510
16511
16512
16513   # The name set by libtool depends on the version of libtool.  Shame on us
16514   # for depending on an impl detail, but c'est la vie.  Older versions used
16515   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16516   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16517   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
16518   # set (hence we're using an older libtool), then set it.
16519   if test x${with_gnu_ld+set} != xset; then
16520     if test x${ac_cv_prog_gnu_ld+set} != xset; then
16521       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
16522       with_gnu_ld=no
16523     else
16524       with_gnu_ld=$ac_cv_prog_gnu_ld
16525     fi
16526   fi
16527
16528   # Start by getting the version number.  I think the libtool test already
16529   # does some of this, but throws away the result.
16530   libat_ld_is_gold=no
16531   if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16532     libat_ld_is_gold=yes
16533   fi
16534   libat_ld_is_lld=no
16535   if $LD --version 2>/dev/null | grep 'LLD '> /dev/null 2>&1; then
16536     libat_ld_is_lld=yes
16537   fi
16538
16539   ldver=`$LD --version 2>/dev/null |
16540          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'`
16541
16542   libat_gnu_ld_version=`echo $ldver | \
16543          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16544
16545   # Set --gc-sections.
16546   if test "$with_gnu_ld" = "notbroken"; then
16547     # GNU ld it is!  Joy and bunny rabbits!
16548
16549     # All these tests are for C++; save the language and the compiler flags.
16550     # Need to do this so that g++ won't try to link in libstdc++
16551     ac_test_CFLAGS="${CFLAGS+set}"
16552     ac_save_CFLAGS="$CFLAGS"
16553     CFLAGS='-x c++  -Wl,--gc-sections'
16554
16555     # Check for -Wl,--gc-sections
16556     # XXX This test is broken at the moment, as symbols required for linking
16557     # are now in libsupc++ (not built yet).  In addition, this test has
16558     # cored on solaris in the past.  In addition, --gc-sections doesn't
16559     # really work at the moment (keeps on discarding used sections, first
16560     # .eh_frame and now some of the glibc sections for iconv).
16561     # Bzzzzt.  Thanks for playing, maybe next time.
16562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16563 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16564     if test "$cross_compiling" = yes; then :
16565   ac_sectionLDflags=yes
16566 else
16567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h.  */
16569
16570      int main(void)
16571      {
16572        try { throw 1; }
16573        catch (...) { };
16574        return 0;
16575      }
16576
16577 _ACEOF
16578 if ac_fn_c_try_run "$LINENO"; then :
16579   ac_sectionLDflags=yes
16580 else
16581   ac_sectionLDflags=no
16582 fi
16583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16584   conftest.$ac_objext conftest.beam conftest.$ac_ext
16585 fi
16586
16587     if test "$ac_test_CFLAGS" = set; then
16588       CFLAGS="$ac_save_CFLAGS"
16589     else
16590       # this is the suspicious part
16591       CFLAGS=''
16592     fi
16593     if test "$ac_sectionLDflags" = "yes"; then
16594       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16595     fi
16596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16597 $as_echo "$ac_sectionLDflags" >&6; }
16598   fi
16599
16600   # Set linker optimization flags.
16601   if test x"$with_gnu_ld" = x"yes"; then
16602     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16603   fi
16604
16605
16606
16607
16608
16609
16610  # Check whether --enable-symvers was given.
16611 if test "${enable_symvers+set}" = set; then :
16612   enableval=$enable_symvers;
16613       case "$enableval" in
16614        yes|no|gnu*|sun) ;;
16615        *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16616                           esac
16617
16618 else
16619   enable_symvers=yes
16620 fi
16621
16622
16623
16624 # If we never went through the LIBFFI_CHECK_LINKER_FEATURES macro, then we
16625 # don't know enough about $LD to do tricks...
16626
16627
16628 # Turn a 'yes' into a suitable default.
16629 if test x$enable_symvers = xyes ; then
16630   # FIXME  The following test is too strict, in theory.
16631   if test $enable_shared = no || test "x$LD" = x; then
16632     enable_symvers=no
16633   else
16634     if test $with_gnu_ld = yes ; then
16635       enable_symvers=gnu
16636     else
16637       case ${target_os} in
16638         # Sun symbol versioning exists since Solaris 2.5.
16639         solaris2.[5-9]* | solaris2.1[0-9]*)
16640           enable_symvers=sun ;;
16641         *)
16642           enable_symvers=no ;;
16643       esac
16644     fi
16645   fi
16646 fi
16647
16648 # Check if 'sun' was requested on non-Solaris 2 platforms.
16649 if test x$enable_symvers = xsun ; then
16650   case ${target_os} in
16651     solaris2*)
16652       # All fine.
16653       ;;
16654     *)
16655       # Unlikely to work.
16656       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16657 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16658       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16659 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16660       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16661 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16662       enable_symvers=no
16663       ;;
16664   esac
16665 fi
16666
16667 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16668 if test $enable_symvers != no; then
16669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16670 $as_echo_n "checking for shared libgcc... " >&6; }
16671   ac_save_CFLAGS="$CFLAGS"
16672   CFLAGS=' -lgcc_s'
16673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h.  */
16675
16676 int
16677 main ()
16678 {
16679 return 0;
16680   ;
16681   return 0;
16682 }
16683 _ACEOF
16684 if ac_fn_c_try_link "$LINENO"; then :
16685   libat_shared_libgcc=yes
16686 else
16687   libat_shared_libgcc=no
16688 fi
16689 rm -f core conftest.err conftest.$ac_objext \
16690     conftest$ac_exeext conftest.$ac_ext
16691   CFLAGS="$ac_save_CFLAGS"
16692   if test $libat_shared_libgcc = no; then
16693     cat > conftest.c <<EOF
16694 int main (void) { return 0; }
16695 EOF
16696     libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16697                              -shared -shared-libgcc -o conftest.so \
16698                              conftest.c -v 2>&1 >/dev/null \
16699                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16700     rm -f conftest.c conftest.so
16701     if test x${libat_libgcc_s_suffix+set} = xset; then
16702       CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16703       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h.  */
16705
16706 int
16707 main ()
16708 {
16709 return 0;
16710   ;
16711   return 0;
16712 }
16713 _ACEOF
16714 if ac_fn_c_try_link "$LINENO"; then :
16715   libat_shared_libgcc=yes
16716 fi
16717 rm -f core conftest.err conftest.$ac_objext \
16718     conftest$ac_exeext conftest.$ac_ext
16719       CFLAGS="$ac_save_CFLAGS"
16720     fi
16721   fi
16722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16723 $as_echo "$libat_shared_libgcc" >&6; }
16724 fi
16725
16726 # For GNU ld, we need at least this version.  The format is described in
16727 # LIBFFI_CHECK_LINKER_FEATURES above.
16728 libat_min_gnu_ld_version=21400
16729 # XXXXXXXXXXX libat_gnu_ld_version=21390
16730
16731 # Check to see if unspecified "yes" value can win, given results above.
16732 # Change "yes" into either "no" or a style name.
16733 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16734   if test $with_gnu_ld = yes; then
16735     if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16736       enable_symvers=gnu
16737     elif test $libat_ld_is_gold = yes ; then
16738       enable_symvers=gnu
16739     elif test $libat_ld_is_lld = yes ; then
16740       enable_symvers=gnu
16741     else
16742       # The right tools, the right setup, but too old.  Fallbacks?
16743       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16744 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16745       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16746 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16747       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16748 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16749       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16750 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16751       if test $libat_gnu_ld_version -ge 21200 ; then
16752         # Globbing fix is present, proper block support is not.
16753                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16754 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16755         enable_symvers=no
16756       else
16757         # 2.11 or older.
16758         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16759 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16760         enable_symvers=no
16761       fi
16762     fi
16763   elif test $enable_symvers = sun; then
16764     : All interesting versions of Sun ld support sun style symbol versioning.
16765   else
16766     # just fail for now
16767     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16768 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16769     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16770 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16771     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16772 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16773     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16774 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16775     enable_symvers=no
16776   fi
16777 fi
16778 if test $enable_symvers = gnu; then
16779
16780 $as_echo "#define LIBFFI_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16781
16782 fi
16783
16784  if test $enable_symvers != no; then
16785   LIBFFI_BUILD_VERSIONED_SHLIB_TRUE=
16786   LIBFFI_BUILD_VERSIONED_SHLIB_FALSE='#'
16787 else
16788   LIBFFI_BUILD_VERSIONED_SHLIB_TRUE='#'
16789   LIBFFI_BUILD_VERSIONED_SHLIB_FALSE=
16790 fi
16791
16792  if test $enable_symvers = gnu; then
16793   LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16794   LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16795 else
16796   LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16797   LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16798 fi
16799
16800  if test $enable_symvers = sun; then
16801   LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16802   LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16803 else
16804   LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16805   LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16806 fi
16807
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16809 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16810
16811
16812 # Determine what GCC version number to use in filesystem paths.
16813
16814   get_gcc_base_ver="cat"
16815
16816 # Check whether --with-gcc-major-version-only was given.
16817 if test "${with_gcc_major_version_only+set}" = set; then :
16818   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16819         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16820       fi
16821
16822 fi
16823
16824
16825
16826
16827 ac_config_commands="$ac_config_commands include"
16828
16829 ac_config_commands="$ac_config_commands src"
16830
16831
16832 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16833
16834
16835 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16836
16837
16838 cat >confcache <<\_ACEOF
16839 # This file is a shell script that caches the results of configure
16840 # tests run on this system so they can be shared between configure
16841 # scripts and configure runs, see configure's option --config-cache.
16842 # It is not useful on other systems.  If it contains results you don't
16843 # want to keep, you may remove or edit it.
16844 #
16845 # config.status only pays attention to the cache file if you give it
16846 # the --recheck option to rerun configure.
16847 #
16848 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16849 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16850 # following values.
16851
16852 _ACEOF
16853
16854 # The following way of writing the cache mishandles newlines in values,
16855 # but we know of no workaround that is simple, portable, and efficient.
16856 # So, we kill variables containing newlines.
16857 # Ultrix sh set writes to stderr and can't be redirected directly,
16858 # and sets the high bit in the cache file unless we assign to the vars.
16859 (
16860   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16861     eval ac_val=\$$ac_var
16862     case $ac_val in #(
16863     *${as_nl}*)
16864       case $ac_var in #(
16865       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16867       esac
16868       case $ac_var in #(
16869       _ | IFS | as_nl) ;; #(
16870       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16871       *) { eval $ac_var=; unset $ac_var;} ;;
16872       esac ;;
16873     esac
16874   done
16875
16876   (set) 2>&1 |
16877     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16878     *${as_nl}ac_space=\ *)
16879       # `set' does not quote correctly, so add quotes: double-quote
16880       # substitution turns \\\\ into \\, and sed turns \\ into \.
16881       sed -n \
16882         "s/'/'\\\\''/g;
16883           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16884       ;; #(
16885     *)
16886       # `set' quotes correctly as required by POSIX, so do not add quotes.
16887       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16888       ;;
16889     esac |
16890     sort
16891 ) |
16892   sed '
16893      /^ac_cv_env_/b end
16894      t clear
16895      :clear
16896      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16897      t end
16898      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16899      :end' >>confcache
16900 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16901   if test -w "$cache_file"; then
16902     if test "x$cache_file" != "x/dev/null"; then
16903       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16904 $as_echo "$as_me: updating cache $cache_file" >&6;}
16905       if test ! -f "$cache_file" || test -h "$cache_file"; then
16906         cat confcache >"$cache_file"
16907       else
16908         case $cache_file in #(
16909         */* | ?:*)
16910           mv -f confcache "$cache_file"$$ &&
16911           mv -f "$cache_file"$$ "$cache_file" ;; #(
16912         *)
16913           mv -f confcache "$cache_file" ;;
16914         esac
16915       fi
16916     fi
16917   else
16918     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16919 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16920   fi
16921 fi
16922 rm -f confcache
16923
16924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16925 # Let make expand exec_prefix.
16926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16927
16928 DEFS=-DHAVE_CONFIG_H
16929
16930 ac_libobjs=
16931 ac_ltlibobjs=
16932 U=
16933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16934   # 1. Remove the extension, and $U if already installed.
16935   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16936   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16937   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16938   #    will be set to the directory where LIBOBJS objects are built.
16939   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16940   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16941 done
16942 LIBOBJS=$ac_libobjs
16943
16944 LTLIBOBJS=$ac_ltlibobjs
16945
16946
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16948 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16949    if test -n "$am_sleep_pid"; then
16950      # Hide warnings about reused PIDs.
16951      wait $am_sleep_pid 2>/dev/null
16952    fi
16953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16954 $as_echo "done" >&6; }
16955  if test -n "$EXEEXT"; then
16956   am__EXEEXT_TRUE=
16957   am__EXEEXT_FALSE='#'
16958 else
16959   am__EXEEXT_TRUE='#'
16960   am__EXEEXT_FALSE=
16961 fi
16962
16963 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16964   as_fn_error $? "conditional \"GENINSRC\" was never defined.
16965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16966 fi
16967 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16968   as_fn_error $? "conditional \"AMDEP\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16970 fi
16971 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16972   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16974 fi
16975 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16976   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16978 fi
16979 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16980   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16982 fi
16983 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16984   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16986 fi
16987 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16988   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
16989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16990 fi
16991
16992 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16993   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16995 fi
16996 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
16997   as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
16998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16999 fi
17000 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17001   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17003 fi
17004 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17005   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17007 fi
17008 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_FALSE}"; then
17009   as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB\" was never defined.
17010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17011 fi
17012 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17013   as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17015 fi
17016 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17017   as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17019 fi
17020
17021 : "${CONFIG_STATUS=./config.status}"
17022 ac_write_fail=0
17023 ac_clean_files_save=$ac_clean_files
17024 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17026 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17027 as_write_fail=0
17028 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17029 #! $SHELL
17030 # Generated by $as_me.
17031 # Run this file to recreate the current configuration.
17032 # Compiler output produced by configure, useful for debugging
17033 # configure, is in config.log if it exists.
17034
17035 debug=false
17036 ac_cs_recheck=false
17037 ac_cs_silent=false
17038
17039 SHELL=\${CONFIG_SHELL-$SHELL}
17040 export SHELL
17041 _ASEOF
17042 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17043 ## -------------------- ##
17044 ## M4sh Initialization. ##
17045 ## -------------------- ##
17046
17047 # Be more Bourne compatible
17048 DUALCASE=1; export DUALCASE # for MKS sh
17049 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17050   emulate sh
17051   NULLCMD=:
17052   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17053   # is contrary to our usage.  Disable this feature.
17054   alias -g '${1+"$@"}'='"$@"'
17055   setopt NO_GLOB_SUBST
17056 else
17057   case `(set -o) 2>/dev/null` in #(
17058   *posix*) :
17059     set -o posix ;; #(
17060   *) :
17061      ;;
17062 esac
17063 fi
17064
17065
17066 as_nl='
17067 '
17068 export as_nl
17069 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17070 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17073 # Prefer a ksh shell builtin over an external printf program on Solaris,
17074 # but without wasting forks for bash or zsh.
17075 if test -z "$BASH_VERSION$ZSH_VERSION" \
17076     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17077   as_echo='print -r --'
17078   as_echo_n='print -rn --'
17079 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17080   as_echo='printf %s\n'
17081   as_echo_n='printf %s'
17082 else
17083   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17084     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17085     as_echo_n='/usr/ucb/echo -n'
17086   else
17087     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17088     as_echo_n_body='eval
17089       arg=$1;
17090       case $arg in #(
17091       *"$as_nl"*)
17092         expr "X$arg" : "X\\(.*\\)$as_nl";
17093         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17094       esac;
17095       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17096     '
17097     export as_echo_n_body
17098     as_echo_n='sh -c $as_echo_n_body as_echo'
17099   fi
17100   export as_echo_body
17101   as_echo='sh -c $as_echo_body as_echo'
17102 fi
17103
17104 # The user is always right.
17105 if test "${PATH_SEPARATOR+set}" != set; then
17106   PATH_SEPARATOR=:
17107   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17108     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17109       PATH_SEPARATOR=';'
17110   }
17111 fi
17112
17113
17114 # IFS
17115 # We need space, tab and new line, in precisely that order.  Quoting is
17116 # there to prevent editors from complaining about space-tab.
17117 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17118 # splitting by setting IFS to empty value.)
17119 IFS=" ""        $as_nl"
17120
17121 # Find who we are.  Look in the path if we contain no directory separator.
17122 as_myself=
17123 case $0 in #((
17124   *[\\/]* ) as_myself=$0 ;;
17125   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17126 for as_dir in $PATH
17127 do
17128   IFS=$as_save_IFS
17129   test -z "$as_dir" && as_dir=.
17130     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17131   done
17132 IFS=$as_save_IFS
17133
17134      ;;
17135 esac
17136 # We did not find ourselves, most probably we were run as `sh COMMAND'
17137 # in which case we are not to be found in the path.
17138 if test "x$as_myself" = x; then
17139   as_myself=$0
17140 fi
17141 if test ! -f "$as_myself"; then
17142   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17143   exit 1
17144 fi
17145
17146 # Unset variables that we do not need and which cause bugs (e.g. in
17147 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17148 # suppresses any "Segmentation fault" message there.  '((' could
17149 # trigger a bug in pdksh 5.2.14.
17150 for as_var in BASH_ENV ENV MAIL MAILPATH
17151 do eval test x\${$as_var+set} = xset \
17152   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17153 done
17154 PS1='$ '
17155 PS2='> '
17156 PS4='+ '
17157
17158 # NLS nuisances.
17159 LC_ALL=C
17160 export LC_ALL
17161 LANGUAGE=C
17162 export LANGUAGE
17163
17164 # CDPATH.
17165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17166
17167
17168 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17169 # ----------------------------------------
17170 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17171 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17172 # script with STATUS, using 1 if that was 0.
17173 as_fn_error ()
17174 {
17175   as_status=$1; test $as_status -eq 0 && as_status=1
17176   if test "$4"; then
17177     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17178     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17179   fi
17180   $as_echo "$as_me: error: $2" >&2
17181   as_fn_exit $as_status
17182 } # as_fn_error
17183
17184
17185 # as_fn_set_status STATUS
17186 # -----------------------
17187 # Set $? to STATUS, without forking.
17188 as_fn_set_status ()
17189 {
17190   return $1
17191 } # as_fn_set_status
17192
17193 # as_fn_exit STATUS
17194 # -----------------
17195 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17196 as_fn_exit ()
17197 {
17198   set +e
17199   as_fn_set_status $1
17200   exit $1
17201 } # as_fn_exit
17202
17203 # as_fn_unset VAR
17204 # ---------------
17205 # Portably unset VAR.
17206 as_fn_unset ()
17207 {
17208   { eval $1=; unset $1;}
17209 }
17210 as_unset=as_fn_unset
17211 # as_fn_append VAR VALUE
17212 # ----------------------
17213 # Append the text in VALUE to the end of the definition contained in VAR. Take
17214 # advantage of any shell optimizations that allow amortized linear growth over
17215 # repeated appends, instead of the typical quadratic growth present in naive
17216 # implementations.
17217 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17218   eval 'as_fn_append ()
17219   {
17220     eval $1+=\$2
17221   }'
17222 else
17223   as_fn_append ()
17224   {
17225     eval $1=\$$1\$2
17226   }
17227 fi # as_fn_append
17228
17229 # as_fn_arith ARG...
17230 # ------------------
17231 # Perform arithmetic evaluation on the ARGs, and store the result in the
17232 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17233 # must be portable across $(()) and expr.
17234 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17235   eval 'as_fn_arith ()
17236   {
17237     as_val=$(( $* ))
17238   }'
17239 else
17240   as_fn_arith ()
17241   {
17242     as_val=`expr "$@" || test $? -eq 1`
17243   }
17244 fi # as_fn_arith
17245
17246
17247 if expr a : '\(a\)' >/dev/null 2>&1 &&
17248    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17249   as_expr=expr
17250 else
17251   as_expr=false
17252 fi
17253
17254 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17255   as_basename=basename
17256 else
17257   as_basename=false
17258 fi
17259
17260 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17261   as_dirname=dirname
17262 else
17263   as_dirname=false
17264 fi
17265
17266 as_me=`$as_basename -- "$0" ||
17267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17268          X"$0" : 'X\(//\)$' \| \
17269          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17270 $as_echo X/"$0" |
17271     sed '/^.*\/\([^/][^/]*\)\/*$/{
17272             s//\1/
17273             q
17274           }
17275           /^X\/\(\/\/\)$/{
17276             s//\1/
17277             q
17278           }
17279           /^X\/\(\/\).*/{
17280             s//\1/
17281             q
17282           }
17283           s/.*/./; q'`
17284
17285 # Avoid depending upon Character Ranges.
17286 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17287 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17288 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17289 as_cr_digits='0123456789'
17290 as_cr_alnum=$as_cr_Letters$as_cr_digits
17291
17292 ECHO_C= ECHO_N= ECHO_T=
17293 case `echo -n x` in #(((((
17294 -n*)
17295   case `echo 'xy\c'` in
17296   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17297   xy)  ECHO_C='\c';;
17298   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17299        ECHO_T=' ';;
17300   esac;;
17301 *)
17302   ECHO_N='-n';;
17303 esac
17304
17305 rm -f conf$$ conf$$.exe conf$$.file
17306 if test -d conf$$.dir; then
17307   rm -f conf$$.dir/conf$$.file
17308 else
17309   rm -f conf$$.dir
17310   mkdir conf$$.dir 2>/dev/null
17311 fi
17312 if (echo >conf$$.file) 2>/dev/null; then
17313   if ln -s conf$$.file conf$$ 2>/dev/null; then
17314     as_ln_s='ln -s'
17315     # ... but there are two gotchas:
17316     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17317     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17318     # In both cases, we have to default to `cp -pR'.
17319     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17320       as_ln_s='cp -pR'
17321   elif ln conf$$.file conf$$ 2>/dev/null; then
17322     as_ln_s=ln
17323   else
17324     as_ln_s='cp -pR'
17325   fi
17326 else
17327   as_ln_s='cp -pR'
17328 fi
17329 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17330 rmdir conf$$.dir 2>/dev/null
17331
17332
17333 # as_fn_mkdir_p
17334 # -------------
17335 # Create "$as_dir" as a directory, including parents if necessary.
17336 as_fn_mkdir_p ()
17337 {
17338
17339   case $as_dir in #(
17340   -*) as_dir=./$as_dir;;
17341   esac
17342   test -d "$as_dir" || eval $as_mkdir_p || {
17343     as_dirs=
17344     while :; do
17345       case $as_dir in #(
17346       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17347       *) as_qdir=$as_dir;;
17348       esac
17349       as_dirs="'$as_qdir' $as_dirs"
17350       as_dir=`$as_dirname -- "$as_dir" ||
17351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17352          X"$as_dir" : 'X\(//\)[^/]' \| \
17353          X"$as_dir" : 'X\(//\)$' \| \
17354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17355 $as_echo X"$as_dir" |
17356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17357             s//\1/
17358             q
17359           }
17360           /^X\(\/\/\)[^/].*/{
17361             s//\1/
17362             q
17363           }
17364           /^X\(\/\/\)$/{
17365             s//\1/
17366             q
17367           }
17368           /^X\(\/\).*/{
17369             s//\1/
17370             q
17371           }
17372           s/.*/./; q'`
17373       test -d "$as_dir" && break
17374     done
17375     test -z "$as_dirs" || eval "mkdir $as_dirs"
17376   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17377
17378
17379 } # as_fn_mkdir_p
17380 if mkdir -p . 2>/dev/null; then
17381   as_mkdir_p='mkdir -p "$as_dir"'
17382 else
17383   test -d ./-p && rmdir ./-p
17384   as_mkdir_p=false
17385 fi
17386
17387
17388 # as_fn_executable_p FILE
17389 # -----------------------
17390 # Test if FILE is an executable regular file.
17391 as_fn_executable_p ()
17392 {
17393   test -f "$1" && test -x "$1"
17394 } # as_fn_executable_p
17395 as_test_x='test -x'
17396 as_executable_p=as_fn_executable_p
17397
17398 # Sed expression to map a string onto a valid CPP name.
17399 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17400
17401 # Sed expression to map a string onto a valid variable name.
17402 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17403
17404
17405 exec 6>&1
17406 ## ----------------------------------- ##
17407 ## Main body of $CONFIG_STATUS script. ##
17408 ## ----------------------------------- ##
17409 _ASEOF
17410 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17411
17412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17413 # Save the log message, to keep $0 and so on meaningful, and to
17414 # report actual input values of CONFIG_FILES etc. instead of their
17415 # values after options handling.
17416 ac_log="
17417 This file was extended by libffi $as_me 3.4.2, which was
17418 generated by GNU Autoconf 2.69.  Invocation command line was
17419
17420   CONFIG_FILES    = $CONFIG_FILES
17421   CONFIG_HEADERS  = $CONFIG_HEADERS
17422   CONFIG_LINKS    = $CONFIG_LINKS
17423   CONFIG_COMMANDS = $CONFIG_COMMANDS
17424   $ $0 $@
17425
17426 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17427 "
17428
17429 _ACEOF
17430
17431 case $ac_config_files in *"
17432 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17433 esac
17434
17435 case $ac_config_headers in *"
17436 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17437 esac
17438
17439
17440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17441 # Files that config.status was made for.
17442 config_files="$ac_config_files"
17443 config_headers="$ac_config_headers"
17444 config_links="$ac_config_links"
17445 config_commands="$ac_config_commands"
17446
17447 _ACEOF
17448
17449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17450 ac_cs_usage="\
17451 \`$as_me' instantiates files and other configuration actions
17452 from templates according to the current configuration.  Unless the files
17453 and actions are specified as TAGs, all are instantiated by default.
17454
17455 Usage: $0 [OPTION]... [TAG]...
17456
17457   -h, --help       print this help, then exit
17458   -V, --version    print version number and configuration settings, then exit
17459       --config     print configuration, then exit
17460   -q, --quiet, --silent
17461                    do not print progress messages
17462   -d, --debug      don't remove temporary files
17463       --recheck    update $as_me by reconfiguring in the same conditions
17464       --file=FILE[:TEMPLATE]
17465                    instantiate the configuration file FILE
17466       --header=FILE[:TEMPLATE]
17467                    instantiate the configuration header FILE
17468
17469 Configuration files:
17470 $config_files
17471
17472 Configuration headers:
17473 $config_headers
17474
17475 Configuration links:
17476 $config_links
17477
17478 Configuration commands:
17479 $config_commands
17480
17481 Report bugs to <http://github.com/libffi/libffi/issues>."
17482
17483 _ACEOF
17484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17485 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17486 ac_cs_version="\\
17487 libffi config.status 3.4.2
17488 configured by $0, generated by GNU Autoconf 2.69,
17489   with options \\"\$ac_cs_config\\"
17490
17491 Copyright (C) 2012 Free Software Foundation, Inc.
17492 This config.status script is free software; the Free Software Foundation
17493 gives unlimited permission to copy, distribute and modify it."
17494
17495 ac_pwd='$ac_pwd'
17496 srcdir='$srcdir'
17497 INSTALL='$INSTALL'
17498 MKDIR_P='$MKDIR_P'
17499 AWK='$AWK'
17500 test -n "\$AWK" || AWK=awk
17501 _ACEOF
17502
17503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17504 # The default lists apply if the user does not specify any file.
17505 ac_need_defaults=:
17506 while test $# != 0
17507 do
17508   case $1 in
17509   --*=?*)
17510     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17511     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17512     ac_shift=:
17513     ;;
17514   --*=)
17515     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17516     ac_optarg=
17517     ac_shift=:
17518     ;;
17519   *)
17520     ac_option=$1
17521     ac_optarg=$2
17522     ac_shift=shift
17523     ;;
17524   esac
17525
17526   case $ac_option in
17527   # Handling of the options.
17528   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17529     ac_cs_recheck=: ;;
17530   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17531     $as_echo "$ac_cs_version"; exit ;;
17532   --config | --confi | --conf | --con | --co | --c )
17533     $as_echo "$ac_cs_config"; exit ;;
17534   --debug | --debu | --deb | --de | --d | -d )
17535     debug=: ;;
17536   --file | --fil | --fi | --f )
17537     $ac_shift
17538     case $ac_optarg in
17539     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17540     '') as_fn_error $? "missing file argument" ;;
17541     esac
17542     as_fn_append CONFIG_FILES " '$ac_optarg'"
17543     ac_need_defaults=false;;
17544   --header | --heade | --head | --hea )
17545     $ac_shift
17546     case $ac_optarg in
17547     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17548     esac
17549     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17550     ac_need_defaults=false;;
17551   --he | --h)
17552     # Conflict between --help and --header
17553     as_fn_error $? "ambiguous option: \`$1'
17554 Try \`$0 --help' for more information.";;
17555   --help | --hel | -h )
17556     $as_echo "$ac_cs_usage"; exit ;;
17557   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17558   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17559     ac_cs_silent=: ;;
17560
17561   # This is an error.
17562   -*) as_fn_error $? "unrecognized option: \`$1'
17563 Try \`$0 --help' for more information." ;;
17564
17565   *) as_fn_append ac_config_targets " $1"
17566      ac_need_defaults=false ;;
17567
17568   esac
17569   shift
17570 done
17571
17572 ac_configure_extra_args=
17573
17574 if $ac_cs_silent; then
17575   exec 6>/dev/null
17576   ac_configure_extra_args="$ac_configure_extra_args --silent"
17577 fi
17578
17579 _ACEOF
17580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17581 if \$ac_cs_recheck; then
17582   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17583   shift
17584   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17585   CONFIG_SHELL='$SHELL'
17586   export CONFIG_SHELL
17587   exec "\$@"
17588 fi
17589
17590 _ACEOF
17591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17592 exec 5>>config.log
17593 {
17594   echo
17595   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17596 ## Running $as_me. ##
17597 _ASBOX
17598   $as_echo "$ac_log"
17599 } >&5
17600
17601 _ACEOF
17602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17603 #
17604 # INIT-COMMANDS
17605 #
17606
17607 srcdir="$srcdir"
17608 host="$host"
17609 target="$target"
17610 with_multisubdir="$with_multisubdir"
17611 with_multisrctop="$with_multisrctop"
17612 with_target_subdir="$with_target_subdir"
17613 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17614 multi_basedir="$multi_basedir"
17615 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17616 CC="$CC"
17617 CXX="$CXX"
17618 GFORTRAN="$GFORTRAN"
17619 GDC="$GDC"
17620 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17621
17622
17623 # The HP-UX ksh and POSIX shell print the target directory to stdout
17624 # if CDPATH is set.
17625 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17626
17627 sed_quote_subst='$sed_quote_subst'
17628 double_quote_subst='$double_quote_subst'
17629 delay_variable_subst='$delay_variable_subst'
17630 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17631 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17632 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17633 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17634 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17635 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17636 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17637 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17638 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17639 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17640 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17641 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17642 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17643 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17644 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17645 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17646 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17647 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17648 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17649 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17650 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17651 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17652 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17653 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17654 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17655 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17656 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17657 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17658 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17659 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17660 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17661 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17662 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17663 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17664 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17665 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17666 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17667 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17668 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17669 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17670 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17671 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17672 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17673 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17674 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17675 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17676 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17677 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17678 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"`'
17679 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17680 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17681 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17682 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17683 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17684 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17685 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17686 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17687 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17688 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17689 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17690 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17691 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17692 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17693 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17694 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17695 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17696 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17697 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17698 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17699 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17700 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17701 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17702 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17703 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17704 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17705 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17706 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17707 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17708 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17709 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17710 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17711 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17712 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17713 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17714 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17715 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17716 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17717 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17718 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17719 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17720 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17721 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17722 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17723 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17724 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17725 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17726 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17727 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17728 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17729 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17730 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17731 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17732 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17733 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17734 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17735 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17736 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17737 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17738 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17739 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17740 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17741 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17742 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17743 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17744 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17745 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17746 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17747 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17748 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17749 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17750 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17751 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17752 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17753 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17754 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17755 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17756 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17757 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17758 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17759 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17760 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17761 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17762 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17763 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17764 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17765 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17766 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17767 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17768 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17769 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17770 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17771 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17772 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17773 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17774 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17775 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17776 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17777 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17778 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17779 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17780 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17781 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17782 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17783 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17784 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17785 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17786 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17787 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17788 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17789 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17790 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17791 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17792 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17793 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17794 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17795 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17796 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17797 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17798 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17799 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17800 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17801 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17802 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17803 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17804 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17805
17806 LTCC='$LTCC'
17807 LTCFLAGS='$LTCFLAGS'
17808 compiler='$compiler_DEFAULT'
17809
17810 # A function that is used when there is no print builtin or printf.
17811 func_fallback_echo ()
17812 {
17813   eval 'cat <<_LTECHO_EOF
17814 \$1
17815 _LTECHO_EOF'
17816 }
17817
17818 # Quote evaled strings.
17819 for var in SHELL \
17820 ECHO \
17821 SED \
17822 GREP \
17823 EGREP \
17824 FGREP \
17825 LD \
17826 NM \
17827 LN_S \
17828 lt_SP2NL \
17829 lt_NL2SP \
17830 reload_flag \
17831 OBJDUMP \
17832 deplibs_check_method \
17833 file_magic_cmd \
17834 AR \
17835 AR_FLAGS \
17836 STRIP \
17837 RANLIB \
17838 CC \
17839 CFLAGS \
17840 compiler \
17841 lt_cv_sys_global_symbol_pipe \
17842 lt_cv_sys_global_symbol_to_cdecl \
17843 lt_cv_sys_global_symbol_to_c_name_address \
17844 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17845 lt_prog_compiler_no_builtin_flag \
17846 lt_prog_compiler_wl \
17847 lt_prog_compiler_pic \
17848 lt_prog_compiler_static \
17849 lt_cv_prog_compiler_c_o \
17850 need_locks \
17851 DSYMUTIL \
17852 NMEDIT \
17853 LIPO \
17854 OTOOL \
17855 OTOOL64 \
17856 shrext_cmds \
17857 export_dynamic_flag_spec \
17858 whole_archive_flag_spec \
17859 compiler_needs_object \
17860 with_gnu_ld \
17861 allow_undefined_flag \
17862 no_undefined_flag \
17863 hardcode_libdir_flag_spec \
17864 hardcode_libdir_flag_spec_ld \
17865 hardcode_libdir_separator \
17866 fix_srcfile_path \
17867 exclude_expsyms \
17868 include_expsyms \
17869 file_list_spec \
17870 variables_saved_for_relink \
17871 libname_spec \
17872 library_names_spec \
17873 soname_spec \
17874 install_override_mode \
17875 finish_eval \
17876 old_striplib \
17877 striplib \
17878 compiler_lib_search_dirs \
17879 predep_objects \
17880 postdep_objects \
17881 predeps \
17882 postdeps \
17883 compiler_lib_search_path \
17884 LD_CXX \
17885 reload_flag_CXX \
17886 compiler_CXX \
17887 lt_prog_compiler_no_builtin_flag_CXX \
17888 lt_prog_compiler_wl_CXX \
17889 lt_prog_compiler_pic_CXX \
17890 lt_prog_compiler_static_CXX \
17891 lt_cv_prog_compiler_c_o_CXX \
17892 export_dynamic_flag_spec_CXX \
17893 whole_archive_flag_spec_CXX \
17894 compiler_needs_object_CXX \
17895 with_gnu_ld_CXX \
17896 allow_undefined_flag_CXX \
17897 no_undefined_flag_CXX \
17898 hardcode_libdir_flag_spec_CXX \
17899 hardcode_libdir_flag_spec_ld_CXX \
17900 hardcode_libdir_separator_CXX \
17901 fix_srcfile_path_CXX \
17902 exclude_expsyms_CXX \
17903 include_expsyms_CXX \
17904 file_list_spec_CXX \
17905 compiler_lib_search_dirs_CXX \
17906 predep_objects_CXX \
17907 postdep_objects_CXX \
17908 predeps_CXX \
17909 postdeps_CXX \
17910 compiler_lib_search_path_CXX; do
17911     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17912     *[\\\\\\\`\\"\\\$]*)
17913       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17914       ;;
17915     *)
17916       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17917       ;;
17918     esac
17919 done
17920
17921 # Double-quote double-evaled strings.
17922 for var in reload_cmds \
17923 old_postinstall_cmds \
17924 old_postuninstall_cmds \
17925 old_archive_cmds \
17926 extract_expsyms_cmds \
17927 old_archive_from_new_cmds \
17928 old_archive_from_expsyms_cmds \
17929 archive_cmds \
17930 archive_expsym_cmds \
17931 module_cmds \
17932 module_expsym_cmds \
17933 export_symbols_cmds \
17934 prelink_cmds \
17935 postinstall_cmds \
17936 postuninstall_cmds \
17937 finish_cmds \
17938 sys_lib_search_path_spec \
17939 sys_lib_dlsearch_path_spec \
17940 reload_cmds_CXX \
17941 old_archive_cmds_CXX \
17942 old_archive_from_new_cmds_CXX \
17943 old_archive_from_expsyms_cmds_CXX \
17944 archive_cmds_CXX \
17945 archive_expsym_cmds_CXX \
17946 module_cmds_CXX \
17947 module_expsym_cmds_CXX \
17948 export_symbols_cmds_CXX \
17949 prelink_cmds_CXX; do
17950     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17951     *[\\\\\\\`\\"\\\$]*)
17952       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17953       ;;
17954     *)
17955       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17956       ;;
17957     esac
17958 done
17959
17960 ac_aux_dir='$ac_aux_dir'
17961 xsi_shell='$xsi_shell'
17962 lt_shell_append='$lt_shell_append'
17963
17964 # See if we are running on zsh, and set the options which allow our
17965 # commands through without removal of \ escapes INIT.
17966 if test -n "\${ZSH_VERSION+set}" ; then
17967    setopt NO_GLOB_SUBST
17968 fi
17969
17970
17971     PACKAGE='$PACKAGE'
17972     VERSION='$VERSION'
17973     TIMESTAMP='$TIMESTAMP'
17974     RM='$RM'
17975     ofile='$ofile'
17976
17977
17978
17979
17980
17981 TARGETDIR="$TARGETDIR"
17982
17983 _ACEOF
17984
17985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17986
17987 # Handling of arguments.
17988 for ac_config_target in $ac_config_targets
17989 do
17990   case $ac_config_target in
17991     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17992     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17993     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17994     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17995     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17996     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17997     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17998     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17999     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18000     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18001     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18002     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
18003     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
18004
18005   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18006   esac
18007 done
18008
18009
18010 # If the user did not use the arguments to specify the items to instantiate,
18011 # then the envvar interface is used.  Set only those that are not.
18012 # We use the long form for the default assignment because of an extremely
18013 # bizarre bug on SunOS 4.1.3.
18014 if $ac_need_defaults; then
18015   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18016   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18017   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18018   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18019 fi
18020
18021 # Have a temporary directory for convenience.  Make it in the build tree
18022 # simply because there is no reason against having it here, and in addition,
18023 # creating and moving files from /tmp can sometimes cause problems.
18024 # Hook for its removal unless debugging.
18025 # Note that there is a small window in which the directory will not be cleaned:
18026 # after its creation but before its name has been assigned to `$tmp'.
18027 $debug ||
18028 {
18029   tmp= ac_tmp=
18030   trap 'exit_status=$?
18031   : "${ac_tmp:=$tmp}"
18032   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18033 ' 0
18034   trap 'as_fn_exit 1' 1 2 13 15
18035 }
18036 # Create a (secure) tmp directory for tmp files.
18037
18038 {
18039   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18040   test -d "$tmp"
18041 }  ||
18042 {
18043   tmp=./conf$$-$RANDOM
18044   (umask 077 && mkdir "$tmp")
18045 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18046 ac_tmp=$tmp
18047
18048 # Set up the scripts for CONFIG_FILES section.
18049 # No need to generate them if there are no CONFIG_FILES.
18050 # This happens for instance with `./config.status config.h'.
18051 if test -n "$CONFIG_FILES"; then
18052
18053
18054 ac_cr=`echo X | tr X '\015'`
18055 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18056 # But we know of no other shell where ac_cr would be empty at this
18057 # point, so we can use a bashism as a fallback.
18058 if test "x$ac_cr" = x; then
18059   eval ac_cr=\$\'\\r\'
18060 fi
18061 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18062 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18063   ac_cs_awk_cr='\\r'
18064 else
18065   ac_cs_awk_cr=$ac_cr
18066 fi
18067
18068 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18069 _ACEOF
18070
18071
18072 {
18073   echo "cat >conf$$subs.awk <<_ACEOF" &&
18074   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18075   echo "_ACEOF"
18076 } >conf$$subs.sh ||
18077   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18078 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18079 ac_delim='%!_!# '
18080 for ac_last_try in false false false false false :; do
18081   . ./conf$$subs.sh ||
18082     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18083
18084   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18085   if test $ac_delim_n = $ac_delim_num; then
18086     break
18087   elif $ac_last_try; then
18088     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18089   else
18090     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18091   fi
18092 done
18093 rm -f conf$$subs.sh
18094
18095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18096 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18097 _ACEOF
18098 sed -n '
18099 h
18100 s/^/S["/; s/!.*/"]=/
18101 p
18102 g
18103 s/^[^!]*!//
18104 :repl
18105 t repl
18106 s/'"$ac_delim"'$//
18107 t delim
18108 :nl
18109 h
18110 s/\(.\{148\}\)..*/\1/
18111 t more1
18112 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18113 p
18114 n
18115 b repl
18116 :more1
18117 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18118 p
18119 g
18120 s/.\{148\}//
18121 t nl
18122 :delim
18123 h
18124 s/\(.\{148\}\)..*/\1/
18125 t more2
18126 s/["\\]/\\&/g; s/^/"/; s/$/"/
18127 p
18128 b
18129 :more2
18130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18131 p
18132 g
18133 s/.\{148\}//
18134 t delim
18135 ' <conf$$subs.awk | sed '
18136 /^[^""]/{
18137   N
18138   s/\n//
18139 }
18140 ' >>$CONFIG_STATUS || ac_write_fail=1
18141 rm -f conf$$subs.awk
18142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18143 _ACAWK
18144 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18145   for (key in S) S_is_set[key] = 1
18146   FS = "\a"
18147
18148 }
18149 {
18150   line = $ 0
18151   nfields = split(line, field, "@")
18152   substed = 0
18153   len = length(field[1])
18154   for (i = 2; i < nfields; i++) {
18155     key = field[i]
18156     keylen = length(key)
18157     if (S_is_set[key]) {
18158       value = S[key]
18159       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18160       len += length(value) + length(field[++i])
18161       substed = 1
18162     } else
18163       len += 1 + keylen
18164   }
18165
18166   print line
18167 }
18168
18169 _ACAWK
18170 _ACEOF
18171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18172 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18173   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18174 else
18175   cat
18176 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18177   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18178 _ACEOF
18179
18180 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18181 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18182 # trailing colons and then remove the whole line if VPATH becomes empty
18183 # (actually we leave an empty line to preserve line numbers).
18184 if test "x$srcdir" = x.; then
18185   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18186 h
18187 s///
18188 s/^/:/
18189 s/[      ]*$/:/
18190 s/:\$(srcdir):/:/g
18191 s/:\${srcdir}:/:/g
18192 s/:@srcdir@:/:/g
18193 s/^:*//
18194 s/:*$//
18195 x
18196 s/\(=[   ]*\).*/\1/
18197 G
18198 s/\n//
18199 s/^[^=]*=[       ]*$//
18200 }'
18201 fi
18202
18203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18204 fi # test -n "$CONFIG_FILES"
18205
18206 # Set up the scripts for CONFIG_HEADERS section.
18207 # No need to generate them if there are no CONFIG_HEADERS.
18208 # This happens for instance with `./config.status Makefile'.
18209 if test -n "$CONFIG_HEADERS"; then
18210 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18211 BEGIN {
18212 _ACEOF
18213
18214 # Transform confdefs.h into an awk script `defines.awk', embedded as
18215 # here-document in config.status, that substitutes the proper values into
18216 # config.h.in to produce config.h.
18217
18218 # Create a delimiter string that does not exist in confdefs.h, to ease
18219 # handling of long lines.
18220 ac_delim='%!_!# '
18221 for ac_last_try in false false :; do
18222   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18223   if test -z "$ac_tt"; then
18224     break
18225   elif $ac_last_try; then
18226     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18227   else
18228     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18229   fi
18230 done
18231
18232 # For the awk script, D is an array of macro values keyed by name,
18233 # likewise P contains macro parameters if any.  Preserve backslash
18234 # newline sequences.
18235
18236 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18237 sed -n '
18238 s/.\{148\}/&'"$ac_delim"'/g
18239 t rset
18240 :rset
18241 s/^[     ]*#[    ]*define[       ][      ]*/ /
18242 t def
18243 d
18244 :def
18245 s/\\$//
18246 t bsnl
18247 s/["\\]/\\&/g
18248 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18249 D["\1"]=" \3"/p
18250 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18251 d
18252 :bsnl
18253 s/["\\]/\\&/g
18254 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18255 D["\1"]=" \3\\\\\\n"\\/p
18256 t cont
18257 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18258 t cont
18259 d
18260 :cont
18261 n
18262 s/.\{148\}/&'"$ac_delim"'/g
18263 t clear
18264 :clear
18265 s/\\$//
18266 t bsnlc
18267 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18268 d
18269 :bsnlc
18270 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18271 b cont
18272 ' <confdefs.h | sed '
18273 s/'"$ac_delim"'/"\\\
18274 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18275
18276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18277   for (key in D) D_is_set[key] = 1
18278   FS = "\a"
18279 }
18280 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18281   line = \$ 0
18282   split(line, arg, " ")
18283   if (arg[1] == "#") {
18284     defundef = arg[2]
18285     mac1 = arg[3]
18286   } else {
18287     defundef = substr(arg[1], 2)
18288     mac1 = arg[2]
18289   }
18290   split(mac1, mac2, "(") #)
18291   macro = mac2[1]
18292   prefix = substr(line, 1, index(line, defundef) - 1)
18293   if (D_is_set[macro]) {
18294     # Preserve the white space surrounding the "#".
18295     print prefix "define", macro P[macro] D[macro]
18296     next
18297   } else {
18298     # Replace #undef with comments.  This is necessary, for example,
18299     # in the case of _POSIX_SOURCE, which is predefined and required
18300     # on some systems where configure will not decide to define it.
18301     if (defundef == "undef") {
18302       print "/*", prefix defundef, macro, "*/"
18303       next
18304     }
18305   }
18306 }
18307 { print }
18308 _ACAWK
18309 _ACEOF
18310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18311   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18312 fi # test -n "$CONFIG_HEADERS"
18313
18314
18315 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
18316 shift
18317 for ac_tag
18318 do
18319   case $ac_tag in
18320   :[FHLC]) ac_mode=$ac_tag; continue;;
18321   esac
18322   case $ac_mode$ac_tag in
18323   :[FHL]*:*);;
18324   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18325   :[FH]-) ac_tag=-:-;;
18326   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18327   esac
18328   ac_save_IFS=$IFS
18329   IFS=:
18330   set x $ac_tag
18331   IFS=$ac_save_IFS
18332   shift
18333   ac_file=$1
18334   shift
18335
18336   case $ac_mode in
18337   :L) ac_source=$1;;
18338   :[FH])
18339     ac_file_inputs=
18340     for ac_f
18341     do
18342       case $ac_f in
18343       -) ac_f="$ac_tmp/stdin";;
18344       *) # Look for the file first in the build tree, then in the source tree
18345          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18346          # because $ac_f cannot contain `:'.
18347          test -f "$ac_f" ||
18348            case $ac_f in
18349            [\\/$]*) false;;
18350            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18351            esac ||
18352            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18353       esac
18354       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18355       as_fn_append ac_file_inputs " '$ac_f'"
18356     done
18357
18358     # Let's still pretend it is `configure' which instantiates (i.e., don't
18359     # use $as_me), people would be surprised to read:
18360     #    /* config.h.  Generated by config.status.  */
18361     configure_input='Generated from '`
18362           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18363         `' by configure.'
18364     if test x"$ac_file" != x-; then
18365       configure_input="$ac_file.  $configure_input"
18366       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18367 $as_echo "$as_me: creating $ac_file" >&6;}
18368     fi
18369     # Neutralize special characters interpreted by sed in replacement strings.
18370     case $configure_input in #(
18371     *\&* | *\|* | *\\* )
18372        ac_sed_conf_input=`$as_echo "$configure_input" |
18373        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18374     *) ac_sed_conf_input=$configure_input;;
18375     esac
18376
18377     case $ac_tag in
18378     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18379       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18380     esac
18381     ;;
18382   esac
18383
18384   ac_dir=`$as_dirname -- "$ac_file" ||
18385 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18386          X"$ac_file" : 'X\(//\)[^/]' \| \
18387          X"$ac_file" : 'X\(//\)$' \| \
18388          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18389 $as_echo X"$ac_file" |
18390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18391             s//\1/
18392             q
18393           }
18394           /^X\(\/\/\)[^/].*/{
18395             s//\1/
18396             q
18397           }
18398           /^X\(\/\/\)$/{
18399             s//\1/
18400             q
18401           }
18402           /^X\(\/\).*/{
18403             s//\1/
18404             q
18405           }
18406           s/.*/./; q'`
18407   as_dir="$ac_dir"; as_fn_mkdir_p
18408   ac_builddir=.
18409
18410 case "$ac_dir" in
18411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18412 *)
18413   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18414   # A ".." for each directory in $ac_dir_suffix.
18415   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18416   case $ac_top_builddir_sub in
18417   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18418   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18419   esac ;;
18420 esac
18421 ac_abs_top_builddir=$ac_pwd
18422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18423 # for backward compatibility:
18424 ac_top_builddir=$ac_top_build_prefix
18425
18426 case $srcdir in
18427   .)  # We are building in place.
18428     ac_srcdir=.
18429     ac_top_srcdir=$ac_top_builddir_sub
18430     ac_abs_top_srcdir=$ac_pwd ;;
18431   [\\/]* | ?:[\\/]* )  # Absolute name.
18432     ac_srcdir=$srcdir$ac_dir_suffix;
18433     ac_top_srcdir=$srcdir
18434     ac_abs_top_srcdir=$srcdir ;;
18435   *) # Relative name.
18436     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18437     ac_top_srcdir=$ac_top_build_prefix$srcdir
18438     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18439 esac
18440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18441
18442
18443   case $ac_mode in
18444   :F)
18445   #
18446   # CONFIG_FILE
18447   #
18448
18449   case $INSTALL in
18450   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18451   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18452   esac
18453   ac_MKDIR_P=$MKDIR_P
18454   case $MKDIR_P in
18455   [\\/$]* | ?:[\\/]* ) ;;
18456   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18457   esac
18458 _ACEOF
18459
18460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18461 # If the template does not know about datarootdir, expand it.
18462 # FIXME: This hack should be removed a few years after 2.60.
18463 ac_datarootdir_hack=; ac_datarootdir_seen=
18464 ac_sed_dataroot='
18465 /datarootdir/ {
18466   p
18467   q
18468 }
18469 /@datadir@/p
18470 /@docdir@/p
18471 /@infodir@/p
18472 /@localedir@/p
18473 /@mandir@/p'
18474 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18475 *datarootdir*) ac_datarootdir_seen=yes;;
18476 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18477   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18478 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18479 _ACEOF
18480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18481   ac_datarootdir_hack='
18482   s&@datadir@&$datadir&g
18483   s&@docdir@&$docdir&g
18484   s&@infodir@&$infodir&g
18485   s&@localedir@&$localedir&g
18486   s&@mandir@&$mandir&g
18487   s&\\\${datarootdir}&$datarootdir&g' ;;
18488 esac
18489 _ACEOF
18490
18491 # Neutralize VPATH when `$srcdir' = `.'.
18492 # Shell code in configure.ac might set extrasub.
18493 # FIXME: do we really want to maintain this feature?
18494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18495 ac_sed_extra="$ac_vpsub
18496 $extrasub
18497 _ACEOF
18498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18499 :t
18500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18501 s|@configure_input@|$ac_sed_conf_input|;t t
18502 s&@top_builddir@&$ac_top_builddir_sub&;t t
18503 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18504 s&@srcdir@&$ac_srcdir&;t t
18505 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18506 s&@top_srcdir@&$ac_top_srcdir&;t t
18507 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18508 s&@builddir@&$ac_builddir&;t t
18509 s&@abs_builddir@&$ac_abs_builddir&;t t
18510 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18511 s&@INSTALL@&$ac_INSTALL&;t t
18512 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18513 $ac_datarootdir_hack
18514 "
18515 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18516   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18517
18518 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18519   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18520   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18521       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18522   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18523 which seems to be undefined.  Please make sure it is defined" >&5
18524 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18525 which seems to be undefined.  Please make sure it is defined" >&2;}
18526
18527   rm -f "$ac_tmp/stdin"
18528   case $ac_file in
18529   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18530   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18531   esac \
18532   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18533  ;;
18534   :H)
18535   #
18536   # CONFIG_HEADER
18537   #
18538   if test x"$ac_file" != x-; then
18539     {
18540       $as_echo "/* $configure_input  */" \
18541       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18542     } >"$ac_tmp/config.h" \
18543       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18544     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18545       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18546 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18547     else
18548       rm -f "$ac_file"
18549       mv "$ac_tmp/config.h" "$ac_file" \
18550         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18551     fi
18552   else
18553     $as_echo "/* $configure_input  */" \
18554       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18555       || as_fn_error $? "could not create -" "$LINENO" 5
18556   fi
18557 # Compute "$ac_file"'s index in $config_headers.
18558 _am_arg="$ac_file"
18559 _am_stamp_count=1
18560 for _am_header in $config_headers :; do
18561   case $_am_header in
18562     $_am_arg | $_am_arg:* )
18563       break ;;
18564     * )
18565       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18566   esac
18567 done
18568 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18569 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18570          X"$_am_arg" : 'X\(//\)[^/]' \| \
18571          X"$_am_arg" : 'X\(//\)$' \| \
18572          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18573 $as_echo X"$_am_arg" |
18574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18575             s//\1/
18576             q
18577           }
18578           /^X\(\/\/\)[^/].*/{
18579             s//\1/
18580             q
18581           }
18582           /^X\(\/\/\)$/{
18583             s//\1/
18584             q
18585           }
18586           /^X\(\/\).*/{
18587             s//\1/
18588             q
18589           }
18590           s/.*/./; q'`/stamp-h$_am_stamp_count
18591  ;;
18592   :L)
18593   #
18594   # CONFIG_LINK
18595   #
18596
18597   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18598     :
18599   else
18600     # Prefer the file from the source tree if names are identical.
18601     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18602       ac_source=$srcdir/$ac_source
18603     fi
18604
18605     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18606 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18607
18608     if test ! -r "$ac_source"; then
18609       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18610     fi
18611     rm -f "$ac_file"
18612
18613     # Try a relative symlink, then a hard link, then a copy.
18614     case $ac_source in
18615     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18616         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18617     esac
18618     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18619       ln "$ac_source" "$ac_file" 2>/dev/null ||
18620       cp -p "$ac_source" "$ac_file" ||
18621       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18622   fi
18623  ;;
18624   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18625 $as_echo "$as_me: executing $ac_file commands" >&6;}
18626  ;;
18627   esac
18628
18629
18630   case $ac_file$ac_mode in
18631     "default-1":C)
18632 # Only add multilib support code if we just rebuilt the top-level
18633 # Makefile.
18634 case " $CONFIG_FILES " in
18635  *" Makefile "*)
18636    ac_file=Makefile . ${multi_basedir}/config-ml.in
18637    ;;
18638 esac ;;
18639     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18640   # Older Autoconf quotes --file arguments for eval, but not when files
18641   # are listed without --file.  Let's play safe and only enable the eval
18642   # if we detect the quoting.
18643   case $CONFIG_FILES in
18644   *\'*) eval set x "$CONFIG_FILES" ;;
18645   *)   set x $CONFIG_FILES ;;
18646   esac
18647   shift
18648   for mf
18649   do
18650     # Strip MF so we end up with the name of the file.
18651     mf=`echo "$mf" | sed -e 's/:.*$//'`
18652     # Check whether this is an Automake generated Makefile or not.
18653     # We used to match only the files named 'Makefile.in', but
18654     # some people rename them; so instead we look at the file content.
18655     # Grep'ing the first line is not enough: some people post-process
18656     # each Makefile.in and add a new line on top of each file to say so.
18657     # Grep'ing the whole file is not good either: AIX grep has a line
18658     # limit of 2048, but all sed's we know have understand at least 4000.
18659     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18660       dirpart=`$as_dirname -- "$mf" ||
18661 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18662          X"$mf" : 'X\(//\)[^/]' \| \
18663          X"$mf" : 'X\(//\)$' \| \
18664          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18665 $as_echo X"$mf" |
18666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18667             s//\1/
18668             q
18669           }
18670           /^X\(\/\/\)[^/].*/{
18671             s//\1/
18672             q
18673           }
18674           /^X\(\/\/\)$/{
18675             s//\1/
18676             q
18677           }
18678           /^X\(\/\).*/{
18679             s//\1/
18680             q
18681           }
18682           s/.*/./; q'`
18683     else
18684       continue
18685     fi
18686     # Extract the definition of DEPDIR, am__include, and am__quote
18687     # from the Makefile without running 'make'.
18688     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18689     test -z "$DEPDIR" && continue
18690     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18691     test -z "$am__include" && continue
18692     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18693     # Find all dependency output files, they are included files with
18694     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18695     # simplest approach to changing $(DEPDIR) to its actual value in the
18696     # expansion.
18697     for file in `sed -n "
18698       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18699          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18700       # Make sure the directory exists.
18701       test -f "$dirpart/$file" && continue
18702       fdir=`$as_dirname -- "$file" ||
18703 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18704          X"$file" : 'X\(//\)[^/]' \| \
18705          X"$file" : 'X\(//\)$' \| \
18706          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18707 $as_echo X"$file" |
18708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18709             s//\1/
18710             q
18711           }
18712           /^X\(\/\/\)[^/].*/{
18713             s//\1/
18714             q
18715           }
18716           /^X\(\/\/\)$/{
18717             s//\1/
18718             q
18719           }
18720           /^X\(\/\).*/{
18721             s//\1/
18722             q
18723           }
18724           s/.*/./; q'`
18725       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18726       # echo "creating $dirpart/$file"
18727       echo '# dummy' > "$dirpart/$file"
18728     done
18729   done
18730 }
18731  ;;
18732     "libtool":C)
18733
18734     # See if we are running on zsh, and set the options which allow our
18735     # commands through without removal of \ escapes.
18736     if test -n "${ZSH_VERSION+set}" ; then
18737       setopt NO_GLOB_SUBST
18738     fi
18739
18740     cfgfile="${ofile}T"
18741     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18742     $RM "$cfgfile"
18743
18744     cat <<_LT_EOF >> "$cfgfile"
18745 #! $SHELL
18746
18747 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18748 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18750 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18751 #
18752 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18753 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18754 #   Written by Gordon Matzigkeit, 1996
18755 #
18756 #   This file is part of GNU Libtool.
18757 #
18758 # GNU Libtool is free software; you can redistribute it and/or
18759 # modify it under the terms of the GNU General Public License as
18760 # published by the Free Software Foundation; either version 2 of
18761 # the License, or (at your option) any later version.
18762 #
18763 # As a special exception to the GNU General Public License,
18764 # if you distribute this file as part of a program or library that
18765 # is built using GNU Libtool, you may include this file under the
18766 # same distribution terms that you use for the rest of that program.
18767 #
18768 # GNU Libtool is distributed in the hope that it will be useful,
18769 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18770 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18771 # GNU General Public License for more details.
18772 #
18773 # You should have received a copy of the GNU General Public License
18774 # along with GNU Libtool; see the file COPYING.  If not, a copy
18775 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18776 # obtained by writing to the Free Software Foundation, Inc.,
18777 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18778
18779
18780 # The names of the tagged configurations supported by this script.
18781 available_tags="CXX "
18782
18783 # ### BEGIN LIBTOOL CONFIG
18784
18785 # Which release of libtool.m4 was used?
18786 macro_version=$macro_version
18787 macro_revision=$macro_revision
18788
18789 # Whether or not to build shared libraries.
18790 build_libtool_libs=$enable_shared
18791
18792 # Whether or not to build static libraries.
18793 build_old_libs=$enable_static
18794
18795 # What type of objects to build.
18796 pic_mode=$pic_mode
18797
18798 # Whether or not to optimize for fast installation.
18799 fast_install=$enable_fast_install
18800
18801 # Shell to use when invoking shell scripts.
18802 SHELL=$lt_SHELL
18803
18804 # An echo program that protects backslashes.
18805 ECHO=$lt_ECHO
18806
18807 # The host system.
18808 host_alias=$host_alias
18809 host=$host
18810 host_os=$host_os
18811
18812 # The build system.
18813 build_alias=$build_alias
18814 build=$build
18815 build_os=$build_os
18816
18817 # A sed program that does not truncate output.
18818 SED=$lt_SED
18819
18820 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18821 Xsed="\$SED -e 1s/^X//"
18822
18823 # A grep program that handles long lines.
18824 GREP=$lt_GREP
18825
18826 # An ERE matcher.
18827 EGREP=$lt_EGREP
18828
18829 # A literal string matcher.
18830 FGREP=$lt_FGREP
18831
18832 # A BSD- or MS-compatible name lister.
18833 NM=$lt_NM
18834
18835 # Whether we need soft or hard links.
18836 LN_S=$lt_LN_S
18837
18838 # What is the maximum length of a command?
18839 max_cmd_len=$max_cmd_len
18840
18841 # Object file suffix (normally "o").
18842 objext=$ac_objext
18843
18844 # Executable file suffix (normally "").
18845 exeext=$exeext
18846
18847 # whether the shell understands "unset".
18848 lt_unset=$lt_unset
18849
18850 # turn spaces into newlines.
18851 SP2NL=$lt_lt_SP2NL
18852
18853 # turn newlines into spaces.
18854 NL2SP=$lt_lt_NL2SP
18855
18856 # An object symbol dumper.
18857 OBJDUMP=$lt_OBJDUMP
18858
18859 # Method to check whether dependent libraries are shared objects.
18860 deplibs_check_method=$lt_deplibs_check_method
18861
18862 # Command to use when deplibs_check_method == "file_magic".
18863 file_magic_cmd=$lt_file_magic_cmd
18864
18865 # The archiver.
18866 AR=$lt_AR
18867 AR_FLAGS=$lt_AR_FLAGS
18868
18869 # A symbol stripping program.
18870 STRIP=$lt_STRIP
18871
18872 # Commands used to install an old-style archive.
18873 RANLIB=$lt_RANLIB
18874 old_postinstall_cmds=$lt_old_postinstall_cmds
18875 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18876
18877 # Whether to use a lock for old archive extraction.
18878 lock_old_archive_extraction=$lock_old_archive_extraction
18879
18880 # A C compiler.
18881 LTCC=$lt_CC
18882
18883 # LTCC compiler flags.
18884 LTCFLAGS=$lt_CFLAGS
18885
18886 # Take the output of nm and produce a listing of raw symbols and C names.
18887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18888
18889 # Transform the output of nm in a proper C declaration.
18890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18891
18892 # Transform the output of nm in a C name address pair.
18893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18894
18895 # Transform the output of nm in a C name address pair when lib prefix is needed.
18896 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18897
18898 # The name of the directory that contains temporary libtool files.
18899 objdir=$objdir
18900
18901 # Used to examine libraries when file_magic_cmd begins with "file".
18902 MAGIC_CMD=$MAGIC_CMD
18903
18904 # Must we lock files when doing compilation?
18905 need_locks=$lt_need_locks
18906
18907 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18908 DSYMUTIL=$lt_DSYMUTIL
18909
18910 # Tool to change global to local symbols on Mac OS X.
18911 NMEDIT=$lt_NMEDIT
18912
18913 # Tool to manipulate fat objects and archives on Mac OS X.
18914 LIPO=$lt_LIPO
18915
18916 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18917 OTOOL=$lt_OTOOL
18918
18919 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18920 OTOOL64=$lt_OTOOL64
18921
18922 # Old archive suffix (normally "a").
18923 libext=$libext
18924
18925 # Shared library suffix (normally ".so").
18926 shrext_cmds=$lt_shrext_cmds
18927
18928 # The commands to extract the exported symbol list from a shared archive.
18929 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18930
18931 # Variables whose values should be saved in libtool wrapper scripts and
18932 # restored at link time.
18933 variables_saved_for_relink=$lt_variables_saved_for_relink
18934
18935 # Do we need the "lib" prefix for modules?
18936 need_lib_prefix=$need_lib_prefix
18937
18938 # Do we need a version for libraries?
18939 need_version=$need_version
18940
18941 # Library versioning type.
18942 version_type=$version_type
18943
18944 # Shared library runtime path variable.
18945 runpath_var=$runpath_var
18946
18947 # Shared library path variable.
18948 shlibpath_var=$shlibpath_var
18949
18950 # Is shlibpath searched before the hard-coded library search path?
18951 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18952
18953 # Format of library name prefix.
18954 libname_spec=$lt_libname_spec
18955
18956 # List of archive names.  First name is the real one, the rest are links.
18957 # The last name is the one that the linker finds with -lNAME
18958 library_names_spec=$lt_library_names_spec
18959
18960 # The coded name of the library, if different from the real name.
18961 soname_spec=$lt_soname_spec
18962
18963 # Permission mode override for installation of shared libraries.
18964 install_override_mode=$lt_install_override_mode
18965
18966 # Command to use after installation of a shared archive.
18967 postinstall_cmds=$lt_postinstall_cmds
18968
18969 # Command to use after uninstallation of a shared archive.
18970 postuninstall_cmds=$lt_postuninstall_cmds
18971
18972 # Commands used to finish a libtool library installation in a directory.
18973 finish_cmds=$lt_finish_cmds
18974
18975 # As "finish_cmds", except a single script fragment to be evaled but
18976 # not shown.
18977 finish_eval=$lt_finish_eval
18978
18979 # Whether we should hardcode library paths into libraries.
18980 hardcode_into_libs=$hardcode_into_libs
18981
18982 # Compile-time system search path for libraries.
18983 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18984
18985 # Run-time system search path for libraries.
18986 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18987
18988 # Whether dlopen is supported.
18989 dlopen_support=$enable_dlopen
18990
18991 # Whether dlopen of programs is supported.
18992 dlopen_self=$enable_dlopen_self
18993
18994 # Whether dlopen of statically linked programs is supported.
18995 dlopen_self_static=$enable_dlopen_self_static
18996
18997 # Commands to strip libraries.
18998 old_striplib=$lt_old_striplib
18999 striplib=$lt_striplib
19000
19001
19002 # The linker used to build libraries.
19003 LD=$lt_LD
19004
19005 # How to create reloadable object files.
19006 reload_flag=$lt_reload_flag
19007 reload_cmds=$lt_reload_cmds
19008
19009 # Commands used to build an old-style archive.
19010 old_archive_cmds=$lt_old_archive_cmds
19011
19012 # A language specific compiler.
19013 CC=$lt_compiler
19014
19015 # Is the compiler the GNU compiler?
19016 with_gcc=$GCC
19017
19018 # Compiler flag to turn off builtin functions.
19019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19020
19021 # How to pass a linker flag through the compiler.
19022 wl=$lt_lt_prog_compiler_wl
19023
19024 # Additional compiler flags for building library objects.
19025 pic_flag=$lt_lt_prog_compiler_pic
19026
19027 # Compiler flag to prevent dynamic linking.
19028 link_static_flag=$lt_lt_prog_compiler_static
19029
19030 # Does compiler simultaneously support -c and -o options?
19031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19032
19033 # Whether or not to add -lc for building shared libraries.
19034 build_libtool_need_lc=$archive_cmds_need_lc
19035
19036 # Whether or not to disallow shared libs when runtime libs are static.
19037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19038
19039 # Compiler flag to allow reflexive dlopens.
19040 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19041
19042 # Compiler flag to generate shared objects directly from archives.
19043 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19044
19045 # Whether the compiler copes with passing no objects directly.
19046 compiler_needs_object=$lt_compiler_needs_object
19047
19048 # Create an old-style archive from a shared archive.
19049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19050
19051 # Create a temporary old-style archive to link instead of a shared archive.
19052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19053
19054 # Commands used to build a shared archive.
19055 archive_cmds=$lt_archive_cmds
19056 archive_expsym_cmds=$lt_archive_expsym_cmds
19057
19058 # Commands used to build a loadable module if different from building
19059 # a shared archive.
19060 module_cmds=$lt_module_cmds
19061 module_expsym_cmds=$lt_module_expsym_cmds
19062
19063 # Whether we are building with GNU ld or not.
19064 with_gnu_ld=$lt_with_gnu_ld
19065
19066 # Flag that allows shared libraries with undefined symbols to be built.
19067 allow_undefined_flag=$lt_allow_undefined_flag
19068
19069 # Flag that enforces no undefined symbols.
19070 no_undefined_flag=$lt_no_undefined_flag
19071
19072 # Flag to hardcode \$libdir into a binary during linking.
19073 # This must work even if \$libdir does not exist
19074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19075
19076 # If ld is used when linking, flag to hardcode \$libdir into a binary
19077 # during linking.  This must work even if \$libdir does not exist.
19078 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19079
19080 # Whether we need a single "-rpath" flag with a separated argument.
19081 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19082
19083 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19084 # DIR into the resulting binary.
19085 hardcode_direct=$hardcode_direct
19086
19087 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19088 # DIR into the resulting binary and the resulting library dependency is
19089 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19090 # library is relocated.
19091 hardcode_direct_absolute=$hardcode_direct_absolute
19092
19093 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19094 # into the resulting binary.
19095 hardcode_minus_L=$hardcode_minus_L
19096
19097 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19098 # into the resulting binary.
19099 hardcode_shlibpath_var=$hardcode_shlibpath_var
19100
19101 # Set to "yes" if building a shared library automatically hardcodes DIR
19102 # into the library and all subsequent libraries and executables linked
19103 # against it.
19104 hardcode_automatic=$hardcode_automatic
19105
19106 # Set to yes if linker adds runtime paths of dependent libraries
19107 # to runtime path list.
19108 inherit_rpath=$inherit_rpath
19109
19110 # Whether libtool must link a program against all its dependency libraries.
19111 link_all_deplibs=$link_all_deplibs
19112
19113 # Fix the shell variable \$srcfile for the compiler.
19114 fix_srcfile_path=$lt_fix_srcfile_path
19115
19116 # Set to "yes" if exported symbols are required.
19117 always_export_symbols=$always_export_symbols
19118
19119 # The commands to list exported symbols.
19120 export_symbols_cmds=$lt_export_symbols_cmds
19121
19122 # Symbols that should not be listed in the preloaded symbols.
19123 exclude_expsyms=$lt_exclude_expsyms
19124
19125 # Symbols that must always be exported.
19126 include_expsyms=$lt_include_expsyms
19127
19128 # Commands necessary for linking programs (against libraries) with templates.
19129 prelink_cmds=$lt_prelink_cmds
19130
19131 # Specify filename containing input files.
19132 file_list_spec=$lt_file_list_spec
19133
19134 # How to hardcode a shared library path into an executable.
19135 hardcode_action=$hardcode_action
19136
19137 # The directories searched by this compiler when creating a shared library.
19138 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19139
19140 # Dependencies to place before and after the objects being linked to
19141 # create a shared library.
19142 predep_objects=$lt_predep_objects
19143 postdep_objects=$lt_postdep_objects
19144 predeps=$lt_predeps
19145 postdeps=$lt_postdeps
19146
19147 # The library search path used internally by the compiler when linking
19148 # a shared library.
19149 compiler_lib_search_path=$lt_compiler_lib_search_path
19150
19151 # ### END LIBTOOL CONFIG
19152
19153 _LT_EOF
19154
19155   case $host_os in
19156   aix3*)
19157     cat <<\_LT_EOF >> "$cfgfile"
19158 # AIX sometimes has problems with the GCC collect2 program.  For some
19159 # reason, if we set the COLLECT_NAMES environment variable, the problems
19160 # vanish in a puff of smoke.
19161 if test "X${COLLECT_NAMES+set}" != Xset; then
19162   COLLECT_NAMES=
19163   export COLLECT_NAMES
19164 fi
19165 _LT_EOF
19166     ;;
19167   esac
19168
19169
19170 ltmain="$ac_aux_dir/ltmain.sh"
19171
19172
19173   # We use sed instead of cat because bash on DJGPP gets confused if
19174   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19175   # text mode, it properly converts lines to CR/LF.  This bash problem
19176   # is reportedly fixed, but why not run on old versions too?
19177   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19178     || (rm -f "$cfgfile"; exit 1)
19179
19180   case $xsi_shell in
19181   yes)
19182     cat << \_LT_EOF >> "$cfgfile"
19183
19184 # func_dirname file append nondir_replacement
19185 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19186 # otherwise set result to NONDIR_REPLACEMENT.
19187 func_dirname ()
19188 {
19189   case ${1} in
19190     */*) func_dirname_result="${1%/*}${2}" ;;
19191     *  ) func_dirname_result="${3}" ;;
19192   esac
19193 }
19194
19195 # func_basename file
19196 func_basename ()
19197 {
19198   func_basename_result="${1##*/}"
19199 }
19200
19201 # func_dirname_and_basename file append nondir_replacement
19202 # perform func_basename and func_dirname in a single function
19203 # call:
19204 #   dirname:  Compute the dirname of FILE.  If nonempty,
19205 #             add APPEND to the result, otherwise set result
19206 #             to NONDIR_REPLACEMENT.
19207 #             value returned in "$func_dirname_result"
19208 #   basename: Compute filename of FILE.
19209 #             value retuned in "$func_basename_result"
19210 # Implementation must be kept synchronized with func_dirname
19211 # and func_basename. For efficiency, we do not delegate to
19212 # those functions but instead duplicate the functionality here.
19213 func_dirname_and_basename ()
19214 {
19215   case ${1} in
19216     */*) func_dirname_result="${1%/*}${2}" ;;
19217     *  ) func_dirname_result="${3}" ;;
19218   esac
19219   func_basename_result="${1##*/}"
19220 }
19221
19222 # func_stripname prefix suffix name
19223 # strip PREFIX and SUFFIX off of NAME.
19224 # PREFIX and SUFFIX must not contain globbing or regex special
19225 # characters, hashes, percent signs, but SUFFIX may contain a leading
19226 # dot (in which case that matches only a dot).
19227 func_stripname ()
19228 {
19229   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19230   # positional parameters, so assign one to ordinary parameter first.
19231   func_stripname_result=${3}
19232   func_stripname_result=${func_stripname_result#"${1}"}
19233   func_stripname_result=${func_stripname_result%"${2}"}
19234 }
19235
19236 # func_opt_split
19237 func_opt_split ()
19238 {
19239   func_opt_split_opt=${1%%=*}
19240   func_opt_split_arg=${1#*=}
19241 }
19242
19243 # func_lo2o object
19244 func_lo2o ()
19245 {
19246   case ${1} in
19247     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19248     *)    func_lo2o_result=${1} ;;
19249   esac
19250 }
19251
19252 # func_xform libobj-or-source
19253 func_xform ()
19254 {
19255   func_xform_result=${1%.*}.lo
19256 }
19257
19258 # func_arith arithmetic-term...
19259 func_arith ()
19260 {
19261   func_arith_result=$(( $* ))
19262 }
19263
19264 # func_len string
19265 # STRING may not start with a hyphen.
19266 func_len ()
19267 {
19268   func_len_result=${#1}
19269 }
19270
19271 _LT_EOF
19272     ;;
19273   *) # Bourne compatible functions.
19274     cat << \_LT_EOF >> "$cfgfile"
19275
19276 # func_dirname file append nondir_replacement
19277 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19278 # otherwise set result to NONDIR_REPLACEMENT.
19279 func_dirname ()
19280 {
19281   # Extract subdirectory from the argument.
19282   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19283   if test "X$func_dirname_result" = "X${1}"; then
19284     func_dirname_result="${3}"
19285   else
19286     func_dirname_result="$func_dirname_result${2}"
19287   fi
19288 }
19289
19290 # func_basename file
19291 func_basename ()
19292 {
19293   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19294 }
19295
19296
19297 # func_stripname prefix suffix name
19298 # strip PREFIX and SUFFIX off of NAME.
19299 # PREFIX and SUFFIX must not contain globbing or regex special
19300 # characters, hashes, percent signs, but SUFFIX may contain a leading
19301 # dot (in which case that matches only a dot).
19302 # func_strip_suffix prefix name
19303 func_stripname ()
19304 {
19305   case ${2} in
19306     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19307     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19308   esac
19309 }
19310
19311 # sed scripts:
19312 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19313 my_sed_long_arg='1s/^-[^=]*=//'
19314
19315 # func_opt_split
19316 func_opt_split ()
19317 {
19318   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19319   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19320 }
19321
19322 # func_lo2o object
19323 func_lo2o ()
19324 {
19325   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19326 }
19327
19328 # func_xform libobj-or-source
19329 func_xform ()
19330 {
19331   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19332 }
19333
19334 # func_arith arithmetic-term...
19335 func_arith ()
19336 {
19337   func_arith_result=`expr "$@"`
19338 }
19339
19340 # func_len string
19341 # STRING may not start with a hyphen.
19342 func_len ()
19343 {
19344   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19345 }
19346
19347 _LT_EOF
19348 esac
19349
19350 case $lt_shell_append in
19351   yes)
19352     cat << \_LT_EOF >> "$cfgfile"
19353
19354 # func_append var value
19355 # Append VALUE to the end of shell variable VAR.
19356 func_append ()
19357 {
19358   eval "$1+=\$2"
19359 }
19360 _LT_EOF
19361     ;;
19362   *)
19363     cat << \_LT_EOF >> "$cfgfile"
19364
19365 # func_append var value
19366 # Append VALUE to the end of shell variable VAR.
19367 func_append ()
19368 {
19369   eval "$1=\$$1\$2"
19370 }
19371
19372 _LT_EOF
19373     ;;
19374   esac
19375
19376
19377   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19378     || (rm -f "$cfgfile"; exit 1)
19379
19380   mv -f "$cfgfile" "$ofile" ||
19381     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19382   chmod +x "$ofile"
19383
19384
19385     cat <<_LT_EOF >> "$ofile"
19386
19387 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19388
19389 # The linker used to build libraries.
19390 LD=$lt_LD_CXX
19391
19392 # How to create reloadable object files.
19393 reload_flag=$lt_reload_flag_CXX
19394 reload_cmds=$lt_reload_cmds_CXX
19395
19396 # Commands used to build an old-style archive.
19397 old_archive_cmds=$lt_old_archive_cmds_CXX
19398
19399 # A language specific compiler.
19400 CC=$lt_compiler_CXX
19401
19402 # Is the compiler the GNU compiler?
19403 with_gcc=$GCC_CXX
19404
19405 # Compiler flag to turn off builtin functions.
19406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19407
19408 # How to pass a linker flag through the compiler.
19409 wl=$lt_lt_prog_compiler_wl_CXX
19410
19411 # Additional compiler flags for building library objects.
19412 pic_flag=$lt_lt_prog_compiler_pic_CXX
19413
19414 # Compiler flag to prevent dynamic linking.
19415 link_static_flag=$lt_lt_prog_compiler_static_CXX
19416
19417 # Does compiler simultaneously support -c and -o options?
19418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19419
19420 # Whether or not to add -lc for building shared libraries.
19421 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19422
19423 # Whether or not to disallow shared libs when runtime libs are static.
19424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19425
19426 # Compiler flag to allow reflexive dlopens.
19427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19428
19429 # Compiler flag to generate shared objects directly from archives.
19430 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19431
19432 # Whether the compiler copes with passing no objects directly.
19433 compiler_needs_object=$lt_compiler_needs_object_CXX
19434
19435 # Create an old-style archive from a shared archive.
19436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19437
19438 # Create a temporary old-style archive to link instead of a shared archive.
19439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19440
19441 # Commands used to build a shared archive.
19442 archive_cmds=$lt_archive_cmds_CXX
19443 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19444
19445 # Commands used to build a loadable module if different from building
19446 # a shared archive.
19447 module_cmds=$lt_module_cmds_CXX
19448 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19449
19450 # Whether we are building with GNU ld or not.
19451 with_gnu_ld=$lt_with_gnu_ld_CXX
19452
19453 # Flag that allows shared libraries with undefined symbols to be built.
19454 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19455
19456 # Flag that enforces no undefined symbols.
19457 no_undefined_flag=$lt_no_undefined_flag_CXX
19458
19459 # Flag to hardcode \$libdir into a binary during linking.
19460 # This must work even if \$libdir does not exist
19461 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19462
19463 # If ld is used when linking, flag to hardcode \$libdir into a binary
19464 # during linking.  This must work even if \$libdir does not exist.
19465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19466
19467 # Whether we need a single "-rpath" flag with a separated argument.
19468 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19469
19470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19471 # DIR into the resulting binary.
19472 hardcode_direct=$hardcode_direct_CXX
19473
19474 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19475 # DIR into the resulting binary and the resulting library dependency is
19476 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19477 # library is relocated.
19478 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19479
19480 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19481 # into the resulting binary.
19482 hardcode_minus_L=$hardcode_minus_L_CXX
19483
19484 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19485 # into the resulting binary.
19486 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19487
19488 # Set to "yes" if building a shared library automatically hardcodes DIR
19489 # into the library and all subsequent libraries and executables linked
19490 # against it.
19491 hardcode_automatic=$hardcode_automatic_CXX
19492
19493 # Set to yes if linker adds runtime paths of dependent libraries
19494 # to runtime path list.
19495 inherit_rpath=$inherit_rpath_CXX
19496
19497 # Whether libtool must link a program against all its dependency libraries.
19498 link_all_deplibs=$link_all_deplibs_CXX
19499
19500 # Fix the shell variable \$srcfile for the compiler.
19501 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19502
19503 # Set to "yes" if exported symbols are required.
19504 always_export_symbols=$always_export_symbols_CXX
19505
19506 # The commands to list exported symbols.
19507 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19508
19509 # Symbols that should not be listed in the preloaded symbols.
19510 exclude_expsyms=$lt_exclude_expsyms_CXX
19511
19512 # Symbols that must always be exported.
19513 include_expsyms=$lt_include_expsyms_CXX
19514
19515 # Commands necessary for linking programs (against libraries) with templates.
19516 prelink_cmds=$lt_prelink_cmds_CXX
19517
19518 # Specify filename containing input files.
19519 file_list_spec=$lt_file_list_spec_CXX
19520
19521 # How to hardcode a shared library path into an executable.
19522 hardcode_action=$hardcode_action_CXX
19523
19524 # The directories searched by this compiler when creating a shared library.
19525 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19526
19527 # Dependencies to place before and after the objects being linked to
19528 # create a shared library.
19529 predep_objects=$lt_predep_objects_CXX
19530 postdep_objects=$lt_postdep_objects_CXX
19531 predeps=$lt_predeps_CXX
19532 postdeps=$lt_postdeps_CXX
19533
19534 # The library search path used internally by the compiler when linking
19535 # a shared library.
19536 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19537
19538 # ### END LIBTOOL TAG CONFIG: CXX
19539 _LT_EOF
19540
19541  ;;
19542     "include":C) test -d include || mkdir include ;;
19543     "src":C)
19544 test -d src || mkdir src
19545 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19546  ;;
19547
19548   esac
19549 done # for ac_tag
19550
19551
19552 as_fn_exit 0
19553 _ACEOF
19554 ac_clean_files=$ac_clean_files_save
19555
19556 test $ac_write_fail = 0 ||
19557   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19558
19559
19560 # configure is writing to config.log, and then calls config.status.
19561 # config.status does its own redirection, appending to config.log.
19562 # Unfortunately, on DOS this fails, as config.log is still kept open
19563 # by configure, so config.status won't be able to write to it; its
19564 # output is simply discarded.  So we exec the FD to /dev/null,
19565 # effectively closing config.log, so it can be properly (re)opened and
19566 # appended to by config.status.  When coming back to configure, we
19567 # need to make the FD available again.
19568 if test "$no_create" != yes; then
19569   ac_cs_success=:
19570   ac_config_status_args=
19571   test "$silent" = yes &&
19572     ac_config_status_args="$ac_config_status_args --quiet"
19573   exec 5>/dev/null
19574   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19575   exec 5>>config.log
19576   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19577   # would make configure fail if this is the last instruction.
19578   $ac_cs_success || as_fn_exit 1
19579 fi
19580 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19581   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19582 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19583 fi
19584