1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libffi 3.2.1.
4#
5# Report bugs to <http://github.com/atgreen/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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
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
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
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
244fi; }
245IFS=$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.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $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
267exit 255
268fi
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/atgreen/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
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_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.
316as_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.
326as_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.
374as_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.
384if (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  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # 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.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # 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.
419as_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
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_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.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_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
511ECHO_C= ECHO_N= ECHO_T=
512case `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';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (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
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_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.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 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.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libffi'
592PACKAGE_TARNAME='libffi'
593PACKAGE_VERSION='3.2.1'
594PACKAGE_STRING='libffi 3.2.1'
595PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_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
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638toolexeclibdir
639toolexecdir
640FFI_DEBUG_FALSE
641FFI_DEBUG_TRUE
642TARGETDIR
643TARGET
644FFI_EXEC_TRAMPOLINE_TABLE
645FFI_EXEC_TRAMPOLINE_TABLE_FALSE
646FFI_EXEC_TRAMPOLINE_TABLE_TRUE
647sys_symbol_underscore
648HAVE_LONG_DOUBLE_VARIANT
649HAVE_LONG_DOUBLE
650ALLOCA
651XTENSA_FALSE
652XTENSA_TRUE
653VAX_FALSE
654VAX_TRUE
655TILE_FALSE
656TILE_TRUE
657PA64_HPUX_FALSE
658PA64_HPUX_TRUE
659PA_HPUX_FALSE
660PA_HPUX_TRUE
661PA_LINUX_FALSE
662PA_LINUX_TRUE
663SH64_FALSE
664SH64_TRUE
665SH_FALSE
666SH_TRUE
667X86_64_FALSE
668X86_64_TRUE
669S390_FALSE
670S390_TRUE
671FRV_FALSE
672FRV_TRUE
673LIBFFI_CRIS_FALSE
674LIBFFI_CRIS_TRUE
675AVR32_FALSE
676AVR32_TRUE
677ARM_FALSE
678ARM_TRUE
679ARC_FALSE
680ARC_TRUE
681AARCH64_FALSE
682AARCH64_TRUE
683POWERPC_FREEBSD_FALSE
684POWERPC_FREEBSD_TRUE
685POWERPC_DARWIN_FALSE
686POWERPC_DARWIN_TRUE
687POWERPC_AIX_FALSE
688POWERPC_AIX_TRUE
689POWERPC_FALSE
690POWERPC_TRUE
691OR1K_FALSE
692OR1K_TRUE
693NIOS2_FALSE
694NIOS2_TRUE
695MOXIE_FALSE
696MOXIE_TRUE
697METAG_FALSE
698METAG_TRUE
699MICROBLAZE_FALSE
700MICROBLAZE_TRUE
701M88K_FALSE
702M88K_TRUE
703M68K_FALSE
704M68K_TRUE
705M32R_FALSE
706M32R_TRUE
707IA64_FALSE
708IA64_TRUE
709ALPHA_FALSE
710ALPHA_TRUE
711X86_DARWIN64_FALSE
712X86_DARWIN64_TRUE
713X86_DARWIN32_FALSE
714X86_DARWIN32_TRUE
715X86_DARWIN_FALSE
716X86_DARWIN_TRUE
717X86_WIN64_FALSE
718X86_WIN64_TRUE
719X86_WIN32_FALSE
720X86_WIN32_TRUE
721X86_FREEBSD_FALSE
722X86_FREEBSD_TRUE
723X86_FALSE
724X86_TRUE
725SPARC_FALSE
726SPARC_TRUE
727BFIN_FALSE
728BFIN_TRUE
729MIPS_FALSE
730MIPS_TRUE
731AM_LTLDFLAGS
732AM_RUNTESTFLAGS
733TESTSUBDIR_FALSE
734TESTSUBDIR_TRUE
735MAINT
736MAINTAINER_MODE_FALSE
737MAINTAINER_MODE_TRUE
738PRTDIAG
739CXXCPP
740CPP
741LT_SYS_LIBRARY_PATH
742OTOOL64
743OTOOL
744LIPO
745NMEDIT
746DSYMUTIL
747MANIFEST_TOOL
748RANLIB
749ac_ct_AR
750AR
751DLLTOOL
752OBJDUMP
753LN_S
754NM
755ac_ct_DUMPBIN
756DUMPBIN
757LD
758FGREP
759EGREP
760GREP
761SED
762LIBTOOL
763am__fastdepCCAS_FALSE
764am__fastdepCCAS_TRUE
765CCASDEPMODE
766CCASFLAGS
767CCAS
768am__fastdepCXX_FALSE
769am__fastdepCXX_TRUE
770CXXDEPMODE
771ac_ct_CXX
772CXXFLAGS
773CXX
774am__fastdepCC_FALSE
775am__fastdepCC_TRUE
776CCDEPMODE
777am__nodep
778AMDEPBACKSLASH
779AMDEP_FALSE
780AMDEP_TRUE
781am__quote
782am__include
783DEPDIR
784OBJEXT
785EXEEXT
786ac_ct_CC
787CPPFLAGS
788LDFLAGS
789CFLAGS
790CC
791AM_BACKSLASH
792AM_DEFAULT_VERBOSITY
793AM_DEFAULT_V
794AM_V
795am__untar
796am__tar
797AMTAR
798am__leading_dot
799SET_MAKE
800AWK
801mkdir_p
802MKDIR_P
803INSTALL_STRIP_PROGRAM
804STRIP
805install_sh
806MAKEINFO
807AUTOHEADER
808AUTOMAKE
809AUTOCONF
810ACLOCAL
811VERSION
812PACKAGE
813CYGPATH_W
814am__isrc
815INSTALL_DATA
816INSTALL_SCRIPT
817INSTALL_PROGRAM
818ax_enable_builddir_sed
819target_os
820target_vendor
821target_cpu
822target
823host_os
824host_vendor
825host_cpu
826host
827build_os
828build_vendor
829build_cpu
830build
831target_alias
832host_alias
833build_alias
834LIBS
835ECHO_T
836ECHO_N
837ECHO_C
838DEFS
839mandir
840localedir
841libdir
842psdir
843pdfdir
844dvidir
845htmldir
846infodir
847docdir
848oldincludedir
849includedir
850runstatedir
851localstatedir
852sharedstatedir
853sysconfdir
854datadir
855datarootdir
856libexecdir
857sbindir
858bindir
859program_transform_name
860prefix
861exec_prefix
862PACKAGE_URL
863PACKAGE_BUGREPORT
864PACKAGE_STRING
865PACKAGE_VERSION
866PACKAGE_TARNAME
867PACKAGE_NAME
868PATH_SEPARATOR
869SHELL'
870ac_subst_files=''
871ac_user_opts='
872enable_option_checking
873enable_builddir
874enable_silent_rules
875enable_dependency_tracking
876enable_shared
877enable_static
878with_pic
879enable_fast_install
880with_aix_soname
881with_gnu_ld
882with_sysroot
883enable_libtool_lock
884enable_portable_binary
885with_gcc_arch
886enable_maintainer_mode
887enable_pax_emutramp
888enable_debug
889enable_structs
890enable_raw_api
891enable_purify_safety
892'
893      ac_precious_vars='build_alias
894host_alias
895target_alias
896CCAS
897CCASFLAGS
898LT_SYS_LIBRARY_PATH
899CPP
900CPPFLAGS
901CXXCPP'
902
903
904# Initialize some variables set by options.
905ac_init_help=
906ac_init_version=false
907ac_unrecognized_opts=
908ac_unrecognized_sep=
909# The variables have the same names as the options, with
910# dashes changed to underlines.
911cache_file=/dev/null
912exec_prefix=NONE
913no_create=
914no_recursion=
915prefix=NONE
916program_prefix=NONE
917program_suffix=NONE
918program_transform_name=s,x,x,
919silent=
920site=
921srcdir=
922verbose=
923x_includes=NONE
924x_libraries=NONE
925
926# Installation directory options.
927# These are left unexpanded so users can "make install exec_prefix=/foo"
928# and all the variables that are supposed to be based on exec_prefix
929# by default will actually change.
930# Use braces instead of parens because sh, perl, etc. also accept them.
931# (The list follows the same order as the GNU Coding Standards.)
932bindir='${exec_prefix}/bin'
933sbindir='${exec_prefix}/sbin'
934libexecdir='${exec_prefix}/libexec'
935datarootdir='${prefix}/share'
936datadir='${datarootdir}'
937sysconfdir='${prefix}/etc'
938sharedstatedir='${prefix}/com'
939localstatedir='${prefix}/var'
940runstatedir='${localstatedir}/run'
941includedir='${prefix}/include'
942oldincludedir='/usr/include'
943docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944infodir='${datarootdir}/info'
945htmldir='${docdir}'
946dvidir='${docdir}'
947pdfdir='${docdir}'
948psdir='${docdir}'
949libdir='${exec_prefix}/lib'
950localedir='${datarootdir}/locale'
951mandir='${datarootdir}/man'
952
953ac_prev=
954ac_dashdash=
955for ac_option
956do
957  # If the previous option needs an argument, assign it.
958  if test -n "$ac_prev"; then
959    eval $ac_prev=\$ac_option
960    ac_prev=
961    continue
962  fi
963
964  case $ac_option in
965  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966  *=)   ac_optarg= ;;
967  *)    ac_optarg=yes ;;
968  esac
969
970  # Accept the important Cygnus configure options, so we can diagnose typos.
971
972  case $ac_dashdash$ac_option in
973  --)
974    ac_dashdash=yes ;;
975
976  -bindir | --bindir | --bindi | --bind | --bin | --bi)
977    ac_prev=bindir ;;
978  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979    bindir=$ac_optarg ;;
980
981  -build | --build | --buil | --bui | --bu)
982    ac_prev=build_alias ;;
983  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984    build_alias=$ac_optarg ;;
985
986  -cache-file | --cache-file | --cache-fil | --cache-fi \
987  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988    ac_prev=cache_file ;;
989  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991    cache_file=$ac_optarg ;;
992
993  --config-cache | -C)
994    cache_file=config.cache ;;
995
996  -datadir | --datadir | --datadi | --datad)
997    ac_prev=datadir ;;
998  -datadir=* | --datadir=* | --datadi=* | --datad=*)
999    datadir=$ac_optarg ;;
1000
1001  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002  | --dataroo | --dataro | --datar)
1003    ac_prev=datarootdir ;;
1004  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006    datarootdir=$ac_optarg ;;
1007
1008  -disable-* | --disable-*)
1009    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012      as_fn_error $? "invalid feature name: $ac_useropt"
1013    ac_useropt_orig=$ac_useropt
1014    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015    case $ac_user_opts in
1016      *"
1017"enable_$ac_useropt"
1018"*) ;;
1019      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020	 ac_unrecognized_sep=', ';;
1021    esac
1022    eval enable_$ac_useropt=no ;;
1023
1024  -docdir | --docdir | --docdi | --doc | --do)
1025    ac_prev=docdir ;;
1026  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027    docdir=$ac_optarg ;;
1028
1029  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030    ac_prev=dvidir ;;
1031  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032    dvidir=$ac_optarg ;;
1033
1034  -enable-* | --enable-*)
1035    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036    # Reject names that are not valid shell variable names.
1037    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038      as_fn_error $? "invalid feature name: $ac_useropt"
1039    ac_useropt_orig=$ac_useropt
1040    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041    case $ac_user_opts in
1042      *"
1043"enable_$ac_useropt"
1044"*) ;;
1045      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046	 ac_unrecognized_sep=', ';;
1047    esac
1048    eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052  | --exec | --exe | --ex)
1053    ac_prev=exec_prefix ;;
1054  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056  | --exec=* | --exe=* | --ex=*)
1057    exec_prefix=$ac_optarg ;;
1058
1059  -gas | --gas | --ga | --g)
1060    # Obsolete; use --with-gas.
1061    with_gas=yes ;;
1062
1063  -help | --help | --hel | --he | -h)
1064    ac_init_help=long ;;
1065  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066    ac_init_help=recursive ;;
1067  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068    ac_init_help=short ;;
1069
1070  -host | --host | --hos | --ho)
1071    ac_prev=host_alias ;;
1072  -host=* | --host=* | --hos=* | --ho=*)
1073    host_alias=$ac_optarg ;;
1074
1075  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076    ac_prev=htmldir ;;
1077  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078  | --ht=*)
1079    htmldir=$ac_optarg ;;
1080
1081  -includedir | --includedir | --includedi | --included | --include \
1082  | --includ | --inclu | --incl | --inc)
1083    ac_prev=includedir ;;
1084  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085  | --includ=* | --inclu=* | --incl=* | --inc=*)
1086    includedir=$ac_optarg ;;
1087
1088  -infodir | --infodir | --infodi | --infod | --info | --inf)
1089    ac_prev=infodir ;;
1090  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091    infodir=$ac_optarg ;;
1092
1093  -libdir | --libdir | --libdi | --libd)
1094    ac_prev=libdir ;;
1095  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096    libdir=$ac_optarg ;;
1097
1098  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099  | --libexe | --libex | --libe)
1100    ac_prev=libexecdir ;;
1101  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102  | --libexe=* | --libex=* | --libe=*)
1103    libexecdir=$ac_optarg ;;
1104
1105  -localedir | --localedir | --localedi | --localed | --locale)
1106    ac_prev=localedir ;;
1107  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108    localedir=$ac_optarg ;;
1109
1110  -localstatedir | --localstatedir | --localstatedi | --localstated \
1111  | --localstate | --localstat | --localsta | --localst | --locals)
1112    ac_prev=localstatedir ;;
1113  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115    localstatedir=$ac_optarg ;;
1116
1117  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118    ac_prev=mandir ;;
1119  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120    mandir=$ac_optarg ;;
1121
1122  -nfp | --nfp | --nf)
1123    # Obsolete; use --without-fp.
1124    with_fp=no ;;
1125
1126  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127  | --no-cr | --no-c | -n)
1128    no_create=yes ;;
1129
1130  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132    no_recursion=yes ;;
1133
1134  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136  | --oldin | --oldi | --old | --ol | --o)
1137    ac_prev=oldincludedir ;;
1138  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141    oldincludedir=$ac_optarg ;;
1142
1143  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144    ac_prev=prefix ;;
1145  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146    prefix=$ac_optarg ;;
1147
1148  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149  | --program-pre | --program-pr | --program-p)
1150    ac_prev=program_prefix ;;
1151  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153    program_prefix=$ac_optarg ;;
1154
1155  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156  | --program-suf | --program-su | --program-s)
1157    ac_prev=program_suffix ;;
1158  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160    program_suffix=$ac_optarg ;;
1161
1162  -program-transform-name | --program-transform-name \
1163  | --program-transform-nam | --program-transform-na \
1164  | --program-transform-n | --program-transform- \
1165  | --program-transform | --program-transfor \
1166  | --program-transfo | --program-transf \
1167  | --program-trans | --program-tran \
1168  | --progr-tra | --program-tr | --program-t)
1169    ac_prev=program_transform_name ;;
1170  -program-transform-name=* | --program-transform-name=* \
1171  | --program-transform-nam=* | --program-transform-na=* \
1172  | --program-transform-n=* | --program-transform-=* \
1173  | --program-transform=* | --program-transfor=* \
1174  | --program-transfo=* | --program-transf=* \
1175  | --program-trans=* | --program-tran=* \
1176  | --progr-tra=* | --program-tr=* | --program-t=*)
1177    program_transform_name=$ac_optarg ;;
1178
1179  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180    ac_prev=pdfdir ;;
1181  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182    pdfdir=$ac_optarg ;;
1183
1184  -psdir | --psdir | --psdi | --psd | --ps)
1185    ac_prev=psdir ;;
1186  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187    psdir=$ac_optarg ;;
1188
1189  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190  | -silent | --silent | --silen | --sile | --sil)
1191    silent=yes ;;
1192
1193  -runstatedir | --runstatedir | --runstatedi | --runstated \
1194  | --runstate | --runstat | --runsta | --runst | --runs \
1195  | --run | --ru | --r)
1196    ac_prev=runstatedir ;;
1197  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1198  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1199  | --run=* | --ru=* | --r=*)
1200    runstatedir=$ac_optarg ;;
1201
1202  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203    ac_prev=sbindir ;;
1204  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205  | --sbi=* | --sb=*)
1206    sbindir=$ac_optarg ;;
1207
1208  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210  | --sharedst | --shareds | --shared | --share | --shar \
1211  | --sha | --sh)
1212    ac_prev=sharedstatedir ;;
1213  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216  | --sha=* | --sh=*)
1217    sharedstatedir=$ac_optarg ;;
1218
1219  -site | --site | --sit)
1220    ac_prev=site ;;
1221  -site=* | --site=* | --sit=*)
1222    site=$ac_optarg ;;
1223
1224  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225    ac_prev=srcdir ;;
1226  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227    srcdir=$ac_optarg ;;
1228
1229  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230  | --syscon | --sysco | --sysc | --sys | --sy)
1231    ac_prev=sysconfdir ;;
1232  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234    sysconfdir=$ac_optarg ;;
1235
1236  -target | --target | --targe | --targ | --tar | --ta | --t)
1237    ac_prev=target_alias ;;
1238  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239    target_alias=$ac_optarg ;;
1240
1241  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242    verbose=yes ;;
1243
1244  -version | --version | --versio | --versi | --vers | -V)
1245    ac_init_version=: ;;
1246
1247  -with-* | --with-*)
1248    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249    # Reject names that are not valid shell variable names.
1250    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251      as_fn_error $? "invalid package name: $ac_useropt"
1252    ac_useropt_orig=$ac_useropt
1253    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254    case $ac_user_opts in
1255      *"
1256"with_$ac_useropt"
1257"*) ;;
1258      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259	 ac_unrecognized_sep=', ';;
1260    esac
1261    eval with_$ac_useropt=\$ac_optarg ;;
1262
1263  -without-* | --without-*)
1264    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265    # Reject names that are not valid shell variable names.
1266    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267      as_fn_error $? "invalid package name: $ac_useropt"
1268    ac_useropt_orig=$ac_useropt
1269    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270    case $ac_user_opts in
1271      *"
1272"with_$ac_useropt"
1273"*) ;;
1274      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275	 ac_unrecognized_sep=', ';;
1276    esac
1277    eval with_$ac_useropt=no ;;
1278
1279  --x)
1280    # Obsolete; use --with-x.
1281    with_x=yes ;;
1282
1283  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284  | --x-incl | --x-inc | --x-in | --x-i)
1285    ac_prev=x_includes ;;
1286  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288    x_includes=$ac_optarg ;;
1289
1290  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292    ac_prev=x_libraries ;;
1293  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295    x_libraries=$ac_optarg ;;
1296
1297  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298Try \`$0 --help' for more information"
1299    ;;
1300
1301  *=*)
1302    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303    # Reject names that are not valid shell variable names.
1304    case $ac_envvar in #(
1305      '' | [0-9]* | *[!_$as_cr_alnum]* )
1306      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307    esac
1308    eval $ac_envvar=\$ac_optarg
1309    export $ac_envvar ;;
1310
1311  *)
1312    # FIXME: should be removed in autoconf 3.0.
1313    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317    ;;
1318
1319  esac
1320done
1321
1322if test -n "$ac_prev"; then
1323  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324  as_fn_error $? "missing argument to $ac_option"
1325fi
1326
1327if test -n "$ac_unrecognized_opts"; then
1328  case $enable_option_checking in
1329    no) ;;
1330    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332  esac
1333fi
1334
1335# Check all directory arguments for consistency.
1336for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337		datadir sysconfdir sharedstatedir localstatedir includedir \
1338		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339		libdir localedir mandir runstatedir
1340do
1341  eval ac_val=\$$ac_var
1342  # Remove trailing slashes.
1343  case $ac_val in
1344    */ )
1345      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346      eval $ac_var=\$ac_val;;
1347  esac
1348  # Be sure to have absolute directory names.
1349  case $ac_val in
1350    [\\/$]* | ?:[\\/]* )  continue;;
1351    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352  esac
1353  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354done
1355
1356# There might be people who depend on the old broken behavior: `$host'
1357# used to hold the argument of --host etc.
1358# FIXME: To remove some day.
1359build=$build_alias
1360host=$host_alias
1361target=$target_alias
1362
1363# FIXME: To remove some day.
1364if test "x$host_alias" != x; then
1365  if test "x$build_alias" = x; then
1366    cross_compiling=maybe
1367  elif test "x$build_alias" != "x$host_alias"; then
1368    cross_compiling=yes
1369  fi
1370fi
1371
1372ac_tool_prefix=
1373test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375test "$silent" = yes && exec 6>/dev/null
1376
1377
1378ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379ac_ls_di=`ls -di .` &&
1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381  as_fn_error $? "working directory cannot be determined"
1382test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383  as_fn_error $? "pwd does not report name of working directory"
1384
1385
1386# Find the source files, if location was not specified.
1387if test -z "$srcdir"; then
1388  ac_srcdir_defaulted=yes
1389  # Try the directory containing this script, then the parent directory.
1390  ac_confdir=`$as_dirname -- "$as_myself" ||
1391$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392	 X"$as_myself" : 'X\(//\)[^/]' \| \
1393	 X"$as_myself" : 'X\(//\)$' \| \
1394	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395$as_echo X"$as_myself" |
1396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397	    s//\1/
1398	    q
1399	  }
1400	  /^X\(\/\/\)[^/].*/{
1401	    s//\1/
1402	    q
1403	  }
1404	  /^X\(\/\/\)$/{
1405	    s//\1/
1406	    q
1407	  }
1408	  /^X\(\/\).*/{
1409	    s//\1/
1410	    q
1411	  }
1412	  s/.*/./; q'`
1413  srcdir=$ac_confdir
1414  if test ! -r "$srcdir/$ac_unique_file"; then
1415    srcdir=..
1416  fi
1417else
1418  ac_srcdir_defaulted=no
1419fi
1420if test ! -r "$srcdir/$ac_unique_file"; then
1421  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423fi
1424ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425ac_abs_confdir=`(
1426	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427	pwd)`
1428# When building in place, set srcdir=.
1429if test "$ac_abs_confdir" = "$ac_pwd"; then
1430  srcdir=.
1431fi
1432# Remove unnecessary trailing slashes from srcdir.
1433# Double slashes in file names in object file debugging info
1434# mess up M-x gdb in Emacs.
1435case $srcdir in
1436*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437esac
1438for ac_var in $ac_precious_vars; do
1439  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440  eval ac_env_${ac_var}_value=\$${ac_var}
1441  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443done
1444
1445#
1446# Report the --help message.
1447#
1448if test "$ac_init_help" = "long"; then
1449  # Omit some internal or obsolete options to make the list less imposing.
1450  # This message is too long to be a string in the A/UX 3.1 sh.
1451  cat <<_ACEOF
1452\`configure' configures libffi 3.2.1 to adapt to many kinds of systems.
1453
1454Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457VAR=VALUE.  See below for descriptions of some of the useful variables.
1458
1459Defaults for the options are specified in brackets.
1460
1461Configuration:
1462  -h, --help              display this help and exit
1463      --help=short        display options specific to this package
1464      --help=recursive    display the short help of all the included packages
1465  -V, --version           display version information and exit
1466  -q, --quiet, --silent   do not print \`checking ...' messages
1467      --cache-file=FILE   cache test results in FILE [disabled]
1468  -C, --config-cache      alias for \`--cache-file=config.cache'
1469  -n, --no-create         do not create output files
1470      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1471
1472Installation directories:
1473  --prefix=PREFIX         install architecture-independent files in PREFIX
1474                          [$ac_default_prefix]
1475  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1476                          [PREFIX]
1477
1478By default, \`make install' will install all the files in
1479\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1480an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481for instance \`--prefix=\$HOME'.
1482
1483For better control, use the options below.
1484
1485Fine tuning of the installation directories:
1486  --bindir=DIR            user executables [EPREFIX/bin]
1487  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1488  --libexecdir=DIR        program executables [EPREFIX/libexec]
1489  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1490  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1491  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1492  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1493  --libdir=DIR            object code libraries [EPREFIX/lib]
1494  --includedir=DIR        C header files [PREFIX/include]
1495  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1496  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1497  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1498  --infodir=DIR           info documentation [DATAROOTDIR/info]
1499  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1500  --mandir=DIR            man documentation [DATAROOTDIR/man]
1501  --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1502  --htmldir=DIR           html documentation [DOCDIR]
1503  --dvidir=DIR            dvi documentation [DOCDIR]
1504  --pdfdir=DIR            pdf documentation [DOCDIR]
1505  --psdir=DIR             ps documentation [DOCDIR]
1506_ACEOF
1507
1508  cat <<\_ACEOF
1509
1510Program names:
1511  --program-prefix=PREFIX            prepend PREFIX to installed program names
1512  --program-suffix=SUFFIX            append SUFFIX to installed program names
1513  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1514
1515System types:
1516  --build=BUILD     configure for building on BUILD [guessed]
1517  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518  --target=TARGET   configure for building compilers for TARGET [HOST]
1519_ACEOF
1520fi
1521
1522if test -n "$ac_init_help"; then
1523  case $ac_init_help in
1524     short | recursive ) echo "Configuration of libffi 3.2.1:";;
1525   esac
1526  cat <<\_ACEOF
1527
1528Optional Features:
1529  --disable-option-checking  ignore unrecognized --enable/--with options
1530  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1531  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1532  --disable-builddir      disable automatic build in subdir of sources
1533
1534  --enable-silent-rules   less verbose build output (undo: "make V=1")
1535  --disable-silent-rules  verbose build output (undo: "make V=0")
1536  --enable-dependency-tracking
1537                          do not reject slow dependency extractors
1538  --disable-dependency-tracking
1539                          speeds up one-time build
1540  --enable-shared[=PKGS]  build shared libraries [default=yes]
1541  --enable-static[=PKGS]  build static libraries [default=yes]
1542  --enable-fast-install[=PKGS]
1543                          optimize for fast installation [default=yes]
1544  --disable-libtool-lock  avoid locking (might break parallel builds)
1545  --enable-portable-binary
1546                          disable compiler optimizations that would produce
1547                          unportable binaries
1548  --enable-maintainer-mode
1549                          enable make rules and dependencies not useful (and
1550                          sometimes confusing) to the casual installer
1551  --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1552  --enable-debug          debugging mode
1553  --disable-structs       omit code for struct support
1554  --disable-raw-api       make the raw api unavailable
1555  --enable-purify-safety  purify-safe mode
1556
1557Optional Packages:
1558  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1559  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1560  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1561                          both]
1562  --with-aix-soname=aix|svr4|both
1563                          shared library versioning (aka "SONAME") variant to
1564                          provide on AIX, [default=aix].
1565  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1566  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1567                          compiler's sysroot if not specified).
1568  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1569                          instead of guessing
1570
1571Some influential environment variables:
1572  CC          C compiler command
1573  CFLAGS      C compiler flags
1574  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1575              nonstandard directory <lib dir>
1576  LIBS        libraries to pass to the linker, e.g. -l<library>
1577  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578              you have headers in a nonstandard directory <include dir>
1579  CXX         C++ compiler command
1580  CXXFLAGS    C++ compiler flags
1581  CCAS        assembler compiler command (defaults to CC)
1582  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1583  LT_SYS_LIBRARY_PATH
1584              User-defined run-time library search path.
1585  CPP         C preprocessor
1586  CXXCPP      C++ preprocessor
1587
1588Use these variables to override the choices made by `configure' or to help
1589it to find libraries and programs with nonstandard names/locations.
1590
1591Report bugs to <http://github.com/atgreen/libffi/issues>.
1592_ACEOF
1593ac_status=$?
1594fi
1595
1596if test "$ac_init_help" = "recursive"; then
1597  # If there are subdirs, report their specific --help.
1598  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599    test -d "$ac_dir" ||
1600      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601      continue
1602    ac_builddir=.
1603
1604case "$ac_dir" in
1605.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606*)
1607  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608  # A ".." for each directory in $ac_dir_suffix.
1609  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610  case $ac_top_builddir_sub in
1611  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613  esac ;;
1614esac
1615ac_abs_top_builddir=$ac_pwd
1616ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617# for backward compatibility:
1618ac_top_builddir=$ac_top_build_prefix
1619
1620case $srcdir in
1621  .)  # We are building in place.
1622    ac_srcdir=.
1623    ac_top_srcdir=$ac_top_builddir_sub
1624    ac_abs_top_srcdir=$ac_pwd ;;
1625  [\\/]* | ?:[\\/]* )  # Absolute name.
1626    ac_srcdir=$srcdir$ac_dir_suffix;
1627    ac_top_srcdir=$srcdir
1628    ac_abs_top_srcdir=$srcdir ;;
1629  *) # Relative name.
1630    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631    ac_top_srcdir=$ac_top_build_prefix$srcdir
1632    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633esac
1634ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636    cd "$ac_dir" || { ac_status=$?; continue; }
1637    # Check for guested configure.
1638    if test -f "$ac_srcdir/configure.gnu"; then
1639      echo &&
1640      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641    elif test -f "$ac_srcdir/configure"; then
1642      echo &&
1643      $SHELL "$ac_srcdir/configure" --help=recursive
1644    else
1645      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646    fi || ac_status=$?
1647    cd "$ac_pwd" || { ac_status=$?; break; }
1648  done
1649fi
1650
1651test -n "$ac_init_help" && exit $ac_status
1652if $ac_init_version; then
1653  cat <<\_ACEOF
1654libffi configure 3.2.1
1655generated by GNU Autoconf 2.69
1656
1657Copyright (C) 2012 Free Software Foundation, Inc.
1658This configure script is free software; the Free Software Foundation
1659gives unlimited permission to copy, distribute and modify it.
1660_ACEOF
1661  exit
1662fi
1663
1664## ------------------------ ##
1665## Autoconf initialization. ##
1666## ------------------------ ##
1667
1668# ac_fn_c_try_compile LINENO
1669# --------------------------
1670# Try to compile conftest.$ac_ext, and return whether this succeeded.
1671ac_fn_c_try_compile ()
1672{
1673  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674  rm -f conftest.$ac_objext
1675  if { { ac_try="$ac_compile"
1676case "(($ac_try" in
1677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678  *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682  (eval "$ac_compile") 2>conftest.err
1683  ac_status=$?
1684  if test -s conftest.err; then
1685    grep -v '^ *+' conftest.err >conftest.er1
1686    cat conftest.er1 >&5
1687    mv -f conftest.er1 conftest.err
1688  fi
1689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690  test $ac_status = 0; } && {
1691	 test -z "$ac_c_werror_flag" ||
1692	 test ! -s conftest.err
1693       } && test -s conftest.$ac_objext; then :
1694  ac_retval=0
1695else
1696  $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699	ac_retval=1
1700fi
1701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702  as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_compile
1705
1706# ac_fn_cxx_try_compile LINENO
1707# ----------------------------
1708# Try to compile conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_cxx_try_compile ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  rm -f conftest.$ac_objext
1713  if { { ac_try="$ac_compile"
1714case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720  (eval "$ac_compile") 2>conftest.err
1721  ac_status=$?
1722  if test -s conftest.err; then
1723    grep -v '^ *+' conftest.err >conftest.er1
1724    cat conftest.er1 >&5
1725    mv -f conftest.er1 conftest.err
1726  fi
1727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; } && {
1729	 test -z "$ac_cxx_werror_flag" ||
1730	 test ! -s conftest.err
1731       } && test -s conftest.$ac_objext; then :
1732  ac_retval=0
1733else
1734  $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737	ac_retval=1
1738fi
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_cxx_try_compile
1743
1744# ac_fn_c_try_link LINENO
1745# -----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded.
1747ac_fn_c_try_link ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  rm -f conftest.$ac_objext conftest$ac_exeext
1751  if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758  (eval "$ac_link") 2>conftest.err
1759  ac_status=$?
1760  if test -s conftest.err; then
1761    grep -v '^ *+' conftest.err >conftest.er1
1762    cat conftest.er1 >&5
1763    mv -f conftest.er1 conftest.err
1764  fi
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; } && {
1767	 test -z "$ac_c_werror_flag" ||
1768	 test ! -s conftest.err
1769       } && test -s conftest$ac_exeext && {
1770	 test "$cross_compiling" = yes ||
1771	 test -x conftest$ac_exeext
1772       }; then :
1773  ac_retval=0
1774else
1775  $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778	ac_retval=1
1779fi
1780  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1781  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1782  # interfere with the next link command; also delete a directory that is
1783  # left behind by Apple's compiler.  We do this before executing the actions.
1784  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786  as_fn_set_status $ac_retval
1787
1788} # ac_fn_c_try_link
1789
1790# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791# -------------------------------------------------------
1792# Tests whether HEADER exists and can be compiled using the include files in
1793# INCLUDES, setting the cache variable VAR accordingly.
1794ac_fn_c_check_header_compile ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if eval \${$3+:} false; then :
1800  $as_echo_n "(cached) " >&6
1801else
1802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h.  */
1804$4
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808  eval "$3=yes"
1809else
1810  eval "$3=no"
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813fi
1814eval ac_res=\$$3
1815	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818
1819} # ac_fn_c_check_header_compile
1820
1821# ac_fn_c_try_cpp LINENO
1822# ----------------------
1823# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_c_try_cpp ()
1825{
1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827  if { { ac_try="$ac_cpp conftest.$ac_ext"
1828case "(($ac_try" in
1829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830  *) ac_try_echo=$ac_try;;
1831esac
1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833$as_echo "$ac_try_echo"; } >&5
1834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835  ac_status=$?
1836  if test -s conftest.err; then
1837    grep -v '^ *+' conftest.err >conftest.er1
1838    cat conftest.er1 >&5
1839    mv -f conftest.er1 conftest.err
1840  fi
1841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842  test $ac_status = 0; } > conftest.i && {
1843	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1844	 test ! -s conftest.err
1845       }; then :
1846  ac_retval=0
1847else
1848  $as_echo "$as_me: failed program was:" >&5
1849sed 's/^/| /' conftest.$ac_ext >&5
1850
1851    ac_retval=1
1852fi
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854  as_fn_set_status $ac_retval
1855
1856} # ac_fn_c_try_cpp
1857
1858# ac_fn_c_try_run LINENO
1859# ----------------------
1860# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1861# that executables *can* be run.
1862ac_fn_c_try_run ()
1863{
1864  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865  if { { ac_try="$ac_link"
1866case "(($ac_try" in
1867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868  *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871$as_echo "$ac_try_echo"; } >&5
1872  (eval "$ac_link") 2>&5
1873  ac_status=$?
1874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1876  { { case "(($ac_try" in
1877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878  *) ac_try_echo=$ac_try;;
1879esac
1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881$as_echo "$ac_try_echo"; } >&5
1882  (eval "$ac_try") 2>&5
1883  ac_status=$?
1884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885  test $ac_status = 0; }; }; then :
1886  ac_retval=0
1887else
1888  $as_echo "$as_me: program exited with status $ac_status" >&5
1889       $as_echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892       ac_retval=$ac_status
1893fi
1894  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896  as_fn_set_status $ac_retval
1897
1898} # ac_fn_c_try_run
1899
1900# ac_fn_c_check_func LINENO FUNC VAR
1901# ----------------------------------
1902# Tests whether FUNC exists, setting the cache variable VAR accordingly
1903ac_fn_c_check_func ()
1904{
1905  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907$as_echo_n "checking for $2... " >&6; }
1908if eval \${$3+:} false; then :
1909  $as_echo_n "(cached) " >&6
1910else
1911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h.  */
1913/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1914   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1915#define $2 innocuous_$2
1916
1917/* System header to define __stub macros and hopefully few prototypes,
1918    which can conflict with char $2 (); below.
1919    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1920    <limits.h> exists even on freestanding compilers.  */
1921
1922#ifdef __STDC__
1923# include <limits.h>
1924#else
1925# include <assert.h>
1926#endif
1927
1928#undef $2
1929
1930/* Override any GCC internal prototype to avoid an error.
1931   Use char because int might match the return type of a GCC
1932   builtin and then its argument prototype would still apply.  */
1933#ifdef __cplusplus
1934extern "C"
1935#endif
1936char $2 ();
1937/* The GNU C library defines this for functions which it implements
1938    to always fail with ENOSYS.  Some functions are actually named
1939    something starting with __ and the normal name is an alias.  */
1940#if defined __stub_$2 || defined __stub___$2
1941choke me
1942#endif
1943
1944int
1945main ()
1946{
1947return $2 ();
1948  ;
1949  return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_link "$LINENO"; then :
1953  eval "$3=yes"
1954else
1955  eval "$3=no"
1956fi
1957rm -f core conftest.err conftest.$ac_objext \
1958    conftest$ac_exeext conftest.$ac_ext
1959fi
1960eval ac_res=\$$3
1961	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965} # ac_fn_c_check_func
1966
1967# ac_fn_cxx_try_cpp LINENO
1968# ------------------------
1969# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1970ac_fn_cxx_try_cpp ()
1971{
1972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973  if { { ac_try="$ac_cpp conftest.$ac_ext"
1974case "(($ac_try" in
1975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976  *) ac_try_echo=$ac_try;;
1977esac
1978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979$as_echo "$ac_try_echo"; } >&5
1980  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1981  ac_status=$?
1982  if test -s conftest.err; then
1983    grep -v '^ *+' conftest.err >conftest.er1
1984    cat conftest.er1 >&5
1985    mv -f conftest.er1 conftest.err
1986  fi
1987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988  test $ac_status = 0; } > conftest.i && {
1989	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1990	 test ! -s conftest.err
1991       }; then :
1992  ac_retval=0
1993else
1994  $as_echo "$as_me: failed program was:" >&5
1995sed 's/^/| /' conftest.$ac_ext >&5
1996
1997    ac_retval=1
1998fi
1999  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000  as_fn_set_status $ac_retval
2001
2002} # ac_fn_cxx_try_cpp
2003
2004# ac_fn_cxx_try_link LINENO
2005# -------------------------
2006# Try to link conftest.$ac_ext, and return whether this succeeded.
2007ac_fn_cxx_try_link ()
2008{
2009  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010  rm -f conftest.$ac_objext conftest$ac_exeext
2011  if { { ac_try="$ac_link"
2012case "(($ac_try" in
2013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014  *) ac_try_echo=$ac_try;;
2015esac
2016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017$as_echo "$ac_try_echo"; } >&5
2018  (eval "$ac_link") 2>conftest.err
2019  ac_status=$?
2020  if test -s conftest.err; then
2021    grep -v '^ *+' conftest.err >conftest.er1
2022    cat conftest.er1 >&5
2023    mv -f conftest.er1 conftest.err
2024  fi
2025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026  test $ac_status = 0; } && {
2027	 test -z "$ac_cxx_werror_flag" ||
2028	 test ! -s conftest.err
2029       } && test -s conftest$ac_exeext && {
2030	 test "$cross_compiling" = yes ||
2031	 test -x conftest$ac_exeext
2032       }; then :
2033  ac_retval=0
2034else
2035  $as_echo "$as_me: failed program was:" >&5
2036sed 's/^/| /' conftest.$ac_ext >&5
2037
2038	ac_retval=1
2039fi
2040  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2041  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2042  # interfere with the next link command; also delete a directory that is
2043  # left behind by Apple's compiler.  We do this before executing the actions.
2044  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046  as_fn_set_status $ac_retval
2047
2048} # ac_fn_cxx_try_link
2049
2050# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2051# --------------------------------------------
2052# Tries to find the compile-time value of EXPR in a program that includes
2053# INCLUDES, setting VAR accordingly. Returns whether the value could be
2054# computed
2055ac_fn_c_compute_int ()
2056{
2057  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058  if test "$cross_compiling" = yes; then
2059    # Depending upon the size, compute the lo and hi bounds.
2060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h.  */
2062$4
2063int
2064main ()
2065{
2066static int test_array [1 - 2 * !(($2) >= 0)];
2067test_array [0] = 0;
2068return test_array [0];
2069
2070  ;
2071  return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075  ac_lo=0 ac_mid=0
2076  while :; do
2077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h.  */
2079$4
2080int
2081main ()
2082{
2083static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084test_array [0] = 0;
2085return test_array [0];
2086
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092  ac_hi=$ac_mid; break
2093else
2094  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2095			if test $ac_lo -le $ac_mid; then
2096			  ac_lo= ac_hi=
2097			  break
2098			fi
2099			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102  done
2103else
2104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h.  */
2106$4
2107int
2108main ()
2109{
2110static int test_array [1 - 2 * !(($2) < 0)];
2111test_array [0] = 0;
2112return test_array [0];
2113
2114  ;
2115  return 0;
2116}
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119  ac_hi=-1 ac_mid=-1
2120  while :; do
2121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h.  */
2123$4
2124int
2125main ()
2126{
2127static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2128test_array [0] = 0;
2129return test_array [0];
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_compile "$LINENO"; then :
2136  ac_lo=$ac_mid; break
2137else
2138  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139			if test $ac_mid -le $ac_hi; then
2140			  ac_lo= ac_hi=
2141			  break
2142			fi
2143			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146  done
2147else
2148  ac_lo= ac_hi=
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153# Binary search between lo and hi bounds.
2154while test "x$ac_lo" != "x$ac_hi"; do
2155  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h.  */
2158$4
2159int
2160main ()
2161{
2162static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163test_array [0] = 0;
2164return test_array [0];
2165
2166  ;
2167  return 0;
2168}
2169_ACEOF
2170if ac_fn_c_try_compile "$LINENO"; then :
2171  ac_hi=$ac_mid
2172else
2173  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176done
2177case $ac_lo in #((
2178?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2179'') ac_retval=1 ;;
2180esac
2181  else
2182    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h.  */
2184$4
2185static long int longval () { return $2; }
2186static unsigned long int ulongval () { return $2; }
2187#include <stdio.h>
2188#include <stdlib.h>
2189int
2190main ()
2191{
2192
2193  FILE *f = fopen ("conftest.val", "w");
2194  if (! f)
2195    return 1;
2196  if (($2) < 0)
2197    {
2198      long int i = longval ();
2199      if (i != ($2))
2200	return 1;
2201      fprintf (f, "%ld", i);
2202    }
2203  else
2204    {
2205      unsigned long int i = ulongval ();
2206      if (i != ($2))
2207	return 1;
2208      fprintf (f, "%lu", i);
2209    }
2210  /* Do not output a trailing newline, as this causes \r\n confusion
2211     on some platforms.  */
2212  return ferror (f) || fclose (f) != 0;
2213
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_run "$LINENO"; then :
2219  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2220else
2221  ac_retval=1
2222fi
2223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224  conftest.$ac_objext conftest.beam conftest.$ac_ext
2225rm -f conftest.val
2226
2227  fi
2228  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229  as_fn_set_status $ac_retval
2230
2231} # ac_fn_c_compute_int
2232
2233# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2234# -------------------------------------------------------
2235# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2236# the include files in INCLUDES and setting the cache variable VAR
2237# accordingly.
2238ac_fn_c_check_header_mongrel ()
2239{
2240  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241  if eval \${$3+:} false; then :
2242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243$as_echo_n "checking for $2... " >&6; }
2244if eval \${$3+:} false; then :
2245  $as_echo_n "(cached) " >&6
2246fi
2247eval ac_res=\$$3
2248	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249$as_echo "$ac_res" >&6; }
2250else
2251  # Is the header compilable?
2252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2253$as_echo_n "checking $2 usability... " >&6; }
2254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h.  */
2256$4
2257#include <$2>
2258_ACEOF
2259if ac_fn_c_try_compile "$LINENO"; then :
2260  ac_header_compiler=yes
2261else
2262  ac_header_compiler=no
2263fi
2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2266$as_echo "$ac_header_compiler" >&6; }
2267
2268# Is the header present?
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2270$as_echo_n "checking $2 presence... " >&6; }
2271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272/* end confdefs.h.  */
2273#include <$2>
2274_ACEOF
2275if ac_fn_c_try_cpp "$LINENO"; then :
2276  ac_header_preproc=yes
2277else
2278  ac_header_preproc=no
2279fi
2280rm -f conftest.err conftest.i conftest.$ac_ext
2281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2282$as_echo "$ac_header_preproc" >&6; }
2283
2284# So?  What about this header?
2285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2286  yes:no: )
2287    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2288$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2289    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2290$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2291    ;;
2292  no:yes:* )
2293    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2294$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2295    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2296$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2297    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2298$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2299    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2300$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2301    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2302$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2303( $as_echo "## ------------------------------------------------------ ##
2304## Report this to http://github.com/atgreen/libffi/issues ##
2305## ------------------------------------------------------ ##"
2306     ) | sed "s/^/$as_me: WARNING:     /" >&2
2307    ;;
2308esac
2309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310$as_echo_n "checking for $2... " >&6; }
2311if eval \${$3+:} false; then :
2312  $as_echo_n "(cached) " >&6
2313else
2314  eval "$3=\$ac_header_compiler"
2315fi
2316eval ac_res=\$$3
2317	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318$as_echo "$ac_res" >&6; }
2319fi
2320  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2321
2322} # ac_fn_c_check_header_mongrel
2323
2324# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2325# -------------------------------------------
2326# Tests whether TYPE exists after having included INCLUDES, setting cache
2327# variable VAR accordingly.
2328ac_fn_c_check_type ()
2329{
2330  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332$as_echo_n "checking for $2... " >&6; }
2333if eval \${$3+:} false; then :
2334  $as_echo_n "(cached) " >&6
2335else
2336  eval "$3=no"
2337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338/* end confdefs.h.  */
2339$4
2340int
2341main ()
2342{
2343if (sizeof ($2))
2344	 return 0;
2345  ;
2346  return 0;
2347}
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351/* end confdefs.h.  */
2352$4
2353int
2354main ()
2355{
2356if (sizeof (($2)))
2357	    return 0;
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_compile "$LINENO"; then :
2363
2364else
2365  eval "$3=yes"
2366fi
2367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368fi
2369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370fi
2371eval ac_res=\$$3
2372	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373$as_echo "$ac_res" >&6; }
2374  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375
2376} # ac_fn_c_check_type
2377cat >config.log <<_ACEOF
2378This file contains any messages produced by compilers while
2379running configure, to aid debugging if configure makes a mistake.
2380
2381It was created by libffi $as_me 3.2.1, which was
2382generated by GNU Autoconf 2.69.  Invocation command line was
2383
2384  $ $0 $@
2385
2386_ACEOF
2387exec 5>>config.log
2388{
2389cat <<_ASUNAME
2390## --------- ##
2391## Platform. ##
2392## --------- ##
2393
2394hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2395uname -m = `(uname -m) 2>/dev/null || echo unknown`
2396uname -r = `(uname -r) 2>/dev/null || echo unknown`
2397uname -s = `(uname -s) 2>/dev/null || echo unknown`
2398uname -v = `(uname -v) 2>/dev/null || echo unknown`
2399
2400/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2401/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2402
2403/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2404/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2405/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2406/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2407/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2408/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2409/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2410
2411_ASUNAME
2412
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416  IFS=$as_save_IFS
2417  test -z "$as_dir" && as_dir=.
2418    $as_echo "PATH: $as_dir"
2419  done
2420IFS=$as_save_IFS
2421
2422} >&5
2423
2424cat >&5 <<_ACEOF
2425
2426
2427## ----------- ##
2428## Core tests. ##
2429## ----------- ##
2430
2431_ACEOF
2432
2433
2434# Keep a trace of the command line.
2435# Strip out --no-create and --no-recursion so they do not pile up.
2436# Strip out --silent because we don't want to record it for future runs.
2437# Also quote any args containing shell meta-characters.
2438# Make two passes to allow for proper duplicate-argument suppression.
2439ac_configure_args=
2440ac_configure_args0=
2441ac_configure_args1=
2442ac_must_keep_next=false
2443for ac_pass in 1 2
2444do
2445  for ac_arg
2446  do
2447    case $ac_arg in
2448    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2449    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2450    | -silent | --silent | --silen | --sile | --sil)
2451      continue ;;
2452    *\'*)
2453      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2454    esac
2455    case $ac_pass in
2456    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2457    2)
2458      as_fn_append ac_configure_args1 " '$ac_arg'"
2459      if test $ac_must_keep_next = true; then
2460	ac_must_keep_next=false # Got value, back to normal.
2461      else
2462	case $ac_arg in
2463	  *=* | --config-cache | -C | -disable-* | --disable-* \
2464	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2465	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2466	  | -with-* | --with-* | -without-* | --without-* | --x)
2467	    case "$ac_configure_args0 " in
2468	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2469	    esac
2470	    ;;
2471	  -* ) ac_must_keep_next=true ;;
2472	esac
2473      fi
2474      as_fn_append ac_configure_args " '$ac_arg'"
2475      ;;
2476    esac
2477  done
2478done
2479{ ac_configure_args0=; unset ac_configure_args0;}
2480{ ac_configure_args1=; unset ac_configure_args1;}
2481
2482# When interrupted or exit'd, cleanup temporary files, and complete
2483# config.log.  We remove comments because anyway the quotes in there
2484# would cause problems or look ugly.
2485# WARNING: Use '\'' to represent an apostrophe within the trap.
2486# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2487trap 'exit_status=$?
2488  # Save into config.log some information that might help in debugging.
2489  {
2490    echo
2491
2492    $as_echo "## ---------------- ##
2493## Cache variables. ##
2494## ---------------- ##"
2495    echo
2496    # The following way of writing the cache mishandles newlines in values,
2497(
2498  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2499    eval ac_val=\$$ac_var
2500    case $ac_val in #(
2501    *${as_nl}*)
2502      case $ac_var in #(
2503      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2504$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2505      esac
2506      case $ac_var in #(
2507      _ | IFS | as_nl) ;; #(
2508      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2509      *) { eval $ac_var=; unset $ac_var;} ;;
2510      esac ;;
2511    esac
2512  done
2513  (set) 2>&1 |
2514    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2515    *${as_nl}ac_space=\ *)
2516      sed -n \
2517	"s/'\''/'\''\\\\'\'''\''/g;
2518	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2519      ;; #(
2520    *)
2521      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2522      ;;
2523    esac |
2524    sort
2525)
2526    echo
2527
2528    $as_echo "## ----------------- ##
2529## Output variables. ##
2530## ----------------- ##"
2531    echo
2532    for ac_var in $ac_subst_vars
2533    do
2534      eval ac_val=\$$ac_var
2535      case $ac_val in
2536      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2537      esac
2538      $as_echo "$ac_var='\''$ac_val'\''"
2539    done | sort
2540    echo
2541
2542    if test -n "$ac_subst_files"; then
2543      $as_echo "## ------------------- ##
2544## File substitutions. ##
2545## ------------------- ##"
2546      echo
2547      for ac_var in $ac_subst_files
2548      do
2549	eval ac_val=\$$ac_var
2550	case $ac_val in
2551	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2552	esac
2553	$as_echo "$ac_var='\''$ac_val'\''"
2554      done | sort
2555      echo
2556    fi
2557
2558    if test -s confdefs.h; then
2559      $as_echo "## ----------- ##
2560## confdefs.h. ##
2561## ----------- ##"
2562      echo
2563      cat confdefs.h
2564      echo
2565    fi
2566    test "$ac_signal" != 0 &&
2567      $as_echo "$as_me: caught signal $ac_signal"
2568    $as_echo "$as_me: exit $exit_status"
2569  } >&5
2570  rm -f core *.core core.conftest.* &&
2571    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2572    exit $exit_status
2573' 0
2574for ac_signal in 1 2 13 15; do
2575  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2576done
2577ac_signal=0
2578
2579# confdefs.h avoids OS command line length limits that DEFS can exceed.
2580rm -f -r conftest* confdefs.h
2581
2582$as_echo "/* confdefs.h */" > confdefs.h
2583
2584# Predefined preprocessor variables.
2585
2586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_NAME "$PACKAGE_NAME"
2588_ACEOF
2589
2590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2592_ACEOF
2593
2594cat >>confdefs.h <<_ACEOF
2595#define PACKAGE_VERSION "$PACKAGE_VERSION"
2596_ACEOF
2597
2598cat >>confdefs.h <<_ACEOF
2599#define PACKAGE_STRING "$PACKAGE_STRING"
2600_ACEOF
2601
2602cat >>confdefs.h <<_ACEOF
2603#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2604_ACEOF
2605
2606cat >>confdefs.h <<_ACEOF
2607#define PACKAGE_URL "$PACKAGE_URL"
2608_ACEOF
2609
2610
2611# Let the site file select an alternate cache file if it wants to.
2612# Prefer an explicitly selected file to automatically selected ones.
2613ac_site_file1=NONE
2614ac_site_file2=NONE
2615if test -n "$CONFIG_SITE"; then
2616  # We do not want a PATH search for config.site.
2617  case $CONFIG_SITE in #((
2618    -*)  ac_site_file1=./$CONFIG_SITE;;
2619    */*) ac_site_file1=$CONFIG_SITE;;
2620    *)   ac_site_file1=./$CONFIG_SITE;;
2621  esac
2622elif test "x$prefix" != xNONE; then
2623  ac_site_file1=$prefix/share/config.site
2624  ac_site_file2=$prefix/etc/config.site
2625else
2626  ac_site_file1=$ac_default_prefix/share/config.site
2627  ac_site_file2=$ac_default_prefix/etc/config.site
2628fi
2629for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2630do
2631  test "x$ac_site_file" = xNONE && continue
2632  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2633    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2634$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2635    sed 's/^/| /' "$ac_site_file" >&5
2636    . "$ac_site_file" \
2637      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2639as_fn_error $? "failed to load site script $ac_site_file
2640See \`config.log' for more details" "$LINENO" 5; }
2641  fi
2642done
2643
2644if test -r "$cache_file"; then
2645  # Some versions of bash will fail to source /dev/null (special files
2646  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2647  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2648    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2649$as_echo "$as_me: loading cache $cache_file" >&6;}
2650    case $cache_file in
2651      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2652      *)                      . "./$cache_file";;
2653    esac
2654  fi
2655else
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2657$as_echo "$as_me: creating cache $cache_file" >&6;}
2658  >$cache_file
2659fi
2660
2661# Check that the precious variables saved in the cache have kept the same
2662# value.
2663ac_cache_corrupted=false
2664for ac_var in $ac_precious_vars; do
2665  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2666  eval ac_new_set=\$ac_env_${ac_var}_set
2667  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2668  eval ac_new_val=\$ac_env_${ac_var}_value
2669  case $ac_old_set,$ac_new_set in
2670    set,)
2671      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2672$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2673      ac_cache_corrupted=: ;;
2674    ,set)
2675      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2676$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2677      ac_cache_corrupted=: ;;
2678    ,);;
2679    *)
2680      if test "x$ac_old_val" != "x$ac_new_val"; then
2681	# differences in whitespace do not lead to failure.
2682	ac_old_val_w=`echo x $ac_old_val`
2683	ac_new_val_w=`echo x $ac_new_val`
2684	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2685	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2686$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2687	  ac_cache_corrupted=:
2688	else
2689	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2690$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2691	  eval $ac_var=\$ac_old_val
2692	fi
2693	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2694$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2695	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2696$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2697      fi;;
2698  esac
2699  # Pass precious variables to config.status.
2700  if test "$ac_new_set" = set; then
2701    case $ac_new_val in
2702    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2703    *) ac_arg=$ac_var=$ac_new_val ;;
2704    esac
2705    case " $ac_configure_args " in
2706      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2707      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2708    esac
2709  fi
2710done
2711if $ac_cache_corrupted; then
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2715$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2716  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2717fi
2718## -------------------- ##
2719## Main body of script. ##
2720## -------------------- ##
2721
2722ac_ext=c
2723ac_cpp='$CPP $CPPFLAGS'
2724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727
2728
2729ac_config_headers="$ac_config_headers fficonfig.h"
2730
2731
2732ac_aux_dir=
2733for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2734  if test -f "$ac_dir/install-sh"; then
2735    ac_aux_dir=$ac_dir
2736    ac_install_sh="$ac_aux_dir/install-sh -c"
2737    break
2738  elif test -f "$ac_dir/install.sh"; then
2739    ac_aux_dir=$ac_dir
2740    ac_install_sh="$ac_aux_dir/install.sh -c"
2741    break
2742  elif test -f "$ac_dir/shtool"; then
2743    ac_aux_dir=$ac_dir
2744    ac_install_sh="$ac_aux_dir/shtool install -c"
2745    break
2746  fi
2747done
2748if test -z "$ac_aux_dir"; then
2749  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2750fi
2751
2752# These three variables are undocumented and unsupported,
2753# and are intended to be withdrawn in a future Autoconf release.
2754# They can cause serious problems if a builder's source tree is in a directory
2755# whose full name contains unusual characters.
2756ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2757ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2758ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2759
2760
2761# Make sure we can run config.sub.
2762$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766$as_echo_n "checking build system type... " >&6; }
2767if ${ac_cv_build+:} false; then :
2768  $as_echo_n "(cached) " >&6
2769else
2770  ac_build_alias=$build_alias
2771test "x$ac_build_alias" = x &&
2772  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773test "x$ac_build_alias" = x &&
2774  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780$as_echo "$ac_cv_build" >&6; }
2781case $ac_cv_build in
2782*-*-*) ;;
2783*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784esac
2785build=$ac_cv_build
2786ac_save_IFS=$IFS; IFS='-'
2787set x $ac_cv_build
2788shift
2789build_cpu=$1
2790build_vendor=$2
2791shift; shift
2792# Remember, the first character of IFS is used to create $*,
2793# except with old shells:
2794build_os=$*
2795IFS=$ac_save_IFS
2796case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2797
2798
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800$as_echo_n "checking host system type... " >&6; }
2801if ${ac_cv_host+:} false; then :
2802  $as_echo_n "(cached) " >&6
2803else
2804  if test "x$host_alias" = x; then
2805  ac_cv_host=$ac_cv_build
2806else
2807  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2809fi
2810
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2813$as_echo "$ac_cv_host" >&6; }
2814case $ac_cv_host in
2815*-*-*) ;;
2816*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817esac
2818host=$ac_cv_host
2819ac_save_IFS=$IFS; IFS='-'
2820set x $ac_cv_host
2821shift
2822host_cpu=$1
2823host_vendor=$2
2824shift; shift
2825# Remember, the first character of IFS is used to create $*,
2826# except with old shells:
2827host_os=$*
2828IFS=$ac_save_IFS
2829case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2830
2831
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2833$as_echo_n "checking target system type... " >&6; }
2834if ${ac_cv_target+:} false; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  if test "x$target_alias" = x; then
2838  ac_cv_target=$ac_cv_host
2839else
2840  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2841    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2842fi
2843
2844fi
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2846$as_echo "$ac_cv_target" >&6; }
2847case $ac_cv_target in
2848*-*-*) ;;
2849*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2850esac
2851target=$ac_cv_target
2852ac_save_IFS=$IFS; IFS='-'
2853set x $ac_cv_target
2854shift
2855target_cpu=$1
2856target_vendor=$2
2857shift; shift
2858# Remember, the first character of IFS is used to create $*,
2859# except with old shells:
2860target_os=$*
2861IFS=$ac_save_IFS
2862case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2863
2864
2865# The aliases save the names the user supplied, while $host etc.
2866# will get canonicalized.
2867test -n "$target_alias" &&
2868  test "$program_prefix$program_suffix$program_transform_name" = \
2869    NONENONEs,x,x, &&
2870  program_prefix=${target_alias}-
2871
2872target_alias=${target_alias-$host_alias}
2873
2874case "${host}" in
2875  frv*-elf)
2876    LDFLAGS=`echo $LDFLAGS | sed "s/\-B^ *libgloss\/frv\///"`\ -B`pwd`/../libgloss/frv/
2877    ;;
2878esac
2879
2880
2881   # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2882   if test "${ac_configure_args+set}" != "set" ; then
2883      ac_configure_args=
2884      for ac_arg in ${1+"$@"}; do
2885         ac_configure_args="$ac_configure_args '$ac_arg'"
2886      done
2887   fi
2888
2889# Expand $ac_aux_dir to an absolute path.
2890am_aux_dir=`cd "$ac_aux_dir" && pwd`
2891
2892
2893ax_enable_builddir="."
2894# Check whether --enable-builddir was given.
2895if test "${enable_builddir+set}" = set; then :
2896  enableval=$enable_builddir; ax_enable_builddir="$enableval"
2897else
2898  ax_enable_builddir="auto"
2899fi
2900
2901if test ".$ac_srcdir_defaulted" != ".no" ; then
2902if test ".$srcdir" = ".." ; then
2903  if test -f config.status ; then
2904    { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2905$as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2906  else
2907    test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2908    test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2909    test ".$TARGET" = "." && TARGET="$target"
2910    test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2911    if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2912      as_dir=$ax_enable_builddir; as_fn_mkdir_p
2913      echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2914      cd $ax_enable_builddir
2915      if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2916        rm conftest.tmp
2917        { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2918$as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2919      else
2920        as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2921      fi
2922      srcdir=`echo "$ax_enable_builddir" |
2923              sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2924      # going to restart from subdirectory location
2925      test -f $srcdir/config.log   && mv $srcdir/config.log   .
2926      test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2927      test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2928      test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2929      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2930$as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2931      case "$0" in # restart
2932       [\\/]* | ?:[\\/]*) # Asbolute name
2933         eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2934       *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2935      esac ; exit $?
2936    fi
2937  fi
2938fi fi
2939test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2940# Extract the first word of "gsed sed", so it can be a program name with args.
2941set dummy gsed sed; ac_word=$2
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943$as_echo_n "checking for $ac_word... " >&6; }
2944if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2945  $as_echo_n "(cached) " >&6
2946else
2947  case $ax_enable_builddir_sed in
2948  [\\/]* | ?:[\\/]*)
2949  ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2950  ;;
2951  *)
2952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955  IFS=$as_save_IFS
2956  test -z "$as_dir" && as_dir=.
2957    for ac_exec_ext in '' $ac_executable_extensions; do
2958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959    ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961    break 2
2962  fi
2963done
2964  done
2965IFS=$as_save_IFS
2966
2967  test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2968  ;;
2969esac
2970fi
2971ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2972if test -n "$ax_enable_builddir_sed"; then
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2974$as_echo "$ax_enable_builddir_sed" >&6; }
2975else
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978fi
2979
2980
2981ax_enable_builddir_auxdir="$am_aux_dir"
2982ac_config_commands="$ac_config_commands buildir"
2983
2984
2985am__api_version='1.15'
2986
2987# Find a good install program.  We prefer a C program (faster),
2988# so one script is as good as another.  But avoid the broken or
2989# incompatible versions:
2990# SysV /etc/install, /usr/sbin/install
2991# SunOS /usr/etc/install
2992# IRIX /sbin/install
2993# AIX /bin/install
2994# AmigaOS /C/install, which installs bootblocks on floppy discs
2995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2998# OS/2's system install, which has a completely different semantic
2999# ./install, which can be erroneously created by make from ./install.sh.
3000# Reject install programs that cannot install multiple files.
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3002$as_echo_n "checking for a BSD-compatible install... " >&6; }
3003if test -z "$INSTALL"; then
3004if ${ac_cv_path_install+:} false; then :
3005  $as_echo_n "(cached) " >&6
3006else
3007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010  IFS=$as_save_IFS
3011  test -z "$as_dir" && as_dir=.
3012    # Account for people who put trailing slashes in PATH elements.
3013case $as_dir/ in #((
3014  ./ | .// | /[cC]/* | \
3015  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3016  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3017  /usr/ucb/* ) ;;
3018  *)
3019    # OSF1 and SCO ODT 3.0 have their own names for install.
3020    # Don't use installbsd from OSF since it installs stuff as root
3021    # by default.
3022    for ac_prog in ginstall scoinst install; do
3023      for ac_exec_ext in '' $ac_executable_extensions; do
3024	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3025	  if test $ac_prog = install &&
3026	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3027	    # AIX install.  It has an incompatible calling convention.
3028	    :
3029	  elif test $ac_prog = install &&
3030	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3031	    # program-specific install script used by HP pwplus--don't use.
3032	    :
3033	  else
3034	    rm -rf conftest.one conftest.two conftest.dir
3035	    echo one > conftest.one
3036	    echo two > conftest.two
3037	    mkdir conftest.dir
3038	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3039	      test -s conftest.one && test -s conftest.two &&
3040	      test -s conftest.dir/conftest.one &&
3041	      test -s conftest.dir/conftest.two
3042	    then
3043	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3044	      break 3
3045	    fi
3046	  fi
3047	fi
3048      done
3049    done
3050    ;;
3051esac
3052
3053  done
3054IFS=$as_save_IFS
3055
3056rm -rf conftest.one conftest.two conftest.dir
3057
3058fi
3059  if test "${ac_cv_path_install+set}" = set; then
3060    INSTALL=$ac_cv_path_install
3061  else
3062    # As a last resort, use the slow shell script.  Don't cache a
3063    # value for INSTALL within a source directory, because that will
3064    # break other packages using the cache if that directory is
3065    # removed, or if the value is a relative name.
3066    INSTALL=$ac_install_sh
3067  fi
3068fi
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3070$as_echo "$INSTALL" >&6; }
3071
3072# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3073# It thinks the first close brace ends the variable substitution.
3074test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3075
3076test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3077
3078test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3079
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3081$as_echo_n "checking whether build environment is sane... " >&6; }
3082# Reject unsafe characters in $srcdir or the absolute working directory
3083# name.  Accept space and tab only in the latter.
3084am_lf='
3085'
3086case `pwd` in
3087  *[\\\"\#\$\&\'\`$am_lf]*)
3088    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3089esac
3090case $srcdir in
3091  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3092    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3093esac
3094
3095# Do 'set' in a subshell so we don't clobber the current shell's
3096# arguments.  Must try -L first in case configure is actually a
3097# symlink; some systems play weird games with the mod time of symlinks
3098# (eg FreeBSD returns the mod time of the symlink's containing
3099# directory).
3100if (
3101   am_has_slept=no
3102   for am_try in 1 2; do
3103     echo "timestamp, slept: $am_has_slept" > conftest.file
3104     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3105     if test "$*" = "X"; then
3106	# -L didn't work.
3107	set X `ls -t "$srcdir/configure" conftest.file`
3108     fi
3109     if test "$*" != "X $srcdir/configure conftest.file" \
3110	&& test "$*" != "X conftest.file $srcdir/configure"; then
3111
3112	# If neither matched, then we have a broken ls.  This can happen
3113	# if, for instance, CONFIG_SHELL is bash and it inherits a
3114	# broken ls alias from the environment.  This has actually
3115	# happened.  Such a system could not be considered "sane".
3116	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3117  alias in your environment" "$LINENO" 5
3118     fi
3119     if test "$2" = conftest.file || test $am_try -eq 2; then
3120       break
3121     fi
3122     # Just in case.
3123     sleep 1
3124     am_has_slept=yes
3125   done
3126   test "$2" = conftest.file
3127   )
3128then
3129   # Ok.
3130   :
3131else
3132   as_fn_error $? "newly created file is older than distributed files!
3133Check your system clock" "$LINENO" 5
3134fi
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3136$as_echo "yes" >&6; }
3137# If we didn't sleep, we still need to ensure time stamps of config.status and
3138# generated files are strictly newer.
3139am_sleep_pid=
3140if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3141  ( sleep 1 ) &
3142  am_sleep_pid=$!
3143fi
3144
3145rm -f conftest.file
3146
3147test "$program_prefix" != NONE &&
3148  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3149# Use a double $ so make ignores it.
3150test "$program_suffix" != NONE &&
3151  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3152# Double any \ or $.
3153# By default was `s,x,x', remove it if useless.
3154ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3155program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3156
3157if test x"${MISSING+set}" != xset; then
3158  case $am_aux_dir in
3159  *\ * | *\	*)
3160    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3161  *)
3162    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3163  esac
3164fi
3165# Use eval to expand $SHELL
3166if eval "$MISSING --is-lightweight"; then
3167  am_missing_run="$MISSING "
3168else
3169  am_missing_run=
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3171$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3172fi
3173
3174if test x"${install_sh+set}" != xset; then
3175  case $am_aux_dir in
3176  *\ * | *\	*)
3177    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3178  *)
3179    install_sh="\${SHELL} $am_aux_dir/install-sh"
3180  esac
3181fi
3182
3183# Installed binaries are usually stripped using 'strip' when the user
3184# run "make install-strip".  However 'strip' might not be the right
3185# tool to use in cross-compilation environments, therefore Automake
3186# will honor the 'STRIP' environment variable to overrule this program.
3187if test "$cross_compiling" != no; then
3188  if test -n "$ac_tool_prefix"; then
3189  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3190set dummy ${ac_tool_prefix}strip; ac_word=$2
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192$as_echo_n "checking for $ac_word... " >&6; }
3193if ${ac_cv_prog_STRIP+:} false; then :
3194  $as_echo_n "(cached) " >&6
3195else
3196  if test -n "$STRIP"; then
3197  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3198else
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202  IFS=$as_save_IFS
3203  test -z "$as_dir" && as_dir=.
3204    for ac_exec_ext in '' $ac_executable_extensions; do
3205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208    break 2
3209  fi
3210done
3211  done
3212IFS=$as_save_IFS
3213
3214fi
3215fi
3216STRIP=$ac_cv_prog_STRIP
3217if test -n "$STRIP"; then
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3219$as_echo "$STRIP" >&6; }
3220else
3221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222$as_echo "no" >&6; }
3223fi
3224
3225
3226fi
3227if test -z "$ac_cv_prog_STRIP"; then
3228  ac_ct_STRIP=$STRIP
3229  # Extract the first word of "strip", so it can be a program name with args.
3230set dummy strip; ac_word=$2
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232$as_echo_n "checking for $ac_word... " >&6; }
3233if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3234  $as_echo_n "(cached) " >&6
3235else
3236  if test -n "$ac_ct_STRIP"; then
3237  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3238else
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242  IFS=$as_save_IFS
3243  test -z "$as_dir" && as_dir=.
3244    for ac_exec_ext in '' $ac_executable_extensions; do
3245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246    ac_cv_prog_ac_ct_STRIP="strip"
3247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248    break 2
3249  fi
3250done
3251  done
3252IFS=$as_save_IFS
3253
3254fi
3255fi
3256ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3257if test -n "$ac_ct_STRIP"; then
3258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3259$as_echo "$ac_ct_STRIP" >&6; }
3260else
3261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262$as_echo "no" >&6; }
3263fi
3264
3265  if test "x$ac_ct_STRIP" = x; then
3266    STRIP=":"
3267  else
3268    case $cross_compiling:$ac_tool_warned in
3269yes:)
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3272ac_tool_warned=yes ;;
3273esac
3274    STRIP=$ac_ct_STRIP
3275  fi
3276else
3277  STRIP="$ac_cv_prog_STRIP"
3278fi
3279
3280fi
3281INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3282
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3284$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3285if test -z "$MKDIR_P"; then
3286  if ${ac_cv_path_mkdir+:} false; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3291do
3292  IFS=$as_save_IFS
3293  test -z "$as_dir" && as_dir=.
3294    for ac_prog in mkdir gmkdir; do
3295	 for ac_exec_ext in '' $ac_executable_extensions; do
3296	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3297	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3298	     'mkdir (GNU coreutils) '* | \
3299	     'mkdir (coreutils) '* | \
3300	     'mkdir (fileutils) '4.1*)
3301	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3302	       break 3;;
3303	   esac
3304	 done
3305       done
3306  done
3307IFS=$as_save_IFS
3308
3309fi
3310
3311  test -d ./--version && rmdir ./--version
3312  if test "${ac_cv_path_mkdir+set}" = set; then
3313    MKDIR_P="$ac_cv_path_mkdir -p"
3314  else
3315    # As a last resort, use the slow shell script.  Don't cache a
3316    # value for MKDIR_P within a source directory, because that will
3317    # break other packages using the cache if that directory is
3318    # removed, or if the value is a relative name.
3319    MKDIR_P="$ac_install_sh -d"
3320  fi
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3323$as_echo "$MKDIR_P" >&6; }
3324
3325for ac_prog in gawk mawk nawk awk
3326do
3327  # Extract the first word of "$ac_prog", so it can be a program name with args.
3328set dummy $ac_prog; ac_word=$2
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330$as_echo_n "checking for $ac_word... " >&6; }
3331if ${ac_cv_prog_AWK+:} false; then :
3332  $as_echo_n "(cached) " >&6
3333else
3334  if test -n "$AWK"; then
3335  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340  IFS=$as_save_IFS
3341  test -z "$as_dir" && as_dir=.
3342    for ac_exec_ext in '' $ac_executable_extensions; do
3343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344    ac_cv_prog_AWK="$ac_prog"
3345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349  done
3350IFS=$as_save_IFS
3351
3352fi
3353fi
3354AWK=$ac_cv_prog_AWK
3355if test -n "$AWK"; then
3356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3357$as_echo "$AWK" >&6; }
3358else
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360$as_echo "no" >&6; }
3361fi
3362
3363
3364  test -n "$AWK" && break
3365done
3366
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3368$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3369set x ${MAKE-make}
3370ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3371if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3372  $as_echo_n "(cached) " >&6
3373else
3374  cat >conftest.make <<\_ACEOF
3375SHELL = /bin/sh
3376all:
3377	@echo '@@@%%%=$(MAKE)=@@@%%%'
3378_ACEOF
3379# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3380case `${MAKE-make} -f conftest.make 2>/dev/null` in
3381  *@@@%%%=?*=@@@%%%*)
3382    eval ac_cv_prog_make_${ac_make}_set=yes;;
3383  *)
3384    eval ac_cv_prog_make_${ac_make}_set=no;;
3385esac
3386rm -f conftest.make
3387fi
3388if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3390$as_echo "yes" >&6; }
3391  SET_MAKE=
3392else
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395  SET_MAKE="MAKE=${MAKE-make}"
3396fi
3397
3398rm -rf .tst 2>/dev/null
3399mkdir .tst 2>/dev/null
3400if test -d .tst; then
3401  am__leading_dot=.
3402else
3403  am__leading_dot=_
3404fi
3405rmdir .tst 2>/dev/null
3406
3407# Check whether --enable-silent-rules was given.
3408if test "${enable_silent_rules+set}" = set; then :
3409  enableval=$enable_silent_rules;
3410fi
3411
3412case $enable_silent_rules in # (((
3413  yes) AM_DEFAULT_VERBOSITY=0;;
3414   no) AM_DEFAULT_VERBOSITY=1;;
3415    *) AM_DEFAULT_VERBOSITY=1;;
3416esac
3417am_make=${MAKE-make}
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3419$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3420if ${am_cv_make_support_nested_variables+:} false; then :
3421  $as_echo_n "(cached) " >&6
3422else
3423  if $as_echo 'TRUE=$(BAR$(V))
3424BAR0=false
3425BAR1=true
3426V=1
3427am__doit:
3428	@$(TRUE)
3429.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3430  am_cv_make_support_nested_variables=yes
3431else
3432  am_cv_make_support_nested_variables=no
3433fi
3434fi
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3436$as_echo "$am_cv_make_support_nested_variables" >&6; }
3437if test $am_cv_make_support_nested_variables = yes; then
3438    AM_V='$(V)'
3439  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3440else
3441  AM_V=$AM_DEFAULT_VERBOSITY
3442  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3443fi
3444AM_BACKSLASH='\'
3445
3446if test "`cd $srcdir && pwd`" != "`pwd`"; then
3447  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3448  # is not polluted with repeated "-I."
3449  am__isrc=' -I$(srcdir)'
3450  # test to see if srcdir already configured
3451  if test -f $srcdir/config.status; then
3452    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3453  fi
3454fi
3455
3456# test whether we have cygpath
3457if test -z "$CYGPATH_W"; then
3458  if (cygpath --version) >/dev/null 2>/dev/null; then
3459    CYGPATH_W='cygpath -w'
3460  else
3461    CYGPATH_W=echo
3462  fi
3463fi
3464
3465
3466# Define the identity of the package.
3467 PACKAGE='libffi'
3468 VERSION='3.2.1'
3469
3470
3471cat >>confdefs.h <<_ACEOF
3472#define PACKAGE "$PACKAGE"
3473_ACEOF
3474
3475
3476cat >>confdefs.h <<_ACEOF
3477#define VERSION "$VERSION"
3478_ACEOF
3479
3480# Some tools Automake needs.
3481
3482ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3483
3484
3485AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3486
3487
3488AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3489
3490
3491AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3492
3493
3494MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3495
3496# For better backward compatibility.  To be removed once Automake 1.9.x
3497# dies out for good.  For more background, see:
3498# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3499# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3500mkdir_p='$(MKDIR_P)'
3501
3502# We need awk for the "check" target (and possibly the TAP driver).  The
3503# system "awk" is bad on some platforms.
3504# Always define AMTAR for backward compatibility.  Yes, it's still used
3505# in the wild :-(  We should find a proper way to deprecate it ...
3506AMTAR='$${TAR-tar}'
3507
3508
3509# We'll loop over all known methods to create a tar archive until one works.
3510_am_tools='gnutar  pax cpio none'
3511
3512am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3513
3514
3515
3516
3517
3518
3519# POSIX will say in a future version that running "rm -f" with no argument
3520# is OK; and we want to be able to make that assumption in our Makefile
3521# recipes.  So use an aggressive probe to check that the usage we want is
3522# actually supported "in the wild" to an acceptable degree.
3523# See automake bug#10828.
3524# To make any issue more visible, cause the running configure to be aborted
3525# by default if the 'rm' program in use doesn't match our expectations; the
3526# user can still override this though.
3527if rm -f && rm -fr && rm -rf; then : OK; else
3528  cat >&2 <<'END'
3529Oops!
3530
3531Your 'rm' program seems unable to run without file operands specified
3532on the command line, even when the '-f' option is present.  This is contrary
3533to the behaviour of most rm programs out there, and not conforming with
3534the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3535
3536Please tell bug-automake@gnu.org about your system, including the value
3537of your $PATH and any error possibly output before this message.  This
3538can help us improve future automake versions.
3539
3540END
3541  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3542    echo 'Configuration will proceed anyway, since you have set the' >&2
3543    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3544    echo >&2
3545  else
3546    cat >&2 <<'END'
3547Aborting the configuration process, to ensure you take notice of the issue.
3548
3549You can download and install GNU coreutils to get an 'rm' implementation
3550that behaves properly: <http://www.gnu.org/software/coreutils/>.
3551
3552If you want to complete the configuration process using your problematic
3553'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3554to "yes", and re-run configure.
3555
3556END
3557    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3558  fi
3559fi
3560
3561
3562# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3563# We must force CC to /not/ be precious variables; otherwise
3564# the wrong, non-multilib-adjusted value will be used in multilibs.
3565# As a side effect, we have to subst CFLAGS ourselves.
3566# Also save and restore CFLAGS, since AC_PROG_CC will come up with
3567# defaults of its own if none are provided.
3568
3569
3570
3571save_CFLAGS=$CFLAGS
3572ac_ext=c
3573ac_cpp='$CPP $CPPFLAGS'
3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577if test -n "$ac_tool_prefix"; then
3578  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3579set dummy ${ac_tool_prefix}gcc; ac_word=$2
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581$as_echo_n "checking for $ac_word... " >&6; }
3582if ${ac_cv_prog_CC+:} false; then :
3583  $as_echo_n "(cached) " >&6
3584else
3585  if test -n "$CC"; then
3586  ac_cv_prog_CC="$CC" # Let the user override the test.
3587else
3588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589for as_dir in $PATH
3590do
3591  IFS=$as_save_IFS
3592  test -z "$as_dir" && as_dir=.
3593    for ac_exec_ext in '' $ac_executable_extensions; do
3594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597    break 2
3598  fi
3599done
3600  done
3601IFS=$as_save_IFS
3602
3603fi
3604fi
3605CC=$ac_cv_prog_CC
3606if test -n "$CC"; then
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608$as_echo "$CC" >&6; }
3609else
3610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611$as_echo "no" >&6; }
3612fi
3613
3614
3615fi
3616if test -z "$ac_cv_prog_CC"; then
3617  ac_ct_CC=$CC
3618  # Extract the first word of "gcc", so it can be a program name with args.
3619set dummy gcc; ac_word=$2
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621$as_echo_n "checking for $ac_word... " >&6; }
3622if ${ac_cv_prog_ac_ct_CC+:} false; then :
3623  $as_echo_n "(cached) " >&6
3624else
3625  if test -n "$ac_ct_CC"; then
3626  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3627else
3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629for as_dir in $PATH
3630do
3631  IFS=$as_save_IFS
3632  test -z "$as_dir" && as_dir=.
3633    for ac_exec_ext in '' $ac_executable_extensions; do
3634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635    ac_cv_prog_ac_ct_CC="gcc"
3636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637    break 2
3638  fi
3639done
3640  done
3641IFS=$as_save_IFS
3642
3643fi
3644fi
3645ac_ct_CC=$ac_cv_prog_ac_ct_CC
3646if test -n "$ac_ct_CC"; then
3647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3648$as_echo "$ac_ct_CC" >&6; }
3649else
3650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651$as_echo "no" >&6; }
3652fi
3653
3654  if test "x$ac_ct_CC" = x; then
3655    CC=""
3656  else
3657    case $cross_compiling:$ac_tool_warned in
3658yes:)
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3661ac_tool_warned=yes ;;
3662esac
3663    CC=$ac_ct_CC
3664  fi
3665else
3666  CC="$ac_cv_prog_CC"
3667fi
3668
3669if test -z "$CC"; then
3670          if test -n "$ac_tool_prefix"; then
3671    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3672set dummy ${ac_tool_prefix}cc; ac_word=$2
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674$as_echo_n "checking for $ac_word... " >&6; }
3675if ${ac_cv_prog_CC+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  if test -n "$CC"; then
3679  ac_cv_prog_CC="$CC" # Let the user override the test.
3680else
3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH
3683do
3684  IFS=$as_save_IFS
3685  test -z "$as_dir" && as_dir=.
3686    for ac_exec_ext in '' $ac_executable_extensions; do
3687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688    ac_cv_prog_CC="${ac_tool_prefix}cc"
3689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690    break 2
3691  fi
3692done
3693  done
3694IFS=$as_save_IFS
3695
3696fi
3697fi
3698CC=$ac_cv_prog_CC
3699if test -n "$CC"; then
3700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3701$as_echo "$CC" >&6; }
3702else
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704$as_echo "no" >&6; }
3705fi
3706
3707
3708  fi
3709fi
3710if test -z "$CC"; then
3711  # Extract the first word of "cc", so it can be a program name with args.
3712set dummy cc; ac_word=$2
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714$as_echo_n "checking for $ac_word... " >&6; }
3715if ${ac_cv_prog_CC+:} false; then :
3716  $as_echo_n "(cached) " >&6
3717else
3718  if test -n "$CC"; then
3719  ac_cv_prog_CC="$CC" # Let the user override the test.
3720else
3721  ac_prog_rejected=no
3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725  IFS=$as_save_IFS
3726  test -z "$as_dir" && as_dir=.
3727    for ac_exec_ext in '' $ac_executable_extensions; do
3728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3730       ac_prog_rejected=yes
3731       continue
3732     fi
3733    ac_cv_prog_CC="cc"
3734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735    break 2
3736  fi
3737done
3738  done
3739IFS=$as_save_IFS
3740
3741if test $ac_prog_rejected = yes; then
3742  # We found a bogon in the path, so make sure we never use it.
3743  set dummy $ac_cv_prog_CC
3744  shift
3745  if test $# != 0; then
3746    # We chose a different compiler from the bogus one.
3747    # However, it has the same basename, so the bogon will be chosen
3748    # first if we set CC to just the basename; use the full file name.
3749    shift
3750    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3751  fi
3752fi
3753fi
3754fi
3755CC=$ac_cv_prog_CC
3756if test -n "$CC"; then
3757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758$as_echo "$CC" >&6; }
3759else
3760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761$as_echo "no" >&6; }
3762fi
3763
3764
3765fi
3766if test -z "$CC"; then
3767  if test -n "$ac_tool_prefix"; then
3768  for ac_prog in cl.exe
3769  do
3770    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773$as_echo_n "checking for $ac_word... " >&6; }
3774if ${ac_cv_prog_CC+:} false; then :
3775  $as_echo_n "(cached) " >&6
3776else
3777  if test -n "$CC"; then
3778  ac_cv_prog_CC="$CC" # Let the user override the test.
3779else
3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH
3782do
3783  IFS=$as_save_IFS
3784  test -z "$as_dir" && as_dir=.
3785    for ac_exec_ext in '' $ac_executable_extensions; do
3786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789    break 2
3790  fi
3791done
3792  done
3793IFS=$as_save_IFS
3794
3795fi
3796fi
3797CC=$ac_cv_prog_CC
3798if test -n "$CC"; then
3799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3800$as_echo "$CC" >&6; }
3801else
3802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803$as_echo "no" >&6; }
3804fi
3805
3806
3807    test -n "$CC" && break
3808  done
3809fi
3810if test -z "$CC"; then
3811  ac_ct_CC=$CC
3812  for ac_prog in cl.exe
3813do
3814  # Extract the first word of "$ac_prog", so it can be a program name with args.
3815set dummy $ac_prog; ac_word=$2
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817$as_echo_n "checking for $ac_word... " >&6; }
3818if ${ac_cv_prog_ac_ct_CC+:} false; then :
3819  $as_echo_n "(cached) " >&6
3820else
3821  if test -n "$ac_ct_CC"; then
3822  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3823else
3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825for as_dir in $PATH
3826do
3827  IFS=$as_save_IFS
3828  test -z "$as_dir" && as_dir=.
3829    for ac_exec_ext in '' $ac_executable_extensions; do
3830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3831    ac_cv_prog_ac_ct_CC="$ac_prog"
3832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833    break 2
3834  fi
3835done
3836  done
3837IFS=$as_save_IFS
3838
3839fi
3840fi
3841ac_ct_CC=$ac_cv_prog_ac_ct_CC
3842if test -n "$ac_ct_CC"; then
3843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3844$as_echo "$ac_ct_CC" >&6; }
3845else
3846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847$as_echo "no" >&6; }
3848fi
3849
3850
3851  test -n "$ac_ct_CC" && break
3852done
3853
3854  if test "x$ac_ct_CC" = x; then
3855    CC=""
3856  else
3857    case $cross_compiling:$ac_tool_warned in
3858yes:)
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3861ac_tool_warned=yes ;;
3862esac
3863    CC=$ac_ct_CC
3864  fi
3865fi
3866
3867fi
3868
3869
3870test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872as_fn_error $? "no acceptable C compiler found in \$PATH
3873See \`config.log' for more details" "$LINENO" 5; }
3874
3875# Provide some information about the compiler.
3876$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3877set X $ac_compile
3878ac_compiler=$2
3879for ac_option in --version -v -V -qversion; do
3880  { { ac_try="$ac_compiler $ac_option >&5"
3881case "(($ac_try" in
3882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883  *) ac_try_echo=$ac_try;;
3884esac
3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886$as_echo "$ac_try_echo"; } >&5
3887  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3888  ac_status=$?
3889  if test -s conftest.err; then
3890    sed '10a\
3891... rest of stderr output deleted ...
3892         10q' conftest.err >conftest.er1
3893    cat conftest.er1 >&5
3894  fi
3895  rm -f conftest.er1 conftest.err
3896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897  test $ac_status = 0; }
3898done
3899
3900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h.  */
3902
3903int
3904main ()
3905{
3906
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911ac_clean_files_save=$ac_clean_files
3912ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3913# Try to create an executable without -o first, disregard a.out.
3914# It will help us diagnose broken compilers, and finding out an intuition
3915# of exeext.
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3917$as_echo_n "checking whether the C compiler works... " >&6; }
3918ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3919
3920# The possible output files:
3921ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3922
3923ac_rmfiles=
3924for ac_file in $ac_files
3925do
3926  case $ac_file in
3927    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3928    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3929  esac
3930done
3931rm -f $ac_rmfiles
3932
3933if { { ac_try="$ac_link_default"
3934case "(($ac_try" in
3935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936  *) ac_try_echo=$ac_try;;
3937esac
3938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939$as_echo "$ac_try_echo"; } >&5
3940  (eval "$ac_link_default") 2>&5
3941  ac_status=$?
3942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943  test $ac_status = 0; }; then :
3944  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3945# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3946# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3947# so that the user can short-circuit this test for compilers unknown to
3948# Autoconf.
3949for ac_file in $ac_files ''
3950do
3951  test -f "$ac_file" || continue
3952  case $ac_file in
3953    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3954	;;
3955    [ab].out )
3956	# We found the default executable, but exeext='' is most
3957	# certainly right.
3958	break;;
3959    *.* )
3960	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3961	then :; else
3962	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3963	fi
3964	# We set ac_cv_exeext here because the later test for it is not
3965	# safe: cross compilers may not add the suffix if given an `-o'
3966	# argument, so we may need to know it at that point already.
3967	# Even if this section looks crufty: it has the advantage of
3968	# actually working.
3969	break;;
3970    * )
3971	break;;
3972  esac
3973done
3974test "$ac_cv_exeext" = no && ac_cv_exeext=
3975
3976else
3977  ac_file=''
3978fi
3979if test -z "$ac_file"; then :
3980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981$as_echo "no" >&6; }
3982$as_echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987as_fn_error 77 "C compiler cannot create executables
3988See \`config.log' for more details" "$LINENO" 5; }
3989else
3990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3991$as_echo "yes" >&6; }
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3994$as_echo_n "checking for C compiler default output file name... " >&6; }
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3996$as_echo "$ac_file" >&6; }
3997ac_exeext=$ac_cv_exeext
3998
3999rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4000ac_clean_files=$ac_clean_files_save
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4002$as_echo_n "checking for suffix of executables... " >&6; }
4003if { { ac_try="$ac_link"
4004case "(($ac_try" in
4005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006  *) ac_try_echo=$ac_try;;
4007esac
4008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009$as_echo "$ac_try_echo"; } >&5
4010  (eval "$ac_link") 2>&5
4011  ac_status=$?
4012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013  test $ac_status = 0; }; then :
4014  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4015# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4016# work properly (i.e., refer to `conftest.exe'), while it won't with
4017# `rm'.
4018for ac_file in conftest.exe conftest conftest.*; do
4019  test -f "$ac_file" || continue
4020  case $ac_file in
4021    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4022    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023	  break;;
4024    * ) break;;
4025  esac
4026done
4027else
4028  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4031See \`config.log' for more details" "$LINENO" 5; }
4032fi
4033rm -f conftest conftest$ac_cv_exeext
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4035$as_echo "$ac_cv_exeext" >&6; }
4036
4037rm -f conftest.$ac_ext
4038EXEEXT=$ac_cv_exeext
4039ac_exeext=$EXEEXT
4040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h.  */
4042#include <stdio.h>
4043int
4044main ()
4045{
4046FILE *f = fopen ("conftest.out", "w");
4047 return ferror (f) || fclose (f) != 0;
4048
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053ac_clean_files="$ac_clean_files conftest.out"
4054# Check that the compiler produces executables we can run.  If not, either
4055# the compiler is broken, or we cross compile.
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4057$as_echo_n "checking whether we are cross compiling... " >&6; }
4058if test "$cross_compiling" != yes; then
4059  { { ac_try="$ac_link"
4060case "(($ac_try" in
4061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062  *) ac_try_echo=$ac_try;;
4063esac
4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065$as_echo "$ac_try_echo"; } >&5
4066  (eval "$ac_link") 2>&5
4067  ac_status=$?
4068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4069  test $ac_status = 0; }
4070  if { ac_try='./conftest$ac_cv_exeext'
4071  { { case "(($ac_try" in
4072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073  *) ac_try_echo=$ac_try;;
4074esac
4075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4076$as_echo "$ac_try_echo"; } >&5
4077  (eval "$ac_try") 2>&5
4078  ac_status=$?
4079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4080  test $ac_status = 0; }; }; then
4081    cross_compiling=no
4082  else
4083    if test "$cross_compiling" = maybe; then
4084	cross_compiling=yes
4085    else
4086	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088as_fn_error $? "cannot run C compiled programs.
4089If you meant to cross compile, use \`--host'.
4090See \`config.log' for more details" "$LINENO" 5; }
4091    fi
4092  fi
4093fi
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4095$as_echo "$cross_compiling" >&6; }
4096
4097rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4098ac_clean_files=$ac_clean_files_save
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4100$as_echo_n "checking for suffix of object files... " >&6; }
4101if ${ac_cv_objext+:} false; then :
4102  $as_echo_n "(cached) " >&6
4103else
4104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105/* end confdefs.h.  */
4106
4107int
4108main ()
4109{
4110
4111  ;
4112  return 0;
4113}
4114_ACEOF
4115rm -f conftest.o conftest.obj
4116if { { ac_try="$ac_compile"
4117case "(($ac_try" in
4118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119  *) ac_try_echo=$ac_try;;
4120esac
4121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4122$as_echo "$ac_try_echo"; } >&5
4123  (eval "$ac_compile") 2>&5
4124  ac_status=$?
4125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126  test $ac_status = 0; }; then :
4127  for ac_file in conftest.o conftest.obj conftest.*; do
4128  test -f "$ac_file" || continue;
4129  case $ac_file in
4130    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4131    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4132       break;;
4133  esac
4134done
4135else
4136  $as_echo "$as_me: failed program was:" >&5
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
4139{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4141as_fn_error $? "cannot compute suffix of object files: cannot compile
4142See \`config.log' for more details" "$LINENO" 5; }
4143fi
4144rm -f conftest.$ac_cv_objext conftest.$ac_ext
4145fi
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4147$as_echo "$ac_cv_objext" >&6; }
4148OBJEXT=$ac_cv_objext
4149ac_objext=$OBJEXT
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4151$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4152if ${ac_cv_c_compiler_gnu+:} false; then :
4153  $as_echo_n "(cached) " >&6
4154else
4155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h.  */
4157
4158int
4159main ()
4160{
4161#ifndef __GNUC__
4162       choke me
4163#endif
4164
4165  ;
4166  return 0;
4167}
4168_ACEOF
4169if ac_fn_c_try_compile "$LINENO"; then :
4170  ac_compiler_gnu=yes
4171else
4172  ac_compiler_gnu=no
4173fi
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175ac_cv_c_compiler_gnu=$ac_compiler_gnu
4176
4177fi
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4179$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4180if test $ac_compiler_gnu = yes; then
4181  GCC=yes
4182else
4183  GCC=
4184fi
4185ac_test_CFLAGS=${CFLAGS+set}
4186ac_save_CFLAGS=$CFLAGS
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4188$as_echo_n "checking whether $CC accepts -g... " >&6; }
4189if ${ac_cv_prog_cc_g+:} false; then :
4190  $as_echo_n "(cached) " >&6
4191else
4192  ac_save_c_werror_flag=$ac_c_werror_flag
4193   ac_c_werror_flag=yes
4194   ac_cv_prog_cc_g=no
4195   CFLAGS="-g"
4196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197/* end confdefs.h.  */
4198
4199int
4200main ()
4201{
4202
4203  ;
4204  return 0;
4205}
4206_ACEOF
4207if ac_fn_c_try_compile "$LINENO"; then :
4208  ac_cv_prog_cc_g=yes
4209else
4210  CFLAGS=""
4211      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212/* end confdefs.h.  */
4213
4214int
4215main ()
4216{
4217
4218  ;
4219  return 0;
4220}
4221_ACEOF
4222if ac_fn_c_try_compile "$LINENO"; then :
4223
4224else
4225  ac_c_werror_flag=$ac_save_c_werror_flag
4226	 CFLAGS="-g"
4227	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h.  */
4229
4230int
4231main ()
4232{
4233
4234  ;
4235  return 0;
4236}
4237_ACEOF
4238if ac_fn_c_try_compile "$LINENO"; then :
4239  ac_cv_prog_cc_g=yes
4240fi
4241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242fi
4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244fi
4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246   ac_c_werror_flag=$ac_save_c_werror_flag
4247fi
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4249$as_echo "$ac_cv_prog_cc_g" >&6; }
4250if test "$ac_test_CFLAGS" = set; then
4251  CFLAGS=$ac_save_CFLAGS
4252elif test $ac_cv_prog_cc_g = yes; then
4253  if test "$GCC" = yes; then
4254    CFLAGS="-g -O2"
4255  else
4256    CFLAGS="-g"
4257  fi
4258else
4259  if test "$GCC" = yes; then
4260    CFLAGS="-O2"
4261  else
4262    CFLAGS=
4263  fi
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4266$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4267if ${ac_cv_prog_cc_c89+:} false; then :
4268  $as_echo_n "(cached) " >&6
4269else
4270  ac_cv_prog_cc_c89=no
4271ac_save_CC=$CC
4272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273/* end confdefs.h.  */
4274#include <stdarg.h>
4275#include <stdio.h>
4276struct stat;
4277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4278struct buf { int x; };
4279FILE * (*rcsopen) (struct buf *, struct stat *, int);
4280static char *e (p, i)
4281     char **p;
4282     int i;
4283{
4284  return p[i];
4285}
4286static char *f (char * (*g) (char **, int), char **p, ...)
4287{
4288  char *s;
4289  va_list v;
4290  va_start (v,p);
4291  s = g (p, va_arg (v,int));
4292  va_end (v);
4293  return s;
4294}
4295
4296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4297   function prototypes and stuff, but not '\xHH' hex character constants.
4298   These don't provoke an error unfortunately, instead are silently treated
4299   as 'x'.  The following induces an error, until -std is added to get
4300   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4301   array size at least.  It's necessary to write '\x00'==0 to get something
4302   that's true only with -std.  */
4303int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4304
4305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4306   inside strings and character constants.  */
4307#define FOO(x) 'x'
4308int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4309
4310int test (int i, double x);
4311struct s1 {int (*f) (int a);};
4312struct s2 {int (*f) (double a);};
4313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4314int argc;
4315char **argv;
4316int
4317main ()
4318{
4319return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4320  ;
4321  return 0;
4322}
4323_ACEOF
4324for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4325	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4326do
4327  CC="$ac_save_CC $ac_arg"
4328  if ac_fn_c_try_compile "$LINENO"; then :
4329  ac_cv_prog_cc_c89=$ac_arg
4330fi
4331rm -f core conftest.err conftest.$ac_objext
4332  test "x$ac_cv_prog_cc_c89" != "xno" && break
4333done
4334rm -f conftest.$ac_ext
4335CC=$ac_save_CC
4336
4337fi
4338# AC_CACHE_VAL
4339case "x$ac_cv_prog_cc_c89" in
4340  x)
4341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4342$as_echo "none needed" >&6; } ;;
4343  xno)
4344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4345$as_echo "unsupported" >&6; } ;;
4346  *)
4347    CC="$CC $ac_cv_prog_cc_c89"
4348    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4349$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4350esac
4351if test "x$ac_cv_prog_cc_c89" != xno; then :
4352
4353fi
4354
4355ac_ext=c
4356ac_cpp='$CPP $CPPFLAGS'
4357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360
4361ac_ext=c
4362ac_cpp='$CPP $CPPFLAGS'
4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4367$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4368if ${am_cv_prog_cc_c_o+:} false; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372/* end confdefs.h.  */
4373
4374int
4375main ()
4376{
4377
4378  ;
4379  return 0;
4380}
4381_ACEOF
4382  # Make sure it works both with $CC and with simple cc.
4383  # Following AC_PROG_CC_C_O, we do the test twice because some
4384  # compilers refuse to overwrite an existing .o file with -o,
4385  # though they will create one.
4386  am_cv_prog_cc_c_o=yes
4387  for am_i in 1 2; do
4388    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4389   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } \
4393         && test -f conftest2.$ac_objext; then
4394      : OK
4395    else
4396      am_cv_prog_cc_c_o=no
4397      break
4398    fi
4399  done
4400  rm -f core conftest*
4401  unset am_i
4402fi
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4404$as_echo "$am_cv_prog_cc_c_o" >&6; }
4405if test "$am_cv_prog_cc_c_o" != yes; then
4406   # Losing compiler, so override with the script.
4407   # FIXME: It is wrong to rewrite CC.
4408   # But if we don't then we get into trouble of one sort or another.
4409   # A longer-term fix would be to have automake use am__CC in this case,
4410   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4411   CC="$am_aux_dir/compile $CC"
4412fi
4413ac_ext=c
4414ac_cpp='$CPP $CPPFLAGS'
4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418
4419DEPDIR="${am__leading_dot}deps"
4420
4421ac_config_commands="$ac_config_commands depfiles"
4422
4423
4424am_make=${MAKE-make}
4425cat > confinc << 'END'
4426am__doit:
4427	@echo this is the am__doit target
4428.PHONY: am__doit
4429END
4430# If we don't find an include directive, just comment out the code.
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4432$as_echo_n "checking for style of include used by $am_make... " >&6; }
4433am__include="#"
4434am__quote=
4435_am_result=none
4436# First try GNU make style include.
4437echo "include confinc" > confmf
4438# Ignore all kinds of additional output from 'make'.
4439case `$am_make -s -f confmf 2> /dev/null` in #(
4440*the\ am__doit\ target*)
4441  am__include=include
4442  am__quote=
4443  _am_result=GNU
4444  ;;
4445esac
4446# Now try BSD make style include.
4447if test "$am__include" = "#"; then
4448   echo '.include "confinc"' > confmf
4449   case `$am_make -s -f confmf 2> /dev/null` in #(
4450   *the\ am__doit\ target*)
4451     am__include=.include
4452     am__quote="\""
4453     _am_result=BSD
4454     ;;
4455   esac
4456fi
4457
4458
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4460$as_echo "$_am_result" >&6; }
4461rm -f confinc confmf
4462
4463# Check whether --enable-dependency-tracking was given.
4464if test "${enable_dependency_tracking+set}" = set; then :
4465  enableval=$enable_dependency_tracking;
4466fi
4467
4468if test "x$enable_dependency_tracking" != xno; then
4469  am_depcomp="$ac_aux_dir/depcomp"
4470  AMDEPBACKSLASH='\'
4471  am__nodep='_no'
4472fi
4473 if test "x$enable_dependency_tracking" != xno; then
4474  AMDEP_TRUE=
4475  AMDEP_FALSE='#'
4476else
4477  AMDEP_TRUE='#'
4478  AMDEP_FALSE=
4479fi
4480
4481
4482
4483depcc="$CC"   am_compiler_list=
4484
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4486$as_echo_n "checking dependency style of $depcc... " >&6; }
4487if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4488  $as_echo_n "(cached) " >&6
4489else
4490  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4491  # We make a subdir and do the tests there.  Otherwise we can end up
4492  # making bogus files that we don't know about and never remove.  For
4493  # instance it was reported that on HP-UX the gcc test will end up
4494  # making a dummy file named 'D' -- because '-MD' means "put the output
4495  # in D".
4496  rm -rf conftest.dir
4497  mkdir conftest.dir
4498  # Copy depcomp to subdir because otherwise we won't find it if we're
4499  # using a relative directory.
4500  cp "$am_depcomp" conftest.dir
4501  cd conftest.dir
4502  # We will build objects and dependencies in a subdirectory because
4503  # it helps to detect inapplicable dependency modes.  For instance
4504  # both Tru64's cc and ICC support -MD to output dependencies as a
4505  # side effect of compilation, but ICC will put the dependencies in
4506  # the current directory while Tru64 will put them in the object
4507  # directory.
4508  mkdir sub
4509
4510  am_cv_CC_dependencies_compiler_type=none
4511  if test "$am_compiler_list" = ""; then
4512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4513  fi
4514  am__universal=false
4515  case " $depcc " in #(
4516     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4517     esac
4518
4519  for depmode in $am_compiler_list; do
4520    # Setup a source with many dependencies, because some compilers
4521    # like to wrap large dependency lists on column 80 (with \), and
4522    # we should not choose a depcomp mode which is confused by this.
4523    #
4524    # We need to recreate these files for each test, as the compiler may
4525    # overwrite some of them when testing with obscure command lines.
4526    # This happens at least with the AIX C compiler.
4527    : > sub/conftest.c
4528    for i in 1 2 3 4 5 6; do
4529      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4530      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4531      # Solaris 10 /bin/sh.
4532      echo '/* dummy */' > sub/conftst$i.h
4533    done
4534    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4535
4536    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4537    # mode.  It turns out that the SunPro C++ compiler does not properly
4538    # handle '-M -o', and we need to detect this.  Also, some Intel
4539    # versions had trouble with output in subdirs.
4540    am__obj=sub/conftest.${OBJEXT-o}
4541    am__minus_obj="-o $am__obj"
4542    case $depmode in
4543    gcc)
4544      # This depmode causes a compiler race in universal mode.
4545      test "$am__universal" = false || continue
4546      ;;
4547    nosideeffect)
4548      # After this tag, mechanisms are not by side-effect, so they'll
4549      # only be used when explicitly requested.
4550      if test "x$enable_dependency_tracking" = xyes; then
4551	continue
4552      else
4553	break
4554      fi
4555      ;;
4556    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4557      # This compiler won't grok '-c -o', but also, the minuso test has
4558      # not run yet.  These depmodes are late enough in the game, and
4559      # so weak that their functioning should not be impacted.
4560      am__obj=conftest.${OBJEXT-o}
4561      am__minus_obj=
4562      ;;
4563    none) break ;;
4564    esac
4565    if depmode=$depmode \
4566       source=sub/conftest.c object=$am__obj \
4567       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4568       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4569         >/dev/null 2>conftest.err &&
4570       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4571       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4572       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4573       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4574      # icc doesn't choke on unknown options, it will just issue warnings
4575      # or remarks (even with -Werror).  So we grep stderr for any message
4576      # that says an option was ignored or not supported.
4577      # When given -MP, icc 7.0 and 7.1 complain thusly:
4578      #   icc: Command line warning: ignoring option '-M'; no argument required
4579      # The diagnosis changed in icc 8.0:
4580      #   icc: Command line remark: option '-MP' not supported
4581      if (grep 'ignoring option' conftest.err ||
4582          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4583        am_cv_CC_dependencies_compiler_type=$depmode
4584        break
4585      fi
4586    fi
4587  done
4588
4589  cd ..
4590  rm -rf conftest.dir
4591else
4592  am_cv_CC_dependencies_compiler_type=none
4593fi
4594
4595fi
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4597$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4598CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4599
4600 if
4601  test "x$enable_dependency_tracking" != xno \
4602  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4603  am__fastdepCC_TRUE=
4604  am__fastdepCC_FALSE='#'
4605else
4606  am__fastdepCC_TRUE='#'
4607  am__fastdepCC_FALSE=
4608fi
4609
4610
4611ac_ext=cpp
4612ac_cpp='$CXXCPP $CPPFLAGS'
4613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4616if test -z "$CXX"; then
4617  if test -n "$CCC"; then
4618    CXX=$CCC
4619  else
4620    if test -n "$ac_tool_prefix"; then
4621  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4622  do
4623    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626$as_echo_n "checking for $ac_word... " >&6; }
4627if ${ac_cv_prog_CXX+:} false; then :
4628  $as_echo_n "(cached) " >&6
4629else
4630  if test -n "$CXX"; then
4631  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4632else
4633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636  IFS=$as_save_IFS
4637  test -z "$as_dir" && as_dir=.
4638    for ac_exec_ext in '' $ac_executable_extensions; do
4639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642    break 2
4643  fi
4644done
4645  done
4646IFS=$as_save_IFS
4647
4648fi
4649fi
4650CXX=$ac_cv_prog_CXX
4651if test -n "$CXX"; then
4652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4653$as_echo "$CXX" >&6; }
4654else
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656$as_echo "no" >&6; }
4657fi
4658
4659
4660    test -n "$CXX" && break
4661  done
4662fi
4663if test -z "$CXX"; then
4664  ac_ct_CXX=$CXX
4665  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4666do
4667  # Extract the first word of "$ac_prog", so it can be a program name with args.
4668set dummy $ac_prog; ac_word=$2
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670$as_echo_n "checking for $ac_word... " >&6; }
4671if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4672  $as_echo_n "(cached) " >&6
4673else
4674  if test -n "$ac_ct_CXX"; then
4675  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4676else
4677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680  IFS=$as_save_IFS
4681  test -z "$as_dir" && as_dir=.
4682    for ac_exec_ext in '' $ac_executable_extensions; do
4683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684    ac_cv_prog_ac_ct_CXX="$ac_prog"
4685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686    break 2
4687  fi
4688done
4689  done
4690IFS=$as_save_IFS
4691
4692fi
4693fi
4694ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4695if test -n "$ac_ct_CXX"; then
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4697$as_echo "$ac_ct_CXX" >&6; }
4698else
4699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700$as_echo "no" >&6; }
4701fi
4702
4703
4704  test -n "$ac_ct_CXX" && break
4705done
4706
4707  if test "x$ac_ct_CXX" = x; then
4708    CXX="g++"
4709  else
4710    case $cross_compiling:$ac_tool_warned in
4711yes:)
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4714ac_tool_warned=yes ;;
4715esac
4716    CXX=$ac_ct_CXX
4717  fi
4718fi
4719
4720  fi
4721fi
4722# Provide some information about the compiler.
4723$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4724set X $ac_compile
4725ac_compiler=$2
4726for ac_option in --version -v -V -qversion; do
4727  { { ac_try="$ac_compiler $ac_option >&5"
4728case "(($ac_try" in
4729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730  *) ac_try_echo=$ac_try;;
4731esac
4732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4733$as_echo "$ac_try_echo"; } >&5
4734  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4735  ac_status=$?
4736  if test -s conftest.err; then
4737    sed '10a\
4738... rest of stderr output deleted ...
4739         10q' conftest.err >conftest.er1
4740    cat conftest.er1 >&5
4741  fi
4742  rm -f conftest.er1 conftest.err
4743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4744  test $ac_status = 0; }
4745done
4746
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4748$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4749if ${ac_cv_cxx_compiler_gnu+:} false; then :
4750  $as_echo_n "(cached) " >&6
4751else
4752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753/* end confdefs.h.  */
4754
4755int
4756main ()
4757{
4758#ifndef __GNUC__
4759       choke me
4760#endif
4761
4762  ;
4763  return 0;
4764}
4765_ACEOF
4766if ac_fn_cxx_try_compile "$LINENO"; then :
4767  ac_compiler_gnu=yes
4768else
4769  ac_compiler_gnu=no
4770fi
4771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4773
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4776$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4777if test $ac_compiler_gnu = yes; then
4778  GXX=yes
4779else
4780  GXX=
4781fi
4782ac_test_CXXFLAGS=${CXXFLAGS+set}
4783ac_save_CXXFLAGS=$CXXFLAGS
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4785$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4786if ${ac_cv_prog_cxx_g+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4790   ac_cxx_werror_flag=yes
4791   ac_cv_prog_cxx_g=no
4792   CXXFLAGS="-g"
4793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h.  */
4795
4796int
4797main ()
4798{
4799
4800  ;
4801  return 0;
4802}
4803_ACEOF
4804if ac_fn_cxx_try_compile "$LINENO"; then :
4805  ac_cv_prog_cxx_g=yes
4806else
4807  CXXFLAGS=""
4808      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h.  */
4810
4811int
4812main ()
4813{
4814
4815  ;
4816  return 0;
4817}
4818_ACEOF
4819if ac_fn_cxx_try_compile "$LINENO"; then :
4820
4821else
4822  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4823	 CXXFLAGS="-g"
4824	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825/* end confdefs.h.  */
4826
4827int
4828main ()
4829{
4830
4831  ;
4832  return 0;
4833}
4834_ACEOF
4835if ac_fn_cxx_try_compile "$LINENO"; then :
4836  ac_cv_prog_cxx_g=yes
4837fi
4838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839fi
4840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841fi
4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4844fi
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4846$as_echo "$ac_cv_prog_cxx_g" >&6; }
4847if test "$ac_test_CXXFLAGS" = set; then
4848  CXXFLAGS=$ac_save_CXXFLAGS
4849elif test $ac_cv_prog_cxx_g = yes; then
4850  if test "$GXX" = yes; then
4851    CXXFLAGS="-g -O2"
4852  else
4853    CXXFLAGS="-g"
4854  fi
4855else
4856  if test "$GXX" = yes; then
4857    CXXFLAGS="-O2"
4858  else
4859    CXXFLAGS=
4860  fi
4861fi
4862ac_ext=c
4863ac_cpp='$CPP $CPPFLAGS'
4864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867
4868depcc="$CXX"  am_compiler_list=
4869
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4871$as_echo_n "checking dependency style of $depcc... " >&6; }
4872if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4873  $as_echo_n "(cached) " >&6
4874else
4875  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4876  # We make a subdir and do the tests there.  Otherwise we can end up
4877  # making bogus files that we don't know about and never remove.  For
4878  # instance it was reported that on HP-UX the gcc test will end up
4879  # making a dummy file named 'D' -- because '-MD' means "put the output
4880  # in D".
4881  rm -rf conftest.dir
4882  mkdir conftest.dir
4883  # Copy depcomp to subdir because otherwise we won't find it if we're
4884  # using a relative directory.
4885  cp "$am_depcomp" conftest.dir
4886  cd conftest.dir
4887  # We will build objects and dependencies in a subdirectory because
4888  # it helps to detect inapplicable dependency modes.  For instance
4889  # both Tru64's cc and ICC support -MD to output dependencies as a
4890  # side effect of compilation, but ICC will put the dependencies in
4891  # the current directory while Tru64 will put them in the object
4892  # directory.
4893  mkdir sub
4894
4895  am_cv_CXX_dependencies_compiler_type=none
4896  if test "$am_compiler_list" = ""; then
4897     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4898  fi
4899  am__universal=false
4900  case " $depcc " in #(
4901     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4902     esac
4903
4904  for depmode in $am_compiler_list; do
4905    # Setup a source with many dependencies, because some compilers
4906    # like to wrap large dependency lists on column 80 (with \), and
4907    # we should not choose a depcomp mode which is confused by this.
4908    #
4909    # We need to recreate these files for each test, as the compiler may
4910    # overwrite some of them when testing with obscure command lines.
4911    # This happens at least with the AIX C compiler.
4912    : > sub/conftest.c
4913    for i in 1 2 3 4 5 6; do
4914      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4915      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4916      # Solaris 10 /bin/sh.
4917      echo '/* dummy */' > sub/conftst$i.h
4918    done
4919    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4920
4921    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4922    # mode.  It turns out that the SunPro C++ compiler does not properly
4923    # handle '-M -o', and we need to detect this.  Also, some Intel
4924    # versions had trouble with output in subdirs.
4925    am__obj=sub/conftest.${OBJEXT-o}
4926    am__minus_obj="-o $am__obj"
4927    case $depmode in
4928    gcc)
4929      # This depmode causes a compiler race in universal mode.
4930      test "$am__universal" = false || continue
4931      ;;
4932    nosideeffect)
4933      # After this tag, mechanisms are not by side-effect, so they'll
4934      # only be used when explicitly requested.
4935      if test "x$enable_dependency_tracking" = xyes; then
4936	continue
4937      else
4938	break
4939      fi
4940      ;;
4941    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4942      # This compiler won't grok '-c -o', but also, the minuso test has
4943      # not run yet.  These depmodes are late enough in the game, and
4944      # so weak that their functioning should not be impacted.
4945      am__obj=conftest.${OBJEXT-o}
4946      am__minus_obj=
4947      ;;
4948    none) break ;;
4949    esac
4950    if depmode=$depmode \
4951       source=sub/conftest.c object=$am__obj \
4952       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4954         >/dev/null 2>conftest.err &&
4955       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4956       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4957       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4958       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4959      # icc doesn't choke on unknown options, it will just issue warnings
4960      # or remarks (even with -Werror).  So we grep stderr for any message
4961      # that says an option was ignored or not supported.
4962      # When given -MP, icc 7.0 and 7.1 complain thusly:
4963      #   icc: Command line warning: ignoring option '-M'; no argument required
4964      # The diagnosis changed in icc 8.0:
4965      #   icc: Command line remark: option '-MP' not supported
4966      if (grep 'ignoring option' conftest.err ||
4967          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4968        am_cv_CXX_dependencies_compiler_type=$depmode
4969        break
4970      fi
4971    fi
4972  done
4973
4974  cd ..
4975  rm -rf conftest.dir
4976else
4977  am_cv_CXX_dependencies_compiler_type=none
4978fi
4979
4980fi
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4982$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4983CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4984
4985 if
4986  test "x$enable_dependency_tracking" != xno \
4987  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4988  am__fastdepCXX_TRUE=
4989  am__fastdepCXX_FALSE='#'
4990else
4991  am__fastdepCXX_TRUE='#'
4992  am__fastdepCXX_FALSE=
4993fi
4994
4995
4996CFLAGS=$save_CFLAGS
4997
4998
4999
5000
5001
5002# By default we simply use the C compiler to build assembly code.
5003
5004test "${CCAS+set}" = set || CCAS=$CC
5005test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5006
5007
5008
5009depcc="$CCAS"   am_compiler_list=
5010
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5012$as_echo_n "checking dependency style of $depcc... " >&6; }
5013if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5017  # We make a subdir and do the tests there.  Otherwise we can end up
5018  # making bogus files that we don't know about and never remove.  For
5019  # instance it was reported that on HP-UX the gcc test will end up
5020  # making a dummy file named 'D' -- because '-MD' means "put the output
5021  # in D".
5022  rm -rf conftest.dir
5023  mkdir conftest.dir
5024  # Copy depcomp to subdir because otherwise we won't find it if we're
5025  # using a relative directory.
5026  cp "$am_depcomp" conftest.dir
5027  cd conftest.dir
5028  # We will build objects and dependencies in a subdirectory because
5029  # it helps to detect inapplicable dependency modes.  For instance
5030  # both Tru64's cc and ICC support -MD to output dependencies as a
5031  # side effect of compilation, but ICC will put the dependencies in
5032  # the current directory while Tru64 will put them in the object
5033  # directory.
5034  mkdir sub
5035
5036  am_cv_CCAS_dependencies_compiler_type=none
5037  if test "$am_compiler_list" = ""; then
5038     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5039  fi
5040  am__universal=false
5041
5042
5043  for depmode in $am_compiler_list; do
5044    # Setup a source with many dependencies, because some compilers
5045    # like to wrap large dependency lists on column 80 (with \), and
5046    # we should not choose a depcomp mode which is confused by this.
5047    #
5048    # We need to recreate these files for each test, as the compiler may
5049    # overwrite some of them when testing with obscure command lines.
5050    # This happens at least with the AIX C compiler.
5051    : > sub/conftest.c
5052    for i in 1 2 3 4 5 6; do
5053      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5054      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5055      # Solaris 10 /bin/sh.
5056      echo '/* dummy */' > sub/conftst$i.h
5057    done
5058    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5059
5060    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5061    # mode.  It turns out that the SunPro C++ compiler does not properly
5062    # handle '-M -o', and we need to detect this.  Also, some Intel
5063    # versions had trouble with output in subdirs.
5064    am__obj=sub/conftest.${OBJEXT-o}
5065    am__minus_obj="-o $am__obj"
5066    case $depmode in
5067    gcc)
5068      # This depmode causes a compiler race in universal mode.
5069      test "$am__universal" = false || continue
5070      ;;
5071    nosideeffect)
5072      # After this tag, mechanisms are not by side-effect, so they'll
5073      # only be used when explicitly requested.
5074      if test "x$enable_dependency_tracking" = xyes; then
5075	continue
5076      else
5077	break
5078      fi
5079      ;;
5080    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5081      # This compiler won't grok '-c -o', but also, the minuso test has
5082      # not run yet.  These depmodes are late enough in the game, and
5083      # so weak that their functioning should not be impacted.
5084      am__obj=conftest.${OBJEXT-o}
5085      am__minus_obj=
5086      ;;
5087    none) break ;;
5088    esac
5089    if depmode=$depmode \
5090       source=sub/conftest.c object=$am__obj \
5091       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5092       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5093         >/dev/null 2>conftest.err &&
5094       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5095       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5096       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5097       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5098      # icc doesn't choke on unknown options, it will just issue warnings
5099      # or remarks (even with -Werror).  So we grep stderr for any message
5100      # that says an option was ignored or not supported.
5101      # When given -MP, icc 7.0 and 7.1 complain thusly:
5102      #   icc: Command line warning: ignoring option '-M'; no argument required
5103      # The diagnosis changed in icc 8.0:
5104      #   icc: Command line remark: option '-MP' not supported
5105      if (grep 'ignoring option' conftest.err ||
5106          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5107        am_cv_CCAS_dependencies_compiler_type=$depmode
5108        break
5109      fi
5110    fi
5111  done
5112
5113  cd ..
5114  rm -rf conftest.dir
5115else
5116  am_cv_CCAS_dependencies_compiler_type=none
5117fi
5118
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5121$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5122CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5123
5124 if
5125  test "x$enable_dependency_tracking" != xno \
5126  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5127  am__fastdepCCAS_TRUE=
5128  am__fastdepCCAS_FALSE='#'
5129else
5130  am__fastdepCCAS_TRUE='#'
5131  am__fastdepCCAS_FALSE=
5132fi
5133
5134
5135
5136case `pwd` in
5137  *\ * | *\	*)
5138    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5139$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5140esac
5141
5142
5143
5144macro_version='2.4.6'
5145macro_revision='2.4.6'
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159ltmain=$ac_aux_dir/ltmain.sh
5160
5161# Backslashify metacharacters that are still active within
5162# double-quoted strings.
5163sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5164
5165# Same as above, but do not quote variable references.
5166double_quote_subst='s/\(["`\\]\)/\\\1/g'
5167
5168# Sed substitution to delay expansion of an escaped shell variable in a
5169# double_quote_subst'ed string.
5170delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5171
5172# Sed substitution to delay expansion of an escaped single quote.
5173delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5174
5175# Sed substitution to avoid accidental globbing in evaled expressions
5176no_glob_subst='s/\*/\\\*/g'
5177
5178ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5179ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5180ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5181
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5183$as_echo_n "checking how to print strings... " >&6; }
5184# Test print first, because it will be a builtin if present.
5185if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5186   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5187  ECHO='print -r --'
5188elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5189  ECHO='printf %s\n'
5190else
5191  # Use this function as a fallback that always works.
5192  func_fallback_echo ()
5193  {
5194    eval 'cat <<_LTECHO_EOF
5195$1
5196_LTECHO_EOF'
5197  }
5198  ECHO='func_fallback_echo'
5199fi
5200
5201# func_echo_all arg...
5202# Invoke $ECHO with all args, space-separated.
5203func_echo_all ()
5204{
5205    $ECHO ""
5206}
5207
5208case $ECHO in
5209  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5210$as_echo "printf" >&6; } ;;
5211  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5212$as_echo "print -r" >&6; } ;;
5213  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5214$as_echo "cat" >&6; } ;;
5215esac
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5231$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5232if ${ac_cv_path_SED+:} false; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5236     for ac_i in 1 2 3 4 5 6 7; do
5237       ac_script="$ac_script$as_nl$ac_script"
5238     done
5239     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5240     { ac_script=; unset ac_script;}
5241     if test -z "$SED"; then
5242  ac_path_SED_found=false
5243  # Loop through the user's path and test for each of PROGNAME-LIST
5244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247  IFS=$as_save_IFS
5248  test -z "$as_dir" && as_dir=.
5249    for ac_prog in sed gsed; do
5250    for ac_exec_ext in '' $ac_executable_extensions; do
5251      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5252      as_fn_executable_p "$ac_path_SED" || continue
5253# Check for GNU ac_path_SED and select it if it is found.
5254  # Check for GNU $ac_path_SED
5255case `"$ac_path_SED" --version 2>&1` in
5256*GNU*)
5257  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5258*)
5259  ac_count=0
5260  $as_echo_n 0123456789 >"conftest.in"
5261  while :
5262  do
5263    cat "conftest.in" "conftest.in" >"conftest.tmp"
5264    mv "conftest.tmp" "conftest.in"
5265    cp "conftest.in" "conftest.nl"
5266    $as_echo '' >> "conftest.nl"
5267    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269    as_fn_arith $ac_count + 1 && ac_count=$as_val
5270    if test $ac_count -gt ${ac_path_SED_max-0}; then
5271      # Best one so far, save it but keep looking for a better one
5272      ac_cv_path_SED="$ac_path_SED"
5273      ac_path_SED_max=$ac_count
5274    fi
5275    # 10*(2^10) chars as input seems more than enough
5276    test $ac_count -gt 10 && break
5277  done
5278  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279esac
5280
5281      $ac_path_SED_found && break 3
5282    done
5283  done
5284  done
5285IFS=$as_save_IFS
5286  if test -z "$ac_cv_path_SED"; then
5287    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5288  fi
5289else
5290  ac_cv_path_SED=$SED
5291fi
5292
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5295$as_echo "$ac_cv_path_SED" >&6; }
5296 SED="$ac_cv_path_SED"
5297  rm -f conftest.sed
5298
5299test -z "$SED" && SED=sed
5300Xsed="$SED -e 1s/^X//"
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5313$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5314if ${ac_cv_path_GREP+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  if test -z "$GREP"; then
5318  ac_path_GREP_found=false
5319  # Loop through the user's path and test for each of PROGNAME-LIST
5320  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5322do
5323  IFS=$as_save_IFS
5324  test -z "$as_dir" && as_dir=.
5325    for ac_prog in grep ggrep; do
5326    for ac_exec_ext in '' $ac_executable_extensions; do
5327      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5328      as_fn_executable_p "$ac_path_GREP" || continue
5329# Check for GNU ac_path_GREP and select it if it is found.
5330  # Check for GNU $ac_path_GREP
5331case `"$ac_path_GREP" --version 2>&1` in
5332*GNU*)
5333  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5334*)
5335  ac_count=0
5336  $as_echo_n 0123456789 >"conftest.in"
5337  while :
5338  do
5339    cat "conftest.in" "conftest.in" >"conftest.tmp"
5340    mv "conftest.tmp" "conftest.in"
5341    cp "conftest.in" "conftest.nl"
5342    $as_echo 'GREP' >> "conftest.nl"
5343    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5344    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5345    as_fn_arith $ac_count + 1 && ac_count=$as_val
5346    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5347      # Best one so far, save it but keep looking for a better one
5348      ac_cv_path_GREP="$ac_path_GREP"
5349      ac_path_GREP_max=$ac_count
5350    fi
5351    # 10*(2^10) chars as input seems more than enough
5352    test $ac_count -gt 10 && break
5353  done
5354  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5355esac
5356
5357      $ac_path_GREP_found && break 3
5358    done
5359  done
5360  done
5361IFS=$as_save_IFS
5362  if test -z "$ac_cv_path_GREP"; then
5363    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5364  fi
5365else
5366  ac_cv_path_GREP=$GREP
5367fi
5368
5369fi
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5371$as_echo "$ac_cv_path_GREP" >&6; }
5372 GREP="$ac_cv_path_GREP"
5373
5374
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5376$as_echo_n "checking for egrep... " >&6; }
5377if ${ac_cv_path_EGREP+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5381   then ac_cv_path_EGREP="$GREP -E"
5382   else
5383     if test -z "$EGREP"; then
5384  ac_path_EGREP_found=false
5385  # Loop through the user's path and test for each of PROGNAME-LIST
5386  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5388do
5389  IFS=$as_save_IFS
5390  test -z "$as_dir" && as_dir=.
5391    for ac_prog in egrep; do
5392    for ac_exec_ext in '' $ac_executable_extensions; do
5393      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5394      as_fn_executable_p "$ac_path_EGREP" || continue
5395# Check for GNU ac_path_EGREP and select it if it is found.
5396  # Check for GNU $ac_path_EGREP
5397case `"$ac_path_EGREP" --version 2>&1` in
5398*GNU*)
5399  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5400*)
5401  ac_count=0
5402  $as_echo_n 0123456789 >"conftest.in"
5403  while :
5404  do
5405    cat "conftest.in" "conftest.in" >"conftest.tmp"
5406    mv "conftest.tmp" "conftest.in"
5407    cp "conftest.in" "conftest.nl"
5408    $as_echo 'EGREP' >> "conftest.nl"
5409    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5410    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5411    as_fn_arith $ac_count + 1 && ac_count=$as_val
5412    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5413      # Best one so far, save it but keep looking for a better one
5414      ac_cv_path_EGREP="$ac_path_EGREP"
5415      ac_path_EGREP_max=$ac_count
5416    fi
5417    # 10*(2^10) chars as input seems more than enough
5418    test $ac_count -gt 10 && break
5419  done
5420  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5421esac
5422
5423      $ac_path_EGREP_found && break 3
5424    done
5425  done
5426  done
5427IFS=$as_save_IFS
5428  if test -z "$ac_cv_path_EGREP"; then
5429    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5430  fi
5431else
5432  ac_cv_path_EGREP=$EGREP
5433fi
5434
5435   fi
5436fi
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5438$as_echo "$ac_cv_path_EGREP" >&6; }
5439 EGREP="$ac_cv_path_EGREP"
5440
5441
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5443$as_echo_n "checking for fgrep... " >&6; }
5444if ${ac_cv_path_FGREP+:} false; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5448   then ac_cv_path_FGREP="$GREP -F"
5449   else
5450     if test -z "$FGREP"; then
5451  ac_path_FGREP_found=false
5452  # Loop through the user's path and test for each of PROGNAME-LIST
5453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5455do
5456  IFS=$as_save_IFS
5457  test -z "$as_dir" && as_dir=.
5458    for ac_prog in fgrep; do
5459    for ac_exec_ext in '' $ac_executable_extensions; do
5460      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5461      as_fn_executable_p "$ac_path_FGREP" || continue
5462# Check for GNU ac_path_FGREP and select it if it is found.
5463  # Check for GNU $ac_path_FGREP
5464case `"$ac_path_FGREP" --version 2>&1` in
5465*GNU*)
5466  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5467*)
5468  ac_count=0
5469  $as_echo_n 0123456789 >"conftest.in"
5470  while :
5471  do
5472    cat "conftest.in" "conftest.in" >"conftest.tmp"
5473    mv "conftest.tmp" "conftest.in"
5474    cp "conftest.in" "conftest.nl"
5475    $as_echo 'FGREP' >> "conftest.nl"
5476    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5477    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5478    as_fn_arith $ac_count + 1 && ac_count=$as_val
5479    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5480      # Best one so far, save it but keep looking for a better one
5481      ac_cv_path_FGREP="$ac_path_FGREP"
5482      ac_path_FGREP_max=$ac_count
5483    fi
5484    # 10*(2^10) chars as input seems more than enough
5485    test $ac_count -gt 10 && break
5486  done
5487  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5488esac
5489
5490      $ac_path_FGREP_found && break 3
5491    done
5492  done
5493  done
5494IFS=$as_save_IFS
5495  if test -z "$ac_cv_path_FGREP"; then
5496    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5497  fi
5498else
5499  ac_cv_path_FGREP=$FGREP
5500fi
5501
5502   fi
5503fi
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5505$as_echo "$ac_cv_path_FGREP" >&6; }
5506 FGREP="$ac_cv_path_FGREP"
5507
5508
5509test -z "$GREP" && GREP=grep
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529# Check whether --with-gnu-ld was given.
5530if test "${with_gnu_ld+set}" = set; then :
5531  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5532else
5533  with_gnu_ld=no
5534fi
5535
5536ac_prog=ld
5537if test yes = "$GCC"; then
5538  # Check if gcc -print-prog-name=ld gives a path.
5539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5540$as_echo_n "checking for ld used by $CC... " >&6; }
5541  case $host in
5542  *-*-mingw*)
5543    # gcc leaves a trailing carriage return, which upsets mingw
5544    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5545  *)
5546    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5547  esac
5548  case $ac_prog in
5549    # Accept absolute paths.
5550    [\\/]* | ?:[\\/]*)
5551      re_direlt='/[^/][^/]*/\.\./'
5552      # Canonicalize the pathname of ld
5553      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5554      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5555	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5556      done
5557      test -z "$LD" && LD=$ac_prog
5558      ;;
5559  "")
5560    # If it fails, then pretend we aren't using GCC.
5561    ac_prog=ld
5562    ;;
5563  *)
5564    # If it is relative, then search for the first ld in PATH.
5565    with_gnu_ld=unknown
5566    ;;
5567  esac
5568elif test yes = "$with_gnu_ld"; then
5569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5570$as_echo_n "checking for GNU ld... " >&6; }
5571else
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5573$as_echo_n "checking for non-GNU ld... " >&6; }
5574fi
5575if ${lt_cv_path_LD+:} false; then :
5576  $as_echo_n "(cached) " >&6
5577else
5578  if test -z "$LD"; then
5579  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5580  for ac_dir in $PATH; do
5581    IFS=$lt_save_ifs
5582    test -z "$ac_dir" && ac_dir=.
5583    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5584      lt_cv_path_LD=$ac_dir/$ac_prog
5585      # Check to see if the program is GNU ld.  I'd rather use --version,
5586      # but apparently some variants of GNU ld only accept -v.
5587      # Break only if it was the GNU/non-GNU ld that we prefer.
5588      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5589      *GNU* | *'with BFD'*)
5590	test no != "$with_gnu_ld" && break
5591	;;
5592      *)
5593	test yes != "$with_gnu_ld" && break
5594	;;
5595      esac
5596    fi
5597  done
5598  IFS=$lt_save_ifs
5599else
5600  lt_cv_path_LD=$LD # Let the user override the test with a path.
5601fi
5602fi
5603
5604LD=$lt_cv_path_LD
5605if test -n "$LD"; then
5606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5607$as_echo "$LD" >&6; }
5608else
5609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610$as_echo "no" >&6; }
5611fi
5612test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5614$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5615if ${lt_cv_prog_gnu_ld+:} false; then :
5616  $as_echo_n "(cached) " >&6
5617else
5618  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5619case `$LD -v 2>&1 </dev/null` in
5620*GNU* | *'with BFD'*)
5621  lt_cv_prog_gnu_ld=yes
5622  ;;
5623*)
5624  lt_cv_prog_gnu_ld=no
5625  ;;
5626esac
5627fi
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5629$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5630with_gnu_ld=$lt_cv_prog_gnu_ld
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5641$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5642if ${lt_cv_path_NM+:} false; then :
5643  $as_echo_n "(cached) " >&6
5644else
5645  if test -n "$NM"; then
5646  # Let the user override the test.
5647  lt_cv_path_NM=$NM
5648else
5649  lt_nm_to_check=${ac_tool_prefix}nm
5650  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5651    lt_nm_to_check="$lt_nm_to_check nm"
5652  fi
5653  for lt_tmp_nm in $lt_nm_to_check; do
5654    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5655    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5656      IFS=$lt_save_ifs
5657      test -z "$ac_dir" && ac_dir=.
5658      tmp_nm=$ac_dir/$lt_tmp_nm
5659      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5660	# Check to see if the nm accepts a BSD-compat flag.
5661	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5662	#   nm: unknown option "B" ignored
5663	# Tru64's nm complains that /dev/null is an invalid object file
5664	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5665	case $build_os in
5666	mingw*) lt_bad_file=conftest.nm/nofile ;;
5667	*) lt_bad_file=/dev/null ;;
5668	esac
5669	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5670	*$lt_bad_file* | *'Invalid file or object type'*)
5671	  lt_cv_path_NM="$tmp_nm -B"
5672	  break 2
5673	  ;;
5674	*)
5675	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5676	  */dev/null*)
5677	    lt_cv_path_NM="$tmp_nm -p"
5678	    break 2
5679	    ;;
5680	  *)
5681	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5682	    continue # so that we can try to find one that supports BSD flags
5683	    ;;
5684	  esac
5685	  ;;
5686	esac
5687      fi
5688    done
5689    IFS=$lt_save_ifs
5690  done
5691  : ${lt_cv_path_NM=no}
5692fi
5693fi
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5695$as_echo "$lt_cv_path_NM" >&6; }
5696if test no != "$lt_cv_path_NM"; then
5697  NM=$lt_cv_path_NM
5698else
5699  # Didn't find any BSD compatible name lister, look for dumpbin.
5700  if test -n "$DUMPBIN"; then :
5701    # Let the user override the test.
5702  else
5703    if test -n "$ac_tool_prefix"; then
5704  for ac_prog in dumpbin "link -dump"
5705  do
5706    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709$as_echo_n "checking for $ac_word... " >&6; }
5710if ${ac_cv_prog_DUMPBIN+:} false; then :
5711  $as_echo_n "(cached) " >&6
5712else
5713  if test -n "$DUMPBIN"; then
5714  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5715else
5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719  IFS=$as_save_IFS
5720  test -z "$as_dir" && as_dir=.
5721    for ac_exec_ext in '' $ac_executable_extensions; do
5722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725    break 2
5726  fi
5727done
5728  done
5729IFS=$as_save_IFS
5730
5731fi
5732fi
5733DUMPBIN=$ac_cv_prog_DUMPBIN
5734if test -n "$DUMPBIN"; then
5735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5736$as_echo "$DUMPBIN" >&6; }
5737else
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739$as_echo "no" >&6; }
5740fi
5741
5742
5743    test -n "$DUMPBIN" && break
5744  done
5745fi
5746if test -z "$DUMPBIN"; then
5747  ac_ct_DUMPBIN=$DUMPBIN
5748  for ac_prog in dumpbin "link -dump"
5749do
5750  # Extract the first word of "$ac_prog", so it can be a program name with args.
5751set dummy $ac_prog; ac_word=$2
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753$as_echo_n "checking for $ac_word... " >&6; }
5754if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5755  $as_echo_n "(cached) " >&6
5756else
5757  if test -n "$ac_ct_DUMPBIN"; then
5758  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5759else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763  IFS=$as_save_IFS
5764  test -z "$as_dir" && as_dir=.
5765    for ac_exec_ext in '' $ac_executable_extensions; do
5766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769    break 2
5770  fi
5771done
5772  done
5773IFS=$as_save_IFS
5774
5775fi
5776fi
5777ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5778if test -n "$ac_ct_DUMPBIN"; then
5779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5780$as_echo "$ac_ct_DUMPBIN" >&6; }
5781else
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783$as_echo "no" >&6; }
5784fi
5785
5786
5787  test -n "$ac_ct_DUMPBIN" && break
5788done
5789
5790  if test "x$ac_ct_DUMPBIN" = x; then
5791    DUMPBIN=":"
5792  else
5793    case $cross_compiling:$ac_tool_warned in
5794yes:)
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797ac_tool_warned=yes ;;
5798esac
5799    DUMPBIN=$ac_ct_DUMPBIN
5800  fi
5801fi
5802
5803    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5804    *COFF*)
5805      DUMPBIN="$DUMPBIN -symbols -headers"
5806      ;;
5807    *)
5808      DUMPBIN=:
5809      ;;
5810    esac
5811  fi
5812
5813  if test : != "$DUMPBIN"; then
5814    NM=$DUMPBIN
5815  fi
5816fi
5817test -z "$NM" && NM=nm
5818
5819
5820
5821
5822
5823
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5825$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5826if ${lt_cv_nm_interface+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  lt_cv_nm_interface="BSD nm"
5830  echo "int some_variable = 0;" > conftest.$ac_ext
5831  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5832  (eval "$ac_compile" 2>conftest.err)
5833  cat conftest.err >&5
5834  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5835  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5836  cat conftest.err >&5
5837  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5838  cat conftest.out >&5
5839  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5840    lt_cv_nm_interface="MS dumpbin"
5841  fi
5842  rm -f conftest*
5843fi
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5845$as_echo "$lt_cv_nm_interface" >&6; }
5846
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5848$as_echo_n "checking whether ln -s works... " >&6; }
5849LN_S=$as_ln_s
5850if test "$LN_S" = "ln -s"; then
5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5852$as_echo "yes" >&6; }
5853else
5854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5855$as_echo "no, using $LN_S" >&6; }
5856fi
5857
5858# find the maximum length of command line arguments
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5860$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5861if ${lt_cv_sys_max_cmd_len+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864    i=0
5865  teststring=ABCD
5866
5867  case $build_os in
5868  msdosdjgpp*)
5869    # On DJGPP, this test can blow up pretty badly due to problems in libc
5870    # (any single argument exceeding 2000 bytes causes a buffer overrun
5871    # during glob expansion).  Even if it were fixed, the result of this
5872    # check would be larger than it should be.
5873    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5874    ;;
5875
5876  gnu*)
5877    # Under GNU Hurd, this test is not required because there is
5878    # no limit to the length of command line arguments.
5879    # Libtool will interpret -1 as no limit whatsoever
5880    lt_cv_sys_max_cmd_len=-1;
5881    ;;
5882
5883  cygwin* | mingw* | cegcc*)
5884    # On Win9x/ME, this test blows up -- it succeeds, but takes
5885    # about 5 minutes as the teststring grows exponentially.
5886    # Worse, since 9x/ME are not pre-emptively multitasking,
5887    # you end up with a "frozen" computer, even though with patience
5888    # the test eventually succeeds (with a max line length of 256k).
5889    # Instead, let's just punt: use the minimum linelength reported by
5890    # all of the supported platforms: 8192 (on NT/2K/XP).
5891    lt_cv_sys_max_cmd_len=8192;
5892    ;;
5893
5894  mint*)
5895    # On MiNT this can take a long time and run out of memory.
5896    lt_cv_sys_max_cmd_len=8192;
5897    ;;
5898
5899  amigaos*)
5900    # On AmigaOS with pdksh, this test takes hours, literally.
5901    # So we just punt and use a minimum line length of 8192.
5902    lt_cv_sys_max_cmd_len=8192;
5903    ;;
5904
5905  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5906    # This has been around since 386BSD, at least.  Likely further.
5907    if test -x /sbin/sysctl; then
5908      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5909    elif test -x /usr/sbin/sysctl; then
5910      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5911    else
5912      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5913    fi
5914    # And add a safety zone
5915    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5916    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5917    ;;
5918
5919  interix*)
5920    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5921    lt_cv_sys_max_cmd_len=196608
5922    ;;
5923
5924  os2*)
5925    # The test takes a long time on OS/2.
5926    lt_cv_sys_max_cmd_len=8192
5927    ;;
5928
5929  osf*)
5930    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5931    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5932    # nice to cause kernel panics so lets avoid the loop below.
5933    # First set a reasonable default.
5934    lt_cv_sys_max_cmd_len=16384
5935    #
5936    if test -x /sbin/sysconfig; then
5937      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5938        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5939      esac
5940    fi
5941    ;;
5942  sco3.2v5*)
5943    lt_cv_sys_max_cmd_len=102400
5944    ;;
5945  sysv5* | sco5v6* | sysv4.2uw2*)
5946    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5947    if test -n "$kargmax"; then
5948      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5949    else
5950      lt_cv_sys_max_cmd_len=32768
5951    fi
5952    ;;
5953  *)
5954    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5955    if test -n "$lt_cv_sys_max_cmd_len" && \
5956       test undefined != "$lt_cv_sys_max_cmd_len"; then
5957      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5958      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5959    else
5960      # Make teststring a little bigger before we do anything with it.
5961      # a 1K string should be a reasonable start.
5962      for i in 1 2 3 4 5 6 7 8; do
5963        teststring=$teststring$teststring
5964      done
5965      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5966      # If test is not a shell built-in, we'll probably end up computing a
5967      # maximum length that is only half of the actual maximum length, but
5968      # we can't tell.
5969      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5970	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5971	      test 17 != "$i" # 1/2 MB should be enough
5972      do
5973        i=`expr $i + 1`
5974        teststring=$teststring$teststring
5975      done
5976      # Only check the string length outside the loop.
5977      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5978      teststring=
5979      # Add a significant safety factor because C++ compilers can tack on
5980      # massive amounts of additional arguments before passing them to the
5981      # linker.  It appears as though 1/2 is a usable value.
5982      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5983    fi
5984    ;;
5985  esac
5986
5987fi
5988
5989if test -n "$lt_cv_sys_max_cmd_len"; then
5990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5991$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5992else
5993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5994$as_echo "none" >&6; }
5995fi
5996max_cmd_len=$lt_cv_sys_max_cmd_len
5997
5998
5999
6000
6001
6002
6003: ${CP="cp -f"}
6004: ${MV="mv -f"}
6005: ${RM="rm -f"}
6006
6007if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6008  lt_unset=unset
6009else
6010  lt_unset=false
6011fi
6012
6013
6014
6015
6016
6017# test EBCDIC or ASCII
6018case `echo X|tr X '\101'` in
6019 A) # ASCII based system
6020    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6021  lt_SP2NL='tr \040 \012'
6022  lt_NL2SP='tr \015\012 \040\040'
6023  ;;
6024 *) # EBCDIC based system
6025  lt_SP2NL='tr \100 \n'
6026  lt_NL2SP='tr \r\n \100\100'
6027  ;;
6028esac
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6039$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6040if ${lt_cv_to_host_file_cmd+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  case $host in
6044  *-*-mingw* )
6045    case $build in
6046      *-*-mingw* ) # actually msys
6047        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6048        ;;
6049      *-*-cygwin* )
6050        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6051        ;;
6052      * ) # otherwise, assume *nix
6053        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6054        ;;
6055    esac
6056    ;;
6057  *-*-cygwin* )
6058    case $build in
6059      *-*-mingw* ) # actually msys
6060        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6061        ;;
6062      *-*-cygwin* )
6063        lt_cv_to_host_file_cmd=func_convert_file_noop
6064        ;;
6065      * ) # otherwise, assume *nix
6066        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6067        ;;
6068    esac
6069    ;;
6070  * ) # unhandled hosts (and "normal" native builds)
6071    lt_cv_to_host_file_cmd=func_convert_file_noop
6072    ;;
6073esac
6074
6075fi
6076
6077to_host_file_cmd=$lt_cv_to_host_file_cmd
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6079$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6080
6081
6082
6083
6084
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6086$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6087if ${lt_cv_to_tool_file_cmd+:} false; then :
6088  $as_echo_n "(cached) " >&6
6089else
6090  #assume ordinary cross tools, or native build.
6091lt_cv_to_tool_file_cmd=func_convert_file_noop
6092case $host in
6093  *-*-mingw* )
6094    case $build in
6095      *-*-mingw* ) # actually msys
6096        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6097        ;;
6098    esac
6099    ;;
6100esac
6101
6102fi
6103
6104to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6106$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6107
6108
6109
6110
6111
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6113$as_echo_n "checking for $LD option to reload object files... " >&6; }
6114if ${lt_cv_ld_reload_flag+:} false; then :
6115  $as_echo_n "(cached) " >&6
6116else
6117  lt_cv_ld_reload_flag='-r'
6118fi
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6120$as_echo "$lt_cv_ld_reload_flag" >&6; }
6121reload_flag=$lt_cv_ld_reload_flag
6122case $reload_flag in
6123"" | " "*) ;;
6124*) reload_flag=" $reload_flag" ;;
6125esac
6126reload_cmds='$LD$reload_flag -o $output$reload_objs'
6127case $host_os in
6128  cygwin* | mingw* | pw32* | cegcc*)
6129    if test yes != "$GCC"; then
6130      reload_cmds=false
6131    fi
6132    ;;
6133  darwin*)
6134    if test yes = "$GCC"; then
6135      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6136    else
6137      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6138    fi
6139    ;;
6140esac
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150if test -n "$ac_tool_prefix"; then
6151  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6152set dummy ${ac_tool_prefix}objdump; ac_word=$2
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154$as_echo_n "checking for $ac_word... " >&6; }
6155if ${ac_cv_prog_OBJDUMP+:} false; then :
6156  $as_echo_n "(cached) " >&6
6157else
6158  if test -n "$OBJDUMP"; then
6159  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164  IFS=$as_save_IFS
6165  test -z "$as_dir" && as_dir=.
6166    for ac_exec_ext in '' $ac_executable_extensions; do
6167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170    break 2
6171  fi
6172done
6173  done
6174IFS=$as_save_IFS
6175
6176fi
6177fi
6178OBJDUMP=$ac_cv_prog_OBJDUMP
6179if test -n "$OBJDUMP"; then
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6181$as_echo "$OBJDUMP" >&6; }
6182else
6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
6185fi
6186
6187
6188fi
6189if test -z "$ac_cv_prog_OBJDUMP"; then
6190  ac_ct_OBJDUMP=$OBJDUMP
6191  # Extract the first word of "objdump", so it can be a program name with args.
6192set dummy objdump; ac_word=$2
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194$as_echo_n "checking for $ac_word... " >&6; }
6195if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  if test -n "$ac_ct_OBJDUMP"; then
6199  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204  IFS=$as_save_IFS
6205  test -z "$as_dir" && as_dir=.
6206    for ac_exec_ext in '' $ac_executable_extensions; do
6207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210    break 2
6211  fi
6212done
6213  done
6214IFS=$as_save_IFS
6215
6216fi
6217fi
6218ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6219if test -n "$ac_ct_OBJDUMP"; then
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6221$as_echo "$ac_ct_OBJDUMP" >&6; }
6222else
6223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224$as_echo "no" >&6; }
6225fi
6226
6227  if test "x$ac_ct_OBJDUMP" = x; then
6228    OBJDUMP="false"
6229  else
6230    case $cross_compiling:$ac_tool_warned in
6231yes:)
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234ac_tool_warned=yes ;;
6235esac
6236    OBJDUMP=$ac_ct_OBJDUMP
6237  fi
6238else
6239  OBJDUMP="$ac_cv_prog_OBJDUMP"
6240fi
6241
6242test -z "$OBJDUMP" && OBJDUMP=objdump
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6253$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6254if ${lt_cv_deplibs_check_method+:} false; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257  lt_cv_file_magic_cmd='$MAGIC_CMD'
6258lt_cv_file_magic_test_file=
6259lt_cv_deplibs_check_method='unknown'
6260# Need to set the preceding variable on all platforms that support
6261# interlibrary dependencies.
6262# 'none' -- dependencies not supported.
6263# 'unknown' -- same as none, but documents that we really don't know.
6264# 'pass_all' -- all dependencies passed with no checks.
6265# 'test_compile' -- check by making test program.
6266# 'file_magic [[regex]]' -- check by looking for files in library path
6267# that responds to the $file_magic_cmd with a given extended regex.
6268# If you have 'file' or equivalent on your system and you're not sure
6269# whether 'pass_all' will *always* work, you probably want this one.
6270
6271case $host_os in
6272aix[4-9]*)
6273  lt_cv_deplibs_check_method=pass_all
6274  ;;
6275
6276beos*)
6277  lt_cv_deplibs_check_method=pass_all
6278  ;;
6279
6280bsdi[45]*)
6281  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6282  lt_cv_file_magic_cmd='/usr/bin/file -L'
6283  lt_cv_file_magic_test_file=/shlib/libc.so
6284  ;;
6285
6286cygwin*)
6287  # func_win32_libid is a shell function defined in ltmain.sh
6288  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6289  lt_cv_file_magic_cmd='func_win32_libid'
6290  ;;
6291
6292mingw* | pw32*)
6293  # Base MSYS/MinGW do not provide the 'file' command needed by
6294  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6295  # unless we find 'file', for example because we are cross-compiling.
6296  if ( file / ) >/dev/null 2>&1; then
6297    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6298    lt_cv_file_magic_cmd='func_win32_libid'
6299  else
6300    # Keep this pattern in sync with the one in func_win32_libid.
6301    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6302    lt_cv_file_magic_cmd='$OBJDUMP -f'
6303  fi
6304  ;;
6305
6306cegcc*)
6307  # use the weaker test based on 'objdump'. See mingw*.
6308  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6309  lt_cv_file_magic_cmd='$OBJDUMP -f'
6310  ;;
6311
6312darwin* | rhapsody*)
6313  lt_cv_deplibs_check_method=pass_all
6314  ;;
6315
6316freebsd* | dragonfly*)
6317  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6318    case $host_cpu in
6319    i*86 )
6320      # Not sure whether the presence of OpenBSD here was a mistake.
6321      # Let's accept both of them until this is cleared up.
6322      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6323      lt_cv_file_magic_cmd=/usr/bin/file
6324      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6325      ;;
6326    esac
6327  else
6328    lt_cv_deplibs_check_method=pass_all
6329  fi
6330  ;;
6331
6332haiku*)
6333  lt_cv_deplibs_check_method=pass_all
6334  ;;
6335
6336hpux10.20* | hpux11*)
6337  lt_cv_file_magic_cmd=/usr/bin/file
6338  case $host_cpu in
6339  ia64*)
6340    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6341    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6342    ;;
6343  hppa*64*)
6344    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]'
6345    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6346    ;;
6347  *)
6348    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6349    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6350    ;;
6351  esac
6352  ;;
6353
6354interix[3-9]*)
6355  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6356  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6357  ;;
6358
6359irix5* | irix6* | nonstopux*)
6360  case $LD in
6361  *-32|*"-32 ") libmagic=32-bit;;
6362  *-n32|*"-n32 ") libmagic=N32;;
6363  *-64|*"-64 ") libmagic=64-bit;;
6364  *) libmagic=never-match;;
6365  esac
6366  lt_cv_deplibs_check_method=pass_all
6367  ;;
6368
6369# This must be glibc/ELF.
6370linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6371  lt_cv_deplibs_check_method=pass_all
6372  ;;
6373
6374netbsd* | netbsdelf*-gnu)
6375  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6376    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6377  else
6378    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6379  fi
6380  ;;
6381
6382newos6*)
6383  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6384  lt_cv_file_magic_cmd=/usr/bin/file
6385  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6386  ;;
6387
6388*nto* | *qnx*)
6389  lt_cv_deplibs_check_method=pass_all
6390  ;;
6391
6392openbsd* | bitrig*)
6393  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6394    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6395  else
6396    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6397  fi
6398  ;;
6399
6400osf3* | osf4* | osf5*)
6401  lt_cv_deplibs_check_method=pass_all
6402  ;;
6403
6404rdos*)
6405  lt_cv_deplibs_check_method=pass_all
6406  ;;
6407
6408solaris*)
6409  lt_cv_deplibs_check_method=pass_all
6410  ;;
6411
6412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6413  lt_cv_deplibs_check_method=pass_all
6414  ;;
6415
6416sysv4 | sysv4.3*)
6417  case $host_vendor in
6418  motorola)
6419    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]'
6420    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6421    ;;
6422  ncr)
6423    lt_cv_deplibs_check_method=pass_all
6424    ;;
6425  sequent)
6426    lt_cv_file_magic_cmd='/bin/file'
6427    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6428    ;;
6429  sni)
6430    lt_cv_file_magic_cmd='/bin/file'
6431    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6432    lt_cv_file_magic_test_file=/lib/libc.so
6433    ;;
6434  siemens)
6435    lt_cv_deplibs_check_method=pass_all
6436    ;;
6437  pc)
6438    lt_cv_deplibs_check_method=pass_all
6439    ;;
6440  esac
6441  ;;
6442
6443tpf*)
6444  lt_cv_deplibs_check_method=pass_all
6445  ;;
6446os2*)
6447  lt_cv_deplibs_check_method=pass_all
6448  ;;
6449esac
6450
6451fi
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6453$as_echo "$lt_cv_deplibs_check_method" >&6; }
6454
6455file_magic_glob=
6456want_nocaseglob=no
6457if test "$build" = "$host"; then
6458  case $host_os in
6459  mingw* | pw32*)
6460    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6461      want_nocaseglob=yes
6462    else
6463      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6464    fi
6465    ;;
6466  esac
6467fi
6468
6469file_magic_cmd=$lt_cv_file_magic_cmd
6470deplibs_check_method=$lt_cv_deplibs_check_method
6471test -z "$deplibs_check_method" && deplibs_check_method=unknown
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494if test -n "$ac_tool_prefix"; then
6495  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6496set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
6499if ${ac_cv_prog_DLLTOOL+:} false; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502  if test -n "$DLLTOOL"; then
6503  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508  IFS=$as_save_IFS
6509  test -z "$as_dir" && as_dir=.
6510    for ac_exec_ext in '' $ac_executable_extensions; do
6511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514    break 2
6515  fi
6516done
6517  done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522DLLTOOL=$ac_cv_prog_DLLTOOL
6523if test -n "$DLLTOOL"; then
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6525$as_echo "$DLLTOOL" >&6; }
6526else
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531
6532fi
6533if test -z "$ac_cv_prog_DLLTOOL"; then
6534  ac_ct_DLLTOOL=$DLLTOOL
6535  # Extract the first word of "dlltool", so it can be a program name with args.
6536set dummy dlltool; ac_word=$2
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538$as_echo_n "checking for $ac_word... " >&6; }
6539if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6540  $as_echo_n "(cached) " >&6
6541else
6542  if test -n "$ac_ct_DLLTOOL"; then
6543  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548  IFS=$as_save_IFS
6549  test -z "$as_dir" && as_dir=.
6550    for ac_exec_ext in '' $ac_executable_extensions; do
6551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554    break 2
6555  fi
6556done
6557  done
6558IFS=$as_save_IFS
6559
6560fi
6561fi
6562ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6563if test -n "$ac_ct_DLLTOOL"; then
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6565$as_echo "$ac_ct_DLLTOOL" >&6; }
6566else
6567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568$as_echo "no" >&6; }
6569fi
6570
6571  if test "x$ac_ct_DLLTOOL" = x; then
6572    DLLTOOL="false"
6573  else
6574    case $cross_compiling:$ac_tool_warned in
6575yes:)
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578ac_tool_warned=yes ;;
6579esac
6580    DLLTOOL=$ac_ct_DLLTOOL
6581  fi
6582else
6583  DLLTOOL="$ac_cv_prog_DLLTOOL"
6584fi
6585
6586test -z "$DLLTOOL" && DLLTOOL=dlltool
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6598$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6599if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6600  $as_echo_n "(cached) " >&6
6601else
6602  lt_cv_sharedlib_from_linklib_cmd='unknown'
6603
6604case $host_os in
6605cygwin* | mingw* | pw32* | cegcc*)
6606  # two different shell functions defined in ltmain.sh;
6607  # decide which one to use based on capabilities of $DLLTOOL
6608  case `$DLLTOOL --help 2>&1` in
6609  *--identify-strict*)
6610    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6611    ;;
6612  *)
6613    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6614    ;;
6615  esac
6616  ;;
6617*)
6618  # fallback: assume linklib IS sharedlib
6619  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6620  ;;
6621esac
6622
6623fi
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6625$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6626sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6627test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6628
6629
6630
6631
6632
6633
6634
6635
6636if test -n "$ac_tool_prefix"; then
6637  for ac_prog in ar
6638  do
6639    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6640set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642$as_echo_n "checking for $ac_word... " >&6; }
6643if ${ac_cv_prog_AR+:} false; then :
6644  $as_echo_n "(cached) " >&6
6645else
6646  if test -n "$AR"; then
6647  ac_cv_prog_AR="$AR" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652  IFS=$as_save_IFS
6653  test -z "$as_dir" && as_dir=.
6654    for ac_exec_ext in '' $ac_executable_extensions; do
6655  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658    break 2
6659  fi
6660done
6661  done
6662IFS=$as_save_IFS
6663
6664fi
6665fi
6666AR=$ac_cv_prog_AR
6667if test -n "$AR"; then
6668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6669$as_echo "$AR" >&6; }
6670else
6671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672$as_echo "no" >&6; }
6673fi
6674
6675
6676    test -n "$AR" && break
6677  done
6678fi
6679if test -z "$AR"; then
6680  ac_ct_AR=$AR
6681  for ac_prog in ar
6682do
6683  # Extract the first word of "$ac_prog", so it can be a program name with args.
6684set dummy $ac_prog; ac_word=$2
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686$as_echo_n "checking for $ac_word... " >&6; }
6687if ${ac_cv_prog_ac_ct_AR+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  if test -n "$ac_ct_AR"; then
6691  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6692else
6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696  IFS=$as_save_IFS
6697  test -z "$as_dir" && as_dir=.
6698    for ac_exec_ext in '' $ac_executable_extensions; do
6699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6700    ac_cv_prog_ac_ct_AR="$ac_prog"
6701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702    break 2
6703  fi
6704done
6705  done
6706IFS=$as_save_IFS
6707
6708fi
6709fi
6710ac_ct_AR=$ac_cv_prog_ac_ct_AR
6711if test -n "$ac_ct_AR"; then
6712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6713$as_echo "$ac_ct_AR" >&6; }
6714else
6715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716$as_echo "no" >&6; }
6717fi
6718
6719
6720  test -n "$ac_ct_AR" && break
6721done
6722
6723  if test "x$ac_ct_AR" = x; then
6724    AR="false"
6725  else
6726    case $cross_compiling:$ac_tool_warned in
6727yes:)
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730ac_tool_warned=yes ;;
6731esac
6732    AR=$ac_ct_AR
6733  fi
6734fi
6735
6736: ${AR=ar}
6737: ${AR_FLAGS=cru}
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6750$as_echo_n "checking for archiver @FILE support... " >&6; }
6751if ${lt_cv_ar_at_file+:} false; then :
6752  $as_echo_n "(cached) " >&6
6753else
6754  lt_cv_ar_at_file=no
6755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757
6758int
6759main ()
6760{
6761
6762  ;
6763  return 0;
6764}
6765_ACEOF
6766if ac_fn_c_try_compile "$LINENO"; then :
6767  echo conftest.$ac_objext > conftest.lst
6768      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6769      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6770  (eval $lt_ar_try) 2>&5
6771  ac_status=$?
6772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773  test $ac_status = 0; }
6774      if test 0 -eq "$ac_status"; then
6775	# Ensure the archiver fails upon bogus file names.
6776	rm -f conftest.$ac_objext libconftest.a
6777	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6778  (eval $lt_ar_try) 2>&5
6779  ac_status=$?
6780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6781  test $ac_status = 0; }
6782	if test 0 -ne "$ac_status"; then
6783          lt_cv_ar_at_file=@
6784        fi
6785      fi
6786      rm -f conftest.* libconftest.a
6787
6788fi
6789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6793$as_echo "$lt_cv_ar_at_file" >&6; }
6794
6795if test no = "$lt_cv_ar_at_file"; then
6796  archiver_list_spec=
6797else
6798  archiver_list_spec=$lt_cv_ar_at_file
6799fi
6800
6801
6802
6803
6804
6805
6806
6807if test -n "$ac_tool_prefix"; then
6808  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6809set dummy ${ac_tool_prefix}strip; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if ${ac_cv_prog_STRIP+:} false; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$STRIP"; then
6816  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823    for ac_exec_ext in '' $ac_executable_extensions; do
6824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830  done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835STRIP=$ac_cv_prog_STRIP
6836if test -n "$STRIP"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6838$as_echo "$STRIP" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844
6845fi
6846if test -z "$ac_cv_prog_STRIP"; then
6847  ac_ct_STRIP=$STRIP
6848  # Extract the first word of "strip", so it can be a program name with args.
6849set dummy strip; ac_word=$2
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
6852if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  if test -n "$ac_ct_STRIP"; then
6856  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861  IFS=$as_save_IFS
6862  test -z "$as_dir" && as_dir=.
6863    for ac_exec_ext in '' $ac_executable_extensions; do
6864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865    ac_cv_prog_ac_ct_STRIP="strip"
6866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870  done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6876if test -n "$ac_ct_STRIP"; then
6877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6878$as_echo "$ac_ct_STRIP" >&6; }
6879else
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884  if test "x$ac_ct_STRIP" = x; then
6885    STRIP=":"
6886  else
6887    case $cross_compiling:$ac_tool_warned in
6888yes:)
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891ac_tool_warned=yes ;;
6892esac
6893    STRIP=$ac_ct_STRIP
6894  fi
6895else
6896  STRIP="$ac_cv_prog_STRIP"
6897fi
6898
6899test -z "$STRIP" && STRIP=:
6900
6901
6902
6903
6904
6905
6906if test -n "$ac_tool_prefix"; then
6907  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6908set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910$as_echo_n "checking for $ac_word... " >&6; }
6911if ${ac_cv_prog_RANLIB+:} false; then :
6912  $as_echo_n "(cached) " >&6
6913else
6914  if test -n "$RANLIB"; then
6915  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6916else
6917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920  IFS=$as_save_IFS
6921  test -z "$as_dir" && as_dir=.
6922    for ac_exec_ext in '' $ac_executable_extensions; do
6923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926    break 2
6927  fi
6928done
6929  done
6930IFS=$as_save_IFS
6931
6932fi
6933fi
6934RANLIB=$ac_cv_prog_RANLIB
6935if test -n "$RANLIB"; then
6936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6937$as_echo "$RANLIB" >&6; }
6938else
6939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940$as_echo "no" >&6; }
6941fi
6942
6943
6944fi
6945if test -z "$ac_cv_prog_RANLIB"; then
6946  ac_ct_RANLIB=$RANLIB
6947  # Extract the first word of "ranlib", so it can be a program name with args.
6948set dummy ranlib; ac_word=$2
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950$as_echo_n "checking for $ac_word... " >&6; }
6951if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6952  $as_echo_n "(cached) " >&6
6953else
6954  if test -n "$ac_ct_RANLIB"; then
6955  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6956else
6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960  IFS=$as_save_IFS
6961  test -z "$as_dir" && as_dir=.
6962    for ac_exec_ext in '' $ac_executable_extensions; do
6963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964    ac_cv_prog_ac_ct_RANLIB="ranlib"
6965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966    break 2
6967  fi
6968done
6969  done
6970IFS=$as_save_IFS
6971
6972fi
6973fi
6974ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6975if test -n "$ac_ct_RANLIB"; then
6976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6977$as_echo "$ac_ct_RANLIB" >&6; }
6978else
6979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980$as_echo "no" >&6; }
6981fi
6982
6983  if test "x$ac_ct_RANLIB" = x; then
6984    RANLIB=":"
6985  else
6986    case $cross_compiling:$ac_tool_warned in
6987yes:)
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990ac_tool_warned=yes ;;
6991esac
6992    RANLIB=$ac_ct_RANLIB
6993  fi
6994else
6995  RANLIB="$ac_cv_prog_RANLIB"
6996fi
6997
6998test -z "$RANLIB" && RANLIB=:
6999
7000
7001
7002
7003
7004
7005# Determine commands to create old-style static archives.
7006old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7007old_postinstall_cmds='chmod 644 $oldlib'
7008old_postuninstall_cmds=
7009
7010if test -n "$RANLIB"; then
7011  case $host_os in
7012  bitrig* | openbsd*)
7013    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7014    ;;
7015  *)
7016    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7017    ;;
7018  esac
7019  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7020fi
7021
7022case $host_os in
7023  darwin*)
7024    lock_old_archive_extraction=yes ;;
7025  *)
7026    lock_old_archive_extraction=no ;;
7027esac
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067# If no C compiler was specified, use CC.
7068LTCC=${LTCC-"$CC"}
7069
7070# If no C compiler flags were specified, use CFLAGS.
7071LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7072
7073# Allow CC to be a program name with arguments.
7074compiler=$CC
7075
7076
7077# Check for command to grab the raw symbol name followed by C symbol from nm.
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7079$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7080if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7081  $as_echo_n "(cached) " >&6
7082else
7083
7084# These are sane defaults that work on at least a few old systems.
7085# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7086
7087# Character class describing NM global symbol codes.
7088symcode='[BCDEGRST]'
7089
7090# Regexp to match symbols that can be accessed directly from C.
7091sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7092
7093# Define system-specific variables.
7094case $host_os in
7095aix*)
7096  symcode='[BCDT]'
7097  ;;
7098cygwin* | mingw* | pw32* | cegcc*)
7099  symcode='[ABCDGISTW]'
7100  ;;
7101hpux*)
7102  if test ia64 = "$host_cpu"; then
7103    symcode='[ABCDEGRST]'
7104  fi
7105  ;;
7106irix* | nonstopux*)
7107  symcode='[BCDEGRST]'
7108  ;;
7109osf*)
7110  symcode='[BCDEGQRST]'
7111  ;;
7112solaris*)
7113  symcode='[BDRT]'
7114  ;;
7115sco3.2v5*)
7116  symcode='[DT]'
7117  ;;
7118sysv4.2uw2*)
7119  symcode='[DT]'
7120  ;;
7121sysv5* | sco5v6* | unixware* | OpenUNIX*)
7122  symcode='[ABDT]'
7123  ;;
7124sysv4)
7125  symcode='[DFNSTU]'
7126  ;;
7127esac
7128
7129# If we're using GNU nm, then use its standard symbol codes.
7130case `$NM -V 2>&1` in
7131*GNU* | *'with BFD'*)
7132  symcode='[ABCDGIRSTW]' ;;
7133esac
7134
7135if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7136  # Gets list of data symbols to import.
7137  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7138  # Adjust the below global symbol transforms to fixup imported variables.
7139  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7140  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7141  lt_c_name_lib_hook="\
7142  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7143  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7144else
7145  # Disable hooks by default.
7146  lt_cv_sys_global_symbol_to_import=
7147  lt_cdecl_hook=
7148  lt_c_name_hook=
7149  lt_c_name_lib_hook=
7150fi
7151
7152# Transform an extracted symbol line into a proper C declaration.
7153# Some systems (esp. on ia64) link data and code symbols differently,
7154# so use this general approach.
7155lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7156$lt_cdecl_hook\
7157" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7158" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7159
7160# Transform an extracted symbol line into symbol name and symbol address
7161lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7162$lt_c_name_hook\
7163" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7164" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7165
7166# Transform an extracted symbol line into symbol name with lib prefix and
7167# symbol address.
7168lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7169$lt_c_name_lib_hook\
7170" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7171" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7172" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7173
7174# Handle CRLF in mingw tool chain
7175opt_cr=
7176case $build_os in
7177mingw*)
7178  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7179  ;;
7180esac
7181
7182# Try without a prefix underscore, then with it.
7183for ac_symprfx in "" "_"; do
7184
7185  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7186  symxfrm="\\1 $ac_symprfx\\2 \\2"
7187
7188  # Write the raw and C identifiers.
7189  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7190    # Fake it for dumpbin and say T for any non-static function,
7191    # D for any global variable and I for any imported variable.
7192    # Also find C++ and __fastcall symbols from MSVC++,
7193    # which start with @ or ?.
7194    lt_cv_sys_global_symbol_pipe="$AWK '"\
7195"     {last_section=section; section=\$ 3};"\
7196"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7197"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7198"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7199"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7200"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7201"     \$ 0!~/External *\|/{next};"\
7202"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7203"     {if(hide[section]) next};"\
7204"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7205"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7206"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7207"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7208"     ' prfx=^$ac_symprfx"
7209  else
7210    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7211  fi
7212  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7213
7214  # Check to see that the pipe works correctly.
7215  pipe_works=no
7216
7217  rm -f conftest*
7218  cat > conftest.$ac_ext <<_LT_EOF
7219#ifdef __cplusplus
7220extern "C" {
7221#endif
7222char nm_test_var;
7223void nm_test_func(void);
7224void nm_test_func(void){}
7225#ifdef __cplusplus
7226}
7227#endif
7228int main(){nm_test_var='a';nm_test_func();return(0);}
7229_LT_EOF
7230
7231  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7232  (eval $ac_compile) 2>&5
7233  ac_status=$?
7234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235  test $ac_status = 0; }; then
7236    # Now try to grab the symbols.
7237    nlist=conftest.nm
7238    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7239  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7240  ac_status=$?
7241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242  test $ac_status = 0; } && test -s "$nlist"; then
7243      # Try sorting and uniquifying the output.
7244      if sort "$nlist" | uniq > "$nlist"T; then
7245	mv -f "$nlist"T "$nlist"
7246      else
7247	rm -f "$nlist"T
7248      fi
7249
7250      # Make sure that we snagged all the symbols we need.
7251      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7252	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7253	  cat <<_LT_EOF > conftest.$ac_ext
7254/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7255#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7256/* DATA imports from DLLs on WIN32 can't be const, because runtime
7257   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7258# define LT_DLSYM_CONST
7259#elif defined __osf__
7260/* This system does not cope well with relocations in const data.  */
7261# define LT_DLSYM_CONST
7262#else
7263# define LT_DLSYM_CONST const
7264#endif
7265
7266#ifdef __cplusplus
7267extern "C" {
7268#endif
7269
7270_LT_EOF
7271	  # Now generate the symbol file.
7272	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7273
7274	  cat <<_LT_EOF >> conftest.$ac_ext
7275
7276/* The mapping between symbol names and symbols.  */
7277LT_DLSYM_CONST struct {
7278  const char *name;
7279  void       *address;
7280}
7281lt__PROGRAM__LTX_preloaded_symbols[] =
7282{
7283  { "@PROGRAM@", (void *) 0 },
7284_LT_EOF
7285	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7286	  cat <<\_LT_EOF >> conftest.$ac_ext
7287  {0, (void *) 0}
7288};
7289
7290/* This works around a problem in FreeBSD linker */
7291#ifdef FREEBSD_WORKAROUND
7292static const void *lt_preloaded_setup() {
7293  return lt__PROGRAM__LTX_preloaded_symbols;
7294}
7295#endif
7296
7297#ifdef __cplusplus
7298}
7299#endif
7300_LT_EOF
7301	  # Now try linking the two files.
7302	  mv conftest.$ac_objext conftstm.$ac_objext
7303	  lt_globsym_save_LIBS=$LIBS
7304	  lt_globsym_save_CFLAGS=$CFLAGS
7305	  LIBS=conftstm.$ac_objext
7306	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7307	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7308  (eval $ac_link) 2>&5
7309  ac_status=$?
7310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7312	    pipe_works=yes
7313	  fi
7314	  LIBS=$lt_globsym_save_LIBS
7315	  CFLAGS=$lt_globsym_save_CFLAGS
7316	else
7317	  echo "cannot find nm_test_func in $nlist" >&5
7318	fi
7319      else
7320	echo "cannot find nm_test_var in $nlist" >&5
7321      fi
7322    else
7323      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7324    fi
7325  else
7326    echo "$progname: failed program was:" >&5
7327    cat conftest.$ac_ext >&5
7328  fi
7329  rm -rf conftest* conftst*
7330
7331  # Do not use the global_symbol_pipe unless it works.
7332  if test yes = "$pipe_works"; then
7333    break
7334  else
7335    lt_cv_sys_global_symbol_pipe=
7336  fi
7337done
7338
7339fi
7340
7341if test -z "$lt_cv_sys_global_symbol_pipe"; then
7342  lt_cv_sys_global_symbol_to_cdecl=
7343fi
7344if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7346$as_echo "failed" >&6; }
7347else
7348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7349$as_echo "ok" >&6; }
7350fi
7351
7352# Response file support.
7353if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7354  nm_file_list_spec='@'
7355elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7356  nm_file_list_spec='@'
7357fi
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7396$as_echo_n "checking for sysroot... " >&6; }
7397
7398# Check whether --with-sysroot was given.
7399if test "${with_sysroot+set}" = set; then :
7400  withval=$with_sysroot;
7401else
7402  with_sysroot=no
7403fi
7404
7405
7406lt_sysroot=
7407case $with_sysroot in #(
7408 yes)
7409   if test yes = "$GCC"; then
7410     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7411   fi
7412   ;; #(
7413 /*)
7414   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7415   ;; #(
7416 no|'')
7417   ;; #(
7418 *)
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7420$as_echo "$with_sysroot" >&6; }
7421   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7422   ;;
7423esac
7424
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7426$as_echo "${lt_sysroot:-no}" >&6; }
7427
7428
7429
7430
7431
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7433$as_echo_n "checking for a working dd... " >&6; }
7434if ${ac_cv_path_lt_DD+:} false; then :
7435  $as_echo_n "(cached) " >&6
7436else
7437  printf 0123456789abcdef0123456789abcdef >conftest.i
7438cat conftest.i conftest.i >conftest2.i
7439: ${lt_DD:=$DD}
7440if test -z "$lt_DD"; then
7441  ac_path_lt_DD_found=false
7442  # Loop through the user's path and test for each of PROGNAME-LIST
7443  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446  IFS=$as_save_IFS
7447  test -z "$as_dir" && as_dir=.
7448    for ac_prog in dd; do
7449    for ac_exec_ext in '' $ac_executable_extensions; do
7450      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7451      as_fn_executable_p "$ac_path_lt_DD" || continue
7452if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7453  cmp -s conftest.i conftest.out \
7454  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7455fi
7456      $ac_path_lt_DD_found && break 3
7457    done
7458  done
7459  done
7460IFS=$as_save_IFS
7461  if test -z "$ac_cv_path_lt_DD"; then
7462    :
7463  fi
7464else
7465  ac_cv_path_lt_DD=$lt_DD
7466fi
7467
7468rm -f conftest.i conftest2.i conftest.out
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7471$as_echo "$ac_cv_path_lt_DD" >&6; }
7472
7473
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7475$as_echo_n "checking how to truncate binary pipes... " >&6; }
7476if ${lt_cv_truncate_bin+:} false; then :
7477  $as_echo_n "(cached) " >&6
7478else
7479  printf 0123456789abcdef0123456789abcdef >conftest.i
7480cat conftest.i conftest.i >conftest2.i
7481lt_cv_truncate_bin=
7482if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7483  cmp -s conftest.i conftest.out \
7484  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7485fi
7486rm -f conftest.i conftest2.i conftest.out
7487test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7490$as_echo "$lt_cv_truncate_bin" >&6; }
7491
7492
7493
7494
7495
7496
7497
7498# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7499func_cc_basename ()
7500{
7501    for cc_temp in $*""; do
7502      case $cc_temp in
7503        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7504        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7505        \-*) ;;
7506        *) break;;
7507      esac
7508    done
7509    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7510}
7511
7512# Check whether --enable-libtool-lock was given.
7513if test "${enable_libtool_lock+set}" = set; then :
7514  enableval=$enable_libtool_lock;
7515fi
7516
7517test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7518
7519# Some flags need to be propagated to the compiler or linker for good
7520# libtool support.
7521case $host in
7522ia64-*-hpux*)
7523  # Find out what ABI is being produced by ac_compile, and set mode
7524  # options accordingly.
7525  echo 'int i;' > conftest.$ac_ext
7526  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527  (eval $ac_compile) 2>&5
7528  ac_status=$?
7529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530  test $ac_status = 0; }; then
7531    case `/usr/bin/file conftest.$ac_objext` in
7532      *ELF-32*)
7533	HPUX_IA64_MODE=32
7534	;;
7535      *ELF-64*)
7536	HPUX_IA64_MODE=64
7537	;;
7538    esac
7539  fi
7540  rm -rf conftest*
7541  ;;
7542*-*-irix6*)
7543  # Find out what ABI is being produced by ac_compile, and set linker
7544  # options accordingly.
7545  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7546  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7547  (eval $ac_compile) 2>&5
7548  ac_status=$?
7549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550  test $ac_status = 0; }; then
7551    if test yes = "$lt_cv_prog_gnu_ld"; then
7552      case `/usr/bin/file conftest.$ac_objext` in
7553	*32-bit*)
7554	  LD="${LD-ld} -melf32bsmip"
7555	  ;;
7556	*N32*)
7557	  LD="${LD-ld} -melf32bmipn32"
7558	  ;;
7559	*64-bit*)
7560	  LD="${LD-ld} -melf64bmip"
7561	;;
7562      esac
7563    else
7564      case `/usr/bin/file conftest.$ac_objext` in
7565	*32-bit*)
7566	  LD="${LD-ld} -32"
7567	  ;;
7568	*N32*)
7569	  LD="${LD-ld} -n32"
7570	  ;;
7571	*64-bit*)
7572	  LD="${LD-ld} -64"
7573	  ;;
7574      esac
7575    fi
7576  fi
7577  rm -rf conftest*
7578  ;;
7579
7580mips64*-*linux*)
7581  # Find out what ABI is being produced by ac_compile, and set linker
7582  # options accordingly.
7583  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7584  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7585  (eval $ac_compile) 2>&5
7586  ac_status=$?
7587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588  test $ac_status = 0; }; then
7589    emul=elf
7590    case `/usr/bin/file conftest.$ac_objext` in
7591      *32-bit*)
7592	emul="${emul}32"
7593	;;
7594      *64-bit*)
7595	emul="${emul}64"
7596	;;
7597    esac
7598    case `/usr/bin/file conftest.$ac_objext` in
7599      *MSB*)
7600	emul="${emul}btsmip"
7601	;;
7602      *LSB*)
7603	emul="${emul}ltsmip"
7604	;;
7605    esac
7606    case `/usr/bin/file conftest.$ac_objext` in
7607      *N32*)
7608	emul="${emul}n32"
7609	;;
7610    esac
7611    LD="${LD-ld} -m $emul"
7612  fi
7613  rm -rf conftest*
7614  ;;
7615
7616x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7617s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7618  # Find out what ABI is being produced by ac_compile, and set linker
7619  # options accordingly.  Note that the listed cases only cover the
7620  # situations where additional linker options are needed (such as when
7621  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7622  # vice versa); the common cases where no linker options are needed do
7623  # not appear in the list.
7624  echo 'int i;' > conftest.$ac_ext
7625  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7626  (eval $ac_compile) 2>&5
7627  ac_status=$?
7628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7629  test $ac_status = 0; }; then
7630    case `/usr/bin/file conftest.o` in
7631      *32-bit*)
7632	case $host in
7633	  x86_64-*kfreebsd*-gnu)
7634	    LD="${LD-ld} -m elf_i386_fbsd"
7635	    ;;
7636	  x86_64-*linux*)
7637	    case `/usr/bin/file conftest.o` in
7638	      *x86-64*)
7639		LD="${LD-ld} -m elf32_x86_64"
7640		;;
7641	      *)
7642		LD="${LD-ld} -m elf_i386"
7643		;;
7644	    esac
7645	    ;;
7646	  powerpc64le-*linux*)
7647	    LD="${LD-ld} -m elf32lppclinux"
7648	    ;;
7649	  powerpc64-*linux*)
7650	    LD="${LD-ld} -m elf32ppclinux"
7651	    ;;
7652	  s390x-*linux*)
7653	    LD="${LD-ld} -m elf_s390"
7654	    ;;
7655	  sparc64-*linux*)
7656	    LD="${LD-ld} -m elf32_sparc"
7657	    ;;
7658	esac
7659	;;
7660      *64-bit*)
7661	case $host in
7662	  x86_64-*kfreebsd*-gnu)
7663	    LD="${LD-ld} -m elf_x86_64_fbsd"
7664	    ;;
7665	  x86_64-*linux*)
7666	    LD="${LD-ld} -m elf_x86_64"
7667	    ;;
7668	  powerpcle-*linux*)
7669	    LD="${LD-ld} -m elf64lppc"
7670	    ;;
7671	  powerpc-*linux*)
7672	    LD="${LD-ld} -m elf64ppc"
7673	    ;;
7674	  s390*-*linux*|s390*-*tpf*)
7675	    LD="${LD-ld} -m elf64_s390"
7676	    ;;
7677	  sparc*-*linux*)
7678	    LD="${LD-ld} -m elf64_sparc"
7679	    ;;
7680	esac
7681	;;
7682    esac
7683  fi
7684  rm -rf conftest*
7685  ;;
7686
7687*-*-sco3.2v5*)
7688  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7689  SAVE_CFLAGS=$CFLAGS
7690  CFLAGS="$CFLAGS -belf"
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7692$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7693if ${lt_cv_cc_needs_belf+:} false; then :
7694  $as_echo_n "(cached) " >&6
7695else
7696  ac_ext=c
7697ac_cpp='$CPP $CPPFLAGS'
7698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700ac_compiler_gnu=$ac_cv_c_compiler_gnu
7701
7702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703/* end confdefs.h.  */
7704
7705int
7706main ()
7707{
7708
7709  ;
7710  return 0;
7711}
7712_ACEOF
7713if ac_fn_c_try_link "$LINENO"; then :
7714  lt_cv_cc_needs_belf=yes
7715else
7716  lt_cv_cc_needs_belf=no
7717fi
7718rm -f core conftest.err conftest.$ac_objext \
7719    conftest$ac_exeext conftest.$ac_ext
7720     ac_ext=c
7721ac_cpp='$CPP $CPPFLAGS'
7722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7724ac_compiler_gnu=$ac_cv_c_compiler_gnu
7725
7726fi
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7728$as_echo "$lt_cv_cc_needs_belf" >&6; }
7729  if test yes != "$lt_cv_cc_needs_belf"; then
7730    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7731    CFLAGS=$SAVE_CFLAGS
7732  fi
7733  ;;
7734*-*solaris*)
7735  # Find out what ABI is being produced by ac_compile, and set linker
7736  # options accordingly.
7737  echo 'int i;' > conftest.$ac_ext
7738  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7739  (eval $ac_compile) 2>&5
7740  ac_status=$?
7741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742  test $ac_status = 0; }; then
7743    case `/usr/bin/file conftest.o` in
7744    *64-bit*)
7745      case $lt_cv_prog_gnu_ld in
7746      yes*)
7747        case $host in
7748        i?86-*-solaris*|x86_64-*-solaris*)
7749          LD="${LD-ld} -m elf_x86_64"
7750          ;;
7751        sparc*-*-solaris*)
7752          LD="${LD-ld} -m elf64_sparc"
7753          ;;
7754        esac
7755        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7756        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7757          LD=${LD-ld}_sol2
7758        fi
7759        ;;
7760      *)
7761	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7762	  LD="${LD-ld} -64"
7763	fi
7764	;;
7765      esac
7766      ;;
7767    esac
7768  fi
7769  rm -rf conftest*
7770  ;;
7771esac
7772
7773need_locks=$enable_libtool_lock
7774
7775if test -n "$ac_tool_prefix"; then
7776  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7777set dummy ${ac_tool_prefix}mt; ac_word=$2
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779$as_echo_n "checking for $ac_word... " >&6; }
7780if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7781  $as_echo_n "(cached) " >&6
7782else
7783  if test -n "$MANIFEST_TOOL"; then
7784  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7785else
7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789  IFS=$as_save_IFS
7790  test -z "$as_dir" && as_dir=.
7791    for ac_exec_ext in '' $ac_executable_extensions; do
7792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795    break 2
7796  fi
7797done
7798  done
7799IFS=$as_save_IFS
7800
7801fi
7802fi
7803MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7804if test -n "$MANIFEST_TOOL"; then
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7806$as_echo "$MANIFEST_TOOL" >&6; }
7807else
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
7810fi
7811
7812
7813fi
7814if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7815  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7816  # Extract the first word of "mt", so it can be a program name with args.
7817set dummy mt; ac_word=$2
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
7820if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  if test -n "$ac_ct_MANIFEST_TOOL"; then
7824  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7825else
7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829  IFS=$as_save_IFS
7830  test -z "$as_dir" && as_dir=.
7831    for ac_exec_ext in '' $ac_executable_extensions; do
7832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835    break 2
7836  fi
7837done
7838  done
7839IFS=$as_save_IFS
7840
7841fi
7842fi
7843ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7844if test -n "$ac_ct_MANIFEST_TOOL"; then
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7846$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7847else
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
7850fi
7851
7852  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7853    MANIFEST_TOOL=":"
7854  else
7855    case $cross_compiling:$ac_tool_warned in
7856yes:)
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859ac_tool_warned=yes ;;
7860esac
7861    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7862  fi
7863else
7864  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7865fi
7866
7867test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7869$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7870if ${lt_cv_path_mainfest_tool+:} false; then :
7871  $as_echo_n "(cached) " >&6
7872else
7873  lt_cv_path_mainfest_tool=no
7874  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7875  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7876  cat conftest.err >&5
7877  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7878    lt_cv_path_mainfest_tool=yes
7879  fi
7880  rm -f conftest*
7881fi
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7883$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7884if test yes != "$lt_cv_path_mainfest_tool"; then
7885  MANIFEST_TOOL=:
7886fi
7887
7888
7889
7890
7891
7892
7893  case $host_os in
7894    rhapsody* | darwin*)
7895    if test -n "$ac_tool_prefix"; then
7896  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7897set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899$as_echo_n "checking for $ac_word... " >&6; }
7900if ${ac_cv_prog_DSYMUTIL+:} false; then :
7901  $as_echo_n "(cached) " >&6
7902else
7903  if test -n "$DSYMUTIL"; then
7904  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7905else
7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909  IFS=$as_save_IFS
7910  test -z "$as_dir" && as_dir=.
7911    for ac_exec_ext in '' $ac_executable_extensions; do
7912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915    break 2
7916  fi
7917done
7918  done
7919IFS=$as_save_IFS
7920
7921fi
7922fi
7923DSYMUTIL=$ac_cv_prog_DSYMUTIL
7924if test -n "$DSYMUTIL"; then
7925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7926$as_echo "$DSYMUTIL" >&6; }
7927else
7928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929$as_echo "no" >&6; }
7930fi
7931
7932
7933fi
7934if test -z "$ac_cv_prog_DSYMUTIL"; then
7935  ac_ct_DSYMUTIL=$DSYMUTIL
7936  # Extract the first word of "dsymutil", so it can be a program name with args.
7937set dummy dsymutil; ac_word=$2
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939$as_echo_n "checking for $ac_word... " >&6; }
7940if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  if test -n "$ac_ct_DSYMUTIL"; then
7944  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7945else
7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH
7948do
7949  IFS=$as_save_IFS
7950  test -z "$as_dir" && as_dir=.
7951    for ac_exec_ext in '' $ac_executable_extensions; do
7952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955    break 2
7956  fi
7957done
7958  done
7959IFS=$as_save_IFS
7960
7961fi
7962fi
7963ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7964if test -n "$ac_ct_DSYMUTIL"; then
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7966$as_echo "$ac_ct_DSYMUTIL" >&6; }
7967else
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969$as_echo "no" >&6; }
7970fi
7971
7972  if test "x$ac_ct_DSYMUTIL" = x; then
7973    DSYMUTIL=":"
7974  else
7975    case $cross_compiling:$ac_tool_warned in
7976yes:)
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7979ac_tool_warned=yes ;;
7980esac
7981    DSYMUTIL=$ac_ct_DSYMUTIL
7982  fi
7983else
7984  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7985fi
7986
7987    if test -n "$ac_tool_prefix"; then
7988  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7989set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
7992if ${ac_cv_prog_NMEDIT+:} false; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  if test -n "$NMEDIT"; then
7996  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003    for ac_exec_ext in '' $ac_executable_extensions; do
8004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010  done
8011IFS=$as_save_IFS
8012
8013fi
8014fi
8015NMEDIT=$ac_cv_prog_NMEDIT
8016if test -n "$NMEDIT"; then
8017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8018$as_echo "$NMEDIT" >&6; }
8019else
8020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
8022fi
8023
8024
8025fi
8026if test -z "$ac_cv_prog_NMEDIT"; then
8027  ac_ct_NMEDIT=$NMEDIT
8028  # Extract the first word of "nmedit", so it can be a program name with args.
8029set dummy nmedit; ac_word=$2
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031$as_echo_n "checking for $ac_word... " >&6; }
8032if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8033  $as_echo_n "(cached) " >&6
8034else
8035  if test -n "$ac_ct_NMEDIT"; then
8036  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8037else
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041  IFS=$as_save_IFS
8042  test -z "$as_dir" && as_dir=.
8043    for ac_exec_ext in '' $ac_executable_extensions; do
8044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047    break 2
8048  fi
8049done
8050  done
8051IFS=$as_save_IFS
8052
8053fi
8054fi
8055ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8056if test -n "$ac_ct_NMEDIT"; then
8057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8058$as_echo "$ac_ct_NMEDIT" >&6; }
8059else
8060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
8062fi
8063
8064  if test "x$ac_ct_NMEDIT" = x; then
8065    NMEDIT=":"
8066  else
8067    case $cross_compiling:$ac_tool_warned in
8068yes:)
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8071ac_tool_warned=yes ;;
8072esac
8073    NMEDIT=$ac_ct_NMEDIT
8074  fi
8075else
8076  NMEDIT="$ac_cv_prog_NMEDIT"
8077fi
8078
8079    if test -n "$ac_tool_prefix"; then
8080  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8081set dummy ${ac_tool_prefix}lipo; ac_word=$2
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083$as_echo_n "checking for $ac_word... " >&6; }
8084if ${ac_cv_prog_LIPO+:} false; then :
8085  $as_echo_n "(cached) " >&6
8086else
8087  if test -n "$LIPO"; then
8088  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8089else
8090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091for as_dir in $PATH
8092do
8093  IFS=$as_save_IFS
8094  test -z "$as_dir" && as_dir=.
8095    for ac_exec_ext in '' $ac_executable_extensions; do
8096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099    break 2
8100  fi
8101done
8102  done
8103IFS=$as_save_IFS
8104
8105fi
8106fi
8107LIPO=$ac_cv_prog_LIPO
8108if test -n "$LIPO"; then
8109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8110$as_echo "$LIPO" >&6; }
8111else
8112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113$as_echo "no" >&6; }
8114fi
8115
8116
8117fi
8118if test -z "$ac_cv_prog_LIPO"; then
8119  ac_ct_LIPO=$LIPO
8120  # Extract the first word of "lipo", so it can be a program name with args.
8121set dummy lipo; ac_word=$2
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123$as_echo_n "checking for $ac_word... " >&6; }
8124if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8125  $as_echo_n "(cached) " >&6
8126else
8127  if test -n "$ac_ct_LIPO"; then
8128  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8129else
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133  IFS=$as_save_IFS
8134  test -z "$as_dir" && as_dir=.
8135    for ac_exec_ext in '' $ac_executable_extensions; do
8136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137    ac_cv_prog_ac_ct_LIPO="lipo"
8138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139    break 2
8140  fi
8141done
8142  done
8143IFS=$as_save_IFS
8144
8145fi
8146fi
8147ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8148if test -n "$ac_ct_LIPO"; then
8149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8150$as_echo "$ac_ct_LIPO" >&6; }
8151else
8152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153$as_echo "no" >&6; }
8154fi
8155
8156  if test "x$ac_ct_LIPO" = x; then
8157    LIPO=":"
8158  else
8159    case $cross_compiling:$ac_tool_warned in
8160yes:)
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8163ac_tool_warned=yes ;;
8164esac
8165    LIPO=$ac_ct_LIPO
8166  fi
8167else
8168  LIPO="$ac_cv_prog_LIPO"
8169fi
8170
8171    if test -n "$ac_tool_prefix"; then
8172  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8173set dummy ${ac_tool_prefix}otool; ac_word=$2
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175$as_echo_n "checking for $ac_word... " >&6; }
8176if ${ac_cv_prog_OTOOL+:} false; then :
8177  $as_echo_n "(cached) " >&6
8178else
8179  if test -n "$OTOOL"; then
8180  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8181else
8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185  IFS=$as_save_IFS
8186  test -z "$as_dir" && as_dir=.
8187    for ac_exec_ext in '' $ac_executable_extensions; do
8188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191    break 2
8192  fi
8193done
8194  done
8195IFS=$as_save_IFS
8196
8197fi
8198fi
8199OTOOL=$ac_cv_prog_OTOOL
8200if test -n "$OTOOL"; then
8201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8202$as_echo "$OTOOL" >&6; }
8203else
8204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205$as_echo "no" >&6; }
8206fi
8207
8208
8209fi
8210if test -z "$ac_cv_prog_OTOOL"; then
8211  ac_ct_OTOOL=$OTOOL
8212  # Extract the first word of "otool", so it can be a program name with args.
8213set dummy otool; ac_word=$2
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215$as_echo_n "checking for $ac_word... " >&6; }
8216if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  if test -n "$ac_ct_OTOOL"; then
8220  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8221else
8222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $PATH
8224do
8225  IFS=$as_save_IFS
8226  test -z "$as_dir" && as_dir=.
8227    for ac_exec_ext in '' $ac_executable_extensions; do
8228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8229    ac_cv_prog_ac_ct_OTOOL="otool"
8230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231    break 2
8232  fi
8233done
8234  done
8235IFS=$as_save_IFS
8236
8237fi
8238fi
8239ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8240if test -n "$ac_ct_OTOOL"; then
8241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8242$as_echo "$ac_ct_OTOOL" >&6; }
8243else
8244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245$as_echo "no" >&6; }
8246fi
8247
8248  if test "x$ac_ct_OTOOL" = x; then
8249    OTOOL=":"
8250  else
8251    case $cross_compiling:$ac_tool_warned in
8252yes:)
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8255ac_tool_warned=yes ;;
8256esac
8257    OTOOL=$ac_ct_OTOOL
8258  fi
8259else
8260  OTOOL="$ac_cv_prog_OTOOL"
8261fi
8262
8263    if test -n "$ac_tool_prefix"; then
8264  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8265set dummy ${ac_tool_prefix}otool64; ac_word=$2
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
8268if ${ac_cv_prog_OTOOL64+:} false; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271  if test -n "$OTOOL64"; then
8272  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8273else
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277  IFS=$as_save_IFS
8278  test -z "$as_dir" && as_dir=.
8279    for ac_exec_ext in '' $ac_executable_extensions; do
8280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283    break 2
8284  fi
8285done
8286  done
8287IFS=$as_save_IFS
8288
8289fi
8290fi
8291OTOOL64=$ac_cv_prog_OTOOL64
8292if test -n "$OTOOL64"; then
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8294$as_echo "$OTOOL64" >&6; }
8295else
8296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
8298fi
8299
8300
8301fi
8302if test -z "$ac_cv_prog_OTOOL64"; then
8303  ac_ct_OTOOL64=$OTOOL64
8304  # Extract the first word of "otool64", so it can be a program name with args.
8305set dummy otool64; ac_word=$2
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307$as_echo_n "checking for $ac_word... " >&6; }
8308if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8309  $as_echo_n "(cached) " >&6
8310else
8311  if test -n "$ac_ct_OTOOL64"; then
8312  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8313else
8314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315for as_dir in $PATH
8316do
8317  IFS=$as_save_IFS
8318  test -z "$as_dir" && as_dir=.
8319    for ac_exec_ext in '' $ac_executable_extensions; do
8320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8321    ac_cv_prog_ac_ct_OTOOL64="otool64"
8322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323    break 2
8324  fi
8325done
8326  done
8327IFS=$as_save_IFS
8328
8329fi
8330fi
8331ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8332if test -n "$ac_ct_OTOOL64"; then
8333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8334$as_echo "$ac_ct_OTOOL64" >&6; }
8335else
8336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337$as_echo "no" >&6; }
8338fi
8339
8340  if test "x$ac_ct_OTOOL64" = x; then
8341    OTOOL64=":"
8342  else
8343    case $cross_compiling:$ac_tool_warned in
8344yes:)
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8347ac_tool_warned=yes ;;
8348esac
8349    OTOOL64=$ac_ct_OTOOL64
8350  fi
8351else
8352  OTOOL64="$ac_cv_prog_OTOOL64"
8353fi
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8382$as_echo_n "checking for -single_module linker flag... " >&6; }
8383if ${lt_cv_apple_cc_single_mod+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  lt_cv_apple_cc_single_mod=no
8387      if test -z "$LT_MULTI_MODULE"; then
8388	# By default we will add the -single_module flag. You can override
8389	# by either setting the environment variable LT_MULTI_MODULE
8390	# non-empty at configure time, or by adding -multi_module to the
8391	# link flags.
8392	rm -rf libconftest.dylib*
8393	echo "int foo(void){return 1;}" > conftest.c
8394	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8395-dynamiclib -Wl,-single_module conftest.c" >&5
8396	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8397	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8398        _lt_result=$?
8399	# If there is a non-empty error log, and "single_module"
8400	# appears in it, assume the flag caused a linker warning
8401        if test -s conftest.err && $GREP single_module conftest.err; then
8402	  cat conftest.err >&5
8403	# Otherwise, if the output was created with a 0 exit code from
8404	# the compiler, it worked.
8405	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8406	  lt_cv_apple_cc_single_mod=yes
8407	else
8408	  cat conftest.err >&5
8409	fi
8410	rm -rf libconftest.dylib*
8411	rm -f conftest.*
8412      fi
8413fi
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8415$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8416
8417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8418$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8419if ${lt_cv_ld_exported_symbols_list+:} false; then :
8420  $as_echo_n "(cached) " >&6
8421else
8422  lt_cv_ld_exported_symbols_list=no
8423      save_LDFLAGS=$LDFLAGS
8424      echo "_main" > conftest.sym
8425      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8426      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h.  */
8428
8429int
8430main ()
8431{
8432
8433  ;
8434  return 0;
8435}
8436_ACEOF
8437if ac_fn_c_try_link "$LINENO"; then :
8438  lt_cv_ld_exported_symbols_list=yes
8439else
8440  lt_cv_ld_exported_symbols_list=no
8441fi
8442rm -f core conftest.err conftest.$ac_objext \
8443    conftest$ac_exeext conftest.$ac_ext
8444	LDFLAGS=$save_LDFLAGS
8445
8446fi
8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8448$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8449
8450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8451$as_echo_n "checking for -force_load linker flag... " >&6; }
8452if ${lt_cv_ld_force_load+:} false; then :
8453  $as_echo_n "(cached) " >&6
8454else
8455  lt_cv_ld_force_load=no
8456      cat > conftest.c << _LT_EOF
8457int forced_loaded() { return 2;}
8458_LT_EOF
8459      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8460      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8461      echo "$AR cru libconftest.a conftest.o" >&5
8462      $AR cru libconftest.a conftest.o 2>&5
8463      echo "$RANLIB libconftest.a" >&5
8464      $RANLIB libconftest.a 2>&5
8465      cat > conftest.c << _LT_EOF
8466int main() { return 0;}
8467_LT_EOF
8468      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8469      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8470      _lt_result=$?
8471      if test -s conftest.err && $GREP force_load conftest.err; then
8472	cat conftest.err >&5
8473      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8474	lt_cv_ld_force_load=yes
8475      else
8476	cat conftest.err >&5
8477      fi
8478        rm -f conftest.err libconftest.a conftest conftest.c
8479        rm -rf conftest.dSYM
8480
8481fi
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8483$as_echo "$lt_cv_ld_force_load" >&6; }
8484    case $host_os in
8485    rhapsody* | darwin1.[012])
8486      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8487    darwin1.*)
8488      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8489    darwin*) # darwin 5.x on
8490      # if running on 10.5 or later, the deployment target defaults
8491      # to the OS version, if on x86, and 10.4, the deployment
8492      # target defaults to 10.4. Don't you love it?
8493      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8494	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8495	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8496	10.[012][,.]*)
8497	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8498	10.*)
8499	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8500      esac
8501    ;;
8502  esac
8503    if test yes = "$lt_cv_apple_cc_single_mod"; then
8504      _lt_dar_single_mod='$single_module'
8505    fi
8506    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8507      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8508    else
8509      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8510    fi
8511    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8512      _lt_dsymutil='~$DSYMUTIL $lib || :'
8513    else
8514      _lt_dsymutil=
8515    fi
8516    ;;
8517  esac
8518
8519# func_munge_path_list VARIABLE PATH
8520# -----------------------------------
8521# VARIABLE is name of variable containing _space_ separated list of
8522# directories to be munged by the contents of PATH, which is string
8523# having a format:
8524# "DIR[:DIR]:"
8525#       string "DIR[ DIR]" will be prepended to VARIABLE
8526# ":DIR[:DIR]"
8527#       string "DIR[ DIR]" will be appended to VARIABLE
8528# "DIRP[:DIRP]::[DIRA:]DIRA"
8529#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8530#       "DIRA[ DIRA]" will be appended to VARIABLE
8531# "DIR[:DIR]"
8532#       VARIABLE will be replaced by "DIR[ DIR]"
8533func_munge_path_list ()
8534{
8535    case x$2 in
8536    x)
8537        ;;
8538    *:)
8539        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8540        ;;
8541    x:*)
8542        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8543        ;;
8544    *::*)
8545        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8546        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8547        ;;
8548    *)
8549        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8550        ;;
8551    esac
8552}
8553
8554ac_ext=c
8555ac_cpp='$CPP $CPPFLAGS'
8556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8558ac_compiler_gnu=$ac_cv_c_compiler_gnu
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8560$as_echo_n "checking how to run the C preprocessor... " >&6; }
8561# On Suns, sometimes $CPP names a directory.
8562if test -n "$CPP" && test -d "$CPP"; then
8563  CPP=
8564fi
8565if test -z "$CPP"; then
8566  if ${ac_cv_prog_CPP+:} false; then :
8567  $as_echo_n "(cached) " >&6
8568else
8569      # Double quotes because CPP needs to be expanded
8570    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8571    do
8572      ac_preproc_ok=false
8573for ac_c_preproc_warn_flag in '' yes
8574do
8575  # Use a header file that comes with gcc, so configuring glibc
8576  # with a fresh cross-compiler works.
8577  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8578  # <limits.h> exists even on freestanding compilers.
8579  # On the NeXT, cc -E runs the code through the compiler's parser,
8580  # not just through cpp. "Syntax error" is here to catch this case.
8581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582/* end confdefs.h.  */
8583#ifdef __STDC__
8584# include <limits.h>
8585#else
8586# include <assert.h>
8587#endif
8588		     Syntax error
8589_ACEOF
8590if ac_fn_c_try_cpp "$LINENO"; then :
8591
8592else
8593  # Broken: fails on valid input.
8594continue
8595fi
8596rm -f conftest.err conftest.i conftest.$ac_ext
8597
8598  # OK, works on sane cases.  Now check whether nonexistent headers
8599  # can be detected and how.
8600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601/* end confdefs.h.  */
8602#include <ac_nonexistent.h>
8603_ACEOF
8604if ac_fn_c_try_cpp "$LINENO"; then :
8605  # Broken: success on invalid input.
8606continue
8607else
8608  # Passes both tests.
8609ac_preproc_ok=:
8610break
8611fi
8612rm -f conftest.err conftest.i conftest.$ac_ext
8613
8614done
8615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8616rm -f conftest.i conftest.err conftest.$ac_ext
8617if $ac_preproc_ok; then :
8618  break
8619fi
8620
8621    done
8622    ac_cv_prog_CPP=$CPP
8623
8624fi
8625  CPP=$ac_cv_prog_CPP
8626else
8627  ac_cv_prog_CPP=$CPP
8628fi
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8630$as_echo "$CPP" >&6; }
8631ac_preproc_ok=false
8632for ac_c_preproc_warn_flag in '' yes
8633do
8634  # Use a header file that comes with gcc, so configuring glibc
8635  # with a fresh cross-compiler works.
8636  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8637  # <limits.h> exists even on freestanding compilers.
8638  # On the NeXT, cc -E runs the code through the compiler's parser,
8639  # not just through cpp. "Syntax error" is here to catch this case.
8640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h.  */
8642#ifdef __STDC__
8643# include <limits.h>
8644#else
8645# include <assert.h>
8646#endif
8647		     Syntax error
8648_ACEOF
8649if ac_fn_c_try_cpp "$LINENO"; then :
8650
8651else
8652  # Broken: fails on valid input.
8653continue
8654fi
8655rm -f conftest.err conftest.i conftest.$ac_ext
8656
8657  # OK, works on sane cases.  Now check whether nonexistent headers
8658  # can be detected and how.
8659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660/* end confdefs.h.  */
8661#include <ac_nonexistent.h>
8662_ACEOF
8663if ac_fn_c_try_cpp "$LINENO"; then :
8664  # Broken: success on invalid input.
8665continue
8666else
8667  # Passes both tests.
8668ac_preproc_ok=:
8669break
8670fi
8671rm -f conftest.err conftest.i conftest.$ac_ext
8672
8673done
8674# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8675rm -f conftest.i conftest.err conftest.$ac_ext
8676if $ac_preproc_ok; then :
8677
8678else
8679  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8681as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8682See \`config.log' for more details" "$LINENO" 5; }
8683fi
8684
8685ac_ext=c
8686ac_cpp='$CPP $CPPFLAGS'
8687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8689ac_compiler_gnu=$ac_cv_c_compiler_gnu
8690
8691
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8693$as_echo_n "checking for ANSI C header files... " >&6; }
8694if ${ac_cv_header_stdc+:} false; then :
8695  $as_echo_n "(cached) " >&6
8696else
8697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h.  */
8699#include <stdlib.h>
8700#include <stdarg.h>
8701#include <string.h>
8702#include <float.h>
8703
8704int
8705main ()
8706{
8707
8708  ;
8709  return 0;
8710}
8711_ACEOF
8712if ac_fn_c_try_compile "$LINENO"; then :
8713  ac_cv_header_stdc=yes
8714else
8715  ac_cv_header_stdc=no
8716fi
8717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718
8719if test $ac_cv_header_stdc = yes; then
8720  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722/* end confdefs.h.  */
8723#include <string.h>
8724
8725_ACEOF
8726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8727  $EGREP "memchr" >/dev/null 2>&1; then :
8728
8729else
8730  ac_cv_header_stdc=no
8731fi
8732rm -f conftest*
8733
8734fi
8735
8736if test $ac_cv_header_stdc = yes; then
8737  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739/* end confdefs.h.  */
8740#include <stdlib.h>
8741
8742_ACEOF
8743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8744  $EGREP "free" >/dev/null 2>&1; then :
8745
8746else
8747  ac_cv_header_stdc=no
8748fi
8749rm -f conftest*
8750
8751fi
8752
8753if test $ac_cv_header_stdc = yes; then
8754  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8755  if test "$cross_compiling" = yes; then :
8756  :
8757else
8758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759/* end confdefs.h.  */
8760#include <ctype.h>
8761#include <stdlib.h>
8762#if ((' ' & 0x0FF) == 0x020)
8763# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8764# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8765#else
8766# define ISLOWER(c) \
8767		   (('a' <= (c) && (c) <= 'i') \
8768		     || ('j' <= (c) && (c) <= 'r') \
8769		     || ('s' <= (c) && (c) <= 'z'))
8770# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8771#endif
8772
8773#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8774int
8775main ()
8776{
8777  int i;
8778  for (i = 0; i < 256; i++)
8779    if (XOR (islower (i), ISLOWER (i))
8780	|| toupper (i) != TOUPPER (i))
8781      return 2;
8782  return 0;
8783}
8784_ACEOF
8785if ac_fn_c_try_run "$LINENO"; then :
8786
8787else
8788  ac_cv_header_stdc=no
8789fi
8790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8791  conftest.$ac_objext conftest.beam conftest.$ac_ext
8792fi
8793
8794fi
8795fi
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8797$as_echo "$ac_cv_header_stdc" >&6; }
8798if test $ac_cv_header_stdc = yes; then
8799
8800$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8801
8802fi
8803
8804# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8805for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8806		  inttypes.h stdint.h unistd.h
8807do :
8808  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8809ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8810"
8811if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8812  cat >>confdefs.h <<_ACEOF
8813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8814_ACEOF
8815
8816fi
8817
8818done
8819
8820
8821for ac_header in dlfcn.h
8822do :
8823  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8824"
8825if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8826  cat >>confdefs.h <<_ACEOF
8827#define HAVE_DLFCN_H 1
8828_ACEOF
8829
8830fi
8831
8832done
8833
8834
8835
8836
8837func_stripname_cnf ()
8838{
8839  case $2 in
8840  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8841  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8842  esac
8843} # func_stripname_cnf
8844
8845
8846
8847
8848
8849# Set options
8850
8851
8852
8853        enable_dlopen=no
8854
8855
8856  enable_win32_dll=no
8857
8858
8859            # Check whether --enable-shared was given.
8860if test "${enable_shared+set}" = set; then :
8861  enableval=$enable_shared; p=${PACKAGE-default}
8862    case $enableval in
8863    yes) enable_shared=yes ;;
8864    no) enable_shared=no ;;
8865    *)
8866      enable_shared=no
8867      # Look at the argument we got.  We use all the common list separators.
8868      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8869      for pkg in $enableval; do
8870	IFS=$lt_save_ifs
8871	if test "X$pkg" = "X$p"; then
8872	  enable_shared=yes
8873	fi
8874      done
8875      IFS=$lt_save_ifs
8876      ;;
8877    esac
8878else
8879  enable_shared=yes
8880fi
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890  # Check whether --enable-static was given.
8891if test "${enable_static+set}" = set; then :
8892  enableval=$enable_static; p=${PACKAGE-default}
8893    case $enableval in
8894    yes) enable_static=yes ;;
8895    no) enable_static=no ;;
8896    *)
8897     enable_static=no
8898      # Look at the argument we got.  We use all the common list separators.
8899      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8900      for pkg in $enableval; do
8901	IFS=$lt_save_ifs
8902	if test "X$pkg" = "X$p"; then
8903	  enable_static=yes
8904	fi
8905      done
8906      IFS=$lt_save_ifs
8907      ;;
8908    esac
8909else
8910  enable_static=yes
8911fi
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922# Check whether --with-pic was given.
8923if test "${with_pic+set}" = set; then :
8924  withval=$with_pic; lt_p=${PACKAGE-default}
8925    case $withval in
8926    yes|no) pic_mode=$withval ;;
8927    *)
8928      pic_mode=default
8929      # Look at the argument we got.  We use all the common list separators.
8930      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8931      for lt_pkg in $withval; do
8932	IFS=$lt_save_ifs
8933	if test "X$lt_pkg" = "X$lt_p"; then
8934	  pic_mode=yes
8935	fi
8936      done
8937      IFS=$lt_save_ifs
8938      ;;
8939    esac
8940else
8941  pic_mode=default
8942fi
8943
8944
8945
8946
8947
8948
8949
8950
8951  # Check whether --enable-fast-install was given.
8952if test "${enable_fast_install+set}" = set; then :
8953  enableval=$enable_fast_install; p=${PACKAGE-default}
8954    case $enableval in
8955    yes) enable_fast_install=yes ;;
8956    no) enable_fast_install=no ;;
8957    *)
8958      enable_fast_install=no
8959      # Look at the argument we got.  We use all the common list separators.
8960      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8961      for pkg in $enableval; do
8962	IFS=$lt_save_ifs
8963	if test "X$pkg" = "X$p"; then
8964	  enable_fast_install=yes
8965	fi
8966      done
8967      IFS=$lt_save_ifs
8968      ;;
8969    esac
8970else
8971  enable_fast_install=yes
8972fi
8973
8974
8975
8976
8977
8978
8979
8980
8981  shared_archive_member_spec=
8982case $host,$enable_shared in
8983power*-*-aix[5-9]*,yes)
8984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8985$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8986
8987# Check whether --with-aix-soname was given.
8988if test "${with_aix_soname+set}" = set; then :
8989  withval=$with_aix_soname; case $withval in
8990    aix|svr4|both)
8991      ;;
8992    *)
8993      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8994      ;;
8995    esac
8996    lt_cv_with_aix_soname=$with_aix_soname
8997else
8998  if ${lt_cv_with_aix_soname+:} false; then :
8999  $as_echo_n "(cached) " >&6
9000else
9001  lt_cv_with_aix_soname=aix
9002fi
9003
9004    with_aix_soname=$lt_cv_with_aix_soname
9005fi
9006
9007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9008$as_echo "$with_aix_soname" >&6; }
9009  if test aix != "$with_aix_soname"; then
9010    # For the AIX way of multilib, we name the shared archive member
9011    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9012    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9013    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9014    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9015    if test 64 = "${OBJECT_MODE-32}"; then
9016      shared_archive_member_spec=shr_64
9017    else
9018      shared_archive_member_spec=shr
9019    fi
9020  fi
9021  ;;
9022*)
9023  with_aix_soname=aix
9024  ;;
9025esac
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036# This can be used to rebuild libtool when needed
9037LIBTOOL_DEPS=$ltmain
9038
9039# Always use our own libtool.
9040LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071test -z "$LN_S" && LN_S="ln -s"
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086if test -n "${ZSH_VERSION+set}"; then
9087   setopt NO_GLOB_SUBST
9088fi
9089
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9091$as_echo_n "checking for objdir... " >&6; }
9092if ${lt_cv_objdir+:} false; then :
9093  $as_echo_n "(cached) " >&6
9094else
9095  rm -f .libs 2>/dev/null
9096mkdir .libs 2>/dev/null
9097if test -d .libs; then
9098  lt_cv_objdir=.libs
9099else
9100  # MS-DOS does not allow filenames that begin with a dot.
9101  lt_cv_objdir=_libs
9102fi
9103rmdir .libs 2>/dev/null
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9106$as_echo "$lt_cv_objdir" >&6; }
9107objdir=$lt_cv_objdir
9108
9109
9110
9111
9112
9113cat >>confdefs.h <<_ACEOF
9114#define LT_OBJDIR "$lt_cv_objdir/"
9115_ACEOF
9116
9117
9118
9119
9120case $host_os in
9121aix3*)
9122  # AIX sometimes has problems with the GCC collect2 program.  For some
9123  # reason, if we set the COLLECT_NAMES environment variable, the problems
9124  # vanish in a puff of smoke.
9125  if test set != "${COLLECT_NAMES+set}"; then
9126    COLLECT_NAMES=
9127    export COLLECT_NAMES
9128  fi
9129  ;;
9130esac
9131
9132# Global variables:
9133ofile=libtool
9134can_build_shared=yes
9135
9136# All known linkers require a '.a' archive for static linking (except MSVC,
9137# which needs '.lib').
9138libext=a
9139
9140with_gnu_ld=$lt_cv_prog_gnu_ld
9141
9142old_CC=$CC
9143old_CFLAGS=$CFLAGS
9144
9145# Set sane defaults for various variables
9146test -z "$CC" && CC=cc
9147test -z "$LTCC" && LTCC=$CC
9148test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9149test -z "$LD" && LD=ld
9150test -z "$ac_objext" && ac_objext=o
9151
9152func_cc_basename $compiler
9153cc_basename=$func_cc_basename_result
9154
9155
9156# Only perform the check for file, if the check method requires it
9157test -z "$MAGIC_CMD" && MAGIC_CMD=file
9158case $deplibs_check_method in
9159file_magic*)
9160  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9162$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9163if ${lt_cv_path_MAGIC_CMD+:} false; then :
9164  $as_echo_n "(cached) " >&6
9165else
9166  case $MAGIC_CMD in
9167[\\/*] |  ?:[\\/]*)
9168  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9169  ;;
9170*)
9171  lt_save_MAGIC_CMD=$MAGIC_CMD
9172  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9173  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9174  for ac_dir in $ac_dummy; do
9175    IFS=$lt_save_ifs
9176    test -z "$ac_dir" && ac_dir=.
9177    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9178      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9179      if test -n "$file_magic_test_file"; then
9180	case $deplibs_check_method in
9181	"file_magic "*)
9182	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9183	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9184	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9185	    $EGREP "$file_magic_regex" > /dev/null; then
9186	    :
9187	  else
9188	    cat <<_LT_EOF 1>&2
9189
9190*** Warning: the command libtool uses to detect shared libraries,
9191*** $file_magic_cmd, produces output that libtool cannot recognize.
9192*** The result is that libtool may fail to recognize shared libraries
9193*** as such.  This will affect the creation of libtool libraries that
9194*** depend on shared libraries, but programs linked with such libtool
9195*** libraries will work regardless of this problem.  Nevertheless, you
9196*** may want to report the problem to your system manager and/or to
9197*** bug-libtool@gnu.org
9198
9199_LT_EOF
9200	  fi ;;
9201	esac
9202      fi
9203      break
9204    fi
9205  done
9206  IFS=$lt_save_ifs
9207  MAGIC_CMD=$lt_save_MAGIC_CMD
9208  ;;
9209esac
9210fi
9211
9212MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9213if test -n "$MAGIC_CMD"; then
9214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9215$as_echo "$MAGIC_CMD" >&6; }
9216else
9217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218$as_echo "no" >&6; }
9219fi
9220
9221
9222
9223
9224
9225if test -z "$lt_cv_path_MAGIC_CMD"; then
9226  if test -n "$ac_tool_prefix"; then
9227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9228$as_echo_n "checking for file... " >&6; }
9229if ${lt_cv_path_MAGIC_CMD+:} false; then :
9230  $as_echo_n "(cached) " >&6
9231else
9232  case $MAGIC_CMD in
9233[\\/*] |  ?:[\\/]*)
9234  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9235  ;;
9236*)
9237  lt_save_MAGIC_CMD=$MAGIC_CMD
9238  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9239  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9240  for ac_dir in $ac_dummy; do
9241    IFS=$lt_save_ifs
9242    test -z "$ac_dir" && ac_dir=.
9243    if test -f "$ac_dir/file"; then
9244      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9245      if test -n "$file_magic_test_file"; then
9246	case $deplibs_check_method in
9247	"file_magic "*)
9248	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9249	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9250	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9251	    $EGREP "$file_magic_regex" > /dev/null; then
9252	    :
9253	  else
9254	    cat <<_LT_EOF 1>&2
9255
9256*** Warning: the command libtool uses to detect shared libraries,
9257*** $file_magic_cmd, produces output that libtool cannot recognize.
9258*** The result is that libtool may fail to recognize shared libraries
9259*** as such.  This will affect the creation of libtool libraries that
9260*** depend on shared libraries, but programs linked with such libtool
9261*** libraries will work regardless of this problem.  Nevertheless, you
9262*** may want to report the problem to your system manager and/or to
9263*** bug-libtool@gnu.org
9264
9265_LT_EOF
9266	  fi ;;
9267	esac
9268      fi
9269      break
9270    fi
9271  done
9272  IFS=$lt_save_ifs
9273  MAGIC_CMD=$lt_save_MAGIC_CMD
9274  ;;
9275esac
9276fi
9277
9278MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9279if test -n "$MAGIC_CMD"; then
9280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9281$as_echo "$MAGIC_CMD" >&6; }
9282else
9283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284$as_echo "no" >&6; }
9285fi
9286
9287
9288  else
9289    MAGIC_CMD=:
9290  fi
9291fi
9292
9293  fi
9294  ;;
9295esac
9296
9297# Use C for the default configuration in the libtool script
9298
9299lt_save_CC=$CC
9300ac_ext=c
9301ac_cpp='$CPP $CPPFLAGS'
9302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9304ac_compiler_gnu=$ac_cv_c_compiler_gnu
9305
9306
9307# Source file extension for C test sources.
9308ac_ext=c
9309
9310# Object file extension for compiled C test sources.
9311objext=o
9312objext=$objext
9313
9314# Code to be used in simple compile tests
9315lt_simple_compile_test_code="int some_variable = 0;"
9316
9317# Code to be used in simple link tests
9318lt_simple_link_test_code='int main(){return(0);}'
9319
9320
9321
9322
9323
9324
9325
9326# If no C compiler was specified, use CC.
9327LTCC=${LTCC-"$CC"}
9328
9329# If no C compiler flags were specified, use CFLAGS.
9330LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9331
9332# Allow CC to be a program name with arguments.
9333compiler=$CC
9334
9335# Save the default compiler, since it gets overwritten when the other
9336# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9337compiler_DEFAULT=$CC
9338
9339# save warnings/boilerplate of simple test code
9340ac_outfile=conftest.$ac_objext
9341echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9342eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9343_lt_compiler_boilerplate=`cat conftest.err`
9344$RM conftest*
9345
9346ac_outfile=conftest.$ac_objext
9347echo "$lt_simple_link_test_code" >conftest.$ac_ext
9348eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9349_lt_linker_boilerplate=`cat conftest.err`
9350$RM -r conftest*
9351
9352
9353## CAVEAT EMPTOR:
9354## There is no encapsulation within the following macros, do not change
9355## the running order or otherwise move them around unless you know exactly
9356## what you are doing...
9357if test -n "$compiler"; then
9358
9359lt_prog_compiler_no_builtin_flag=
9360
9361if test yes = "$GCC"; then
9362  case $cc_basename in
9363  nvcc*)
9364    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9365  *)
9366    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9367  esac
9368
9369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9370$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9371if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9372  $as_echo_n "(cached) " >&6
9373else
9374  lt_cv_prog_compiler_rtti_exceptions=no
9375   ac_outfile=conftest.$ac_objext
9376   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9377   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9378   # Insert the option either (1) after the last *FLAGS variable, or
9379   # (2) before a word containing "conftest.", or (3) at the end.
9380   # Note that $ac_compile itself does not contain backslashes and begins
9381   # with a dollar sign (not a hyphen), so the echo should work correctly.
9382   # The option is referenced via a variable to avoid confusing sed.
9383   lt_compile=`echo "$ac_compile" | $SED \
9384   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9386   -e 's:$: $lt_compiler_flag:'`
9387   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9388   (eval "$lt_compile" 2>conftest.err)
9389   ac_status=$?
9390   cat conftest.err >&5
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   if (exit $ac_status) && test -s "$ac_outfile"; then
9393     # The compiler can only warn and ignore the option if not recognized
9394     # So say no if there are warnings other than the usual output.
9395     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9396     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9397     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9398       lt_cv_prog_compiler_rtti_exceptions=yes
9399     fi
9400   fi
9401   $RM conftest*
9402
9403fi
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9405$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9406
9407if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9408    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9409else
9410    :
9411fi
9412
9413fi
9414
9415
9416
9417
9418
9419
9420  lt_prog_compiler_wl=
9421lt_prog_compiler_pic=
9422lt_prog_compiler_static=
9423
9424
9425  if test yes = "$GCC"; then
9426    lt_prog_compiler_wl='-Wl,'
9427    lt_prog_compiler_static='-static'
9428
9429    case $host_os in
9430      aix*)
9431      # All AIX code is PIC.
9432      if test ia64 = "$host_cpu"; then
9433	# AIX 5 now supports IA64 processor
9434	lt_prog_compiler_static='-Bstatic'
9435      fi
9436      lt_prog_compiler_pic='-fPIC'
9437      ;;
9438
9439    amigaos*)
9440      case $host_cpu in
9441      powerpc)
9442            # see comment about AmigaOS4 .so support
9443            lt_prog_compiler_pic='-fPIC'
9444        ;;
9445      m68k)
9446            # FIXME: we need at least 68020 code to build shared libraries, but
9447            # adding the '-m68020' flag to GCC prevents building anything better,
9448            # like '-m68040'.
9449            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9450        ;;
9451      esac
9452      ;;
9453
9454    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9455      # PIC is the default for these OSes.
9456      ;;
9457
9458    mingw* | cygwin* | pw32* | os2* | cegcc*)
9459      # This hack is so that the source file can tell whether it is being
9460      # built for inclusion in a dll (and should export symbols for example).
9461      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9462      # (--disable-auto-import) libraries
9463      lt_prog_compiler_pic='-DDLL_EXPORT'
9464      case $host_os in
9465      os2*)
9466	lt_prog_compiler_static='$wl-static'
9467	;;
9468      esac
9469      ;;
9470
9471    darwin* | rhapsody*)
9472      # PIC is the default on this platform
9473      # Common symbols not allowed in MH_DYLIB files
9474      lt_prog_compiler_pic='-fno-common'
9475      ;;
9476
9477    haiku*)
9478      # PIC is the default for Haiku.
9479      # The "-static" flag exists, but is broken.
9480      lt_prog_compiler_static=
9481      ;;
9482
9483    hpux*)
9484      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9485      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9486      # sets the default TLS model and affects inlining.
9487      case $host_cpu in
9488      hppa*64*)
9489	# +Z the default
9490	;;
9491      *)
9492	lt_prog_compiler_pic='-fPIC'
9493	;;
9494      esac
9495      ;;
9496
9497    interix[3-9]*)
9498      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9499      # Instead, we relocate shared libraries at runtime.
9500      ;;
9501
9502    msdosdjgpp*)
9503      # Just because we use GCC doesn't mean we suddenly get shared libraries
9504      # on systems that don't support them.
9505      lt_prog_compiler_can_build_shared=no
9506      enable_shared=no
9507      ;;
9508
9509    *nto* | *qnx*)
9510      # QNX uses GNU C++, but need to define -shared option too, otherwise
9511      # it will coredump.
9512      lt_prog_compiler_pic='-fPIC -shared'
9513      ;;
9514
9515    sysv4*MP*)
9516      if test -d /usr/nec; then
9517	lt_prog_compiler_pic=-Kconform_pic
9518      fi
9519      ;;
9520
9521    *)
9522      lt_prog_compiler_pic='-fPIC'
9523      ;;
9524    esac
9525
9526    case $cc_basename in
9527    nvcc*) # Cuda Compiler Driver 2.2
9528      lt_prog_compiler_wl='-Xlinker '
9529      if test -n "$lt_prog_compiler_pic"; then
9530        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9531      fi
9532      ;;
9533    esac
9534  else
9535    # PORTME Check for flag to pass linker flags through the system compiler.
9536    case $host_os in
9537    aix*)
9538      lt_prog_compiler_wl='-Wl,'
9539      if test ia64 = "$host_cpu"; then
9540	# AIX 5 now supports IA64 processor
9541	lt_prog_compiler_static='-Bstatic'
9542      else
9543	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9544      fi
9545      ;;
9546
9547    darwin* | rhapsody*)
9548      # PIC is the default on this platform
9549      # Common symbols not allowed in MH_DYLIB files
9550      lt_prog_compiler_pic='-fno-common'
9551      case $cc_basename in
9552      nagfor*)
9553        # NAG Fortran compiler
9554        lt_prog_compiler_wl='-Wl,-Wl,,'
9555        lt_prog_compiler_pic='-PIC'
9556        lt_prog_compiler_static='-Bstatic'
9557        ;;
9558      esac
9559      ;;
9560
9561    mingw* | cygwin* | pw32* | os2* | cegcc*)
9562      # This hack is so that the source file can tell whether it is being
9563      # built for inclusion in a dll (and should export symbols for example).
9564      lt_prog_compiler_pic='-DDLL_EXPORT'
9565      case $host_os in
9566      os2*)
9567	lt_prog_compiler_static='$wl-static'
9568	;;
9569      esac
9570      ;;
9571
9572    hpux9* | hpux10* | hpux11*)
9573      lt_prog_compiler_wl='-Wl,'
9574      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9575      # not for PA HP-UX.
9576      case $host_cpu in
9577      hppa*64*|ia64*)
9578	# +Z the default
9579	;;
9580      *)
9581	lt_prog_compiler_pic='+Z'
9582	;;
9583      esac
9584      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9585      lt_prog_compiler_static='$wl-a ${wl}archive'
9586      ;;
9587
9588    irix5* | irix6* | nonstopux*)
9589      lt_prog_compiler_wl='-Wl,'
9590      # PIC (with -KPIC) is the default.
9591      lt_prog_compiler_static='-non_shared'
9592      ;;
9593
9594    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9595      case $cc_basename in
9596      # old Intel for x86_64, which still supported -KPIC.
9597      ecc*)
9598	lt_prog_compiler_wl='-Wl,'
9599	lt_prog_compiler_pic='-KPIC'
9600	lt_prog_compiler_static='-static'
9601        ;;
9602      # icc used to be incompatible with GCC.
9603      # ICC 10 doesn't accept -KPIC any more.
9604      icc* | ifort*)
9605	lt_prog_compiler_wl='-Wl,'
9606	lt_prog_compiler_pic='-fPIC'
9607	lt_prog_compiler_static='-static'
9608        ;;
9609      # Lahey Fortran 8.1.
9610      lf95*)
9611	lt_prog_compiler_wl='-Wl,'
9612	lt_prog_compiler_pic='--shared'
9613	lt_prog_compiler_static='--static'
9614	;;
9615      nagfor*)
9616	# NAG Fortran compiler
9617	lt_prog_compiler_wl='-Wl,-Wl,,'
9618	lt_prog_compiler_pic='-PIC'
9619	lt_prog_compiler_static='-Bstatic'
9620	;;
9621      tcc*)
9622	# Fabrice Bellard et al's Tiny C Compiler
9623	lt_prog_compiler_wl='-Wl,'
9624	lt_prog_compiler_pic='-fPIC'
9625	lt_prog_compiler_static='-static'
9626	;;
9627      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9628        # Portland Group compilers (*not* the Pentium gcc compiler,
9629	# which looks to be a dead project)
9630	lt_prog_compiler_wl='-Wl,'
9631	lt_prog_compiler_pic='-fpic'
9632	lt_prog_compiler_static='-Bstatic'
9633        ;;
9634      ccc*)
9635        lt_prog_compiler_wl='-Wl,'
9636        # All Alpha code is PIC.
9637        lt_prog_compiler_static='-non_shared'
9638        ;;
9639      xl* | bgxl* | bgf* | mpixl*)
9640	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9641	lt_prog_compiler_wl='-Wl,'
9642	lt_prog_compiler_pic='-qpic'
9643	lt_prog_compiler_static='-qstaticlink'
9644	;;
9645      *)
9646	case `$CC -V 2>&1 | sed 5q` in
9647	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9648	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9649	  lt_prog_compiler_pic='-KPIC'
9650	  lt_prog_compiler_static='-Bstatic'
9651	  lt_prog_compiler_wl=''
9652	  ;;
9653	*Sun\ F* | *Sun*Fortran*)
9654	  lt_prog_compiler_pic='-KPIC'
9655	  lt_prog_compiler_static='-Bstatic'
9656	  lt_prog_compiler_wl='-Qoption ld '
9657	  ;;
9658	*Sun\ C*)
9659	  # Sun C 5.9
9660	  lt_prog_compiler_pic='-KPIC'
9661	  lt_prog_compiler_static='-Bstatic'
9662	  lt_prog_compiler_wl='-Wl,'
9663	  ;;
9664        *Intel*\ [CF]*Compiler*)
9665	  lt_prog_compiler_wl='-Wl,'
9666	  lt_prog_compiler_pic='-fPIC'
9667	  lt_prog_compiler_static='-static'
9668	  ;;
9669	*Portland\ Group*)
9670	  lt_prog_compiler_wl='-Wl,'
9671	  lt_prog_compiler_pic='-fpic'
9672	  lt_prog_compiler_static='-Bstatic'
9673	  ;;
9674	esac
9675	;;
9676      esac
9677      ;;
9678
9679    newsos6)
9680      lt_prog_compiler_pic='-KPIC'
9681      lt_prog_compiler_static='-Bstatic'
9682      ;;
9683
9684    *nto* | *qnx*)
9685      # QNX uses GNU C++, but need to define -shared option too, otherwise
9686      # it will coredump.
9687      lt_prog_compiler_pic='-fPIC -shared'
9688      ;;
9689
9690    osf3* | osf4* | osf5*)
9691      lt_prog_compiler_wl='-Wl,'
9692      # All OSF/1 code is PIC.
9693      lt_prog_compiler_static='-non_shared'
9694      ;;
9695
9696    rdos*)
9697      lt_prog_compiler_static='-non_shared'
9698      ;;
9699
9700    solaris*)
9701      lt_prog_compiler_pic='-KPIC'
9702      lt_prog_compiler_static='-Bstatic'
9703      case $cc_basename in
9704      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9705	lt_prog_compiler_wl='-Qoption ld ';;
9706      *)
9707	lt_prog_compiler_wl='-Wl,';;
9708      esac
9709      ;;
9710
9711    sunos4*)
9712      lt_prog_compiler_wl='-Qoption ld '
9713      lt_prog_compiler_pic='-PIC'
9714      lt_prog_compiler_static='-Bstatic'
9715      ;;
9716
9717    sysv4 | sysv4.2uw2* | sysv4.3*)
9718      lt_prog_compiler_wl='-Wl,'
9719      lt_prog_compiler_pic='-KPIC'
9720      lt_prog_compiler_static='-Bstatic'
9721      ;;
9722
9723    sysv4*MP*)
9724      if test -d /usr/nec; then
9725	lt_prog_compiler_pic='-Kconform_pic'
9726	lt_prog_compiler_static='-Bstatic'
9727      fi
9728      ;;
9729
9730    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9731      lt_prog_compiler_wl='-Wl,'
9732      lt_prog_compiler_pic='-KPIC'
9733      lt_prog_compiler_static='-Bstatic'
9734      ;;
9735
9736    unicos*)
9737      lt_prog_compiler_wl='-Wl,'
9738      lt_prog_compiler_can_build_shared=no
9739      ;;
9740
9741    uts4*)
9742      lt_prog_compiler_pic='-pic'
9743      lt_prog_compiler_static='-Bstatic'
9744      ;;
9745
9746    *)
9747      lt_prog_compiler_can_build_shared=no
9748      ;;
9749    esac
9750  fi
9751
9752case $host_os in
9753  # For platforms that do not support PIC, -DPIC is meaningless:
9754  *djgpp*)
9755    lt_prog_compiler_pic=
9756    ;;
9757  *)
9758    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9759    ;;
9760esac
9761
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9763$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9764if ${lt_cv_prog_compiler_pic+:} false; then :
9765  $as_echo_n "(cached) " >&6
9766else
9767  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9768fi
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9770$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9771lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9772
9773#
9774# Check to make sure the PIC flag actually works.
9775#
9776if test -n "$lt_prog_compiler_pic"; then
9777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9778$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9779if ${lt_cv_prog_compiler_pic_works+:} false; then :
9780  $as_echo_n "(cached) " >&6
9781else
9782  lt_cv_prog_compiler_pic_works=no
9783   ac_outfile=conftest.$ac_objext
9784   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9785   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9786   # Insert the option either (1) after the last *FLAGS variable, or
9787   # (2) before a word containing "conftest.", or (3) at the end.
9788   # Note that $ac_compile itself does not contain backslashes and begins
9789   # with a dollar sign (not a hyphen), so the echo should work correctly.
9790   # The option is referenced via a variable to avoid confusing sed.
9791   lt_compile=`echo "$ac_compile" | $SED \
9792   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9793   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9794   -e 's:$: $lt_compiler_flag:'`
9795   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9796   (eval "$lt_compile" 2>conftest.err)
9797   ac_status=$?
9798   cat conftest.err >&5
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   if (exit $ac_status) && test -s "$ac_outfile"; then
9801     # The compiler can only warn and ignore the option if not recognized
9802     # So say no if there are warnings other than the usual output.
9803     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9804     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9805     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9806       lt_cv_prog_compiler_pic_works=yes
9807     fi
9808   fi
9809   $RM conftest*
9810
9811fi
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9813$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9814
9815if test yes = "$lt_cv_prog_compiler_pic_works"; then
9816    case $lt_prog_compiler_pic in
9817     "" | " "*) ;;
9818     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9819     esac
9820else
9821    lt_prog_compiler_pic=
9822     lt_prog_compiler_can_build_shared=no
9823fi
9824
9825fi
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837#
9838# Check to make sure the static flag actually works.
9839#
9840wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9842$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9843if ${lt_cv_prog_compiler_static_works+:} false; then :
9844  $as_echo_n "(cached) " >&6
9845else
9846  lt_cv_prog_compiler_static_works=no
9847   save_LDFLAGS=$LDFLAGS
9848   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9849   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9850   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9851     # The linker can only warn and ignore the option if not recognized
9852     # So say no if there are warnings
9853     if test -s conftest.err; then
9854       # Append any errors to the config.log.
9855       cat conftest.err 1>&5
9856       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9857       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9858       if diff conftest.exp conftest.er2 >/dev/null; then
9859         lt_cv_prog_compiler_static_works=yes
9860       fi
9861     else
9862       lt_cv_prog_compiler_static_works=yes
9863     fi
9864   fi
9865   $RM -r conftest*
9866   LDFLAGS=$save_LDFLAGS
9867
9868fi
9869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9870$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9871
9872if test yes = "$lt_cv_prog_compiler_static_works"; then
9873    :
9874else
9875    lt_prog_compiler_static=
9876fi
9877
9878
9879
9880
9881
9882
9883
9884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9885$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9886if ${lt_cv_prog_compiler_c_o+:} false; then :
9887  $as_echo_n "(cached) " >&6
9888else
9889  lt_cv_prog_compiler_c_o=no
9890   $RM -r conftest 2>/dev/null
9891   mkdir conftest
9892   cd conftest
9893   mkdir out
9894   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9895
9896   lt_compiler_flag="-o out/conftest2.$ac_objext"
9897   # Insert the option either (1) after the last *FLAGS variable, or
9898   # (2) before a word containing "conftest.", or (3) at the end.
9899   # Note that $ac_compile itself does not contain backslashes and begins
9900   # with a dollar sign (not a hyphen), so the echo should work correctly.
9901   lt_compile=`echo "$ac_compile" | $SED \
9902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9904   -e 's:$: $lt_compiler_flag:'`
9905   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9906   (eval "$lt_compile" 2>out/conftest.err)
9907   ac_status=$?
9908   cat out/conftest.err >&5
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9911   then
9912     # The compiler can only warn and ignore the option if not recognized
9913     # So say no if there are warnings
9914     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9915     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9916     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9917       lt_cv_prog_compiler_c_o=yes
9918     fi
9919   fi
9920   chmod u+w . 2>&5
9921   $RM conftest*
9922   # SGI C++ compiler will create directory out/ii_files/ for
9923   # template instantiation
9924   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9925   $RM out/* && rmdir out
9926   cd ..
9927   $RM -r conftest
9928   $RM conftest*
9929
9930fi
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9932$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9933
9934
9935
9936
9937
9938
9939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9940$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9941if ${lt_cv_prog_compiler_c_o+:} false; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  lt_cv_prog_compiler_c_o=no
9945   $RM -r conftest 2>/dev/null
9946   mkdir conftest
9947   cd conftest
9948   mkdir out
9949   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9950
9951   lt_compiler_flag="-o out/conftest2.$ac_objext"
9952   # Insert the option either (1) after the last *FLAGS variable, or
9953   # (2) before a word containing "conftest.", or (3) at the end.
9954   # Note that $ac_compile itself does not contain backslashes and begins
9955   # with a dollar sign (not a hyphen), so the echo should work correctly.
9956   lt_compile=`echo "$ac_compile" | $SED \
9957   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9958   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9959   -e 's:$: $lt_compiler_flag:'`
9960   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9961   (eval "$lt_compile" 2>out/conftest.err)
9962   ac_status=$?
9963   cat out/conftest.err >&5
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9966   then
9967     # The compiler can only warn and ignore the option if not recognized
9968     # So say no if there are warnings
9969     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9970     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9971     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9972       lt_cv_prog_compiler_c_o=yes
9973     fi
9974   fi
9975   chmod u+w . 2>&5
9976   $RM conftest*
9977   # SGI C++ compiler will create directory out/ii_files/ for
9978   # template instantiation
9979   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9980   $RM out/* && rmdir out
9981   cd ..
9982   $RM -r conftest
9983   $RM conftest*
9984
9985fi
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9987$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9988
9989
9990
9991
9992hard_links=nottested
9993if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9994  # do not overwrite the value of need_locks provided by the user
9995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9996$as_echo_n "checking if we can lock with hard links... " >&6; }
9997  hard_links=yes
9998  $RM conftest*
9999  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10000  touch conftest.a
10001  ln conftest.a conftest.b 2>&5 || hard_links=no
10002  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10004$as_echo "$hard_links" >&6; }
10005  if test no = "$hard_links"; then
10006    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10007$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10008    need_locks=warn
10009  fi
10010else
10011  need_locks=no
10012fi
10013
10014
10015
10016
10017
10018
10019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10020$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10021
10022  runpath_var=
10023  allow_undefined_flag=
10024  always_export_symbols=no
10025  archive_cmds=
10026  archive_expsym_cmds=
10027  compiler_needs_object=no
10028  enable_shared_with_static_runtimes=no
10029  export_dynamic_flag_spec=
10030  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10031  hardcode_automatic=no
10032  hardcode_direct=no
10033  hardcode_direct_absolute=no
10034  hardcode_libdir_flag_spec=
10035  hardcode_libdir_separator=
10036  hardcode_minus_L=no
10037  hardcode_shlibpath_var=unsupported
10038  inherit_rpath=no
10039  link_all_deplibs=unknown
10040  module_cmds=
10041  module_expsym_cmds=
10042  old_archive_from_new_cmds=
10043  old_archive_from_expsyms_cmds=
10044  thread_safe_flag_spec=
10045  whole_archive_flag_spec=
10046  # include_expsyms should be a list of space-separated symbols to be *always*
10047  # included in the symbol list
10048  include_expsyms=
10049  # exclude_expsyms can be an extended regexp of symbols to exclude
10050  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10051  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10052  # as well as any symbol that contains 'd'.
10053  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10054  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10055  # platforms (ab)use it in PIC code, but their linkers get confused if
10056  # the symbol is explicitly referenced.  Since portable code cannot
10057  # rely on this symbol name, it's probably fine to never include it in
10058  # preloaded symbol tables.
10059  # Exclude shared library initialization/finalization symbols.
10060  extract_expsyms_cmds=
10061
10062  case $host_os in
10063  cygwin* | mingw* | pw32* | cegcc*)
10064    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10065    # When not using gcc, we currently assume that we are using
10066    # Microsoft Visual C++.
10067    if test yes != "$GCC"; then
10068      with_gnu_ld=no
10069    fi
10070    ;;
10071  interix*)
10072    # we just hope/assume this is gcc and not c89 (= MSVC++)
10073    with_gnu_ld=yes
10074    ;;
10075  openbsd* | bitrig*)
10076    with_gnu_ld=no
10077    ;;
10078  linux* | k*bsd*-gnu | gnu*)
10079    link_all_deplibs=no
10080    ;;
10081  esac
10082
10083  ld_shlibs=yes
10084
10085  # On some targets, GNU ld is compatible enough with the native linker
10086  # that we're better off using the native interface for both.
10087  lt_use_gnu_ld_interface=no
10088  if test yes = "$with_gnu_ld"; then
10089    case $host_os in
10090      aix*)
10091	# The AIX port of GNU ld has always aspired to compatibility
10092	# with the native linker.  However, as the warning in the GNU ld
10093	# block says, versions before 2.19.5* couldn't really create working
10094	# shared libraries, regardless of the interface used.
10095	case `$LD -v 2>&1` in
10096	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10097	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10098	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10099	  *)
10100	    lt_use_gnu_ld_interface=yes
10101	    ;;
10102	esac
10103	;;
10104      *)
10105	lt_use_gnu_ld_interface=yes
10106	;;
10107    esac
10108  fi
10109
10110  if test yes = "$lt_use_gnu_ld_interface"; then
10111    # If archive_cmds runs LD, not CC, wlarc should be empty
10112    wlarc='$wl'
10113
10114    # Set some defaults for GNU ld with shared library support. These
10115    # are reset later if shared libraries are not supported. Putting them
10116    # here allows them to be overridden if necessary.
10117    runpath_var=LD_RUN_PATH
10118    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10119    export_dynamic_flag_spec='$wl--export-dynamic'
10120    # ancient GNU ld didn't support --whole-archive et. al.
10121    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10122      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10123    else
10124      whole_archive_flag_spec=
10125    fi
10126    supports_anon_versioning=no
10127    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10128      *GNU\ gold*) supports_anon_versioning=yes ;;
10129      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10130      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10131      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10132      *\ 2.11.*) ;; # other 2.11 versions
10133      *) supports_anon_versioning=yes ;;
10134    esac
10135
10136    # See if GNU ld supports shared libraries.
10137    case $host_os in
10138    aix[3-9]*)
10139      # On AIX/PPC, the GNU linker is very broken
10140      if test ia64 != "$host_cpu"; then
10141	ld_shlibs=no
10142	cat <<_LT_EOF 1>&2
10143
10144*** Warning: the GNU linker, at least up to release 2.19, is reported
10145*** to be unable to reliably create shared libraries on AIX.
10146*** Therefore, libtool is disabling shared libraries support.  If you
10147*** really care for shared libraries, you may want to install binutils
10148*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10149*** You will then need to restart the configuration process.
10150
10151_LT_EOF
10152      fi
10153      ;;
10154
10155    amigaos*)
10156      case $host_cpu in
10157      powerpc)
10158            # see comment about AmigaOS4 .so support
10159            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10160            archive_expsym_cmds=''
10161        ;;
10162      m68k)
10163            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)'
10164            hardcode_libdir_flag_spec='-L$libdir'
10165            hardcode_minus_L=yes
10166        ;;
10167      esac
10168      ;;
10169
10170    beos*)
10171      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10172	allow_undefined_flag=unsupported
10173	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10174	# support --undefined.  This deserves some investigation.  FIXME
10175	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10176      else
10177	ld_shlibs=no
10178      fi
10179      ;;
10180
10181    cygwin* | mingw* | pw32* | cegcc*)
10182      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10183      # as there is no search path for DLLs.
10184      hardcode_libdir_flag_spec='-L$libdir'
10185      export_dynamic_flag_spec='$wl--export-all-symbols'
10186      allow_undefined_flag=unsupported
10187      always_export_symbols=no
10188      enable_shared_with_static_runtimes=yes
10189      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10190      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10191
10192      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10193        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10194	# If the export-symbols file already is a .def file, use it as
10195	# is; otherwise, prepend EXPORTS...
10196	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10197          cp $export_symbols $output_objdir/$soname.def;
10198        else
10199          echo EXPORTS > $output_objdir/$soname.def;
10200          cat $export_symbols >> $output_objdir/$soname.def;
10201        fi~
10202        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10203      else
10204	ld_shlibs=no
10205      fi
10206      ;;
10207
10208    haiku*)
10209      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10210      link_all_deplibs=yes
10211      ;;
10212
10213    os2*)
10214      hardcode_libdir_flag_spec='-L$libdir'
10215      hardcode_minus_L=yes
10216      allow_undefined_flag=unsupported
10217      shrext_cmds=.dll
10218      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10219	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10220	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10221	$ECHO EXPORTS >> $output_objdir/$libname.def~
10222	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10223	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10224	emximp -o $lib $output_objdir/$libname.def'
10225      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10226	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10227	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10228	$ECHO EXPORTS >> $output_objdir/$libname.def~
10229	prefix_cmds="$SED"~
10230	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10231	  prefix_cmds="$prefix_cmds -e 1d";
10232	fi~
10233	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10234	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10235	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10236	emximp -o $lib $output_objdir/$libname.def'
10237      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10238      enable_shared_with_static_runtimes=yes
10239      ;;
10240
10241    interix[3-9]*)
10242      hardcode_direct=no
10243      hardcode_shlibpath_var=no
10244      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10245      export_dynamic_flag_spec='$wl-E'
10246      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10247      # Instead, shared libraries are loaded at an image base (0x10000000 by
10248      # default) and relocated if they conflict, which is a slow very memory
10249      # consuming and fragmenting process.  To avoid this, we pick a random,
10250      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10251      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10252      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10253      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'
10254      ;;
10255
10256    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10257      tmp_diet=no
10258      if test linux-dietlibc = "$host_os"; then
10259	case $cc_basename in
10260	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10261	esac
10262      fi
10263      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10264	 && test no = "$tmp_diet"
10265      then
10266	tmp_addflag=' $pic_flag'
10267	tmp_sharedflag='-shared'
10268	case $cc_basename,$host_cpu in
10269        pgcc*)				# Portland Group C compiler
10270	  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'
10271	  tmp_addflag=' $pic_flag'
10272	  ;;
10273	pgf77* | pgf90* | pgf95* | pgfortran*)
10274					# Portland Group f77 and f90 compilers
10275	  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'
10276	  tmp_addflag=' $pic_flag -Mnomain' ;;
10277	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10278	  tmp_addflag=' -i_dynamic' ;;
10279	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10280	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10281	ifc* | ifort*)			# Intel Fortran compiler
10282	  tmp_addflag=' -nofor_main' ;;
10283	lf95*)				# Lahey Fortran 8.1
10284	  whole_archive_flag_spec=
10285	  tmp_sharedflag='--shared' ;;
10286        nagfor*)                        # NAGFOR 5.3
10287          tmp_sharedflag='-Wl,-shared' ;;
10288	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10289	  tmp_sharedflag='-qmkshrobj'
10290	  tmp_addflag= ;;
10291	nvcc*)	# Cuda Compiler Driver 2.2
10292	  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'
10293	  compiler_needs_object=yes
10294	  ;;
10295	esac
10296	case `$CC -V 2>&1 | sed 5q` in
10297	*Sun\ C*)			# Sun C 5.9
10298	  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'
10299	  compiler_needs_object=yes
10300	  tmp_sharedflag='-G' ;;
10301	*Sun\ F*)			# Sun Fortran 8.3
10302	  tmp_sharedflag='-G' ;;
10303	esac
10304	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10305
10306        if test yes = "$supports_anon_versioning"; then
10307          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10308            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10309            echo "local: *; };" >> $output_objdir/$libname.ver~
10310            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10311        fi
10312
10313	case $cc_basename in
10314	tcc*)
10315	  export_dynamic_flag_spec='-rdynamic'
10316	  ;;
10317	xlf* | bgf* | bgxlf* | mpixlf*)
10318	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10319	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10320	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10321	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10322	  if test yes = "$supports_anon_versioning"; then
10323	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10324              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10325              echo "local: *; };" >> $output_objdir/$libname.ver~
10326              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10327	  fi
10328	  ;;
10329	esac
10330      else
10331        ld_shlibs=no
10332      fi
10333      ;;
10334
10335    netbsd* | netbsdelf*-gnu)
10336      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10337	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10338	wlarc=
10339      else
10340	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10341	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10342      fi
10343      ;;
10344
10345    solaris*)
10346      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10347	ld_shlibs=no
10348	cat <<_LT_EOF 1>&2
10349
10350*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10351*** create shared libraries on Solaris systems.  Therefore, libtool
10352*** is disabling shared libraries support.  We urge you to upgrade GNU
10353*** binutils to release 2.9.1 or newer.  Another option is to modify
10354*** your PATH or compiler configuration so that the native linker is
10355*** used, and then restart.
10356
10357_LT_EOF
10358      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10359	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10360	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10361      else
10362	ld_shlibs=no
10363      fi
10364      ;;
10365
10366    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10367      case `$LD -v 2>&1` in
10368        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10369	ld_shlibs=no
10370	cat <<_LT_EOF 1>&2
10371
10372*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10373*** reliably create shared libraries on SCO systems.  Therefore, libtool
10374*** is disabling shared libraries support.  We urge you to upgrade GNU
10375*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10376*** your PATH or compiler configuration so that the native linker is
10377*** used, and then restart.
10378
10379_LT_EOF
10380	;;
10381	*)
10382	  # For security reasons, it is highly recommended that you always
10383	  # use absolute paths for naming shared libraries, and exclude the
10384	  # DT_RUNPATH tag from executables and libraries.  But doing so
10385	  # requires that you compile everything twice, which is a pain.
10386	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10387	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10388	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10389	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10390	  else
10391	    ld_shlibs=no
10392	  fi
10393	;;
10394      esac
10395      ;;
10396
10397    sunos4*)
10398      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10399      wlarc=
10400      hardcode_direct=yes
10401      hardcode_shlibpath_var=no
10402      ;;
10403
10404    *)
10405      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10406	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10407	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10408      else
10409	ld_shlibs=no
10410      fi
10411      ;;
10412    esac
10413
10414    if test no = "$ld_shlibs"; then
10415      runpath_var=
10416      hardcode_libdir_flag_spec=
10417      export_dynamic_flag_spec=
10418      whole_archive_flag_spec=
10419    fi
10420  else
10421    # PORTME fill in a description of your system's linker (not GNU ld)
10422    case $host_os in
10423    aix3*)
10424      allow_undefined_flag=unsupported
10425      always_export_symbols=yes
10426      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'
10427      # Note: this linker hardcodes the directories in LIBPATH if there
10428      # are no directories specified by -L.
10429      hardcode_minus_L=yes
10430      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10431	# Neither direct hardcoding nor static linking is supported with a
10432	# broken collect2.
10433	hardcode_direct=unsupported
10434      fi
10435      ;;
10436
10437    aix[4-9]*)
10438      if test ia64 = "$host_cpu"; then
10439	# On IA64, the linker does run time linking by default, so we don't
10440	# have to do anything special.
10441	aix_use_runtimelinking=no
10442	exp_sym_flag='-Bexport'
10443	no_entry_flag=
10444      else
10445	# If we're using GNU nm, then we don't want the "-C" option.
10446	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10447	# Without the "-l" option, or with the "-B" option, AIX nm treats
10448	# weak defined symbols like other global defined symbols, whereas
10449	# GNU nm marks them as "W".
10450	# While the 'weak' keyword is ignored in the Export File, we need
10451	# it in the Import File for the 'aix-soname' feature, so we have
10452	# to replace the "-B" option with "-P" for AIX nm.
10453	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10454	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10455	else
10456	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10457	fi
10458	aix_use_runtimelinking=no
10459
10460	# Test if we are trying to use run time linking or normal
10461	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10462	# have runtime linking enabled, and use it for executables.
10463	# For shared libraries, we enable/disable runtime linking
10464	# depending on the kind of the shared library created -
10465	# when "with_aix_soname,aix_use_runtimelinking" is:
10466	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10467	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10468	#            lib.a           static archive
10469	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10470	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10471	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10472	#            lib.a(lib.so.V) shared, rtl:no
10473	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10474	#            lib.a           static archive
10475	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10476	  for ld_flag in $LDFLAGS; do
10477	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10478	    aix_use_runtimelinking=yes
10479	    break
10480	  fi
10481	  done
10482	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10483	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10484	    # so we don't have lib.a shared libs to link our executables.
10485	    # We have to force runtime linking in this case.
10486	    aix_use_runtimelinking=yes
10487	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10488	  fi
10489	  ;;
10490	esac
10491
10492	exp_sym_flag='-bexport'
10493	no_entry_flag='-bnoentry'
10494      fi
10495
10496      # When large executables or shared objects are built, AIX ld can
10497      # have problems creating the table of contents.  If linking a library
10498      # or program results in "error TOC overflow" add -mminimal-toc to
10499      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10500      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10501
10502      archive_cmds=''
10503      hardcode_direct=yes
10504      hardcode_direct_absolute=yes
10505      hardcode_libdir_separator=':'
10506      link_all_deplibs=yes
10507      file_list_spec='$wl-f,'
10508      case $with_aix_soname,$aix_use_runtimelinking in
10509      aix,*) ;; # traditional, no import file
10510      svr4,* | *,yes) # use import file
10511	# The Import File defines what to hardcode.
10512	hardcode_direct=no
10513	hardcode_direct_absolute=no
10514	;;
10515      esac
10516
10517      if test yes = "$GCC"; then
10518	case $host_os in aix4.[012]|aix4.[012].*)
10519	# We only want to do this on AIX 4.2 and lower, the check
10520	# below for broken collect2 doesn't work under 4.3+
10521	  collect2name=`$CC -print-prog-name=collect2`
10522	  if test -f "$collect2name" &&
10523	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10524	  then
10525	  # We have reworked collect2
10526	  :
10527	  else
10528	  # We have old collect2
10529	  hardcode_direct=unsupported
10530	  # It fails to find uninstalled libraries when the uninstalled
10531	  # path is not listed in the libpath.  Setting hardcode_minus_L
10532	  # to unsupported forces relinking
10533	  hardcode_minus_L=yes
10534	  hardcode_libdir_flag_spec='-L$libdir'
10535	  hardcode_libdir_separator=
10536	  fi
10537	  ;;
10538	esac
10539	shared_flag='-shared'
10540	if test yes = "$aix_use_runtimelinking"; then
10541	  shared_flag="$shared_flag "'$wl-G'
10542	fi
10543	# Need to ensure runtime linking is disabled for the traditional
10544	# shared library, or the linker may eventually find shared libraries
10545	# /with/ Import File - we do not want to mix them.
10546	shared_flag_aix='-shared'
10547	shared_flag_svr4='-shared $wl-G'
10548      else
10549	# not using gcc
10550	if test ia64 = "$host_cpu"; then
10551	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10552	# chokes on -Wl,-G. The following line is correct:
10553	  shared_flag='-G'
10554	else
10555	  if test yes = "$aix_use_runtimelinking"; then
10556	    shared_flag='$wl-G'
10557	  else
10558	    shared_flag='$wl-bM:SRE'
10559	  fi
10560	  shared_flag_aix='$wl-bM:SRE'
10561	  shared_flag_svr4='$wl-G'
10562	fi
10563      fi
10564
10565      export_dynamic_flag_spec='$wl-bexpall'
10566      # It seems that -bexpall does not export symbols beginning with
10567      # underscore (_), so it is better to generate a list of symbols to export.
10568      always_export_symbols=yes
10569      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10570	# Warning - without using the other runtime loading flags (-brtl),
10571	# -berok will link without error, but may produce a broken library.
10572	allow_undefined_flag='-berok'
10573        # Determine the default libpath from the value encoded in an
10574        # empty executable.
10575        if test set = "${lt_cv_aix_libpath+set}"; then
10576  aix_libpath=$lt_cv_aix_libpath
10577else
10578  if ${lt_cv_aix_libpath_+:} false; then :
10579  $as_echo_n "(cached) " >&6
10580else
10581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582/* end confdefs.h.  */
10583
10584int
10585main ()
10586{
10587
10588  ;
10589  return 0;
10590}
10591_ACEOF
10592if ac_fn_c_try_link "$LINENO"; then :
10593
10594  lt_aix_libpath_sed='
10595      /Import File Strings/,/^$/ {
10596	  /^0/ {
10597	      s/^0  *\([^ ]*\) *$/\1/
10598	      p
10599	  }
10600      }'
10601  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10602  # Check for a 64-bit object if we didn't find anything.
10603  if test -z "$lt_cv_aix_libpath_"; then
10604    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10605  fi
10606fi
10607rm -f core conftest.err conftest.$ac_objext \
10608    conftest$ac_exeext conftest.$ac_ext
10609  if test -z "$lt_cv_aix_libpath_"; then
10610    lt_cv_aix_libpath_=/usr/lib:/lib
10611  fi
10612
10613fi
10614
10615  aix_libpath=$lt_cv_aix_libpath_
10616fi
10617
10618        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10619        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10620      else
10621	if test ia64 = "$host_cpu"; then
10622	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10623	  allow_undefined_flag="-z nodefs"
10624	  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"
10625	else
10626	 # Determine the default libpath from the value encoded in an
10627	 # empty executable.
10628	 if test set = "${lt_cv_aix_libpath+set}"; then
10629  aix_libpath=$lt_cv_aix_libpath
10630else
10631  if ${lt_cv_aix_libpath_+:} false; then :
10632  $as_echo_n "(cached) " >&6
10633else
10634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635/* end confdefs.h.  */
10636
10637int
10638main ()
10639{
10640
10641  ;
10642  return 0;
10643}
10644_ACEOF
10645if ac_fn_c_try_link "$LINENO"; then :
10646
10647  lt_aix_libpath_sed='
10648      /Import File Strings/,/^$/ {
10649	  /^0/ {
10650	      s/^0  *\([^ ]*\) *$/\1/
10651	      p
10652	  }
10653      }'
10654  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10655  # Check for a 64-bit object if we didn't find anything.
10656  if test -z "$lt_cv_aix_libpath_"; then
10657    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10658  fi
10659fi
10660rm -f core conftest.err conftest.$ac_objext \
10661    conftest$ac_exeext conftest.$ac_ext
10662  if test -z "$lt_cv_aix_libpath_"; then
10663    lt_cv_aix_libpath_=/usr/lib:/lib
10664  fi
10665
10666fi
10667
10668  aix_libpath=$lt_cv_aix_libpath_
10669fi
10670
10671	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10672	  # Warning - without using the other run time loading flags,
10673	  # -berok will link without error, but may produce a broken library.
10674	  no_undefined_flag=' $wl-bernotok'
10675	  allow_undefined_flag=' $wl-berok'
10676	  if test yes = "$with_gnu_ld"; then
10677	    # We only use this code for GNU lds that support --whole-archive.
10678	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10679	  else
10680	    # Exported symbols can be pulled into shared objects from archives
10681	    whole_archive_flag_spec='$convenience'
10682	  fi
10683	  archive_cmds_need_lc=yes
10684	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10685	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10686	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10687	  if test svr4 != "$with_aix_soname"; then
10688	    # This is similar to how AIX traditionally builds its shared libraries.
10689	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10690	  fi
10691	  if test aix != "$with_aix_soname"; then
10692	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10693	  else
10694	    # used by -dlpreopen to get the symbols
10695	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10696	  fi
10697	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10698	fi
10699      fi
10700      ;;
10701
10702    amigaos*)
10703      case $host_cpu in
10704      powerpc)
10705            # see comment about AmigaOS4 .so support
10706            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10707            archive_expsym_cmds=''
10708        ;;
10709      m68k)
10710            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)'
10711            hardcode_libdir_flag_spec='-L$libdir'
10712            hardcode_minus_L=yes
10713        ;;
10714      esac
10715      ;;
10716
10717    bsdi[45]*)
10718      export_dynamic_flag_spec=-rdynamic
10719      ;;
10720
10721    cygwin* | mingw* | pw32* | cegcc*)
10722      # When not using gcc, we currently assume that we are using
10723      # Microsoft Visual C++.
10724      # hardcode_libdir_flag_spec is actually meaningless, as there is
10725      # no search path for DLLs.
10726      case $cc_basename in
10727      cl*)
10728	# Native MSVC
10729	hardcode_libdir_flag_spec=' '
10730	allow_undefined_flag=unsupported
10731	always_export_symbols=yes
10732	file_list_spec='@'
10733	# Tell ltmain to make .lib files, not .a files.
10734	libext=lib
10735	# Tell ltmain to make .dll files, not .so files.
10736	shrext_cmds=.dll
10737	# FIXME: Setting linknames here is a bad hack.
10738	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10739	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10740            cp "$export_symbols" "$output_objdir/$soname.def";
10741            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10742          else
10743            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10744          fi~
10745          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10746          linknames='
10747	# The linker will not automatically build a static lib if we build a DLL.
10748	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10749	enable_shared_with_static_runtimes=yes
10750	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10751	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10752	# Don't use ranlib
10753	old_postinstall_cmds='chmod 644 $oldlib'
10754	postlink_cmds='lt_outputfile="@OUTPUT@"~
10755          lt_tool_outputfile="@TOOL_OUTPUT@"~
10756          case $lt_outputfile in
10757            *.exe|*.EXE) ;;
10758            *)
10759              lt_outputfile=$lt_outputfile.exe
10760              lt_tool_outputfile=$lt_tool_outputfile.exe
10761              ;;
10762          esac~
10763          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10764            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10765            $RM "$lt_outputfile.manifest";
10766          fi'
10767	;;
10768      *)
10769	# Assume MSVC wrapper
10770	hardcode_libdir_flag_spec=' '
10771	allow_undefined_flag=unsupported
10772	# Tell ltmain to make .lib files, not .a files.
10773	libext=lib
10774	# Tell ltmain to make .dll files, not .so files.
10775	shrext_cmds=.dll
10776	# FIXME: Setting linknames here is a bad hack.
10777	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10778	# The linker will automatically build a .lib file if we build a DLL.
10779	old_archive_from_new_cmds='true'
10780	# FIXME: Should let the user specify the lib program.
10781	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10782	enable_shared_with_static_runtimes=yes
10783	;;
10784      esac
10785      ;;
10786
10787    darwin* | rhapsody*)
10788
10789
10790  archive_cmds_need_lc=no
10791  hardcode_direct=no
10792  hardcode_automatic=yes
10793  hardcode_shlibpath_var=unsupported
10794  if test yes = "$lt_cv_ld_force_load"; then
10795    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\"`'
10796
10797  else
10798    whole_archive_flag_spec=''
10799  fi
10800  link_all_deplibs=yes
10801  allow_undefined_flag=$_lt_dar_allow_undefined
10802  case $cc_basename in
10803     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10804     *) _lt_dar_can_shared=$GCC ;;
10805  esac
10806  if test yes = "$_lt_dar_can_shared"; then
10807    output_verbose_link_cmd=func_echo_all
10808    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10809    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10810    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"
10811    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"
10812
10813  else
10814  ld_shlibs=no
10815  fi
10816
10817      ;;
10818
10819    dgux*)
10820      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821      hardcode_libdir_flag_spec='-L$libdir'
10822      hardcode_shlibpath_var=no
10823      ;;
10824
10825    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10826    # support.  Future versions do this automatically, but an explicit c++rt0.o
10827    # does not break anything, and helps significantly (at the cost of a little
10828    # extra space).
10829    freebsd2.2*)
10830      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10831      hardcode_libdir_flag_spec='-R$libdir'
10832      hardcode_direct=yes
10833      hardcode_shlibpath_var=no
10834      ;;
10835
10836    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10837    freebsd2.*)
10838      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10839      hardcode_direct=yes
10840      hardcode_minus_L=yes
10841      hardcode_shlibpath_var=no
10842      ;;
10843
10844    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10845    freebsd* | dragonfly*)
10846      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10847      hardcode_libdir_flag_spec='-R$libdir'
10848      hardcode_direct=yes
10849      hardcode_shlibpath_var=no
10850      ;;
10851
10852    hpux9*)
10853      if test yes = "$GCC"; then
10854	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10855      else
10856	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10857      fi
10858      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10859      hardcode_libdir_separator=:
10860      hardcode_direct=yes
10861
10862      # hardcode_minus_L: Not really in the search PATH,
10863      # but as the default location of the library.
10864      hardcode_minus_L=yes
10865      export_dynamic_flag_spec='$wl-E'
10866      ;;
10867
10868    hpux10*)
10869      if test yes,no = "$GCC,$with_gnu_ld"; then
10870	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10871      else
10872	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10873      fi
10874      if test no = "$with_gnu_ld"; then
10875	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10876	hardcode_libdir_separator=:
10877	hardcode_direct=yes
10878	hardcode_direct_absolute=yes
10879	export_dynamic_flag_spec='$wl-E'
10880	# hardcode_minus_L: Not really in the search PATH,
10881	# but as the default location of the library.
10882	hardcode_minus_L=yes
10883      fi
10884      ;;
10885
10886    hpux11*)
10887      if test yes,no = "$GCC,$with_gnu_ld"; then
10888	case $host_cpu in
10889	hppa*64*)
10890	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10891	  ;;
10892	ia64*)
10893	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10894	  ;;
10895	*)
10896	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10897	  ;;
10898	esac
10899      else
10900	case $host_cpu in
10901	hppa*64*)
10902	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10903	  ;;
10904	ia64*)
10905	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10906	  ;;
10907	*)
10908
10909	  # Older versions of the 11.00 compiler do not understand -b yet
10910	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10911	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10912$as_echo_n "checking if $CC understands -b... " >&6; }
10913if ${lt_cv_prog_compiler__b+:} false; then :
10914  $as_echo_n "(cached) " >&6
10915else
10916  lt_cv_prog_compiler__b=no
10917   save_LDFLAGS=$LDFLAGS
10918   LDFLAGS="$LDFLAGS -b"
10919   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10920   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10921     # The linker can only warn and ignore the option if not recognized
10922     # So say no if there are warnings
10923     if test -s conftest.err; then
10924       # Append any errors to the config.log.
10925       cat conftest.err 1>&5
10926       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10927       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10928       if diff conftest.exp conftest.er2 >/dev/null; then
10929         lt_cv_prog_compiler__b=yes
10930       fi
10931     else
10932       lt_cv_prog_compiler__b=yes
10933     fi
10934   fi
10935   $RM -r conftest*
10936   LDFLAGS=$save_LDFLAGS
10937
10938fi
10939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10940$as_echo "$lt_cv_prog_compiler__b" >&6; }
10941
10942if test yes = "$lt_cv_prog_compiler__b"; then
10943    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10944else
10945    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10946fi
10947
10948	  ;;
10949	esac
10950      fi
10951      if test no = "$with_gnu_ld"; then
10952	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10953	hardcode_libdir_separator=:
10954
10955	case $host_cpu in
10956	hppa*64*|ia64*)
10957	  hardcode_direct=no
10958	  hardcode_shlibpath_var=no
10959	  ;;
10960	*)
10961	  hardcode_direct=yes
10962	  hardcode_direct_absolute=yes
10963	  export_dynamic_flag_spec='$wl-E'
10964
10965	  # hardcode_minus_L: Not really in the search PATH,
10966	  # but as the default location of the library.
10967	  hardcode_minus_L=yes
10968	  ;;
10969	esac
10970      fi
10971      ;;
10972
10973    irix5* | irix6* | nonstopux*)
10974      if test yes = "$GCC"; then
10975	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10976	# Try to use the -exported_symbol ld option, if it does not
10977	# work, assume that -exports_file does not work either and
10978	# implicitly export all symbols.
10979	# This should be the same for all languages, so no per-tag cache variable.
10980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10981$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10982if ${lt_cv_irix_exported_symbol+:} false; then :
10983  $as_echo_n "(cached) " >&6
10984else
10985  save_LDFLAGS=$LDFLAGS
10986	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10987	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h.  */
10989int foo (void) { return 0; }
10990_ACEOF
10991if ac_fn_c_try_link "$LINENO"; then :
10992  lt_cv_irix_exported_symbol=yes
10993else
10994  lt_cv_irix_exported_symbol=no
10995fi
10996rm -f core conftest.err conftest.$ac_objext \
10997    conftest$ac_exeext conftest.$ac_ext
10998           LDFLAGS=$save_LDFLAGS
10999fi
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11001$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11002	if test yes = "$lt_cv_irix_exported_symbol"; then
11003          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11004	fi
11005	link_all_deplibs=no
11006      else
11007	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'
11008	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'
11009      fi
11010      archive_cmds_need_lc='no'
11011      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11012      hardcode_libdir_separator=:
11013      inherit_rpath=yes
11014      link_all_deplibs=yes
11015      ;;
11016
11017    linux*)
11018      case $cc_basename in
11019      tcc*)
11020	# Fabrice Bellard et al's Tiny C Compiler
11021	ld_shlibs=yes
11022	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11023	;;
11024      esac
11025      ;;
11026
11027    netbsd* | netbsdelf*-gnu)
11028      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11029	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11030      else
11031	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11032      fi
11033      hardcode_libdir_flag_spec='-R$libdir'
11034      hardcode_direct=yes
11035      hardcode_shlibpath_var=no
11036      ;;
11037
11038    newsos6)
11039      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11040      hardcode_direct=yes
11041      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11042      hardcode_libdir_separator=:
11043      hardcode_shlibpath_var=no
11044      ;;
11045
11046    *nto* | *qnx*)
11047      ;;
11048
11049    openbsd* | bitrig*)
11050      if test -f /usr/libexec/ld.so; then
11051	hardcode_direct=yes
11052	hardcode_shlibpath_var=no
11053	hardcode_direct_absolute=yes
11054	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11055	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11056	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11057	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11058	  export_dynamic_flag_spec='$wl-E'
11059	else
11060	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11061	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11062	fi
11063      else
11064	ld_shlibs=no
11065      fi
11066      ;;
11067
11068    os2*)
11069      hardcode_libdir_flag_spec='-L$libdir'
11070      hardcode_minus_L=yes
11071      allow_undefined_flag=unsupported
11072      shrext_cmds=.dll
11073      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11074	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11075	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11076	$ECHO EXPORTS >> $output_objdir/$libname.def~
11077	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11078	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11079	emximp -o $lib $output_objdir/$libname.def'
11080      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11081	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11082	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11083	$ECHO EXPORTS >> $output_objdir/$libname.def~
11084	prefix_cmds="$SED"~
11085	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11086	  prefix_cmds="$prefix_cmds -e 1d";
11087	fi~
11088	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11089	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11090	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11091	emximp -o $lib $output_objdir/$libname.def'
11092      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11093      enable_shared_with_static_runtimes=yes
11094      ;;
11095
11096    osf3*)
11097      if test yes = "$GCC"; then
11098	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11099	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'
11100      else
11101	allow_undefined_flag=' -expect_unresolved \*'
11102	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'
11103      fi
11104      archive_cmds_need_lc='no'
11105      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11106      hardcode_libdir_separator=:
11107      ;;
11108
11109    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11110      if test yes = "$GCC"; then
11111	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11112	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11113	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11114      else
11115	allow_undefined_flag=' -expect_unresolved \*'
11116	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'
11117	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~
11118          $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'
11119
11120	# Both c and cxx compiler support -rpath directly
11121	hardcode_libdir_flag_spec='-rpath $libdir'
11122      fi
11123      archive_cmds_need_lc='no'
11124      hardcode_libdir_separator=:
11125      ;;
11126
11127    solaris*)
11128      no_undefined_flag=' -z defs'
11129      if test yes = "$GCC"; then
11130	wlarc='$wl'
11131	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11132	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11133          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11134      else
11135	case `$CC -V 2>&1` in
11136	*"Compilers 5.0"*)
11137	  wlarc=''
11138	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11139	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11140            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11141	  ;;
11142	*)
11143	  wlarc='$wl'
11144	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11145	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11146            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11147	  ;;
11148	esac
11149      fi
11150      hardcode_libdir_flag_spec='-R$libdir'
11151      hardcode_shlibpath_var=no
11152      case $host_os in
11153      solaris2.[0-5] | solaris2.[0-5].*) ;;
11154      *)
11155	# The compiler driver will combine and reorder linker options,
11156	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11157	# but is careful enough not to reorder.
11158	# Supported since Solaris 2.6 (maybe 2.5.1?)
11159	if test yes = "$GCC"; then
11160	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11161	else
11162	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11163	fi
11164	;;
11165      esac
11166      link_all_deplibs=yes
11167      ;;
11168
11169    sunos4*)
11170      if test sequent = "$host_vendor"; then
11171	# Use $CC to link under sequent, because it throws in some extra .o
11172	# files that make .init and .fini sections work.
11173	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11174      else
11175	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11176      fi
11177      hardcode_libdir_flag_spec='-L$libdir'
11178      hardcode_direct=yes
11179      hardcode_minus_L=yes
11180      hardcode_shlibpath_var=no
11181      ;;
11182
11183    sysv4)
11184      case $host_vendor in
11185	sni)
11186	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11187	  hardcode_direct=yes # is this really true???
11188	;;
11189	siemens)
11190	  ## LD is ld it makes a PLAMLIB
11191	  ## CC just makes a GrossModule.
11192	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11193	  reload_cmds='$CC -r -o $output$reload_objs'
11194	  hardcode_direct=no
11195        ;;
11196	motorola)
11197	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11198	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11199	;;
11200      esac
11201      runpath_var='LD_RUN_PATH'
11202      hardcode_shlibpath_var=no
11203      ;;
11204
11205    sysv4.3*)
11206      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11207      hardcode_shlibpath_var=no
11208      export_dynamic_flag_spec='-Bexport'
11209      ;;
11210
11211    sysv4*MP*)
11212      if test -d /usr/nec; then
11213	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11214	hardcode_shlibpath_var=no
11215	runpath_var=LD_RUN_PATH
11216	hardcode_runpath_var=yes
11217	ld_shlibs=yes
11218      fi
11219      ;;
11220
11221    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11222      no_undefined_flag='$wl-z,text'
11223      archive_cmds_need_lc=no
11224      hardcode_shlibpath_var=no
11225      runpath_var='LD_RUN_PATH'
11226
11227      if test yes = "$GCC"; then
11228	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11229	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11230      else
11231	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11232	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11233      fi
11234      ;;
11235
11236    sysv5* | sco3.2v5* | sco5v6*)
11237      # Note: We CANNOT use -z defs as we might desire, because we do not
11238      # link with -lc, and that would cause any symbols used from libc to
11239      # always be unresolved, which means just about no library would
11240      # ever link correctly.  If we're not using GNU ld we use -z text
11241      # though, which does catch some bad symbols but isn't as heavy-handed
11242      # as -z defs.
11243      no_undefined_flag='$wl-z,text'
11244      allow_undefined_flag='$wl-z,nodefs'
11245      archive_cmds_need_lc=no
11246      hardcode_shlibpath_var=no
11247      hardcode_libdir_flag_spec='$wl-R,$libdir'
11248      hardcode_libdir_separator=':'
11249      link_all_deplibs=yes
11250      export_dynamic_flag_spec='$wl-Bexport'
11251      runpath_var='LD_RUN_PATH'
11252
11253      if test yes = "$GCC"; then
11254	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11255	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11256      else
11257	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11258	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11259      fi
11260      ;;
11261
11262    uts4*)
11263      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11264      hardcode_libdir_flag_spec='-L$libdir'
11265      hardcode_shlibpath_var=no
11266      ;;
11267
11268    *)
11269      ld_shlibs=no
11270      ;;
11271    esac
11272
11273    if test sni = "$host_vendor"; then
11274      case $host in
11275      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11276	export_dynamic_flag_spec='$wl-Blargedynsym'
11277	;;
11278      esac
11279    fi
11280  fi
11281
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11283$as_echo "$ld_shlibs" >&6; }
11284test no = "$ld_shlibs" && can_build_shared=no
11285
11286with_gnu_ld=$with_gnu_ld
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302#
11303# Do we need to explicitly link libc?
11304#
11305case "x$archive_cmds_need_lc" in
11306x|xyes)
11307  # Assume -lc should be added
11308  archive_cmds_need_lc=yes
11309
11310  if test yes,yes = "$GCC,$enable_shared"; then
11311    case $archive_cmds in
11312    *'~'*)
11313      # FIXME: we may have to deal with multi-command sequences.
11314      ;;
11315    '$CC '*)
11316      # Test whether the compiler implicitly links with -lc since on some
11317      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11318      # to ld, don't add -lc before -lgcc.
11319      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11320$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11321if ${lt_cv_archive_cmds_need_lc+:} false; then :
11322  $as_echo_n "(cached) " >&6
11323else
11324  $RM conftest*
11325	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11326
11327	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11328  (eval $ac_compile) 2>&5
11329  ac_status=$?
11330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11331  test $ac_status = 0; } 2>conftest.err; then
11332	  soname=conftest
11333	  lib=conftest
11334	  libobjs=conftest.$ac_objext
11335	  deplibs=
11336	  wl=$lt_prog_compiler_wl
11337	  pic_flag=$lt_prog_compiler_pic
11338	  compiler_flags=-v
11339	  linker_flags=-v
11340	  verstring=
11341	  output_objdir=.
11342	  libname=conftest
11343	  lt_save_allow_undefined_flag=$allow_undefined_flag
11344	  allow_undefined_flag=
11345	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11346  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11347  ac_status=$?
11348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11349  test $ac_status = 0; }
11350	  then
11351	    lt_cv_archive_cmds_need_lc=no
11352	  else
11353	    lt_cv_archive_cmds_need_lc=yes
11354	  fi
11355	  allow_undefined_flag=$lt_save_allow_undefined_flag
11356	else
11357	  cat conftest.err 1>&5
11358	fi
11359	$RM conftest*
11360
11361fi
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11363$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11364      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11365      ;;
11366    esac
11367  fi
11368  ;;
11369esac
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11523$as_echo_n "checking dynamic linker characteristics... " >&6; }
11524
11525if test yes = "$GCC"; then
11526  case $host_os in
11527    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11528    *) lt_awk_arg='/^libraries:/' ;;
11529  esac
11530  case $host_os in
11531    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11532    *) lt_sed_strip_eq='s|=/|/|g' ;;
11533  esac
11534  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11535  case $lt_search_path_spec in
11536  *\;*)
11537    # if the path contains ";" then we assume it to be the separator
11538    # otherwise default to the standard path separator (i.e. ":") - it is
11539    # assumed that no part of a normal pathname contains ";" but that should
11540    # okay in the real world where ";" in dirpaths is itself problematic.
11541    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11542    ;;
11543  *)
11544    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11545    ;;
11546  esac
11547  # Ok, now we have the path, separated by spaces, we can step through it
11548  # and add multilib dir if necessary...
11549  lt_tmp_lt_search_path_spec=
11550  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11551  # ...but if some path component already ends with the multilib dir we assume
11552  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11553  case "$lt_multi_os_dir; $lt_search_path_spec " in
11554  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11555    lt_multi_os_dir=
11556    ;;
11557  esac
11558  for lt_sys_path in $lt_search_path_spec; do
11559    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11560      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11561    elif test -n "$lt_multi_os_dir"; then
11562      test -d "$lt_sys_path" && \
11563	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11564    fi
11565  done
11566  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11567BEGIN {RS = " "; FS = "/|\n";} {
11568  lt_foo = "";
11569  lt_count = 0;
11570  for (lt_i = NF; lt_i > 0; lt_i--) {
11571    if ($lt_i != "" && $lt_i != ".") {
11572      if ($lt_i == "..") {
11573        lt_count++;
11574      } else {
11575        if (lt_count == 0) {
11576          lt_foo = "/" $lt_i lt_foo;
11577        } else {
11578          lt_count--;
11579        }
11580      }
11581    }
11582  }
11583  if (lt_foo != "") { lt_freq[lt_foo]++; }
11584  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11585}'`
11586  # AWK program above erroneously prepends '/' to C:/dos/paths
11587  # for these hosts.
11588  case $host_os in
11589    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11590      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11591  esac
11592  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11593else
11594  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11595fi
11596library_names_spec=
11597libname_spec='lib$name'
11598soname_spec=
11599shrext_cmds=.so
11600postinstall_cmds=
11601postuninstall_cmds=
11602finish_cmds=
11603finish_eval=
11604shlibpath_var=
11605shlibpath_overrides_runpath=unknown
11606version_type=none
11607dynamic_linker="$host_os ld.so"
11608sys_lib_dlsearch_path_spec="/lib /usr/lib"
11609need_lib_prefix=unknown
11610hardcode_into_libs=no
11611
11612# when you set need_version to no, make sure it does not cause -set_version
11613# flags to be left without arguments
11614need_version=unknown
11615
11616
11617
11618case $host_os in
11619aix3*)
11620  version_type=linux # correct to gnu/linux during the next big refactor
11621  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11622  shlibpath_var=LIBPATH
11623
11624  # AIX 3 has no versioning support, so we append a major version to the name.
11625  soname_spec='$libname$release$shared_ext$major'
11626  ;;
11627
11628aix[4-9]*)
11629  version_type=linux # correct to gnu/linux during the next big refactor
11630  need_lib_prefix=no
11631  need_version=no
11632  hardcode_into_libs=yes
11633  if test ia64 = "$host_cpu"; then
11634    # AIX 5 supports IA64
11635    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11636    shlibpath_var=LD_LIBRARY_PATH
11637  else
11638    # With GCC up to 2.95.x, collect2 would create an import file
11639    # for dependence libraries.  The import file would start with
11640    # the line '#! .'.  This would cause the generated library to
11641    # depend on '.', always an invalid library.  This was fixed in
11642    # development snapshots of GCC prior to 3.0.
11643    case $host_os in
11644      aix4 | aix4.[01] | aix4.[01].*)
11645      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11646	   echo ' yes '
11647	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11648	:
11649      else
11650	can_build_shared=no
11651      fi
11652      ;;
11653    esac
11654    # Using Import Files as archive members, it is possible to support
11655    # filename-based versioning of shared library archives on AIX. While
11656    # this would work for both with and without runtime linking, it will
11657    # prevent static linking of such archives. So we do filename-based
11658    # shared library versioning with .so extension only, which is used
11659    # when both runtime linking and shared linking is enabled.
11660    # Unfortunately, runtime linking may impact performance, so we do
11661    # not want this to be the default eventually. Also, we use the
11662    # versioned .so libs for executables only if there is the -brtl
11663    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11664    # To allow for filename-based versioning support, we need to create
11665    # libNAME.so.V as an archive file, containing:
11666    # *) an Import File, referring to the versioned filename of the
11667    #    archive as well as the shared archive member, telling the
11668    #    bitwidth (32 or 64) of that shared object, and providing the
11669    #    list of exported symbols of that shared object, eventually
11670    #    decorated with the 'weak' keyword
11671    # *) the shared object with the F_LOADONLY flag set, to really avoid
11672    #    it being seen by the linker.
11673    # At run time we better use the real file rather than another symlink,
11674    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11675
11676    case $with_aix_soname,$aix_use_runtimelinking in
11677    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11678    # soname into executable. Probably we can add versioning support to
11679    # collect2, so additional links can be useful in future.
11680    aix,yes) # traditional libtool
11681      dynamic_linker='AIX unversionable lib.so'
11682      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11683      # instead of lib<name>.a to let people know that these are not
11684      # typical AIX shared libraries.
11685      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686      ;;
11687    aix,no) # traditional AIX only
11688      dynamic_linker='AIX lib.a(lib.so.V)'
11689      # We preserve .a as extension for shared libraries through AIX4.2
11690      # and later when we are not doing run time linking.
11691      library_names_spec='$libname$release.a $libname.a'
11692      soname_spec='$libname$release$shared_ext$major'
11693      ;;
11694    svr4,*) # full svr4 only
11695      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11696      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11697      # We do not specify a path in Import Files, so LIBPATH fires.
11698      shlibpath_overrides_runpath=yes
11699      ;;
11700    *,yes) # both, prefer svr4
11701      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11702      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11703      # unpreferred sharedlib libNAME.a needs extra handling
11704      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11705      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11706      # We do not specify a path in Import Files, so LIBPATH fires.
11707      shlibpath_overrides_runpath=yes
11708      ;;
11709    *,no) # both, prefer aix
11710      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11711      library_names_spec='$libname$release.a $libname.a'
11712      soname_spec='$libname$release$shared_ext$major'
11713      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11714      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11715      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11716      ;;
11717    esac
11718    shlibpath_var=LIBPATH
11719  fi
11720  ;;
11721
11722amigaos*)
11723  case $host_cpu in
11724  powerpc)
11725    # Since July 2007 AmigaOS4 officially supports .so libraries.
11726    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11727    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11728    ;;
11729  m68k)
11730    library_names_spec='$libname.ixlibrary $libname.a'
11731    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11732    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11733    ;;
11734  esac
11735  ;;
11736
11737beos*)
11738  library_names_spec='$libname$shared_ext'
11739  dynamic_linker="$host_os ld.so"
11740  shlibpath_var=LIBRARY_PATH
11741  ;;
11742
11743bsdi[45]*)
11744  version_type=linux # correct to gnu/linux during the next big refactor
11745  need_version=no
11746  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747  soname_spec='$libname$release$shared_ext$major'
11748  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11749  shlibpath_var=LD_LIBRARY_PATH
11750  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11751  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11752  # the default ld.so.conf also contains /usr/contrib/lib and
11753  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11754  # libtool to hard-code these into programs
11755  ;;
11756
11757cygwin* | mingw* | pw32* | cegcc*)
11758  version_type=windows
11759  shrext_cmds=.dll
11760  need_version=no
11761  need_lib_prefix=no
11762
11763  case $GCC,$cc_basename in
11764  yes,*)
11765    # gcc
11766    library_names_spec='$libname.dll.a'
11767    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11768    postinstall_cmds='base_file=`basename \$file`~
11769      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11770      dldir=$destdir/`dirname \$dlpath`~
11771      test -d \$dldir || mkdir -p \$dldir~
11772      $install_prog $dir/$dlname \$dldir/$dlname~
11773      chmod a+x \$dldir/$dlname~
11774      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11775        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11776      fi'
11777    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11778      dlpath=$dir/\$dldll~
11779       $RM \$dlpath'
11780    shlibpath_overrides_runpath=yes
11781
11782    case $host_os in
11783    cygwin*)
11784      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11785      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11786
11787      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11788      ;;
11789    mingw* | cegcc*)
11790      # MinGW DLLs use traditional 'lib' prefix
11791      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11792      ;;
11793    pw32*)
11794      # pw32 DLLs use 'pw' prefix rather than 'lib'
11795      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11796      ;;
11797    esac
11798    dynamic_linker='Win32 ld.exe'
11799    ;;
11800
11801  *,cl*)
11802    # Native MSVC
11803    libname_spec='$name'
11804    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11805    library_names_spec='$libname.dll.lib'
11806
11807    case $build_os in
11808    mingw*)
11809      sys_lib_search_path_spec=
11810      lt_save_ifs=$IFS
11811      IFS=';'
11812      for lt_path in $LIB
11813      do
11814        IFS=$lt_save_ifs
11815        # Let DOS variable expansion print the short 8.3 style file name.
11816        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11817        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11818      done
11819      IFS=$lt_save_ifs
11820      # Convert to MSYS style.
11821      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11822      ;;
11823    cygwin*)
11824      # Convert to unix form, then to dos form, then back to unix form
11825      # but this time dos style (no spaces!) so that the unix form looks
11826      # like /cygdrive/c/PROGRA~1:/cygdr...
11827      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11828      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11829      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11830      ;;
11831    *)
11832      sys_lib_search_path_spec=$LIB
11833      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11834        # It is most probably a Windows format PATH.
11835        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11836      else
11837        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11838      fi
11839      # FIXME: find the short name or the path components, as spaces are
11840      # common. (e.g. "Program Files" -> "PROGRA~1")
11841      ;;
11842    esac
11843
11844    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11845    postinstall_cmds='base_file=`basename \$file`~
11846      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11847      dldir=$destdir/`dirname \$dlpath`~
11848      test -d \$dldir || mkdir -p \$dldir~
11849      $install_prog $dir/$dlname \$dldir/$dlname'
11850    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11851      dlpath=$dir/\$dldll~
11852       $RM \$dlpath'
11853    shlibpath_overrides_runpath=yes
11854    dynamic_linker='Win32 link.exe'
11855    ;;
11856
11857  *)
11858    # Assume MSVC wrapper
11859    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11860    dynamic_linker='Win32 ld.exe'
11861    ;;
11862  esac
11863  # FIXME: first we should search . and the directory the executable is in
11864  shlibpath_var=PATH
11865  ;;
11866
11867darwin* | rhapsody*)
11868  dynamic_linker="$host_os dyld"
11869  version_type=darwin
11870  need_lib_prefix=no
11871  need_version=no
11872  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11873  soname_spec='$libname$release$major$shared_ext'
11874  shlibpath_overrides_runpath=yes
11875  shlibpath_var=DYLD_LIBRARY_PATH
11876  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11877
11878  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11879  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11880  ;;
11881
11882dgux*)
11883  version_type=linux # correct to gnu/linux during the next big refactor
11884  need_lib_prefix=no
11885  need_version=no
11886  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11887  soname_spec='$libname$release$shared_ext$major'
11888  shlibpath_var=LD_LIBRARY_PATH
11889  ;;
11890
11891freebsd* | dragonfly*)
11892  # DragonFly does not have aout.  When/if they implement a new
11893  # versioning mechanism, adjust this.
11894  if test -x /usr/bin/objformat; then
11895    objformat=`/usr/bin/objformat`
11896  else
11897    case $host_os in
11898    freebsd[23].*) objformat=aout ;;
11899    *) objformat=elf ;;
11900    esac
11901  fi
11902  version_type=freebsd-$objformat
11903  case $version_type in
11904    freebsd-elf*)
11905      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11906      soname_spec='$libname$release$shared_ext$major'
11907      need_version=no
11908      need_lib_prefix=no
11909      ;;
11910    freebsd-*)
11911      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11912      need_version=yes
11913      ;;
11914  esac
11915  shlibpath_var=LD_LIBRARY_PATH
11916  case $host_os in
11917  freebsd2.*)
11918    shlibpath_overrides_runpath=yes
11919    ;;
11920  freebsd3.[01]* | freebsdelf3.[01]*)
11921    shlibpath_overrides_runpath=yes
11922    hardcode_into_libs=yes
11923    ;;
11924  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11925  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11926    shlibpath_overrides_runpath=no
11927    hardcode_into_libs=yes
11928    ;;
11929  *) # from 4.6 on, and DragonFly
11930    shlibpath_overrides_runpath=yes
11931    hardcode_into_libs=yes
11932    ;;
11933  esac
11934  ;;
11935
11936haiku*)
11937  version_type=linux # correct to gnu/linux during the next big refactor
11938  need_lib_prefix=no
11939  need_version=no
11940  dynamic_linker="$host_os runtime_loader"
11941  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11942  soname_spec='$libname$release$shared_ext$major'
11943  shlibpath_var=LIBRARY_PATH
11944  shlibpath_overrides_runpath=no
11945  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11946  hardcode_into_libs=yes
11947  ;;
11948
11949hpux9* | hpux10* | hpux11*)
11950  # Give a soname corresponding to the major version so that dld.sl refuses to
11951  # link against other versions.
11952  version_type=sunos
11953  need_lib_prefix=no
11954  need_version=no
11955  case $host_cpu in
11956  ia64*)
11957    shrext_cmds='.so'
11958    hardcode_into_libs=yes
11959    dynamic_linker="$host_os dld.so"
11960    shlibpath_var=LD_LIBRARY_PATH
11961    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11962    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11963    soname_spec='$libname$release$shared_ext$major'
11964    if test 32 = "$HPUX_IA64_MODE"; then
11965      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11966      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11967    else
11968      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11969      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11970    fi
11971    ;;
11972  hppa*64*)
11973    shrext_cmds='.sl'
11974    hardcode_into_libs=yes
11975    dynamic_linker="$host_os dld.sl"
11976    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11977    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11978    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11979    soname_spec='$libname$release$shared_ext$major'
11980    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11981    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11982    ;;
11983  *)
11984    shrext_cmds='.sl'
11985    dynamic_linker="$host_os dld.sl"
11986    shlibpath_var=SHLIB_PATH
11987    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11988    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11989    soname_spec='$libname$release$shared_ext$major'
11990    ;;
11991  esac
11992  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11993  postinstall_cmds='chmod 555 $lib'
11994  # or fails outright, so override atomically:
11995  install_override_mode=555
11996  ;;
11997
11998interix[3-9]*)
11999  version_type=linux # correct to gnu/linux during the next big refactor
12000  need_lib_prefix=no
12001  need_version=no
12002  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12003  soname_spec='$libname$release$shared_ext$major'
12004  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12005  shlibpath_var=LD_LIBRARY_PATH
12006  shlibpath_overrides_runpath=no
12007  hardcode_into_libs=yes
12008  ;;
12009
12010irix5* | irix6* | nonstopux*)
12011  case $host_os in
12012    nonstopux*) version_type=nonstopux ;;
12013    *)
12014	if test yes = "$lt_cv_prog_gnu_ld"; then
12015		version_type=linux # correct to gnu/linux during the next big refactor
12016	else
12017		version_type=irix
12018	fi ;;
12019  esac
12020  need_lib_prefix=no
12021  need_version=no
12022  soname_spec='$libname$release$shared_ext$major'
12023  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12024  case $host_os in
12025  irix5* | nonstopux*)
12026    libsuff= shlibsuff=
12027    ;;
12028  *)
12029    case $LD in # libtool.m4 will add one of these switches to LD
12030    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12031      libsuff= shlibsuff= libmagic=32-bit;;
12032    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12033      libsuff=32 shlibsuff=N32 libmagic=N32;;
12034    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12035      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12036    *) libsuff= shlibsuff= libmagic=never-match;;
12037    esac
12038    ;;
12039  esac
12040  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12041  shlibpath_overrides_runpath=no
12042  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12043  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12044  hardcode_into_libs=yes
12045  ;;
12046
12047# No shared lib support for Linux oldld, aout, or coff.
12048linux*oldld* | linux*aout* | linux*coff*)
12049  dynamic_linker=no
12050  ;;
12051
12052linux*android*)
12053  version_type=none # Android doesn't support versioned libraries.
12054  need_lib_prefix=no
12055  need_version=no
12056  library_names_spec='$libname$release$shared_ext'
12057  soname_spec='$libname$release$shared_ext'
12058  finish_cmds=
12059  shlibpath_var=LD_LIBRARY_PATH
12060  shlibpath_overrides_runpath=yes
12061
12062  # This implies no fast_install, which is unacceptable.
12063  # Some rework will be needed to allow for fast_install
12064  # before this can be enabled.
12065  hardcode_into_libs=yes
12066
12067  dynamic_linker='Android linker'
12068  # Don't embed -rpath directories since the linker doesn't support them.
12069  hardcode_libdir_flag_spec='-L$libdir'
12070  ;;
12071
12072# This must be glibc/ELF.
12073linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12074  version_type=linux # correct to gnu/linux during the next big refactor
12075  need_lib_prefix=no
12076  need_version=no
12077  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12078  soname_spec='$libname$release$shared_ext$major'
12079  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12080  shlibpath_var=LD_LIBRARY_PATH
12081  shlibpath_overrides_runpath=no
12082
12083  # Some binutils ld are patched to set DT_RUNPATH
12084  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12085  $as_echo_n "(cached) " >&6
12086else
12087  lt_cv_shlibpath_overrides_runpath=no
12088    save_LDFLAGS=$LDFLAGS
12089    save_libdir=$libdir
12090    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12091	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12092    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093/* end confdefs.h.  */
12094
12095int
12096main ()
12097{
12098
12099  ;
12100  return 0;
12101}
12102_ACEOF
12103if ac_fn_c_try_link "$LINENO"; then :
12104  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12105  lt_cv_shlibpath_overrides_runpath=yes
12106fi
12107fi
12108rm -f core conftest.err conftest.$ac_objext \
12109    conftest$ac_exeext conftest.$ac_ext
12110    LDFLAGS=$save_LDFLAGS
12111    libdir=$save_libdir
12112
12113fi
12114
12115  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12116
12117  # This implies no fast_install, which is unacceptable.
12118  # Some rework will be needed to allow for fast_install
12119  # before this can be enabled.
12120  hardcode_into_libs=yes
12121
12122  # Ideally, we could use ldconfig to report *all* directores which are
12123  # searched for libraries, however this is still not possible.  Aside from not
12124  # being certain /sbin/ldconfig is available, command
12125  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12126  # even though it is searched at run-time.  Try to do the best guess by
12127  # appending ld.so.conf contents (and includes) to the search path.
12128  if test -f /etc/ld.so.conf; then
12129    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' ' '`
12130    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12131  fi
12132
12133  # We used to test for /lib/ld.so.1 and disable shared libraries on
12134  # powerpc, because MkLinux only supported shared libraries with the
12135  # GNU dynamic linker.  Since this was broken with cross compilers,
12136  # most powerpc-linux boxes support dynamic linking these days and
12137  # people can always --disable-shared, the test was removed, and we
12138  # assume the GNU/Linux dynamic linker is in use.
12139  dynamic_linker='GNU/Linux ld.so'
12140  ;;
12141
12142netbsdelf*-gnu)
12143  version_type=linux
12144  need_lib_prefix=no
12145  need_version=no
12146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12147  soname_spec='${libname}${release}${shared_ext}$major'
12148  shlibpath_var=LD_LIBRARY_PATH
12149  shlibpath_overrides_runpath=no
12150  hardcode_into_libs=yes
12151  dynamic_linker='NetBSD ld.elf_so'
12152  ;;
12153
12154netbsd*)
12155  version_type=sunos
12156  need_lib_prefix=no
12157  need_version=no
12158  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12159    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12160    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12161    dynamic_linker='NetBSD (a.out) ld.so'
12162  else
12163    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12164    soname_spec='$libname$release$shared_ext$major'
12165    dynamic_linker='NetBSD ld.elf_so'
12166  fi
12167  shlibpath_var=LD_LIBRARY_PATH
12168  shlibpath_overrides_runpath=yes
12169  hardcode_into_libs=yes
12170  ;;
12171
12172newsos6)
12173  version_type=linux # correct to gnu/linux during the next big refactor
12174  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12175  shlibpath_var=LD_LIBRARY_PATH
12176  shlibpath_overrides_runpath=yes
12177  ;;
12178
12179*nto* | *qnx*)
12180  version_type=qnx
12181  need_lib_prefix=no
12182  need_version=no
12183  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12184  soname_spec='$libname$release$shared_ext$major'
12185  shlibpath_var=LD_LIBRARY_PATH
12186  shlibpath_overrides_runpath=no
12187  hardcode_into_libs=yes
12188  dynamic_linker='ldqnx.so'
12189  ;;
12190
12191openbsd* | bitrig*)
12192  version_type=sunos
12193  sys_lib_dlsearch_path_spec=/usr/lib
12194  need_lib_prefix=no
12195  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12196    need_version=no
12197  else
12198    need_version=yes
12199  fi
12200  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12201  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12202  shlibpath_var=LD_LIBRARY_PATH
12203  shlibpath_overrides_runpath=yes
12204  ;;
12205
12206os2*)
12207  libname_spec='$name'
12208  version_type=windows
12209  shrext_cmds=.dll
12210  need_version=no
12211  need_lib_prefix=no
12212  # OS/2 can only load a DLL with a base name of 8 characters or less.
12213  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12214    v=$($ECHO $release$versuffix | tr -d .-);
12215    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12216    $ECHO $n$v`$shared_ext'
12217  library_names_spec='${libname}_dll.$libext'
12218  dynamic_linker='OS/2 ld.exe'
12219  shlibpath_var=BEGINLIBPATH
12220  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12221  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12222  postinstall_cmds='base_file=`basename \$file`~
12223    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12224    dldir=$destdir/`dirname \$dlpath`~
12225    test -d \$dldir || mkdir -p \$dldir~
12226    $install_prog $dir/$dlname \$dldir/$dlname~
12227    chmod a+x \$dldir/$dlname~
12228    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12229      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12230    fi'
12231  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12232    dlpath=$dir/\$dldll~
12233    $RM \$dlpath'
12234  ;;
12235
12236osf3* | osf4* | osf5*)
12237  version_type=osf
12238  need_lib_prefix=no
12239  need_version=no
12240  soname_spec='$libname$release$shared_ext$major'
12241  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12242  shlibpath_var=LD_LIBRARY_PATH
12243  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12244  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12245  ;;
12246
12247rdos*)
12248  dynamic_linker=no
12249  ;;
12250
12251solaris*)
12252  version_type=linux # correct to gnu/linux during the next big refactor
12253  need_lib_prefix=no
12254  need_version=no
12255  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256  soname_spec='$libname$release$shared_ext$major'
12257  shlibpath_var=LD_LIBRARY_PATH
12258  shlibpath_overrides_runpath=yes
12259  hardcode_into_libs=yes
12260  # ldd complains unless libraries are executable
12261  postinstall_cmds='chmod +x $lib'
12262  ;;
12263
12264sunos4*)
12265  version_type=sunos
12266  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12267  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12268  shlibpath_var=LD_LIBRARY_PATH
12269  shlibpath_overrides_runpath=yes
12270  if test yes = "$with_gnu_ld"; then
12271    need_lib_prefix=no
12272  fi
12273  need_version=yes
12274  ;;
12275
12276sysv4 | sysv4.3*)
12277  version_type=linux # correct to gnu/linux during the next big refactor
12278  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12279  soname_spec='$libname$release$shared_ext$major'
12280  shlibpath_var=LD_LIBRARY_PATH
12281  case $host_vendor in
12282    sni)
12283      shlibpath_overrides_runpath=no
12284      need_lib_prefix=no
12285      runpath_var=LD_RUN_PATH
12286      ;;
12287    siemens)
12288      need_lib_prefix=no
12289      ;;
12290    motorola)
12291      need_lib_prefix=no
12292      need_version=no
12293      shlibpath_overrides_runpath=no
12294      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12295      ;;
12296  esac
12297  ;;
12298
12299sysv4*MP*)
12300  if test -d /usr/nec; then
12301    version_type=linux # correct to gnu/linux during the next big refactor
12302    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12303    soname_spec='$libname$shared_ext.$major'
12304    shlibpath_var=LD_LIBRARY_PATH
12305  fi
12306  ;;
12307
12308sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12309  version_type=sco
12310  need_lib_prefix=no
12311  need_version=no
12312  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12313  soname_spec='$libname$release$shared_ext$major'
12314  shlibpath_var=LD_LIBRARY_PATH
12315  shlibpath_overrides_runpath=yes
12316  hardcode_into_libs=yes
12317  if test yes = "$with_gnu_ld"; then
12318    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12319  else
12320    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12321    case $host_os in
12322      sco3.2v5*)
12323        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12324	;;
12325    esac
12326  fi
12327  sys_lib_dlsearch_path_spec='/usr/lib'
12328  ;;
12329
12330tpf*)
12331  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12332  version_type=linux # correct to gnu/linux during the next big refactor
12333  need_lib_prefix=no
12334  need_version=no
12335  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12336  shlibpath_var=LD_LIBRARY_PATH
12337  shlibpath_overrides_runpath=no
12338  hardcode_into_libs=yes
12339  ;;
12340
12341uts4*)
12342  version_type=linux # correct to gnu/linux during the next big refactor
12343  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12344  soname_spec='$libname$release$shared_ext$major'
12345  shlibpath_var=LD_LIBRARY_PATH
12346  ;;
12347
12348*)
12349  dynamic_linker=no
12350  ;;
12351esac
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12353$as_echo "$dynamic_linker" >&6; }
12354test no = "$dynamic_linker" && can_build_shared=no
12355
12356variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12357if test yes = "$GCC"; then
12358  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12359fi
12360
12361if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12362  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12363fi
12364
12365if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12366  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12367fi
12368
12369# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12370configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12371
12372# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12373func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12374
12375# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12376configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12475$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12476hardcode_action=
12477if test -n "$hardcode_libdir_flag_spec" ||
12478   test -n "$runpath_var" ||
12479   test yes = "$hardcode_automatic"; then
12480
12481  # We can hardcode non-existent directories.
12482  if test no != "$hardcode_direct" &&
12483     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12484     # have to relink, otherwise we might link with an installed library
12485     # when we should be linking with a yet-to-be-installed one
12486     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12487     test no != "$hardcode_minus_L"; then
12488    # Linking always hardcodes the temporary library directory.
12489    hardcode_action=relink
12490  else
12491    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12492    hardcode_action=immediate
12493  fi
12494else
12495  # We cannot hardcode anything, or else we can only hardcode existing
12496  # directories.
12497  hardcode_action=unsupported
12498fi
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12500$as_echo "$hardcode_action" >&6; }
12501
12502if test relink = "$hardcode_action" ||
12503   test yes = "$inherit_rpath"; then
12504  # Fast installation is not supported
12505  enable_fast_install=no
12506elif test yes = "$shlibpath_overrides_runpath" ||
12507     test no = "$enable_shared"; then
12508  # Fast installation is not necessary
12509  enable_fast_install=needless
12510fi
12511
12512
12513
12514
12515
12516
12517  if test yes != "$enable_dlopen"; then
12518  enable_dlopen=unknown
12519  enable_dlopen_self=unknown
12520  enable_dlopen_self_static=unknown
12521else
12522  lt_cv_dlopen=no
12523  lt_cv_dlopen_libs=
12524
12525  case $host_os in
12526  beos*)
12527    lt_cv_dlopen=load_add_on
12528    lt_cv_dlopen_libs=
12529    lt_cv_dlopen_self=yes
12530    ;;
12531
12532  mingw* | pw32* | cegcc*)
12533    lt_cv_dlopen=LoadLibrary
12534    lt_cv_dlopen_libs=
12535    ;;
12536
12537  cygwin*)
12538    lt_cv_dlopen=dlopen
12539    lt_cv_dlopen_libs=
12540    ;;
12541
12542  darwin*)
12543    # if libdl is installed we need to link against it
12544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12545$as_echo_n "checking for dlopen in -ldl... " >&6; }
12546if ${ac_cv_lib_dl_dlopen+:} false; then :
12547  $as_echo_n "(cached) " >&6
12548else
12549  ac_check_lib_save_LIBS=$LIBS
12550LIBS="-ldl  $LIBS"
12551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552/* end confdefs.h.  */
12553
12554/* Override any GCC internal prototype to avoid an error.
12555   Use char because int might match the return type of a GCC
12556   builtin and then its argument prototype would still apply.  */
12557#ifdef __cplusplus
12558extern "C"
12559#endif
12560char dlopen ();
12561int
12562main ()
12563{
12564return dlopen ();
12565  ;
12566  return 0;
12567}
12568_ACEOF
12569if ac_fn_c_try_link "$LINENO"; then :
12570  ac_cv_lib_dl_dlopen=yes
12571else
12572  ac_cv_lib_dl_dlopen=no
12573fi
12574rm -f core conftest.err conftest.$ac_objext \
12575    conftest$ac_exeext conftest.$ac_ext
12576LIBS=$ac_check_lib_save_LIBS
12577fi
12578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12579$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12580if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12581  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12582else
12583
12584    lt_cv_dlopen=dyld
12585    lt_cv_dlopen_libs=
12586    lt_cv_dlopen_self=yes
12587
12588fi
12589
12590    ;;
12591
12592  tpf*)
12593    # Don't try to run any link tests for TPF.  We know it's impossible
12594    # because TPF is a cross-compiler, and we know how we open DSOs.
12595    lt_cv_dlopen=dlopen
12596    lt_cv_dlopen_libs=
12597    lt_cv_dlopen_self=no
12598    ;;
12599
12600  *)
12601    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12602if test "x$ac_cv_func_shl_load" = xyes; then :
12603  lt_cv_dlopen=shl_load
12604else
12605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12606$as_echo_n "checking for shl_load in -ldld... " >&6; }
12607if ${ac_cv_lib_dld_shl_load+:} false; then :
12608  $as_echo_n "(cached) " >&6
12609else
12610  ac_check_lib_save_LIBS=$LIBS
12611LIBS="-ldld  $LIBS"
12612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613/* end confdefs.h.  */
12614
12615/* Override any GCC internal prototype to avoid an error.
12616   Use char because int might match the return type of a GCC
12617   builtin and then its argument prototype would still apply.  */
12618#ifdef __cplusplus
12619extern "C"
12620#endif
12621char shl_load ();
12622int
12623main ()
12624{
12625return shl_load ();
12626  ;
12627  return 0;
12628}
12629_ACEOF
12630if ac_fn_c_try_link "$LINENO"; then :
12631  ac_cv_lib_dld_shl_load=yes
12632else
12633  ac_cv_lib_dld_shl_load=no
12634fi
12635rm -f core conftest.err conftest.$ac_objext \
12636    conftest$ac_exeext conftest.$ac_ext
12637LIBS=$ac_check_lib_save_LIBS
12638fi
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12640$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12641if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12642  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12643else
12644  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12645if test "x$ac_cv_func_dlopen" = xyes; then :
12646  lt_cv_dlopen=dlopen
12647else
12648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12649$as_echo_n "checking for dlopen in -ldl... " >&6; }
12650if ${ac_cv_lib_dl_dlopen+:} false; then :
12651  $as_echo_n "(cached) " >&6
12652else
12653  ac_check_lib_save_LIBS=$LIBS
12654LIBS="-ldl  $LIBS"
12655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656/* end confdefs.h.  */
12657
12658/* Override any GCC internal prototype to avoid an error.
12659   Use char because int might match the return type of a GCC
12660   builtin and then its argument prototype would still apply.  */
12661#ifdef __cplusplus
12662extern "C"
12663#endif
12664char dlopen ();
12665int
12666main ()
12667{
12668return dlopen ();
12669  ;
12670  return 0;
12671}
12672_ACEOF
12673if ac_fn_c_try_link "$LINENO"; then :
12674  ac_cv_lib_dl_dlopen=yes
12675else
12676  ac_cv_lib_dl_dlopen=no
12677fi
12678rm -f core conftest.err conftest.$ac_objext \
12679    conftest$ac_exeext conftest.$ac_ext
12680LIBS=$ac_check_lib_save_LIBS
12681fi
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12683$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12684if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12685  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12686else
12687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12688$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12689if ${ac_cv_lib_svld_dlopen+:} false; then :
12690  $as_echo_n "(cached) " >&6
12691else
12692  ac_check_lib_save_LIBS=$LIBS
12693LIBS="-lsvld  $LIBS"
12694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695/* end confdefs.h.  */
12696
12697/* Override any GCC internal prototype to avoid an error.
12698   Use char because int might match the return type of a GCC
12699   builtin and then its argument prototype would still apply.  */
12700#ifdef __cplusplus
12701extern "C"
12702#endif
12703char dlopen ();
12704int
12705main ()
12706{
12707return dlopen ();
12708  ;
12709  return 0;
12710}
12711_ACEOF
12712if ac_fn_c_try_link "$LINENO"; then :
12713  ac_cv_lib_svld_dlopen=yes
12714else
12715  ac_cv_lib_svld_dlopen=no
12716fi
12717rm -f core conftest.err conftest.$ac_objext \
12718    conftest$ac_exeext conftest.$ac_ext
12719LIBS=$ac_check_lib_save_LIBS
12720fi
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12722$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12723if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12724  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12725else
12726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12727$as_echo_n "checking for dld_link in -ldld... " >&6; }
12728if ${ac_cv_lib_dld_dld_link+:} false; then :
12729  $as_echo_n "(cached) " >&6
12730else
12731  ac_check_lib_save_LIBS=$LIBS
12732LIBS="-ldld  $LIBS"
12733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734/* end confdefs.h.  */
12735
12736/* Override any GCC internal prototype to avoid an error.
12737   Use char because int might match the return type of a GCC
12738   builtin and then its argument prototype would still apply.  */
12739#ifdef __cplusplus
12740extern "C"
12741#endif
12742char dld_link ();
12743int
12744main ()
12745{
12746return dld_link ();
12747  ;
12748  return 0;
12749}
12750_ACEOF
12751if ac_fn_c_try_link "$LINENO"; then :
12752  ac_cv_lib_dld_dld_link=yes
12753else
12754  ac_cv_lib_dld_dld_link=no
12755fi
12756rm -f core conftest.err conftest.$ac_objext \
12757    conftest$ac_exeext conftest.$ac_ext
12758LIBS=$ac_check_lib_save_LIBS
12759fi
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12761$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12762if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12763  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12764fi
12765
12766
12767fi
12768
12769
12770fi
12771
12772
12773fi
12774
12775
12776fi
12777
12778
12779fi
12780
12781    ;;
12782  esac
12783
12784  if test no = "$lt_cv_dlopen"; then
12785    enable_dlopen=no
12786  else
12787    enable_dlopen=yes
12788  fi
12789
12790  case $lt_cv_dlopen in
12791  dlopen)
12792    save_CPPFLAGS=$CPPFLAGS
12793    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12794
12795    save_LDFLAGS=$LDFLAGS
12796    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12797
12798    save_LIBS=$LIBS
12799    LIBS="$lt_cv_dlopen_libs $LIBS"
12800
12801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12802$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12803if ${lt_cv_dlopen_self+:} false; then :
12804  $as_echo_n "(cached) " >&6
12805else
12806  	  if test yes = "$cross_compiling"; then :
12807  lt_cv_dlopen_self=cross
12808else
12809  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12810  lt_status=$lt_dlunknown
12811  cat > conftest.$ac_ext <<_LT_EOF
12812#line $LINENO "configure"
12813#include "confdefs.h"
12814
12815#if HAVE_DLFCN_H
12816#include <dlfcn.h>
12817#endif
12818
12819#include <stdio.h>
12820
12821#ifdef RTLD_GLOBAL
12822#  define LT_DLGLOBAL		RTLD_GLOBAL
12823#else
12824#  ifdef DL_GLOBAL
12825#    define LT_DLGLOBAL		DL_GLOBAL
12826#  else
12827#    define LT_DLGLOBAL		0
12828#  endif
12829#endif
12830
12831/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12832   find out it does not work in some platform. */
12833#ifndef LT_DLLAZY_OR_NOW
12834#  ifdef RTLD_LAZY
12835#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12836#  else
12837#    ifdef DL_LAZY
12838#      define LT_DLLAZY_OR_NOW		DL_LAZY
12839#    else
12840#      ifdef RTLD_NOW
12841#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12842#      else
12843#        ifdef DL_NOW
12844#          define LT_DLLAZY_OR_NOW	DL_NOW
12845#        else
12846#          define LT_DLLAZY_OR_NOW	0
12847#        endif
12848#      endif
12849#    endif
12850#  endif
12851#endif
12852
12853/* When -fvisibility=hidden is used, assume the code has been annotated
12854   correspondingly for the symbols needed.  */
12855#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12856int fnord () __attribute__((visibility("default")));
12857#endif
12858
12859int fnord () { return 42; }
12860int main ()
12861{
12862  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12863  int status = $lt_dlunknown;
12864
12865  if (self)
12866    {
12867      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12868      else
12869        {
12870	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12871          else puts (dlerror ());
12872	}
12873      /* dlclose (self); */
12874    }
12875  else
12876    puts (dlerror ());
12877
12878  return status;
12879}
12880_LT_EOF
12881  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12882  (eval $ac_link) 2>&5
12883  ac_status=$?
12884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12885  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12886    (./conftest; exit; ) >&5 2>/dev/null
12887    lt_status=$?
12888    case x$lt_status in
12889      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12890      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12891      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12892    esac
12893  else :
12894    # compilation failed
12895    lt_cv_dlopen_self=no
12896  fi
12897fi
12898rm -fr conftest*
12899
12900
12901fi
12902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12903$as_echo "$lt_cv_dlopen_self" >&6; }
12904
12905    if test yes = "$lt_cv_dlopen_self"; then
12906      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12907      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12908$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12909if ${lt_cv_dlopen_self_static+:} false; then :
12910  $as_echo_n "(cached) " >&6
12911else
12912  	  if test yes = "$cross_compiling"; then :
12913  lt_cv_dlopen_self_static=cross
12914else
12915  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12916  lt_status=$lt_dlunknown
12917  cat > conftest.$ac_ext <<_LT_EOF
12918#line $LINENO "configure"
12919#include "confdefs.h"
12920
12921#if HAVE_DLFCN_H
12922#include <dlfcn.h>
12923#endif
12924
12925#include <stdio.h>
12926
12927#ifdef RTLD_GLOBAL
12928#  define LT_DLGLOBAL		RTLD_GLOBAL
12929#else
12930#  ifdef DL_GLOBAL
12931#    define LT_DLGLOBAL		DL_GLOBAL
12932#  else
12933#    define LT_DLGLOBAL		0
12934#  endif
12935#endif
12936
12937/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12938   find out it does not work in some platform. */
12939#ifndef LT_DLLAZY_OR_NOW
12940#  ifdef RTLD_LAZY
12941#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12942#  else
12943#    ifdef DL_LAZY
12944#      define LT_DLLAZY_OR_NOW		DL_LAZY
12945#    else
12946#      ifdef RTLD_NOW
12947#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12948#      else
12949#        ifdef DL_NOW
12950#          define LT_DLLAZY_OR_NOW	DL_NOW
12951#        else
12952#          define LT_DLLAZY_OR_NOW	0
12953#        endif
12954#      endif
12955#    endif
12956#  endif
12957#endif
12958
12959/* When -fvisibility=hidden is used, assume the code has been annotated
12960   correspondingly for the symbols needed.  */
12961#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12962int fnord () __attribute__((visibility("default")));
12963#endif
12964
12965int fnord () { return 42; }
12966int main ()
12967{
12968  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12969  int status = $lt_dlunknown;
12970
12971  if (self)
12972    {
12973      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12974      else
12975        {
12976	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12977          else puts (dlerror ());
12978	}
12979      /* dlclose (self); */
12980    }
12981  else
12982    puts (dlerror ());
12983
12984  return status;
12985}
12986_LT_EOF
12987  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12988  (eval $ac_link) 2>&5
12989  ac_status=$?
12990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12991  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12992    (./conftest; exit; ) >&5 2>/dev/null
12993    lt_status=$?
12994    case x$lt_status in
12995      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12996      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12997      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12998    esac
12999  else :
13000    # compilation failed
13001    lt_cv_dlopen_self_static=no
13002  fi
13003fi
13004rm -fr conftest*
13005
13006
13007fi
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13009$as_echo "$lt_cv_dlopen_self_static" >&6; }
13010    fi
13011
13012    CPPFLAGS=$save_CPPFLAGS
13013    LDFLAGS=$save_LDFLAGS
13014    LIBS=$save_LIBS
13015    ;;
13016  esac
13017
13018  case $lt_cv_dlopen_self in
13019  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13020  *) enable_dlopen_self=unknown ;;
13021  esac
13022
13023  case $lt_cv_dlopen_self_static in
13024  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13025  *) enable_dlopen_self_static=unknown ;;
13026  esac
13027fi
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045striplib=
13046old_striplib=
13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13048$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13049if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13050  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13051  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13053$as_echo "yes" >&6; }
13054else
13055# FIXME - insert some real tests, host_os isn't really good enough
13056  case $host_os in
13057  darwin*)
13058    if test -n "$STRIP"; then
13059      striplib="$STRIP -x"
13060      old_striplib="$STRIP -S"
13061      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062$as_echo "yes" >&6; }
13063    else
13064      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065$as_echo "no" >&6; }
13066    fi
13067    ;;
13068  *)
13069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071    ;;
13072  esac
13073fi
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086  # Report what library types will actually be built
13087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13088$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13090$as_echo "$can_build_shared" >&6; }
13091
13092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13093$as_echo_n "checking whether to build shared libraries... " >&6; }
13094  test no = "$can_build_shared" && enable_shared=no
13095
13096  # On AIX, shared libraries and static libraries use the same namespace, and
13097  # are all built from PIC.
13098  case $host_os in
13099  aix3*)
13100    test yes = "$enable_shared" && enable_static=no
13101    if test -n "$RANLIB"; then
13102      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13103      postinstall_cmds='$RANLIB $lib'
13104    fi
13105    ;;
13106
13107  aix[4-9]*)
13108    if test ia64 != "$host_cpu"; then
13109      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13110      yes,aix,yes) ;;			# shared object as lib.so file only
13111      yes,svr4,*) ;;			# shared object as lib.so archive member only
13112      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13113      esac
13114    fi
13115    ;;
13116  esac
13117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13118$as_echo "$enable_shared" >&6; }
13119
13120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13121$as_echo_n "checking whether to build static libraries... " >&6; }
13122  # Make sure either enable_shared or enable_static is yes.
13123  test yes = "$enable_shared" || enable_static=yes
13124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13125$as_echo "$enable_static" >&6; }
13126
13127
13128
13129
13130fi
13131ac_ext=c
13132ac_cpp='$CPP $CPPFLAGS'
13133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135ac_compiler_gnu=$ac_cv_c_compiler_gnu
13136
13137CC=$lt_save_CC
13138
13139      if test -n "$CXX" && ( test no != "$CXX" &&
13140    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13141    (test g++ != "$CXX"))); then
13142  ac_ext=cpp
13143ac_cpp='$CXXCPP $CPPFLAGS'
13144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13148$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13149if test -z "$CXXCPP"; then
13150  if ${ac_cv_prog_CXXCPP+:} false; then :
13151  $as_echo_n "(cached) " >&6
13152else
13153      # Double quotes because CXXCPP needs to be expanded
13154    for CXXCPP in "$CXX -E" "/lib/cpp"
13155    do
13156      ac_preproc_ok=false
13157for ac_cxx_preproc_warn_flag in '' yes
13158do
13159  # Use a header file that comes with gcc, so configuring glibc
13160  # with a fresh cross-compiler works.
13161  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13162  # <limits.h> exists even on freestanding compilers.
13163  # On the NeXT, cc -E runs the code through the compiler's parser,
13164  # not just through cpp. "Syntax error" is here to catch this case.
13165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166/* end confdefs.h.  */
13167#ifdef __STDC__
13168# include <limits.h>
13169#else
13170# include <assert.h>
13171#endif
13172		     Syntax error
13173_ACEOF
13174if ac_fn_cxx_try_cpp "$LINENO"; then :
13175
13176else
13177  # Broken: fails on valid input.
13178continue
13179fi
13180rm -f conftest.err conftest.i conftest.$ac_ext
13181
13182  # OK, works on sane cases.  Now check whether nonexistent headers
13183  # can be detected and how.
13184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185/* end confdefs.h.  */
13186#include <ac_nonexistent.h>
13187_ACEOF
13188if ac_fn_cxx_try_cpp "$LINENO"; then :
13189  # Broken: success on invalid input.
13190continue
13191else
13192  # Passes both tests.
13193ac_preproc_ok=:
13194break
13195fi
13196rm -f conftest.err conftest.i conftest.$ac_ext
13197
13198done
13199# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13200rm -f conftest.i conftest.err conftest.$ac_ext
13201if $ac_preproc_ok; then :
13202  break
13203fi
13204
13205    done
13206    ac_cv_prog_CXXCPP=$CXXCPP
13207
13208fi
13209  CXXCPP=$ac_cv_prog_CXXCPP
13210else
13211  ac_cv_prog_CXXCPP=$CXXCPP
13212fi
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13214$as_echo "$CXXCPP" >&6; }
13215ac_preproc_ok=false
13216for ac_cxx_preproc_warn_flag in '' yes
13217do
13218  # Use a header file that comes with gcc, so configuring glibc
13219  # with a fresh cross-compiler works.
13220  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13221  # <limits.h> exists even on freestanding compilers.
13222  # On the NeXT, cc -E runs the code through the compiler's parser,
13223  # not just through cpp. "Syntax error" is here to catch this case.
13224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225/* end confdefs.h.  */
13226#ifdef __STDC__
13227# include <limits.h>
13228#else
13229# include <assert.h>
13230#endif
13231		     Syntax error
13232_ACEOF
13233if ac_fn_cxx_try_cpp "$LINENO"; then :
13234
13235else
13236  # Broken: fails on valid input.
13237continue
13238fi
13239rm -f conftest.err conftest.i conftest.$ac_ext
13240
13241  # OK, works on sane cases.  Now check whether nonexistent headers
13242  # can be detected and how.
13243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244/* end confdefs.h.  */
13245#include <ac_nonexistent.h>
13246_ACEOF
13247if ac_fn_cxx_try_cpp "$LINENO"; then :
13248  # Broken: success on invalid input.
13249continue
13250else
13251  # Passes both tests.
13252ac_preproc_ok=:
13253break
13254fi
13255rm -f conftest.err conftest.i conftest.$ac_ext
13256
13257done
13258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13259rm -f conftest.i conftest.err conftest.$ac_ext
13260if $ac_preproc_ok; then :
13261
13262else
13263  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13265as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13266See \`config.log' for more details" "$LINENO" 5; }
13267fi
13268
13269ac_ext=c
13270ac_cpp='$CPP $CPPFLAGS'
13271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13273ac_compiler_gnu=$ac_cv_c_compiler_gnu
13274
13275else
13276  _lt_caught_CXX_error=yes
13277fi
13278
13279ac_ext=cpp
13280ac_cpp='$CXXCPP $CPPFLAGS'
13281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13284
13285archive_cmds_need_lc_CXX=no
13286allow_undefined_flag_CXX=
13287always_export_symbols_CXX=no
13288archive_expsym_cmds_CXX=
13289compiler_needs_object_CXX=no
13290export_dynamic_flag_spec_CXX=
13291hardcode_direct_CXX=no
13292hardcode_direct_absolute_CXX=no
13293hardcode_libdir_flag_spec_CXX=
13294hardcode_libdir_separator_CXX=
13295hardcode_minus_L_CXX=no
13296hardcode_shlibpath_var_CXX=unsupported
13297hardcode_automatic_CXX=no
13298inherit_rpath_CXX=no
13299module_cmds_CXX=
13300module_expsym_cmds_CXX=
13301link_all_deplibs_CXX=unknown
13302old_archive_cmds_CXX=$old_archive_cmds
13303reload_flag_CXX=$reload_flag
13304reload_cmds_CXX=$reload_cmds
13305no_undefined_flag_CXX=
13306whole_archive_flag_spec_CXX=
13307enable_shared_with_static_runtimes_CXX=no
13308
13309# Source file extension for C++ test sources.
13310ac_ext=cpp
13311
13312# Object file extension for compiled C++ test sources.
13313objext=o
13314objext_CXX=$objext
13315
13316# No sense in running all these tests if we already determined that
13317# the CXX compiler isn't working.  Some variables (like enable_shared)
13318# are currently assumed to apply to all compilers on this platform,
13319# and will be corrupted by setting them based on a non-working compiler.
13320if test yes != "$_lt_caught_CXX_error"; then
13321  # Code to be used in simple compile tests
13322  lt_simple_compile_test_code="int some_variable = 0;"
13323
13324  # Code to be used in simple link tests
13325  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13326
13327  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13328
13329
13330
13331
13332
13333
13334# If no C compiler was specified, use CC.
13335LTCC=${LTCC-"$CC"}
13336
13337# If no C compiler flags were specified, use CFLAGS.
13338LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13339
13340# Allow CC to be a program name with arguments.
13341compiler=$CC
13342
13343
13344  # save warnings/boilerplate of simple test code
13345  ac_outfile=conftest.$ac_objext
13346echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13347eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13348_lt_compiler_boilerplate=`cat conftest.err`
13349$RM conftest*
13350
13351  ac_outfile=conftest.$ac_objext
13352echo "$lt_simple_link_test_code" >conftest.$ac_ext
13353eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13354_lt_linker_boilerplate=`cat conftest.err`
13355$RM -r conftest*
13356
13357
13358  # Allow CC to be a program name with arguments.
13359  lt_save_CC=$CC
13360  lt_save_CFLAGS=$CFLAGS
13361  lt_save_LD=$LD
13362  lt_save_GCC=$GCC
13363  GCC=$GXX
13364  lt_save_with_gnu_ld=$with_gnu_ld
13365  lt_save_path_LD=$lt_cv_path_LD
13366  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13367    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13368  else
13369    $as_unset lt_cv_prog_gnu_ld
13370  fi
13371  if test -n "${lt_cv_path_LDCXX+set}"; then
13372    lt_cv_path_LD=$lt_cv_path_LDCXX
13373  else
13374    $as_unset lt_cv_path_LD
13375  fi
13376  test -z "${LDCXX+set}" || LD=$LDCXX
13377  CC=${CXX-"c++"}
13378  CFLAGS=$CXXFLAGS
13379  compiler=$CC
13380  compiler_CXX=$CC
13381  func_cc_basename $compiler
13382cc_basename=$func_cc_basename_result
13383
13384
13385  if test -n "$compiler"; then
13386    # We don't want -fno-exception when compiling C++ code, so set the
13387    # no_builtin_flag separately
13388    if test yes = "$GXX"; then
13389      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13390    else
13391      lt_prog_compiler_no_builtin_flag_CXX=
13392    fi
13393
13394    if test yes = "$GXX"; then
13395      # Set up default GNU C++ configuration
13396
13397
13398
13399# Check whether --with-gnu-ld was given.
13400if test "${with_gnu_ld+set}" = set; then :
13401  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13402else
13403  with_gnu_ld=no
13404fi
13405
13406ac_prog=ld
13407if test yes = "$GCC"; then
13408  # Check if gcc -print-prog-name=ld gives a path.
13409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13410$as_echo_n "checking for ld used by $CC... " >&6; }
13411  case $host in
13412  *-*-mingw*)
13413    # gcc leaves a trailing carriage return, which upsets mingw
13414    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13415  *)
13416    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13417  esac
13418  case $ac_prog in
13419    # Accept absolute paths.
13420    [\\/]* | ?:[\\/]*)
13421      re_direlt='/[^/][^/]*/\.\./'
13422      # Canonicalize the pathname of ld
13423      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13424      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13425	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13426      done
13427      test -z "$LD" && LD=$ac_prog
13428      ;;
13429  "")
13430    # If it fails, then pretend we aren't using GCC.
13431    ac_prog=ld
13432    ;;
13433  *)
13434    # If it is relative, then search for the first ld in PATH.
13435    with_gnu_ld=unknown
13436    ;;
13437  esac
13438elif test yes = "$with_gnu_ld"; then
13439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13440$as_echo_n "checking for GNU ld... " >&6; }
13441else
13442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13443$as_echo_n "checking for non-GNU ld... " >&6; }
13444fi
13445if ${lt_cv_path_LD+:} false; then :
13446  $as_echo_n "(cached) " >&6
13447else
13448  if test -z "$LD"; then
13449  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13450  for ac_dir in $PATH; do
13451    IFS=$lt_save_ifs
13452    test -z "$ac_dir" && ac_dir=.
13453    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13454      lt_cv_path_LD=$ac_dir/$ac_prog
13455      # Check to see if the program is GNU ld.  I'd rather use --version,
13456      # but apparently some variants of GNU ld only accept -v.
13457      # Break only if it was the GNU/non-GNU ld that we prefer.
13458      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13459      *GNU* | *'with BFD'*)
13460	test no != "$with_gnu_ld" && break
13461	;;
13462      *)
13463	test yes != "$with_gnu_ld" && break
13464	;;
13465      esac
13466    fi
13467  done
13468  IFS=$lt_save_ifs
13469else
13470  lt_cv_path_LD=$LD # Let the user override the test with a path.
13471fi
13472fi
13473
13474LD=$lt_cv_path_LD
13475if test -n "$LD"; then
13476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13477$as_echo "$LD" >&6; }
13478else
13479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480$as_echo "no" >&6; }
13481fi
13482test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13484$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13485if ${lt_cv_prog_gnu_ld+:} false; then :
13486  $as_echo_n "(cached) " >&6
13487else
13488  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13489case `$LD -v 2>&1 </dev/null` in
13490*GNU* | *'with BFD'*)
13491  lt_cv_prog_gnu_ld=yes
13492  ;;
13493*)
13494  lt_cv_prog_gnu_ld=no
13495  ;;
13496esac
13497fi
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13499$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13500with_gnu_ld=$lt_cv_prog_gnu_ld
13501
13502
13503
13504
13505
13506
13507
13508      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13509      # archiving commands below assume that GNU ld is being used.
13510      if test yes = "$with_gnu_ld"; then
13511        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13512        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'
13513
13514        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13515        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13516
13517        # If archive_cmds runs LD, not CC, wlarc should be empty
13518        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13519        #     investigate it a little bit more. (MM)
13520        wlarc='$wl'
13521
13522        # ancient GNU ld didn't support --whole-archive et. al.
13523        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13524	  $GREP 'no-whole-archive' > /dev/null; then
13525          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13526        else
13527          whole_archive_flag_spec_CXX=
13528        fi
13529      else
13530        with_gnu_ld=no
13531        wlarc=
13532
13533        # A generic and very simple default shared library creation
13534        # command for GNU C++ for the case where it uses the native
13535        # linker, instead of GNU ld.  If possible, this setting should
13536        # overridden to take advantage of the native linker features on
13537        # the platform it is being used on.
13538        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13539      fi
13540
13541      # Commands to make compiler produce verbose output that lists
13542      # what "hidden" libraries, object files and flags are used when
13543      # linking a shared library.
13544      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13545
13546    else
13547      GXX=no
13548      with_gnu_ld=no
13549      wlarc=
13550    fi
13551
13552    # PORTME: fill in a description of your system's C++ link characteristics
13553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13554$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13555    ld_shlibs_CXX=yes
13556    case $host_os in
13557      aix3*)
13558        # FIXME: insert proper C++ library support
13559        ld_shlibs_CXX=no
13560        ;;
13561      aix[4-9]*)
13562        if test ia64 = "$host_cpu"; then
13563          # On IA64, the linker does run time linking by default, so we don't
13564          # have to do anything special.
13565          aix_use_runtimelinking=no
13566          exp_sym_flag='-Bexport'
13567          no_entry_flag=
13568        else
13569          aix_use_runtimelinking=no
13570
13571          # Test if we are trying to use run time linking or normal
13572          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13573          # have runtime linking enabled, and use it for executables.
13574          # For shared libraries, we enable/disable runtime linking
13575          # depending on the kind of the shared library created -
13576          # when "with_aix_soname,aix_use_runtimelinking" is:
13577          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13578          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13579          #            lib.a           static archive
13580          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13581          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13582          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13583          #            lib.a(lib.so.V) shared, rtl:no
13584          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13585          #            lib.a           static archive
13586          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13587	    for ld_flag in $LDFLAGS; do
13588	      case $ld_flag in
13589	      *-brtl*)
13590	        aix_use_runtimelinking=yes
13591	        break
13592	        ;;
13593	      esac
13594	    done
13595	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13596	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13597	      # so we don't have lib.a shared libs to link our executables.
13598	      # We have to force runtime linking in this case.
13599	      aix_use_runtimelinking=yes
13600	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13601	    fi
13602	    ;;
13603          esac
13604
13605          exp_sym_flag='-bexport'
13606          no_entry_flag='-bnoentry'
13607        fi
13608
13609        # When large executables or shared objects are built, AIX ld can
13610        # have problems creating the table of contents.  If linking a library
13611        # or program results in "error TOC overflow" add -mminimal-toc to
13612        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13613        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13614
13615        archive_cmds_CXX=''
13616        hardcode_direct_CXX=yes
13617        hardcode_direct_absolute_CXX=yes
13618        hardcode_libdir_separator_CXX=':'
13619        link_all_deplibs_CXX=yes
13620        file_list_spec_CXX='$wl-f,'
13621        case $with_aix_soname,$aix_use_runtimelinking in
13622        aix,*) ;;	# no import file
13623        svr4,* | *,yes) # use import file
13624          # The Import File defines what to hardcode.
13625          hardcode_direct_CXX=no
13626          hardcode_direct_absolute_CXX=no
13627          ;;
13628        esac
13629
13630        if test yes = "$GXX"; then
13631          case $host_os in aix4.[012]|aix4.[012].*)
13632          # We only want to do this on AIX 4.2 and lower, the check
13633          # below for broken collect2 doesn't work under 4.3+
13634	  collect2name=`$CC -print-prog-name=collect2`
13635	  if test -f "$collect2name" &&
13636	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13637	  then
13638	    # We have reworked collect2
13639	    :
13640	  else
13641	    # We have old collect2
13642	    hardcode_direct_CXX=unsupported
13643	    # It fails to find uninstalled libraries when the uninstalled
13644	    # path is not listed in the libpath.  Setting hardcode_minus_L
13645	    # to unsupported forces relinking
13646	    hardcode_minus_L_CXX=yes
13647	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13648	    hardcode_libdir_separator_CXX=
13649	  fi
13650          esac
13651          shared_flag='-shared'
13652	  if test yes = "$aix_use_runtimelinking"; then
13653	    shared_flag=$shared_flag' $wl-G'
13654	  fi
13655	  # Need to ensure runtime linking is disabled for the traditional
13656	  # shared library, or the linker may eventually find shared libraries
13657	  # /with/ Import File - we do not want to mix them.
13658	  shared_flag_aix='-shared'
13659	  shared_flag_svr4='-shared $wl-G'
13660        else
13661          # not using gcc
13662          if test ia64 = "$host_cpu"; then
13663	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13664	  # chokes on -Wl,-G. The following line is correct:
13665	  shared_flag='-G'
13666          else
13667	    if test yes = "$aix_use_runtimelinking"; then
13668	      shared_flag='$wl-G'
13669	    else
13670	      shared_flag='$wl-bM:SRE'
13671	    fi
13672	    shared_flag_aix='$wl-bM:SRE'
13673	    shared_flag_svr4='$wl-G'
13674          fi
13675        fi
13676
13677        export_dynamic_flag_spec_CXX='$wl-bexpall'
13678        # It seems that -bexpall does not export symbols beginning with
13679        # underscore (_), so it is better to generate a list of symbols to
13680	# export.
13681        always_export_symbols_CXX=yes
13682	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13683          # Warning - without using the other runtime loading flags (-brtl),
13684          # -berok will link without error, but may produce a broken library.
13685          # The "-G" linker flag allows undefined symbols.
13686          no_undefined_flag_CXX='-bernotok'
13687          # Determine the default libpath from the value encoded in an empty
13688          # executable.
13689          if test set = "${lt_cv_aix_libpath+set}"; then
13690  aix_libpath=$lt_cv_aix_libpath
13691else
13692  if ${lt_cv_aix_libpath__CXX+:} false; then :
13693  $as_echo_n "(cached) " >&6
13694else
13695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696/* end confdefs.h.  */
13697
13698int
13699main ()
13700{
13701
13702  ;
13703  return 0;
13704}
13705_ACEOF
13706if ac_fn_cxx_try_link "$LINENO"; then :
13707
13708  lt_aix_libpath_sed='
13709      /Import File Strings/,/^$/ {
13710	  /^0/ {
13711	      s/^0  *\([^ ]*\) *$/\1/
13712	      p
13713	  }
13714      }'
13715  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13716  # Check for a 64-bit object if we didn't find anything.
13717  if test -z "$lt_cv_aix_libpath__CXX"; then
13718    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13719  fi
13720fi
13721rm -f core conftest.err conftest.$ac_objext \
13722    conftest$ac_exeext conftest.$ac_ext
13723  if test -z "$lt_cv_aix_libpath__CXX"; then
13724    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13725  fi
13726
13727fi
13728
13729  aix_libpath=$lt_cv_aix_libpath__CXX
13730fi
13731
13732          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13733
13734          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13735        else
13736          if test ia64 = "$host_cpu"; then
13737	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13738	    allow_undefined_flag_CXX="-z nodefs"
13739	    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"
13740          else
13741	    # Determine the default libpath from the value encoded in an
13742	    # empty executable.
13743	    if test set = "${lt_cv_aix_libpath+set}"; then
13744  aix_libpath=$lt_cv_aix_libpath
13745else
13746  if ${lt_cv_aix_libpath__CXX+:} false; then :
13747  $as_echo_n "(cached) " >&6
13748else
13749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750/* end confdefs.h.  */
13751
13752int
13753main ()
13754{
13755
13756  ;
13757  return 0;
13758}
13759_ACEOF
13760if ac_fn_cxx_try_link "$LINENO"; then :
13761
13762  lt_aix_libpath_sed='
13763      /Import File Strings/,/^$/ {
13764	  /^0/ {
13765	      s/^0  *\([^ ]*\) *$/\1/
13766	      p
13767	  }
13768      }'
13769  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13770  # Check for a 64-bit object if we didn't find anything.
13771  if test -z "$lt_cv_aix_libpath__CXX"; then
13772    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13773  fi
13774fi
13775rm -f core conftest.err conftest.$ac_objext \
13776    conftest$ac_exeext conftest.$ac_ext
13777  if test -z "$lt_cv_aix_libpath__CXX"; then
13778    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13779  fi
13780
13781fi
13782
13783  aix_libpath=$lt_cv_aix_libpath__CXX
13784fi
13785
13786	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13787	    # Warning - without using the other run time loading flags,
13788	    # -berok will link without error, but may produce a broken library.
13789	    no_undefined_flag_CXX=' $wl-bernotok'
13790	    allow_undefined_flag_CXX=' $wl-berok'
13791	    if test yes = "$with_gnu_ld"; then
13792	      # We only use this code for GNU lds that support --whole-archive.
13793	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13794	    else
13795	      # Exported symbols can be pulled into shared objects from archives
13796	      whole_archive_flag_spec_CXX='$convenience'
13797	    fi
13798	    archive_cmds_need_lc_CXX=yes
13799	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13800	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13801	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13802	    if test svr4 != "$with_aix_soname"; then
13803	      # This is similar to how AIX traditionally builds its shared
13804	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13805	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13806	    fi
13807	    if test aix != "$with_aix_soname"; then
13808	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13809	    else
13810	      # used by -dlpreopen to get the symbols
13811	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13812	    fi
13813	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13814          fi
13815        fi
13816        ;;
13817
13818      beos*)
13819	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13820	  allow_undefined_flag_CXX=unsupported
13821	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13822	  # support --undefined.  This deserves some investigation.  FIXME
13823	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13824	else
13825	  ld_shlibs_CXX=no
13826	fi
13827	;;
13828
13829      chorus*)
13830        case $cc_basename in
13831          *)
13832	  # FIXME: insert proper C++ library support
13833	  ld_shlibs_CXX=no
13834	  ;;
13835        esac
13836        ;;
13837
13838      cygwin* | mingw* | pw32* | cegcc*)
13839	case $GXX,$cc_basename in
13840	,cl* | no,cl*)
13841	  # Native MSVC
13842	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13843	  # no search path for DLLs.
13844	  hardcode_libdir_flag_spec_CXX=' '
13845	  allow_undefined_flag_CXX=unsupported
13846	  always_export_symbols_CXX=yes
13847	  file_list_spec_CXX='@'
13848	  # Tell ltmain to make .lib files, not .a files.
13849	  libext=lib
13850	  # Tell ltmain to make .dll files, not .so files.
13851	  shrext_cmds=.dll
13852	  # FIXME: Setting linknames here is a bad hack.
13853	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13854	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13855              cp "$export_symbols" "$output_objdir/$soname.def";
13856              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13857            else
13858              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13859            fi~
13860            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13861            linknames='
13862	  # The linker will not automatically build a static lib if we build a DLL.
13863	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13864	  enable_shared_with_static_runtimes_CXX=yes
13865	  # Don't use ranlib
13866	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13867	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13868            lt_tool_outputfile="@TOOL_OUTPUT@"~
13869            case $lt_outputfile in
13870              *.exe|*.EXE) ;;
13871              *)
13872                lt_outputfile=$lt_outputfile.exe
13873                lt_tool_outputfile=$lt_tool_outputfile.exe
13874                ;;
13875            esac~
13876            func_to_tool_file "$lt_outputfile"~
13877            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13878              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13879              $RM "$lt_outputfile.manifest";
13880            fi'
13881	  ;;
13882	*)
13883	  # g++
13884	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13885	  # as there is no search path for DLLs.
13886	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13887	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13888	  allow_undefined_flag_CXX=unsupported
13889	  always_export_symbols_CXX=no
13890	  enable_shared_with_static_runtimes_CXX=yes
13891
13892	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13893	    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'
13894	    # If the export-symbols file already is a .def file, use it as
13895	    # is; otherwise, prepend EXPORTS...
13896	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13897              cp $export_symbols $output_objdir/$soname.def;
13898            else
13899              echo EXPORTS > $output_objdir/$soname.def;
13900              cat $export_symbols >> $output_objdir/$soname.def;
13901            fi~
13902            $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'
13903	  else
13904	    ld_shlibs_CXX=no
13905	  fi
13906	  ;;
13907	esac
13908	;;
13909      darwin* | rhapsody*)
13910
13911
13912  archive_cmds_need_lc_CXX=no
13913  hardcode_direct_CXX=no
13914  hardcode_automatic_CXX=yes
13915  hardcode_shlibpath_var_CXX=unsupported
13916  if test yes = "$lt_cv_ld_force_load"; then
13917    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\"`'
13918
13919  else
13920    whole_archive_flag_spec_CXX=''
13921  fi
13922  link_all_deplibs_CXX=yes
13923  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13924  case $cc_basename in
13925     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13926     *) _lt_dar_can_shared=$GCC ;;
13927  esac
13928  if test yes = "$_lt_dar_can_shared"; then
13929    output_verbose_link_cmd=func_echo_all
13930    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"
13931    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13932    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"
13933    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"
13934       if test yes != "$lt_cv_apple_cc_single_mod"; then
13935      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"
13936      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"
13937    fi
13938
13939  else
13940  ld_shlibs_CXX=no
13941  fi
13942
13943	;;
13944
13945      os2*)
13946	hardcode_libdir_flag_spec_CXX='-L$libdir'
13947	hardcode_minus_L_CXX=yes
13948	allow_undefined_flag_CXX=unsupported
13949	shrext_cmds=.dll
13950	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13951	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13952	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13953	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13954	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13955	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13956	  emximp -o $lib $output_objdir/$libname.def'
13957	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13958	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13959	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13960	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13961	  prefix_cmds="$SED"~
13962	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
13963	    prefix_cmds="$prefix_cmds -e 1d";
13964	  fi~
13965	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13966	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13967	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13968	  emximp -o $lib $output_objdir/$libname.def'
13969	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13970	enable_shared_with_static_runtimes_CXX=yes
13971	;;
13972
13973      dgux*)
13974        case $cc_basename in
13975          ec++*)
13976	    # FIXME: insert proper C++ library support
13977	    ld_shlibs_CXX=no
13978	    ;;
13979          ghcx*)
13980	    # Green Hills C++ Compiler
13981	    # FIXME: insert proper C++ library support
13982	    ld_shlibs_CXX=no
13983	    ;;
13984          *)
13985	    # FIXME: insert proper C++ library support
13986	    ld_shlibs_CXX=no
13987	    ;;
13988        esac
13989        ;;
13990
13991      freebsd2.*)
13992        # C++ shared libraries reported to be fairly broken before
13993	# switch to ELF
13994        ld_shlibs_CXX=no
13995        ;;
13996
13997      freebsd-elf*)
13998        archive_cmds_need_lc_CXX=no
13999        ;;
14000
14001      freebsd* | dragonfly*)
14002        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14003        # conventions
14004        ld_shlibs_CXX=yes
14005        ;;
14006
14007      haiku*)
14008        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14009        link_all_deplibs_CXX=yes
14010        ;;
14011
14012      hpux9*)
14013        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14014        hardcode_libdir_separator_CXX=:
14015        export_dynamic_flag_spec_CXX='$wl-E'
14016        hardcode_direct_CXX=yes
14017        hardcode_minus_L_CXX=yes # Not in the search PATH,
14018				             # but as the default
14019				             # location of the library.
14020
14021        case $cc_basename in
14022          CC*)
14023            # FIXME: insert proper C++ library support
14024            ld_shlibs_CXX=no
14025            ;;
14026          aCC*)
14027            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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14028            # Commands to make compiler produce verbose output that lists
14029            # what "hidden" libraries, object files and flags are used when
14030            # linking a shared library.
14031            #
14032            # There doesn't appear to be a way to prevent this compiler from
14033            # explicitly linking system object files so we need to strip them
14034            # from the output so that they don't get included in the library
14035            # dependencies.
14036            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"'
14037            ;;
14038          *)
14039            if test yes = "$GXX"; then
14040              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14041            else
14042              # FIXME: insert proper C++ library support
14043              ld_shlibs_CXX=no
14044            fi
14045            ;;
14046        esac
14047        ;;
14048
14049      hpux10*|hpux11*)
14050        if test no = "$with_gnu_ld"; then
14051	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14052	  hardcode_libdir_separator_CXX=:
14053
14054          case $host_cpu in
14055            hppa*64*|ia64*)
14056              ;;
14057            *)
14058	      export_dynamic_flag_spec_CXX='$wl-E'
14059              ;;
14060          esac
14061        fi
14062        case $host_cpu in
14063          hppa*64*|ia64*)
14064            hardcode_direct_CXX=no
14065            hardcode_shlibpath_var_CXX=no
14066            ;;
14067          *)
14068            hardcode_direct_CXX=yes
14069            hardcode_direct_absolute_CXX=yes
14070            hardcode_minus_L_CXX=yes # Not in the search PATH,
14071					         # but as the default
14072					         # location of the library.
14073            ;;
14074        esac
14075
14076        case $cc_basename in
14077          CC*)
14078	    # FIXME: insert proper C++ library support
14079	    ld_shlibs_CXX=no
14080	    ;;
14081          aCC*)
14082	    case $host_cpu in
14083	      hppa*64*)
14084	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14085	        ;;
14086	      ia64*)
14087	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14088	        ;;
14089	      *)
14090	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14091	        ;;
14092	    esac
14093	    # Commands to make compiler produce verbose output that lists
14094	    # what "hidden" libraries, object files and flags are used when
14095	    # linking a shared library.
14096	    #
14097	    # There doesn't appear to be a way to prevent this compiler from
14098	    # explicitly linking system object files so we need to strip them
14099	    # from the output so that they don't get included in the library
14100	    # dependencies.
14101	    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"'
14102	    ;;
14103          *)
14104	    if test yes = "$GXX"; then
14105	      if test no = "$with_gnu_ld"; then
14106	        case $host_cpu in
14107	          hppa*64*)
14108	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14109	            ;;
14110	          ia64*)
14111	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14112	            ;;
14113	          *)
14114	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14115	            ;;
14116	        esac
14117	      fi
14118	    else
14119	      # FIXME: insert proper C++ library support
14120	      ld_shlibs_CXX=no
14121	    fi
14122	    ;;
14123        esac
14124        ;;
14125
14126      interix[3-9]*)
14127	hardcode_direct_CXX=no
14128	hardcode_shlibpath_var_CXX=no
14129	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14130	export_dynamic_flag_spec_CXX='$wl-E'
14131	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14132	# Instead, shared libraries are loaded at an image base (0x10000000 by
14133	# default) and relocated if they conflict, which is a slow very memory
14134	# consuming and fragmenting process.  To avoid this, we pick a random,
14135	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14136	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14137	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'
14138	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'
14139	;;
14140      irix5* | irix6*)
14141        case $cc_basename in
14142          CC*)
14143	    # SGI C++
14144	    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'
14145
14146	    # Archives containing C++ object files must be created using
14147	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14148	    # necessary to make sure instantiated templates are included
14149	    # in the archive.
14150	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14151	    ;;
14152          *)
14153	    if test yes = "$GXX"; then
14154	      if test no = "$with_gnu_ld"; then
14155	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14156	      else
14157	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14158	      fi
14159	    fi
14160	    link_all_deplibs_CXX=yes
14161	    ;;
14162        esac
14163        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14164        hardcode_libdir_separator_CXX=:
14165        inherit_rpath_CXX=yes
14166        ;;
14167
14168      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14169        case $cc_basename in
14170          KCC*)
14171	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14172
14173	    # KCC will only create a shared library if the output file
14174	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14175	    # to its proper name (with version) after linking.
14176	    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'
14177	    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'
14178	    # Commands to make compiler produce verbose output that lists
14179	    # what "hidden" libraries, object files and flags are used when
14180	    # linking a shared library.
14181	    #
14182	    # There doesn't appear to be a way to prevent this compiler from
14183	    # explicitly linking system object files so we need to strip them
14184	    # from the output so that they don't get included in the library
14185	    # dependencies.
14186	    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"'
14187
14188	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14189	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14190
14191	    # Archives containing C++ object files must be created using
14192	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14193	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14194	    ;;
14195	  icpc* | ecpc* )
14196	    # Intel C++
14197	    with_gnu_ld=yes
14198	    # version 8.0 and above of icpc choke on multiply defined symbols
14199	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14200	    # earlier do not add the objects themselves.
14201	    case `$CC -V 2>&1` in
14202	      *"Version 7."*)
14203	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14204		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'
14205		;;
14206	      *)  # Version 8.0 or newer
14207	        tmp_idyn=
14208	        case $host_cpu in
14209		  ia64*) tmp_idyn=' -i_dynamic';;
14210		esac
14211	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14212		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'
14213		;;
14214	    esac
14215	    archive_cmds_need_lc_CXX=no
14216	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14217	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14218	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14219	    ;;
14220          pgCC* | pgcpp*)
14221            # Portland Group C++ compiler
14222	    case `$CC -V` in
14223	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14224	      prelink_cmds_CXX='tpldir=Template.dir~
14225               rm -rf $tpldir~
14226               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14227               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14228	      old_archive_cmds_CXX='tpldir=Template.dir~
14229                rm -rf $tpldir~
14230                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14231                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14232                $RANLIB $oldlib'
14233	      archive_cmds_CXX='tpldir=Template.dir~
14234                rm -rf $tpldir~
14235                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14236                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14237	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14238                rm -rf $tpldir~
14239                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14240                $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'
14241	      ;;
14242	    *) # Version 6 and above use weak symbols
14243	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14244	      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'
14245	      ;;
14246	    esac
14247
14248	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14249	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14250	    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'
14251            ;;
14252	  cxx*)
14253	    # Compaq C++
14254	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14255	    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'
14256
14257	    runpath_var=LD_RUN_PATH
14258	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14259	    hardcode_libdir_separator_CXX=:
14260
14261	    # Commands to make compiler produce verbose output that lists
14262	    # what "hidden" libraries, object files and flags are used when
14263	    # linking a shared library.
14264	    #
14265	    # There doesn't appear to be a way to prevent this compiler from
14266	    # explicitly linking system object files so we need to strip them
14267	    # from the output so that they don't get included in the library
14268	    # dependencies.
14269	    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'
14270	    ;;
14271	  xl* | mpixl* | bgxl*)
14272	    # IBM XL 8.0 on PPC, with GNU ld
14273	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14274	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14275	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14276	    if test yes = "$supports_anon_versioning"; then
14277	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14278                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14279                echo "local: *; };" >> $output_objdir/$libname.ver~
14280                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14281	    fi
14282	    ;;
14283	  *)
14284	    case `$CC -V 2>&1 | sed 5q` in
14285	    *Sun\ C*)
14286	      # Sun C++ 5.9
14287	      no_undefined_flag_CXX=' -zdefs'
14288	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14289	      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'
14290	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14291	      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'
14292	      compiler_needs_object_CXX=yes
14293
14294	      # Not sure whether something based on
14295	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14296	      # would be better.
14297	      output_verbose_link_cmd='func_echo_all'
14298
14299	      # Archives containing C++ object files must be created using
14300	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14301	      # necessary to make sure instantiated templates are included
14302	      # in the archive.
14303	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14304	      ;;
14305	    esac
14306	    ;;
14307	esac
14308	;;
14309
14310      lynxos*)
14311        # FIXME: insert proper C++ library support
14312	ld_shlibs_CXX=no
14313	;;
14314
14315      m88k*)
14316        # FIXME: insert proper C++ library support
14317        ld_shlibs_CXX=no
14318	;;
14319
14320      mvs*)
14321        case $cc_basename in
14322          cxx*)
14323	    # FIXME: insert proper C++ library support
14324	    ld_shlibs_CXX=no
14325	    ;;
14326	  *)
14327	    # FIXME: insert proper C++ library support
14328	    ld_shlibs_CXX=no
14329	    ;;
14330	esac
14331	;;
14332
14333      netbsd*)
14334        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14335	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14336	  wlarc=
14337	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14338	  hardcode_direct_CXX=yes
14339	  hardcode_shlibpath_var_CXX=no
14340	fi
14341	# Workaround some broken pre-1.5 toolchains
14342	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14343	;;
14344
14345      *nto* | *qnx*)
14346        ld_shlibs_CXX=yes
14347	;;
14348
14349      openbsd* | bitrig*)
14350	if test -f /usr/libexec/ld.so; then
14351	  hardcode_direct_CXX=yes
14352	  hardcode_shlibpath_var_CXX=no
14353	  hardcode_direct_absolute_CXX=yes
14354	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14355	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14356	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14357	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14358	    export_dynamic_flag_spec_CXX='$wl-E'
14359	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14360	  fi
14361	  output_verbose_link_cmd=func_echo_all
14362	else
14363	  ld_shlibs_CXX=no
14364	fi
14365	;;
14366
14367      osf3* | osf4* | osf5*)
14368        case $cc_basename in
14369          KCC*)
14370	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14371
14372	    # KCC will only create a shared library if the output file
14373	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14374	    # to its proper name (with version) after linking.
14375	    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'
14376
14377	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14378	    hardcode_libdir_separator_CXX=:
14379
14380	    # Archives containing C++ object files must be created using
14381	    # the KAI C++ compiler.
14382	    case $host in
14383	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14384	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14385	    esac
14386	    ;;
14387          RCC*)
14388	    # Rational C++ 2.4.1
14389	    # FIXME: insert proper C++ library support
14390	    ld_shlibs_CXX=no
14391	    ;;
14392          cxx*)
14393	    case $host in
14394	      osf3*)
14395	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14396	        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'
14397	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14398		;;
14399	      *)
14400	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14401	        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'
14402	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14403                  echo "-hidden">> $lib.exp~
14404                  $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~
14405                  $RM $lib.exp'
14406	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14407		;;
14408	    esac
14409
14410	    hardcode_libdir_separator_CXX=:
14411
14412	    # Commands to make compiler produce verbose output that lists
14413	    # what "hidden" libraries, object files and flags are used when
14414	    # linking a shared library.
14415	    #
14416	    # There doesn't appear to be a way to prevent this compiler from
14417	    # explicitly linking system object files so we need to strip them
14418	    # from the output so that they don't get included in the library
14419	    # dependencies.
14420	    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"'
14421	    ;;
14422	  *)
14423	    if test yes,no = "$GXX,$with_gnu_ld"; then
14424	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14425	      case $host in
14426	        osf3*)
14427	          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'
14428		  ;;
14429	        *)
14430	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14431		  ;;
14432	      esac
14433
14434	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14435	      hardcode_libdir_separator_CXX=:
14436
14437	      # Commands to make compiler produce verbose output that lists
14438	      # what "hidden" libraries, object files and flags are used when
14439	      # linking a shared library.
14440	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14441
14442	    else
14443	      # FIXME: insert proper C++ library support
14444	      ld_shlibs_CXX=no
14445	    fi
14446	    ;;
14447        esac
14448        ;;
14449
14450      psos*)
14451        # FIXME: insert proper C++ library support
14452        ld_shlibs_CXX=no
14453        ;;
14454
14455      sunos4*)
14456        case $cc_basename in
14457          CC*)
14458	    # Sun C++ 4.x
14459	    # FIXME: insert proper C++ library support
14460	    ld_shlibs_CXX=no
14461	    ;;
14462          lcc*)
14463	    # Lucid
14464	    # FIXME: insert proper C++ library support
14465	    ld_shlibs_CXX=no
14466	    ;;
14467          *)
14468	    # FIXME: insert proper C++ library support
14469	    ld_shlibs_CXX=no
14470	    ;;
14471        esac
14472        ;;
14473
14474      solaris*)
14475        case $cc_basename in
14476          CC* | sunCC*)
14477	    # Sun C++ 4.2, 5.x and Centerline C++
14478            archive_cmds_need_lc_CXX=yes
14479	    no_undefined_flag_CXX=' -zdefs'
14480	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14481	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14482              $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'
14483
14484	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14485	    hardcode_shlibpath_var_CXX=no
14486	    case $host_os in
14487	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14488	      *)
14489		# The compiler driver will combine and reorder linker options,
14490		# but understands '-z linker_flag'.
14491	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14492		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14493	        ;;
14494	    esac
14495	    link_all_deplibs_CXX=yes
14496
14497	    output_verbose_link_cmd='func_echo_all'
14498
14499	    # Archives containing C++ object files must be created using
14500	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14501	    # necessary to make sure instantiated templates are included
14502	    # in the archive.
14503	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14504	    ;;
14505          gcx*)
14506	    # Green Hills C++ Compiler
14507	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14508
14509	    # The C++ compiler must be used to create the archive.
14510	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14511	    ;;
14512          *)
14513	    # GNU C++ compiler with Solaris linker
14514	    if test yes,no = "$GXX,$with_gnu_ld"; then
14515	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14516	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14517	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14518	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14519                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14520
14521	        # Commands to make compiler produce verbose output that lists
14522	        # what "hidden" libraries, object files and flags are used when
14523	        # linking a shared library.
14524	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14525	      else
14526	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14527	        # platform.
14528	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14529	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14530                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14531
14532	        # Commands to make compiler produce verbose output that lists
14533	        # what "hidden" libraries, object files and flags are used when
14534	        # linking a shared library.
14535	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14536	      fi
14537
14538	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14539	      case $host_os in
14540		solaris2.[0-5] | solaris2.[0-5].*) ;;
14541		*)
14542		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14543		  ;;
14544	      esac
14545	    fi
14546	    ;;
14547        esac
14548        ;;
14549
14550    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14551      no_undefined_flag_CXX='$wl-z,text'
14552      archive_cmds_need_lc_CXX=no
14553      hardcode_shlibpath_var_CXX=no
14554      runpath_var='LD_RUN_PATH'
14555
14556      case $cc_basename in
14557        CC*)
14558	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14559	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14560	  ;;
14561	*)
14562	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14563	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14564	  ;;
14565      esac
14566      ;;
14567
14568      sysv5* | sco3.2v5* | sco5v6*)
14569	# Note: We CANNOT use -z defs as we might desire, because we do not
14570	# link with -lc, and that would cause any symbols used from libc to
14571	# always be unresolved, which means just about no library would
14572	# ever link correctly.  If we're not using GNU ld we use -z text
14573	# though, which does catch some bad symbols but isn't as heavy-handed
14574	# as -z defs.
14575	no_undefined_flag_CXX='$wl-z,text'
14576	allow_undefined_flag_CXX='$wl-z,nodefs'
14577	archive_cmds_need_lc_CXX=no
14578	hardcode_shlibpath_var_CXX=no
14579	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14580	hardcode_libdir_separator_CXX=':'
14581	link_all_deplibs_CXX=yes
14582	export_dynamic_flag_spec_CXX='$wl-Bexport'
14583	runpath_var='LD_RUN_PATH'
14584
14585	case $cc_basename in
14586          CC*)
14587	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14588	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14589	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14590              '"$old_archive_cmds_CXX"
14591	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14592              '"$reload_cmds_CXX"
14593	    ;;
14594	  *)
14595	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14596	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14597	    ;;
14598	esac
14599      ;;
14600
14601      tandem*)
14602        case $cc_basename in
14603          NCC*)
14604	    # NonStop-UX NCC 3.20
14605	    # FIXME: insert proper C++ library support
14606	    ld_shlibs_CXX=no
14607	    ;;
14608          *)
14609	    # FIXME: insert proper C++ library support
14610	    ld_shlibs_CXX=no
14611	    ;;
14612        esac
14613        ;;
14614
14615      vxworks*)
14616        # FIXME: insert proper C++ library support
14617        ld_shlibs_CXX=no
14618        ;;
14619
14620      *)
14621        # FIXME: insert proper C++ library support
14622        ld_shlibs_CXX=no
14623        ;;
14624    esac
14625
14626    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14627$as_echo "$ld_shlibs_CXX" >&6; }
14628    test no = "$ld_shlibs_CXX" && can_build_shared=no
14629
14630    GCC_CXX=$GXX
14631    LD_CXX=$LD
14632
14633    ## CAVEAT EMPTOR:
14634    ## There is no encapsulation within the following macros, do not change
14635    ## the running order or otherwise move them around unless you know exactly
14636    ## what you are doing...
14637    # Dependencies to place before and after the object being linked:
14638predep_objects_CXX=
14639postdep_objects_CXX=
14640predeps_CXX=
14641postdeps_CXX=
14642compiler_lib_search_path_CXX=
14643
14644cat > conftest.$ac_ext <<_LT_EOF
14645class Foo
14646{
14647public:
14648  Foo (void) { a = 0; }
14649private:
14650  int a;
14651};
14652_LT_EOF
14653
14654
14655_lt_libdeps_save_CFLAGS=$CFLAGS
14656case "$CC $CFLAGS " in #(
14657*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14658*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14659*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14660esac
14661
14662if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14663  (eval $ac_compile) 2>&5
14664  ac_status=$?
14665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14666  test $ac_status = 0; }; then
14667  # Parse the compiler output and extract the necessary
14668  # objects, libraries and library flags.
14669
14670  # Sentinel used to keep track of whether or not we are before
14671  # the conftest object file.
14672  pre_test_object_deps_done=no
14673
14674  for p in `eval "$output_verbose_link_cmd"`; do
14675    case $prev$p in
14676
14677    -L* | -R* | -l*)
14678       # Some compilers place space between "-{L,R}" and the path.
14679       # Remove the space.
14680       if test x-L = "$p" ||
14681          test x-R = "$p"; then
14682	 prev=$p
14683	 continue
14684       fi
14685
14686       # Expand the sysroot to ease extracting the directories later.
14687       if test -z "$prev"; then
14688         case $p in
14689         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14690         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14691         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14692         esac
14693       fi
14694       case $p in
14695       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14696       esac
14697       if test no = "$pre_test_object_deps_done"; then
14698	 case $prev in
14699	 -L | -R)
14700	   # Internal compiler library paths should come after those
14701	   # provided the user.  The postdeps already come after the
14702	   # user supplied libs so there is no need to process them.
14703	   if test -z "$compiler_lib_search_path_CXX"; then
14704	     compiler_lib_search_path_CXX=$prev$p
14705	   else
14706	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14707	   fi
14708	   ;;
14709	 # The "-l" case would never come before the object being
14710	 # linked, so don't bother handling this case.
14711	 esac
14712       else
14713	 if test -z "$postdeps_CXX"; then
14714	   postdeps_CXX=$prev$p
14715	 else
14716	   postdeps_CXX="${postdeps_CXX} $prev$p"
14717	 fi
14718       fi
14719       prev=
14720       ;;
14721
14722    *.lto.$objext) ;; # Ignore GCC LTO objects
14723    *.$objext)
14724       # This assumes that the test object file only shows up
14725       # once in the compiler output.
14726       if test "$p" = "conftest.$objext"; then
14727	 pre_test_object_deps_done=yes
14728	 continue
14729       fi
14730
14731       if test no = "$pre_test_object_deps_done"; then
14732	 if test -z "$predep_objects_CXX"; then
14733	   predep_objects_CXX=$p
14734	 else
14735	   predep_objects_CXX="$predep_objects_CXX $p"
14736	 fi
14737       else
14738	 if test -z "$postdep_objects_CXX"; then
14739	   postdep_objects_CXX=$p
14740	 else
14741	   postdep_objects_CXX="$postdep_objects_CXX $p"
14742	 fi
14743       fi
14744       ;;
14745
14746    *) ;; # Ignore the rest.
14747
14748    esac
14749  done
14750
14751  # Clean up.
14752  rm -f a.out a.exe
14753else
14754  echo "libtool.m4: error: problem compiling CXX test program"
14755fi
14756
14757$RM -f confest.$objext
14758CFLAGS=$_lt_libdeps_save_CFLAGS
14759
14760# PORTME: override above test on systems where it is broken
14761case $host_os in
14762interix[3-9]*)
14763  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14764  # hack all around it, let's just trust "g++" to DTRT.
14765  predep_objects_CXX=
14766  postdep_objects_CXX=
14767  postdeps_CXX=
14768  ;;
14769esac
14770
14771
14772case " $postdeps_CXX " in
14773*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14774esac
14775 compiler_lib_search_dirs_CXX=
14776if test -n "${compiler_lib_search_path_CXX}"; then
14777 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14778fi
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810    lt_prog_compiler_wl_CXX=
14811lt_prog_compiler_pic_CXX=
14812lt_prog_compiler_static_CXX=
14813
14814
14815  # C++ specific cases for pic, static, wl, etc.
14816  if test yes = "$GXX"; then
14817    lt_prog_compiler_wl_CXX='-Wl,'
14818    lt_prog_compiler_static_CXX='-static'
14819
14820    case $host_os in
14821    aix*)
14822      # All AIX code is PIC.
14823      if test ia64 = "$host_cpu"; then
14824	# AIX 5 now supports IA64 processor
14825	lt_prog_compiler_static_CXX='-Bstatic'
14826      fi
14827      lt_prog_compiler_pic_CXX='-fPIC'
14828      ;;
14829
14830    amigaos*)
14831      case $host_cpu in
14832      powerpc)
14833            # see comment about AmigaOS4 .so support
14834            lt_prog_compiler_pic_CXX='-fPIC'
14835        ;;
14836      m68k)
14837            # FIXME: we need at least 68020 code to build shared libraries, but
14838            # adding the '-m68020' flag to GCC prevents building anything better,
14839            # like '-m68040'.
14840            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14841        ;;
14842      esac
14843      ;;
14844
14845    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14846      # PIC is the default for these OSes.
14847      ;;
14848    mingw* | cygwin* | os2* | pw32* | cegcc*)
14849      # This hack is so that the source file can tell whether it is being
14850      # built for inclusion in a dll (and should export symbols for example).
14851      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14852      # (--disable-auto-import) libraries
14853      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14854      case $host_os in
14855      os2*)
14856	lt_prog_compiler_static_CXX='$wl-static'
14857	;;
14858      esac
14859      ;;
14860    darwin* | rhapsody*)
14861      # PIC is the default on this platform
14862      # Common symbols not allowed in MH_DYLIB files
14863      lt_prog_compiler_pic_CXX='-fno-common'
14864      ;;
14865    *djgpp*)
14866      # DJGPP does not support shared libraries at all
14867      lt_prog_compiler_pic_CXX=
14868      ;;
14869    haiku*)
14870      # PIC is the default for Haiku.
14871      # The "-static" flag exists, but is broken.
14872      lt_prog_compiler_static_CXX=
14873      ;;
14874    interix[3-9]*)
14875      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14876      # Instead, we relocate shared libraries at runtime.
14877      ;;
14878    sysv4*MP*)
14879      if test -d /usr/nec; then
14880	lt_prog_compiler_pic_CXX=-Kconform_pic
14881      fi
14882      ;;
14883    hpux*)
14884      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14885      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14886      # sets the default TLS model and affects inlining.
14887      case $host_cpu in
14888      hppa*64*)
14889	;;
14890      *)
14891	lt_prog_compiler_pic_CXX='-fPIC'
14892	;;
14893      esac
14894      ;;
14895    *qnx* | *nto*)
14896      # QNX uses GNU C++, but need to define -shared option too, otherwise
14897      # it will coredump.
14898      lt_prog_compiler_pic_CXX='-fPIC -shared'
14899      ;;
14900    *)
14901      lt_prog_compiler_pic_CXX='-fPIC'
14902      ;;
14903    esac
14904  else
14905    case $host_os in
14906      aix[4-9]*)
14907	# All AIX code is PIC.
14908	if test ia64 = "$host_cpu"; then
14909	  # AIX 5 now supports IA64 processor
14910	  lt_prog_compiler_static_CXX='-Bstatic'
14911	else
14912	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14913	fi
14914	;;
14915      chorus*)
14916	case $cc_basename in
14917	cxch68*)
14918	  # Green Hills C++ Compiler
14919	  # _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"
14920	  ;;
14921	esac
14922	;;
14923      mingw* | cygwin* | os2* | pw32* | cegcc*)
14924	# This hack is so that the source file can tell whether it is being
14925	# built for inclusion in a dll (and should export symbols for example).
14926	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14927	;;
14928      dgux*)
14929	case $cc_basename in
14930	  ec++*)
14931	    lt_prog_compiler_pic_CXX='-KPIC'
14932	    ;;
14933	  ghcx*)
14934	    # Green Hills C++ Compiler
14935	    lt_prog_compiler_pic_CXX='-pic'
14936	    ;;
14937	  *)
14938	    ;;
14939	esac
14940	;;
14941      freebsd* | dragonfly*)
14942	# FreeBSD uses GNU C++
14943	;;
14944      hpux9* | hpux10* | hpux11*)
14945	case $cc_basename in
14946	  CC*)
14947	    lt_prog_compiler_wl_CXX='-Wl,'
14948	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14949	    if test ia64 != "$host_cpu"; then
14950	      lt_prog_compiler_pic_CXX='+Z'
14951	    fi
14952	    ;;
14953	  aCC*)
14954	    lt_prog_compiler_wl_CXX='-Wl,'
14955	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14956	    case $host_cpu in
14957	    hppa*64*|ia64*)
14958	      # +Z the default
14959	      ;;
14960	    *)
14961	      lt_prog_compiler_pic_CXX='+Z'
14962	      ;;
14963	    esac
14964	    ;;
14965	  *)
14966	    ;;
14967	esac
14968	;;
14969      interix*)
14970	# This is c89, which is MS Visual C++ (no shared libs)
14971	# Anyone wants to do a port?
14972	;;
14973      irix5* | irix6* | nonstopux*)
14974	case $cc_basename in
14975	  CC*)
14976	    lt_prog_compiler_wl_CXX='-Wl,'
14977	    lt_prog_compiler_static_CXX='-non_shared'
14978	    # CC pic flag -KPIC is the default.
14979	    ;;
14980	  *)
14981	    ;;
14982	esac
14983	;;
14984      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14985	case $cc_basename in
14986	  KCC*)
14987	    # KAI C++ Compiler
14988	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14989	    lt_prog_compiler_pic_CXX='-fPIC'
14990	    ;;
14991	  ecpc* )
14992	    # old Intel C++ for x86_64, which still supported -KPIC.
14993	    lt_prog_compiler_wl_CXX='-Wl,'
14994	    lt_prog_compiler_pic_CXX='-KPIC'
14995	    lt_prog_compiler_static_CXX='-static'
14996	    ;;
14997	  icpc* )
14998	    # Intel C++, used to be incompatible with GCC.
14999	    # ICC 10 doesn't accept -KPIC any more.
15000	    lt_prog_compiler_wl_CXX='-Wl,'
15001	    lt_prog_compiler_pic_CXX='-fPIC'
15002	    lt_prog_compiler_static_CXX='-static'
15003	    ;;
15004	  pgCC* | pgcpp*)
15005	    # Portland Group C++ compiler
15006	    lt_prog_compiler_wl_CXX='-Wl,'
15007	    lt_prog_compiler_pic_CXX='-fpic'
15008	    lt_prog_compiler_static_CXX='-Bstatic'
15009	    ;;
15010	  cxx*)
15011	    # Compaq C++
15012	    # Make sure the PIC flag is empty.  It appears that all Alpha
15013	    # Linux and Compaq Tru64 Unix objects are PIC.
15014	    lt_prog_compiler_pic_CXX=
15015	    lt_prog_compiler_static_CXX='-non_shared'
15016	    ;;
15017	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15018	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15019	    lt_prog_compiler_wl_CXX='-Wl,'
15020	    lt_prog_compiler_pic_CXX='-qpic'
15021	    lt_prog_compiler_static_CXX='-qstaticlink'
15022	    ;;
15023	  *)
15024	    case `$CC -V 2>&1 | sed 5q` in
15025	    *Sun\ C*)
15026	      # Sun C++ 5.9
15027	      lt_prog_compiler_pic_CXX='-KPIC'
15028	      lt_prog_compiler_static_CXX='-Bstatic'
15029	      lt_prog_compiler_wl_CXX='-Qoption ld '
15030	      ;;
15031	    esac
15032	    ;;
15033	esac
15034	;;
15035      lynxos*)
15036	;;
15037      m88k*)
15038	;;
15039      mvs*)
15040	case $cc_basename in
15041	  cxx*)
15042	    lt_prog_compiler_pic_CXX='-W c,exportall'
15043	    ;;
15044	  *)
15045	    ;;
15046	esac
15047	;;
15048      netbsd* | netbsdelf*-gnu)
15049	;;
15050      *qnx* | *nto*)
15051        # QNX uses GNU C++, but need to define -shared option too, otherwise
15052        # it will coredump.
15053        lt_prog_compiler_pic_CXX='-fPIC -shared'
15054        ;;
15055      osf3* | osf4* | osf5*)
15056	case $cc_basename in
15057	  KCC*)
15058	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15059	    ;;
15060	  RCC*)
15061	    # Rational C++ 2.4.1
15062	    lt_prog_compiler_pic_CXX='-pic'
15063	    ;;
15064	  cxx*)
15065	    # Digital/Compaq C++
15066	    lt_prog_compiler_wl_CXX='-Wl,'
15067	    # Make sure the PIC flag is empty.  It appears that all Alpha
15068	    # Linux and Compaq Tru64 Unix objects are PIC.
15069	    lt_prog_compiler_pic_CXX=
15070	    lt_prog_compiler_static_CXX='-non_shared'
15071	    ;;
15072	  *)
15073	    ;;
15074	esac
15075	;;
15076      psos*)
15077	;;
15078      solaris*)
15079	case $cc_basename in
15080	  CC* | sunCC*)
15081	    # Sun C++ 4.2, 5.x and Centerline C++
15082	    lt_prog_compiler_pic_CXX='-KPIC'
15083	    lt_prog_compiler_static_CXX='-Bstatic'
15084	    lt_prog_compiler_wl_CXX='-Qoption ld '
15085	    ;;
15086	  gcx*)
15087	    # Green Hills C++ Compiler
15088	    lt_prog_compiler_pic_CXX='-PIC'
15089	    ;;
15090	  *)
15091	    ;;
15092	esac
15093	;;
15094      sunos4*)
15095	case $cc_basename in
15096	  CC*)
15097	    # Sun C++ 4.x
15098	    lt_prog_compiler_pic_CXX='-pic'
15099	    lt_prog_compiler_static_CXX='-Bstatic'
15100	    ;;
15101	  lcc*)
15102	    # Lucid
15103	    lt_prog_compiler_pic_CXX='-pic'
15104	    ;;
15105	  *)
15106	    ;;
15107	esac
15108	;;
15109      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15110	case $cc_basename in
15111	  CC*)
15112	    lt_prog_compiler_wl_CXX='-Wl,'
15113	    lt_prog_compiler_pic_CXX='-KPIC'
15114	    lt_prog_compiler_static_CXX='-Bstatic'
15115	    ;;
15116	esac
15117	;;
15118      tandem*)
15119	case $cc_basename in
15120	  NCC*)
15121	    # NonStop-UX NCC 3.20
15122	    lt_prog_compiler_pic_CXX='-KPIC'
15123	    ;;
15124	  *)
15125	    ;;
15126	esac
15127	;;
15128      vxworks*)
15129	;;
15130      *)
15131	lt_prog_compiler_can_build_shared_CXX=no
15132	;;
15133    esac
15134  fi
15135
15136case $host_os in
15137  # For platforms that do not support PIC, -DPIC is meaningless:
15138  *djgpp*)
15139    lt_prog_compiler_pic_CXX=
15140    ;;
15141  *)
15142    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15143    ;;
15144esac
15145
15146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15147$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15148if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15149  $as_echo_n "(cached) " >&6
15150else
15151  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15152fi
15153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15154$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15155lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15156
15157#
15158# Check to make sure the PIC flag actually works.
15159#
15160if test -n "$lt_prog_compiler_pic_CXX"; then
15161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15162$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15163if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15164  $as_echo_n "(cached) " >&6
15165else
15166  lt_cv_prog_compiler_pic_works_CXX=no
15167   ac_outfile=conftest.$ac_objext
15168   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15169   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15170   # Insert the option either (1) after the last *FLAGS variable, or
15171   # (2) before a word containing "conftest.", or (3) at the end.
15172   # Note that $ac_compile itself does not contain backslashes and begins
15173   # with a dollar sign (not a hyphen), so the echo should work correctly.
15174   # The option is referenced via a variable to avoid confusing sed.
15175   lt_compile=`echo "$ac_compile" | $SED \
15176   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15177   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15178   -e 's:$: $lt_compiler_flag:'`
15179   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15180   (eval "$lt_compile" 2>conftest.err)
15181   ac_status=$?
15182   cat conftest.err >&5
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   if (exit $ac_status) && test -s "$ac_outfile"; then
15185     # The compiler can only warn and ignore the option if not recognized
15186     # So say no if there are warnings other than the usual output.
15187     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15188     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15189     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15190       lt_cv_prog_compiler_pic_works_CXX=yes
15191     fi
15192   fi
15193   $RM conftest*
15194
15195fi
15196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15197$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15198
15199if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15200    case $lt_prog_compiler_pic_CXX in
15201     "" | " "*) ;;
15202     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15203     esac
15204else
15205    lt_prog_compiler_pic_CXX=
15206     lt_prog_compiler_can_build_shared_CXX=no
15207fi
15208
15209fi
15210
15211
15212
15213
15214
15215#
15216# Check to make sure the static flag actually works.
15217#
15218wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15220$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15221if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15222  $as_echo_n "(cached) " >&6
15223else
15224  lt_cv_prog_compiler_static_works_CXX=no
15225   save_LDFLAGS=$LDFLAGS
15226   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15227   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15228   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15229     # The linker can only warn and ignore the option if not recognized
15230     # So say no if there are warnings
15231     if test -s conftest.err; then
15232       # Append any errors to the config.log.
15233       cat conftest.err 1>&5
15234       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15235       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15236       if diff conftest.exp conftest.er2 >/dev/null; then
15237         lt_cv_prog_compiler_static_works_CXX=yes
15238       fi
15239     else
15240       lt_cv_prog_compiler_static_works_CXX=yes
15241     fi
15242   fi
15243   $RM -r conftest*
15244   LDFLAGS=$save_LDFLAGS
15245
15246fi
15247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15248$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15249
15250if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15251    :
15252else
15253    lt_prog_compiler_static_CXX=
15254fi
15255
15256
15257
15258
15259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15260$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15261if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15262  $as_echo_n "(cached) " >&6
15263else
15264  lt_cv_prog_compiler_c_o_CXX=no
15265   $RM -r conftest 2>/dev/null
15266   mkdir conftest
15267   cd conftest
15268   mkdir out
15269   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15270
15271   lt_compiler_flag="-o out/conftest2.$ac_objext"
15272   # Insert the option either (1) after the last *FLAGS variable, or
15273   # (2) before a word containing "conftest.", or (3) at the end.
15274   # Note that $ac_compile itself does not contain backslashes and begins
15275   # with a dollar sign (not a hyphen), so the echo should work correctly.
15276   lt_compile=`echo "$ac_compile" | $SED \
15277   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15278   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15279   -e 's:$: $lt_compiler_flag:'`
15280   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15281   (eval "$lt_compile" 2>out/conftest.err)
15282   ac_status=$?
15283   cat out/conftest.err >&5
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15286   then
15287     # The compiler can only warn and ignore the option if not recognized
15288     # So say no if there are warnings
15289     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15290     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15291     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15292       lt_cv_prog_compiler_c_o_CXX=yes
15293     fi
15294   fi
15295   chmod u+w . 2>&5
15296   $RM conftest*
15297   # SGI C++ compiler will create directory out/ii_files/ for
15298   # template instantiation
15299   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15300   $RM out/* && rmdir out
15301   cd ..
15302   $RM -r conftest
15303   $RM conftest*
15304
15305fi
15306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15307$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15308
15309
15310
15311    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15312$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15313if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15314  $as_echo_n "(cached) " >&6
15315else
15316  lt_cv_prog_compiler_c_o_CXX=no
15317   $RM -r conftest 2>/dev/null
15318   mkdir conftest
15319   cd conftest
15320   mkdir out
15321   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15322
15323   lt_compiler_flag="-o out/conftest2.$ac_objext"
15324   # Insert the option either (1) after the last *FLAGS variable, or
15325   # (2) before a word containing "conftest.", or (3) at the end.
15326   # Note that $ac_compile itself does not contain backslashes and begins
15327   # with a dollar sign (not a hyphen), so the echo should work correctly.
15328   lt_compile=`echo "$ac_compile" | $SED \
15329   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15331   -e 's:$: $lt_compiler_flag:'`
15332   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15333   (eval "$lt_compile" 2>out/conftest.err)
15334   ac_status=$?
15335   cat out/conftest.err >&5
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15338   then
15339     # The compiler can only warn and ignore the option if not recognized
15340     # So say no if there are warnings
15341     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15342     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15343     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15344       lt_cv_prog_compiler_c_o_CXX=yes
15345     fi
15346   fi
15347   chmod u+w . 2>&5
15348   $RM conftest*
15349   # SGI C++ compiler will create directory out/ii_files/ for
15350   # template instantiation
15351   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15352   $RM out/* && rmdir out
15353   cd ..
15354   $RM -r conftest
15355   $RM conftest*
15356
15357fi
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15359$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15360
15361
15362
15363
15364hard_links=nottested
15365if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15366  # do not overwrite the value of need_locks provided by the user
15367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15368$as_echo_n "checking if we can lock with hard links... " >&6; }
15369  hard_links=yes
15370  $RM conftest*
15371  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15372  touch conftest.a
15373  ln conftest.a conftest.b 2>&5 || hard_links=no
15374  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15376$as_echo "$hard_links" >&6; }
15377  if test no = "$hard_links"; then
15378    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15379$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15380    need_locks=warn
15381  fi
15382else
15383  need_locks=no
15384fi
15385
15386
15387
15388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15389$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15390
15391  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15392  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15393  case $host_os in
15394  aix[4-9]*)
15395    # If we're using GNU nm, then we don't want the "-C" option.
15396    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15397    # Without the "-l" option, or with the "-B" option, AIX nm treats
15398    # weak defined symbols like other global defined symbols, whereas
15399    # GNU nm marks them as "W".
15400    # While the 'weak' keyword is ignored in the Export File, we need
15401    # it in the Import File for the 'aix-soname' feature, so we have
15402    # to replace the "-B" option with "-P" for AIX nm.
15403    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15404      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15405    else
15406      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15407    fi
15408    ;;
15409  pw32*)
15410    export_symbols_cmds_CXX=$ltdll_cmds
15411    ;;
15412  cygwin* | mingw* | cegcc*)
15413    case $cc_basename in
15414    cl*)
15415      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15416      ;;
15417    *)
15418      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15419      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15420      ;;
15421    esac
15422    ;;
15423  linux* | k*bsd*-gnu | gnu*)
15424    link_all_deplibs_CXX=no
15425    ;;
15426  *)
15427    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15428    ;;
15429  esac
15430
15431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15432$as_echo "$ld_shlibs_CXX" >&6; }
15433test no = "$ld_shlibs_CXX" && can_build_shared=no
15434
15435with_gnu_ld_CXX=$with_gnu_ld
15436
15437
15438
15439
15440
15441
15442#
15443# Do we need to explicitly link libc?
15444#
15445case "x$archive_cmds_need_lc_CXX" in
15446x|xyes)
15447  # Assume -lc should be added
15448  archive_cmds_need_lc_CXX=yes
15449
15450  if test yes,yes = "$GCC,$enable_shared"; then
15451    case $archive_cmds_CXX in
15452    *'~'*)
15453      # FIXME: we may have to deal with multi-command sequences.
15454      ;;
15455    '$CC '*)
15456      # Test whether the compiler implicitly links with -lc since on some
15457      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15458      # to ld, don't add -lc before -lgcc.
15459      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15460$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15461if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15462  $as_echo_n "(cached) " >&6
15463else
15464  $RM conftest*
15465	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15466
15467	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15468  (eval $ac_compile) 2>&5
15469  ac_status=$?
15470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15471  test $ac_status = 0; } 2>conftest.err; then
15472	  soname=conftest
15473	  lib=conftest
15474	  libobjs=conftest.$ac_objext
15475	  deplibs=
15476	  wl=$lt_prog_compiler_wl_CXX
15477	  pic_flag=$lt_prog_compiler_pic_CXX
15478	  compiler_flags=-v
15479	  linker_flags=-v
15480	  verstring=
15481	  output_objdir=.
15482	  libname=conftest
15483	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15484	  allow_undefined_flag_CXX=
15485	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15486  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15487  ac_status=$?
15488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15489  test $ac_status = 0; }
15490	  then
15491	    lt_cv_archive_cmds_need_lc_CXX=no
15492	  else
15493	    lt_cv_archive_cmds_need_lc_CXX=yes
15494	  fi
15495	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15496	else
15497	  cat conftest.err 1>&5
15498	fi
15499	$RM conftest*
15500
15501fi
15502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15503$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15504      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15505      ;;
15506    esac
15507  fi
15508  ;;
15509esac
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15573$as_echo_n "checking dynamic linker characteristics... " >&6; }
15574
15575library_names_spec=
15576libname_spec='lib$name'
15577soname_spec=
15578shrext_cmds=.so
15579postinstall_cmds=
15580postuninstall_cmds=
15581finish_cmds=
15582finish_eval=
15583shlibpath_var=
15584shlibpath_overrides_runpath=unknown
15585version_type=none
15586dynamic_linker="$host_os ld.so"
15587sys_lib_dlsearch_path_spec="/lib /usr/lib"
15588need_lib_prefix=unknown
15589hardcode_into_libs=no
15590
15591# when you set need_version to no, make sure it does not cause -set_version
15592# flags to be left without arguments
15593need_version=unknown
15594
15595
15596
15597case $host_os in
15598aix3*)
15599  version_type=linux # correct to gnu/linux during the next big refactor
15600  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15601  shlibpath_var=LIBPATH
15602
15603  # AIX 3 has no versioning support, so we append a major version to the name.
15604  soname_spec='$libname$release$shared_ext$major'
15605  ;;
15606
15607aix[4-9]*)
15608  version_type=linux # correct to gnu/linux during the next big refactor
15609  need_lib_prefix=no
15610  need_version=no
15611  hardcode_into_libs=yes
15612  if test ia64 = "$host_cpu"; then
15613    # AIX 5 supports IA64
15614    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15615    shlibpath_var=LD_LIBRARY_PATH
15616  else
15617    # With GCC up to 2.95.x, collect2 would create an import file
15618    # for dependence libraries.  The import file would start with
15619    # the line '#! .'.  This would cause the generated library to
15620    # depend on '.', always an invalid library.  This was fixed in
15621    # development snapshots of GCC prior to 3.0.
15622    case $host_os in
15623      aix4 | aix4.[01] | aix4.[01].*)
15624      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15625	   echo ' yes '
15626	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15627	:
15628      else
15629	can_build_shared=no
15630      fi
15631      ;;
15632    esac
15633    # Using Import Files as archive members, it is possible to support
15634    # filename-based versioning of shared library archives on AIX. While
15635    # this would work for both with and without runtime linking, it will
15636    # prevent static linking of such archives. So we do filename-based
15637    # shared library versioning with .so extension only, which is used
15638    # when both runtime linking and shared linking is enabled.
15639    # Unfortunately, runtime linking may impact performance, so we do
15640    # not want this to be the default eventually. Also, we use the
15641    # versioned .so libs for executables only if there is the -brtl
15642    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15643    # To allow for filename-based versioning support, we need to create
15644    # libNAME.so.V as an archive file, containing:
15645    # *) an Import File, referring to the versioned filename of the
15646    #    archive as well as the shared archive member, telling the
15647    #    bitwidth (32 or 64) of that shared object, and providing the
15648    #    list of exported symbols of that shared object, eventually
15649    #    decorated with the 'weak' keyword
15650    # *) the shared object with the F_LOADONLY flag set, to really avoid
15651    #    it being seen by the linker.
15652    # At run time we better use the real file rather than another symlink,
15653    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15654
15655    case $with_aix_soname,$aix_use_runtimelinking in
15656    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15657    # soname into executable. Probably we can add versioning support to
15658    # collect2, so additional links can be useful in future.
15659    aix,yes) # traditional libtool
15660      dynamic_linker='AIX unversionable lib.so'
15661      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15662      # instead of lib<name>.a to let people know that these are not
15663      # typical AIX shared libraries.
15664      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15665      ;;
15666    aix,no) # traditional AIX only
15667      dynamic_linker='AIX lib.a(lib.so.V)'
15668      # We preserve .a as extension for shared libraries through AIX4.2
15669      # and later when we are not doing run time linking.
15670      library_names_spec='$libname$release.a $libname.a'
15671      soname_spec='$libname$release$shared_ext$major'
15672      ;;
15673    svr4,*) # full svr4 only
15674      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15675      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15676      # We do not specify a path in Import Files, so LIBPATH fires.
15677      shlibpath_overrides_runpath=yes
15678      ;;
15679    *,yes) # both, prefer svr4
15680      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15681      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15682      # unpreferred sharedlib libNAME.a needs extra handling
15683      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15684      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15685      # We do not specify a path in Import Files, so LIBPATH fires.
15686      shlibpath_overrides_runpath=yes
15687      ;;
15688    *,no) # both, prefer aix
15689      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15690      library_names_spec='$libname$release.a $libname.a'
15691      soname_spec='$libname$release$shared_ext$major'
15692      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15693      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15694      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15695      ;;
15696    esac
15697    shlibpath_var=LIBPATH
15698  fi
15699  ;;
15700
15701amigaos*)
15702  case $host_cpu in
15703  powerpc)
15704    # Since July 2007 AmigaOS4 officially supports .so libraries.
15705    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15706    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15707    ;;
15708  m68k)
15709    library_names_spec='$libname.ixlibrary $libname.a'
15710    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15711    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15712    ;;
15713  esac
15714  ;;
15715
15716beos*)
15717  library_names_spec='$libname$shared_ext'
15718  dynamic_linker="$host_os ld.so"
15719  shlibpath_var=LIBRARY_PATH
15720  ;;
15721
15722bsdi[45]*)
15723  version_type=linux # correct to gnu/linux during the next big refactor
15724  need_version=no
15725  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15726  soname_spec='$libname$release$shared_ext$major'
15727  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15728  shlibpath_var=LD_LIBRARY_PATH
15729  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15730  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15731  # the default ld.so.conf also contains /usr/contrib/lib and
15732  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15733  # libtool to hard-code these into programs
15734  ;;
15735
15736cygwin* | mingw* | pw32* | cegcc*)
15737  version_type=windows
15738  shrext_cmds=.dll
15739  need_version=no
15740  need_lib_prefix=no
15741
15742  case $GCC,$cc_basename in
15743  yes,*)
15744    # gcc
15745    library_names_spec='$libname.dll.a'
15746    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15747    postinstall_cmds='base_file=`basename \$file`~
15748      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15749      dldir=$destdir/`dirname \$dlpath`~
15750      test -d \$dldir || mkdir -p \$dldir~
15751      $install_prog $dir/$dlname \$dldir/$dlname~
15752      chmod a+x \$dldir/$dlname~
15753      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15754        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15755      fi'
15756    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15757      dlpath=$dir/\$dldll~
15758       $RM \$dlpath'
15759    shlibpath_overrides_runpath=yes
15760
15761    case $host_os in
15762    cygwin*)
15763      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15764      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15765
15766      ;;
15767    mingw* | cegcc*)
15768      # MinGW DLLs use traditional 'lib' prefix
15769      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15770      ;;
15771    pw32*)
15772      # pw32 DLLs use 'pw' prefix rather than 'lib'
15773      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15774      ;;
15775    esac
15776    dynamic_linker='Win32 ld.exe'
15777    ;;
15778
15779  *,cl*)
15780    # Native MSVC
15781    libname_spec='$name'
15782    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15783    library_names_spec='$libname.dll.lib'
15784
15785    case $build_os in
15786    mingw*)
15787      sys_lib_search_path_spec=
15788      lt_save_ifs=$IFS
15789      IFS=';'
15790      for lt_path in $LIB
15791      do
15792        IFS=$lt_save_ifs
15793        # Let DOS variable expansion print the short 8.3 style file name.
15794        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15795        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15796      done
15797      IFS=$lt_save_ifs
15798      # Convert to MSYS style.
15799      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15800      ;;
15801    cygwin*)
15802      # Convert to unix form, then to dos form, then back to unix form
15803      # but this time dos style (no spaces!) so that the unix form looks
15804      # like /cygdrive/c/PROGRA~1:/cygdr...
15805      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15806      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15807      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15808      ;;
15809    *)
15810      sys_lib_search_path_spec=$LIB
15811      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15812        # It is most probably a Windows format PATH.
15813        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15814      else
15815        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15816      fi
15817      # FIXME: find the short name or the path components, as spaces are
15818      # common. (e.g. "Program Files" -> "PROGRA~1")
15819      ;;
15820    esac
15821
15822    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15823    postinstall_cmds='base_file=`basename \$file`~
15824      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15825      dldir=$destdir/`dirname \$dlpath`~
15826      test -d \$dldir || mkdir -p \$dldir~
15827      $install_prog $dir/$dlname \$dldir/$dlname'
15828    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15829      dlpath=$dir/\$dldll~
15830       $RM \$dlpath'
15831    shlibpath_overrides_runpath=yes
15832    dynamic_linker='Win32 link.exe'
15833    ;;
15834
15835  *)
15836    # Assume MSVC wrapper
15837    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15838    dynamic_linker='Win32 ld.exe'
15839    ;;
15840  esac
15841  # FIXME: first we should search . and the directory the executable is in
15842  shlibpath_var=PATH
15843  ;;
15844
15845darwin* | rhapsody*)
15846  dynamic_linker="$host_os dyld"
15847  version_type=darwin
15848  need_lib_prefix=no
15849  need_version=no
15850  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15851  soname_spec='$libname$release$major$shared_ext'
15852  shlibpath_overrides_runpath=yes
15853  shlibpath_var=DYLD_LIBRARY_PATH
15854  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15855
15856  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15857  ;;
15858
15859dgux*)
15860  version_type=linux # correct to gnu/linux during the next big refactor
15861  need_lib_prefix=no
15862  need_version=no
15863  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15864  soname_spec='$libname$release$shared_ext$major'
15865  shlibpath_var=LD_LIBRARY_PATH
15866  ;;
15867
15868freebsd* | dragonfly*)
15869  # DragonFly does not have aout.  When/if they implement a new
15870  # versioning mechanism, adjust this.
15871  if test -x /usr/bin/objformat; then
15872    objformat=`/usr/bin/objformat`
15873  else
15874    case $host_os in
15875    freebsd[23].*) objformat=aout ;;
15876    *) objformat=elf ;;
15877    esac
15878  fi
15879  version_type=freebsd-$objformat
15880  case $version_type in
15881    freebsd-elf*)
15882      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15883      soname_spec='$libname$release$shared_ext$major'
15884      need_version=no
15885      need_lib_prefix=no
15886      ;;
15887    freebsd-*)
15888      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15889      need_version=yes
15890      ;;
15891  esac
15892  shlibpath_var=LD_LIBRARY_PATH
15893  case $host_os in
15894  freebsd2.*)
15895    shlibpath_overrides_runpath=yes
15896    ;;
15897  freebsd3.[01]* | freebsdelf3.[01]*)
15898    shlibpath_overrides_runpath=yes
15899    hardcode_into_libs=yes
15900    ;;
15901  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15902  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15903    shlibpath_overrides_runpath=no
15904    hardcode_into_libs=yes
15905    ;;
15906  *) # from 4.6 on, and DragonFly
15907    shlibpath_overrides_runpath=yes
15908    hardcode_into_libs=yes
15909    ;;
15910  esac
15911  ;;
15912
15913haiku*)
15914  version_type=linux # correct to gnu/linux during the next big refactor
15915  need_lib_prefix=no
15916  need_version=no
15917  dynamic_linker="$host_os runtime_loader"
15918  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15919  soname_spec='$libname$release$shared_ext$major'
15920  shlibpath_var=LIBRARY_PATH
15921  shlibpath_overrides_runpath=no
15922  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15923  hardcode_into_libs=yes
15924  ;;
15925
15926hpux9* | hpux10* | hpux11*)
15927  # Give a soname corresponding to the major version so that dld.sl refuses to
15928  # link against other versions.
15929  version_type=sunos
15930  need_lib_prefix=no
15931  need_version=no
15932  case $host_cpu in
15933  ia64*)
15934    shrext_cmds='.so'
15935    hardcode_into_libs=yes
15936    dynamic_linker="$host_os dld.so"
15937    shlibpath_var=LD_LIBRARY_PATH
15938    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15939    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15940    soname_spec='$libname$release$shared_ext$major'
15941    if test 32 = "$HPUX_IA64_MODE"; then
15942      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15943      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15944    else
15945      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15946      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15947    fi
15948    ;;
15949  hppa*64*)
15950    shrext_cmds='.sl'
15951    hardcode_into_libs=yes
15952    dynamic_linker="$host_os dld.sl"
15953    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15954    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15955    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15956    soname_spec='$libname$release$shared_ext$major'
15957    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15958    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15959    ;;
15960  *)
15961    shrext_cmds='.sl'
15962    dynamic_linker="$host_os dld.sl"
15963    shlibpath_var=SHLIB_PATH
15964    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15965    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15966    soname_spec='$libname$release$shared_ext$major'
15967    ;;
15968  esac
15969  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15970  postinstall_cmds='chmod 555 $lib'
15971  # or fails outright, so override atomically:
15972  install_override_mode=555
15973  ;;
15974
15975interix[3-9]*)
15976  version_type=linux # correct to gnu/linux during the next big refactor
15977  need_lib_prefix=no
15978  need_version=no
15979  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15980  soname_spec='$libname$release$shared_ext$major'
15981  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15982  shlibpath_var=LD_LIBRARY_PATH
15983  shlibpath_overrides_runpath=no
15984  hardcode_into_libs=yes
15985  ;;
15986
15987irix5* | irix6* | nonstopux*)
15988  case $host_os in
15989    nonstopux*) version_type=nonstopux ;;
15990    *)
15991	if test yes = "$lt_cv_prog_gnu_ld"; then
15992		version_type=linux # correct to gnu/linux during the next big refactor
15993	else
15994		version_type=irix
15995	fi ;;
15996  esac
15997  need_lib_prefix=no
15998  need_version=no
15999  soname_spec='$libname$release$shared_ext$major'
16000  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16001  case $host_os in
16002  irix5* | nonstopux*)
16003    libsuff= shlibsuff=
16004    ;;
16005  *)
16006    case $LD in # libtool.m4 will add one of these switches to LD
16007    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16008      libsuff= shlibsuff= libmagic=32-bit;;
16009    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16010      libsuff=32 shlibsuff=N32 libmagic=N32;;
16011    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16012      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16013    *) libsuff= shlibsuff= libmagic=never-match;;
16014    esac
16015    ;;
16016  esac
16017  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16018  shlibpath_overrides_runpath=no
16019  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16020  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16021  hardcode_into_libs=yes
16022  ;;
16023
16024# No shared lib support for Linux oldld, aout, or coff.
16025linux*oldld* | linux*aout* | linux*coff*)
16026  dynamic_linker=no
16027  ;;
16028
16029linux*android*)
16030  version_type=none # Android doesn't support versioned libraries.
16031  need_lib_prefix=no
16032  need_version=no
16033  library_names_spec='$libname$release$shared_ext'
16034  soname_spec='$libname$release$shared_ext'
16035  finish_cmds=
16036  shlibpath_var=LD_LIBRARY_PATH
16037  shlibpath_overrides_runpath=yes
16038
16039  # This implies no fast_install, which is unacceptable.
16040  # Some rework will be needed to allow for fast_install
16041  # before this can be enabled.
16042  hardcode_into_libs=yes
16043
16044  dynamic_linker='Android linker'
16045  # Don't embed -rpath directories since the linker doesn't support them.
16046  hardcode_libdir_flag_spec_CXX='-L$libdir'
16047  ;;
16048
16049# This must be glibc/ELF.
16050linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16051  version_type=linux # correct to gnu/linux during the next big refactor
16052  need_lib_prefix=no
16053  need_version=no
16054  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16055  soname_spec='$libname$release$shared_ext$major'
16056  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16057  shlibpath_var=LD_LIBRARY_PATH
16058  shlibpath_overrides_runpath=no
16059
16060  # Some binutils ld are patched to set DT_RUNPATH
16061  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16062  $as_echo_n "(cached) " >&6
16063else
16064  lt_cv_shlibpath_overrides_runpath=no
16065    save_LDFLAGS=$LDFLAGS
16066    save_libdir=$libdir
16067    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16068	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070/* end confdefs.h.  */
16071
16072int
16073main ()
16074{
16075
16076  ;
16077  return 0;
16078}
16079_ACEOF
16080if ac_fn_cxx_try_link "$LINENO"; then :
16081  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16082  lt_cv_shlibpath_overrides_runpath=yes
16083fi
16084fi
16085rm -f core conftest.err conftest.$ac_objext \
16086    conftest$ac_exeext conftest.$ac_ext
16087    LDFLAGS=$save_LDFLAGS
16088    libdir=$save_libdir
16089
16090fi
16091
16092  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16093
16094  # This implies no fast_install, which is unacceptable.
16095  # Some rework will be needed to allow for fast_install
16096  # before this can be enabled.
16097  hardcode_into_libs=yes
16098
16099  # Ideally, we could use ldconfig to report *all* directores which are
16100  # searched for libraries, however this is still not possible.  Aside from not
16101  # being certain /sbin/ldconfig is available, command
16102  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16103  # even though it is searched at run-time.  Try to do the best guess by
16104  # appending ld.so.conf contents (and includes) to the search path.
16105  if test -f /etc/ld.so.conf; then
16106    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' ' '`
16107    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16108  fi
16109
16110  # We used to test for /lib/ld.so.1 and disable shared libraries on
16111  # powerpc, because MkLinux only supported shared libraries with the
16112  # GNU dynamic linker.  Since this was broken with cross compilers,
16113  # most powerpc-linux boxes support dynamic linking these days and
16114  # people can always --disable-shared, the test was removed, and we
16115  # assume the GNU/Linux dynamic linker is in use.
16116  dynamic_linker='GNU/Linux ld.so'
16117  ;;
16118
16119netbsdelf*-gnu)
16120  version_type=linux
16121  need_lib_prefix=no
16122  need_version=no
16123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124  soname_spec='${libname}${release}${shared_ext}$major'
16125  shlibpath_var=LD_LIBRARY_PATH
16126  shlibpath_overrides_runpath=no
16127  hardcode_into_libs=yes
16128  dynamic_linker='NetBSD ld.elf_so'
16129  ;;
16130
16131netbsd*)
16132  version_type=sunos
16133  need_lib_prefix=no
16134  need_version=no
16135  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16136    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16137    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16138    dynamic_linker='NetBSD (a.out) ld.so'
16139  else
16140    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16141    soname_spec='$libname$release$shared_ext$major'
16142    dynamic_linker='NetBSD ld.elf_so'
16143  fi
16144  shlibpath_var=LD_LIBRARY_PATH
16145  shlibpath_overrides_runpath=yes
16146  hardcode_into_libs=yes
16147  ;;
16148
16149newsos6)
16150  version_type=linux # correct to gnu/linux during the next big refactor
16151  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16152  shlibpath_var=LD_LIBRARY_PATH
16153  shlibpath_overrides_runpath=yes
16154  ;;
16155
16156*nto* | *qnx*)
16157  version_type=qnx
16158  need_lib_prefix=no
16159  need_version=no
16160  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16161  soname_spec='$libname$release$shared_ext$major'
16162  shlibpath_var=LD_LIBRARY_PATH
16163  shlibpath_overrides_runpath=no
16164  hardcode_into_libs=yes
16165  dynamic_linker='ldqnx.so'
16166  ;;
16167
16168openbsd* | bitrig*)
16169  version_type=sunos
16170  sys_lib_dlsearch_path_spec=/usr/lib
16171  need_lib_prefix=no
16172  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16173    need_version=no
16174  else
16175    need_version=yes
16176  fi
16177  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16178  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16179  shlibpath_var=LD_LIBRARY_PATH
16180  shlibpath_overrides_runpath=yes
16181  ;;
16182
16183os2*)
16184  libname_spec='$name'
16185  version_type=windows
16186  shrext_cmds=.dll
16187  need_version=no
16188  need_lib_prefix=no
16189  # OS/2 can only load a DLL with a base name of 8 characters or less.
16190  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16191    v=$($ECHO $release$versuffix | tr -d .-);
16192    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16193    $ECHO $n$v`$shared_ext'
16194  library_names_spec='${libname}_dll.$libext'
16195  dynamic_linker='OS/2 ld.exe'
16196  shlibpath_var=BEGINLIBPATH
16197  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16198  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16199  postinstall_cmds='base_file=`basename \$file`~
16200    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16201    dldir=$destdir/`dirname \$dlpath`~
16202    test -d \$dldir || mkdir -p \$dldir~
16203    $install_prog $dir/$dlname \$dldir/$dlname~
16204    chmod a+x \$dldir/$dlname~
16205    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16206      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16207    fi'
16208  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16209    dlpath=$dir/\$dldll~
16210    $RM \$dlpath'
16211  ;;
16212
16213osf3* | osf4* | osf5*)
16214  version_type=osf
16215  need_lib_prefix=no
16216  need_version=no
16217  soname_spec='$libname$release$shared_ext$major'
16218  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16219  shlibpath_var=LD_LIBRARY_PATH
16220  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16221  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16222  ;;
16223
16224rdos*)
16225  dynamic_linker=no
16226  ;;
16227
16228solaris*)
16229  version_type=linux # correct to gnu/linux during the next big refactor
16230  need_lib_prefix=no
16231  need_version=no
16232  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16233  soname_spec='$libname$release$shared_ext$major'
16234  shlibpath_var=LD_LIBRARY_PATH
16235  shlibpath_overrides_runpath=yes
16236  hardcode_into_libs=yes
16237  # ldd complains unless libraries are executable
16238  postinstall_cmds='chmod +x $lib'
16239  ;;
16240
16241sunos4*)
16242  version_type=sunos
16243  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16244  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16245  shlibpath_var=LD_LIBRARY_PATH
16246  shlibpath_overrides_runpath=yes
16247  if test yes = "$with_gnu_ld"; then
16248    need_lib_prefix=no
16249  fi
16250  need_version=yes
16251  ;;
16252
16253sysv4 | sysv4.3*)
16254  version_type=linux # correct to gnu/linux during the next big refactor
16255  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16256  soname_spec='$libname$release$shared_ext$major'
16257  shlibpath_var=LD_LIBRARY_PATH
16258  case $host_vendor in
16259    sni)
16260      shlibpath_overrides_runpath=no
16261      need_lib_prefix=no
16262      runpath_var=LD_RUN_PATH
16263      ;;
16264    siemens)
16265      need_lib_prefix=no
16266      ;;
16267    motorola)
16268      need_lib_prefix=no
16269      need_version=no
16270      shlibpath_overrides_runpath=no
16271      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16272      ;;
16273  esac
16274  ;;
16275
16276sysv4*MP*)
16277  if test -d /usr/nec; then
16278    version_type=linux # correct to gnu/linux during the next big refactor
16279    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16280    soname_spec='$libname$shared_ext.$major'
16281    shlibpath_var=LD_LIBRARY_PATH
16282  fi
16283  ;;
16284
16285sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16286  version_type=sco
16287  need_lib_prefix=no
16288  need_version=no
16289  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16290  soname_spec='$libname$release$shared_ext$major'
16291  shlibpath_var=LD_LIBRARY_PATH
16292  shlibpath_overrides_runpath=yes
16293  hardcode_into_libs=yes
16294  if test yes = "$with_gnu_ld"; then
16295    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16296  else
16297    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16298    case $host_os in
16299      sco3.2v5*)
16300        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16301	;;
16302    esac
16303  fi
16304  sys_lib_dlsearch_path_spec='/usr/lib'
16305  ;;
16306
16307tpf*)
16308  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16309  version_type=linux # correct to gnu/linux during the next big refactor
16310  need_lib_prefix=no
16311  need_version=no
16312  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16313  shlibpath_var=LD_LIBRARY_PATH
16314  shlibpath_overrides_runpath=no
16315  hardcode_into_libs=yes
16316  ;;
16317
16318uts4*)
16319  version_type=linux # correct to gnu/linux during the next big refactor
16320  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16321  soname_spec='$libname$release$shared_ext$major'
16322  shlibpath_var=LD_LIBRARY_PATH
16323  ;;
16324
16325*)
16326  dynamic_linker=no
16327  ;;
16328esac
16329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16330$as_echo "$dynamic_linker" >&6; }
16331test no = "$dynamic_linker" && can_build_shared=no
16332
16333variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16334if test yes = "$GCC"; then
16335  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16336fi
16337
16338if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16339  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16340fi
16341
16342if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16343  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16344fi
16345
16346# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16347configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16348
16349# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16350func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16351
16352# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16353configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16395$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16396hardcode_action_CXX=
16397if test -n "$hardcode_libdir_flag_spec_CXX" ||
16398   test -n "$runpath_var_CXX" ||
16399   test yes = "$hardcode_automatic_CXX"; then
16400
16401  # We can hardcode non-existent directories.
16402  if test no != "$hardcode_direct_CXX" &&
16403     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16404     # have to relink, otherwise we might link with an installed library
16405     # when we should be linking with a yet-to-be-installed one
16406     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16407     test no != "$hardcode_minus_L_CXX"; then
16408    # Linking always hardcodes the temporary library directory.
16409    hardcode_action_CXX=relink
16410  else
16411    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16412    hardcode_action_CXX=immediate
16413  fi
16414else
16415  # We cannot hardcode anything, or else we can only hardcode existing
16416  # directories.
16417  hardcode_action_CXX=unsupported
16418fi
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16420$as_echo "$hardcode_action_CXX" >&6; }
16421
16422if test relink = "$hardcode_action_CXX" ||
16423   test yes = "$inherit_rpath_CXX"; then
16424  # Fast installation is not supported
16425  enable_fast_install=no
16426elif test yes = "$shlibpath_overrides_runpath" ||
16427     test no = "$enable_shared"; then
16428  # Fast installation is not necessary
16429  enable_fast_install=needless
16430fi
16431
16432
16433
16434
16435
16436
16437
16438  fi # test -n "$compiler"
16439
16440  CC=$lt_save_CC
16441  CFLAGS=$lt_save_CFLAGS
16442  LDCXX=$LD
16443  LD=$lt_save_LD
16444  GCC=$lt_save_GCC
16445  with_gnu_ld=$lt_save_with_gnu_ld
16446  lt_cv_path_LDCXX=$lt_cv_path_LD
16447  lt_cv_path_LD=$lt_save_path_LD
16448  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16449  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16450fi # test yes != "$_lt_caught_CXX_error"
16451
16452ac_ext=c
16453ac_cpp='$CPP $CPPFLAGS'
16454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16456ac_compiler_gnu=$ac_cv_c_compiler_gnu
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472        ac_config_commands="$ac_config_commands libtool"
16473
16474
16475
16476
16477# Only expand once:
16478
16479
16480
16481
16482# Test for 64-bit build.
16483# The cast to long int works around a bug in the HP C Compiler
16484# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16485# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16486# This bug is HP SR number 8606223364.
16487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16488$as_echo_n "checking size of size_t... " >&6; }
16489if ${ac_cv_sizeof_size_t+:} false; then :
16490  $as_echo_n "(cached) " >&6
16491else
16492  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
16493
16494else
16495  if test "$ac_cv_type_size_t" = yes; then
16496     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16498as_fn_error 77 "cannot compute sizeof (size_t)
16499See \`config.log' for more details" "$LINENO" 5; }
16500   else
16501     ac_cv_sizeof_size_t=0
16502   fi
16503fi
16504
16505fi
16506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16507$as_echo "$ac_cv_sizeof_size_t" >&6; }
16508
16509
16510
16511cat >>confdefs.h <<_ACEOF
16512#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16513_ACEOF
16514
16515
16516
16517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
16518$as_echo_n "checking for C compiler vendor... " >&6; }
16519if ${ax_cv_c_compiler_vendor+:} false; then :
16520  $as_echo_n "(cached) " >&6
16521else
16522  # note: don't check for gcc first since some other compilers define __GNUC__
16523  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
16524           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
16525           pathscale: __PATHCC__,__PATHSCALE__
16526           clang:     __clang__
16527           gnu:       __GNUC__
16528           sun:       __SUNPRO_C,__SUNPRO_CC
16529           hp:        __HP_cc,__HP_aCC
16530           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
16531           borland:   __BORLANDC__,__TURBOC__
16532           comeau:    __COMO__
16533           cray:      _CRAYC
16534           kai:       __KCC
16535           lcc:       __LCC__
16536           sgi:       __sgi,sgi
16537           microsoft: _MSC_VER
16538           metrowerks: __MWERKS__
16539           watcom:    __WATCOMC__
16540           portland:  __PGI
16541           unknown:   UNKNOWN"
16542  for ventest in $vendors; do
16543    case $ventest in
16544      *:) vendor=$ventest; continue ;;
16545      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
16546    esac
16547    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548/* end confdefs.h.  */
16549
16550int
16551main ()
16552{
16553
16554      #if !($vencpp)
16555        thisisanerror;
16556      #endif
16557
16558  ;
16559  return 0;
16560}
16561_ACEOF
16562if ac_fn_c_try_compile "$LINENO"; then :
16563  break
16564fi
16565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16566  done
16567  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
16568
16569fi
16570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
16571$as_echo "$ax_cv_c_compiler_vendor" >&6; }
16572
16573
16574
16575
16576
16577
16578# Check whether --enable-portable-binary was given.
16579if test "${enable_portable_binary+set}" = set; then :
16580  enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
16581else
16582  acx_maxopt_portable=no
16583fi
16584
16585
16586# Try to determine "good" native compiler flags if none specified via CFLAGS
16587if test "$ac_test_CFLAGS" != "set"; then
16588  CFLAGS=""
16589  case $ax_cv_c_compiler_vendor in
16590    dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
16591	 if test "x$acx_maxopt_portable" = xno; then
16592           CFLAGS="$CFLAGS -arch host"
16593         fi;;
16594
16595    sun) CFLAGS="-native -fast -xO5 -dalign"
16596	 if test "x$acx_maxopt_portable" = xyes; then
16597	   CFLAGS="$CFLAGS -xarch=generic"
16598         fi;;
16599
16600    hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
16601	 if test "x$acx_maxopt_portable" = xyes; then
16602	   CFLAGS="$CFLAGS +DAportable"
16603	 fi;;
16604
16605    ibm) if test "x$acx_maxopt_portable" = xno; then
16606           xlc_opt="-qarch=auto -qtune=auto"
16607	 else
16608           xlc_opt="-qtune=auto"
16609	 fi
16610         as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
16611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
16612$as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
16613if eval \${$as_CACHEVAR+:} false; then :
16614  $as_echo_n "(cached) " >&6
16615else
16616
16617  ax_check_save_flags=$CFLAGS
16618  CFLAGS="$CFLAGS  $xlc_opt"
16619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620/* end confdefs.h.  */
16621
16622int
16623main ()
16624{
16625
16626  ;
16627  return 0;
16628}
16629_ACEOF
16630if ac_fn_c_try_compile "$LINENO"; then :
16631  eval "$as_CACHEVAR=yes"
16632else
16633  eval "$as_CACHEVAR=no"
16634fi
16635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16636  CFLAGS=$ax_check_save_flags
16637fi
16638eval ac_res=\$$as_CACHEVAR
16639	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16640$as_echo "$ac_res" >&6; }
16641if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16642  CFLAGS="-O3 -qansialias -w $xlc_opt"
16643else
16644  CFLAGS="-O3 -qansialias -w"
16645                echo "******************************************************"
16646                echo "*  You seem to have the IBM  C compiler.  It is      *"
16647                echo "*  recommended for best performance that you use:    *"
16648                echo "*                                                    *"
16649                echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
16650                echo "*                      ^^^        ^^^                *"
16651                echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
16652                echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
16653                echo "*  and re-run configure.)  For more info, man cc.    *"
16654                echo "******************************************************"
16655fi
16656
16657         ;;
16658
16659    intel) CFLAGS="-O3 -ansi_alias"
16660	if test "x$acx_maxopt_portable" = xno; then
16661	  icc_archflag=unknown
16662	  icc_flags=""
16663	  case $host_cpu in
16664	    i686*|x86_64*)
16665              # icc accepts gcc assembly syntax, so these should work:
16666
16667ac_ext=c
16668ac_cpp='$CPP $CPPFLAGS'
16669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16671ac_compiler_gnu=$ac_cv_c_compiler_gnu
16672
16673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
16674$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
16675if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
16676  $as_echo_n "(cached) " >&6
16677else
16678  if test "$cross_compiling" = yes; then :
16679  ax_cv_gcc_x86_cpuid_0=unknown
16680else
16681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682/* end confdefs.h.  */
16683#include <stdio.h>
16684int
16685main ()
16686{
16687
16688     int op = 0, eax, ebx, ecx, edx;
16689     FILE *f;
16690      __asm__("cpuid"
16691        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16692        : "a" (op));
16693     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16694     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16695     fclose(f);
16696     return 0;
16697
16698  ;
16699  return 0;
16700}
16701_ACEOF
16702if ac_fn_c_try_run "$LINENO"; then :
16703  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
16704else
16705  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
16706fi
16707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16708  conftest.$ac_objext conftest.beam conftest.$ac_ext
16709fi
16710
16711fi
16712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
16713$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
16714ac_ext=c
16715ac_cpp='$CPP $CPPFLAGS'
16716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16718ac_compiler_gnu=$ac_cv_c_compiler_gnu
16719
16720
16721
16722ac_ext=c
16723ac_cpp='$CPP $CPPFLAGS'
16724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16726ac_compiler_gnu=$ac_cv_c_compiler_gnu
16727
16728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
16729$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
16730if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
16731  $as_echo_n "(cached) " >&6
16732else
16733  if test "$cross_compiling" = yes; then :
16734  ax_cv_gcc_x86_cpuid_1=unknown
16735else
16736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737/* end confdefs.h.  */
16738#include <stdio.h>
16739int
16740main ()
16741{
16742
16743     int op = 1, eax, ebx, ecx, edx;
16744     FILE *f;
16745      __asm__("cpuid"
16746        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16747        : "a" (op));
16748     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16749     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16750     fclose(f);
16751     return 0;
16752
16753  ;
16754  return 0;
16755}
16756_ACEOF
16757if ac_fn_c_try_run "$LINENO"; then :
16758  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
16759else
16760  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
16761fi
16762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16763  conftest.$ac_objext conftest.beam conftest.$ac_ext
16764fi
16765
16766fi
16767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
16768$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
16769ac_ext=c
16770ac_cpp='$CPP $CPPFLAGS'
16771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16773ac_compiler_gnu=$ac_cv_c_compiler_gnu
16774
16775
16776	      case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
16777                *:756e6547:*:*) # Intel
16778                  case $ax_cv_gcc_x86_cpuid_1 in
16779                    *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
16780                    *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
16781                    *f??:*:*:*) icc_flags="-xN -xW -xK";;
16782                  esac ;;
16783              esac ;;
16784          esac
16785          if test "x$icc_flags" != x; then
16786            for flag in $icc_flags; do
16787              as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16789$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16790if eval \${$as_CACHEVAR+:} false; then :
16791  $as_echo_n "(cached) " >&6
16792else
16793
16794  ax_check_save_flags=$CFLAGS
16795  CFLAGS="$CFLAGS  $flag"
16796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797/* end confdefs.h.  */
16798
16799int
16800main ()
16801{
16802
16803  ;
16804  return 0;
16805}
16806_ACEOF
16807if ac_fn_c_try_compile "$LINENO"; then :
16808  eval "$as_CACHEVAR=yes"
16809else
16810  eval "$as_CACHEVAR=no"
16811fi
16812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16813  CFLAGS=$ax_check_save_flags
16814fi
16815eval ac_res=\$$as_CACHEVAR
16816	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16817$as_echo "$ac_res" >&6; }
16818if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16819  icc_archflag=$flag; break
16820else
16821  :
16822fi
16823
16824            done
16825          fi
16826          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
16827$as_echo_n "checking for icc architecture flag... " >&6; }
16828	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
16829$as_echo "$icc_archflag" >&6; }
16830          if test "x$icc_archflag" != xunknown; then
16831            CFLAGS="$CFLAGS $icc_archflag"
16832          fi
16833        fi
16834	;;
16835
16836    gnu)
16837     # default optimization flags for gcc on all systems
16838     CFLAGS="-O3 -fomit-frame-pointer"
16839
16840     # -malign-double for x86 systems
16841     # LIBFFI -- DON'T DO THIS - CHANGES ABI
16842     # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
16843
16844     #  -fstrict-aliasing for gcc-2.95+
16845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
16846$as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
16847if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
16848  $as_echo_n "(cached) " >&6
16849else
16850
16851  ax_check_save_flags=$CFLAGS
16852  CFLAGS="$CFLAGS  -fstrict-aliasing"
16853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854/* end confdefs.h.  */
16855
16856int
16857main ()
16858{
16859
16860  ;
16861  return 0;
16862}
16863_ACEOF
16864if ac_fn_c_try_compile "$LINENO"; then :
16865  ax_cv_check_cflags___fstrict_aliasing=yes
16866else
16867  ax_cv_check_cflags___fstrict_aliasing=no
16868fi
16869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870  CFLAGS=$ax_check_save_flags
16871fi
16872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
16873$as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
16874if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
16875  CFLAGS="$CFLAGS -fstrict-aliasing"
16876else
16877  :
16878fi
16879
16880
16881     # note that we enable "unsafe" fp optimization with other compilers, too
16882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
16883$as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
16884if ${ax_cv_check_cflags___ffast_math+:} false; then :
16885  $as_echo_n "(cached) " >&6
16886else
16887
16888  ax_check_save_flags=$CFLAGS
16889  CFLAGS="$CFLAGS  -ffast-math"
16890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891/* end confdefs.h.  */
16892
16893int
16894main ()
16895{
16896
16897  ;
16898  return 0;
16899}
16900_ACEOF
16901if ac_fn_c_try_compile "$LINENO"; then :
16902  ax_cv_check_cflags___ffast_math=yes
16903else
16904  ax_cv_check_cflags___ffast_math=no
16905fi
16906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907  CFLAGS=$ax_check_save_flags
16908fi
16909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
16910$as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
16911if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
16912  CFLAGS="$CFLAGS -ffast-math"
16913else
16914  :
16915fi
16916
16917
16918
16919
16920
16921
16922# Check whether --with-gcc-arch was given.
16923if test "${with_gcc_arch+set}" = set; then :
16924  withval=$with_gcc_arch; ax_gcc_arch=$withval
16925else
16926  ax_gcc_arch=yes
16927fi
16928
16929
16930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
16931$as_echo_n "checking for gcc architecture flag... " >&6; }
16932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16933$as_echo "" >&6; }
16934if ${ax_cv_gcc_archflag+:} false; then :
16935  $as_echo_n "(cached) " >&6
16936else
16937
16938ax_cv_gcc_archflag="unknown"
16939
16940if test "$GCC" = yes; then
16941
16942if test "x$ax_gcc_arch" = xyes; then
16943ax_gcc_arch=""
16944if test "$cross_compiling" = no; then
16945case $host_cpu in
16946  i[3456]86*|x86_64*) # use cpuid codes
16947
16948ac_ext=c
16949ac_cpp='$CPP $CPPFLAGS'
16950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16952ac_compiler_gnu=$ac_cv_c_compiler_gnu
16953
16954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
16955$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
16956if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
16957  $as_echo_n "(cached) " >&6
16958else
16959  if test "$cross_compiling" = yes; then :
16960  ax_cv_gcc_x86_cpuid_0=unknown
16961else
16962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963/* end confdefs.h.  */
16964#include <stdio.h>
16965int
16966main ()
16967{
16968
16969     int op = 0, eax, ebx, ecx, edx;
16970     FILE *f;
16971      __asm__("cpuid"
16972        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16973        : "a" (op));
16974     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16975     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16976     fclose(f);
16977     return 0;
16978
16979  ;
16980  return 0;
16981}
16982_ACEOF
16983if ac_fn_c_try_run "$LINENO"; then :
16984  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
16985else
16986  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
16987fi
16988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16989  conftest.$ac_objext conftest.beam conftest.$ac_ext
16990fi
16991
16992fi
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
16994$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
16995ac_ext=c
16996ac_cpp='$CPP $CPPFLAGS'
16997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16999ac_compiler_gnu=$ac_cv_c_compiler_gnu
17000
17001
17002
17003ac_ext=c
17004ac_cpp='$CPP $CPPFLAGS'
17005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17007ac_compiler_gnu=$ac_cv_c_compiler_gnu
17008
17009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
17010$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
17011if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
17012  $as_echo_n "(cached) " >&6
17013else
17014  if test "$cross_compiling" = yes; then :
17015  ax_cv_gcc_x86_cpuid_1=unknown
17016else
17017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018/* end confdefs.h.  */
17019#include <stdio.h>
17020int
17021main ()
17022{
17023
17024     int op = 1, eax, ebx, ecx, edx;
17025     FILE *f;
17026      __asm__("cpuid"
17027        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
17028        : "a" (op));
17029     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
17030     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
17031     fclose(f);
17032     return 0;
17033
17034  ;
17035  return 0;
17036}
17037_ACEOF
17038if ac_fn_c_try_run "$LINENO"; then :
17039  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
17040else
17041  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
17042fi
17043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17044  conftest.$ac_objext conftest.beam conftest.$ac_ext
17045fi
17046
17047fi
17048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
17049$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
17050ac_ext=c
17051ac_cpp='$CPP $CPPFLAGS'
17052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17054ac_compiler_gnu=$ac_cv_c_compiler_gnu
17055
17056
17057     case $ax_cv_gcc_x86_cpuid_0 in
17058       *:756e6547:*:*) # Intel
17059          case $ax_cv_gcc_x86_cpuid_1 in
17060	    *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
17061	    *5??:*:*:*) ax_gcc_arch=pentium ;;
17062	    *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
17063	    *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
17064	    *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
17065	    *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
17066	    *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
17067	    *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
17068	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
17069	    *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
17070	    *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
17071	    *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
17072	    *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
17073	    *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
17074	    ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
17075		case $host_cpu in
17076	          x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
17077	          *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
17078	        esac ;;
17079	    ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
17080          esac ;;
17081       *:68747541:*:*) # AMD
17082          case $ax_cv_gcc_x86_cpuid_1 in
17083	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
17084	    *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
17085	    *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
17086	    *60?:*:*:*) ax_gcc_arch=k7 ;;
17087	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
17088	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
17089	    *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
17090	    *6[68a]?:*:*:*)
17091
17092ac_ext=c
17093ac_cpp='$CPP $CPPFLAGS'
17094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17096ac_compiler_gnu=$ac_cv_c_compiler_gnu
17097
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
17099$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
17100if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
17101  $as_echo_n "(cached) " >&6
17102else
17103  if test "$cross_compiling" = yes; then :
17104  ax_cv_gcc_x86_cpuid_0x80000006=unknown
17105else
17106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107/* end confdefs.h.  */
17108#include <stdio.h>
17109int
17110main ()
17111{
17112
17113     int op = 0x80000006, eax, ebx, ecx, edx;
17114     FILE *f;
17115      __asm__("cpuid"
17116        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
17117        : "a" (op));
17118     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
17119     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
17120     fclose(f);
17121     return 0;
17122
17123  ;
17124  return 0;
17125}
17126_ACEOF
17127if ac_fn_c_try_run "$LINENO"; then :
17128  ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
17129else
17130  ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
17131fi
17132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17133  conftest.$ac_objext conftest.beam conftest.$ac_ext
17134fi
17135
17136fi
17137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
17138$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
17139ac_ext=c
17140ac_cpp='$CPP $CPPFLAGS'
17141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17143ac_compiler_gnu=$ac_cv_c_compiler_gnu
17144
17145 # L2 cache size
17146	       case $ax_cv_gcc_x86_cpuid_0x80000006 in
17147                 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
17148			ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
17149                 *) ax_gcc_arch="athlon-4 athlon k7" ;;
17150	       esac ;;
17151	    ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
17152	    ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
17153	    ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
17154	    ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
17155	    ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
17156	    ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
17157	    *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
17158          esac ;;
17159	*:746e6543:*:*) # IDT
17160	   case $ax_cv_gcc_x86_cpuid_1 in
17161	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
17162	     *58?:*:*:*) ax_gcc_arch=winchip2 ;;
17163	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
17164	     *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
17165	   esac ;;
17166     esac
17167     if test x"$ax_gcc_arch" = x; then # fallback
17168	case $host_cpu in
17169	  i586*) ax_gcc_arch=pentium ;;
17170	  i686*) ax_gcc_arch=pentiumpro ;;
17171        esac
17172     fi
17173     ;;
17174
17175  sparc*)
17176     # Extract the first word of "prtdiag", so it can be a program name with args.
17177set dummy prtdiag; ac_word=$2
17178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17179$as_echo_n "checking for $ac_word... " >&6; }
17180if ${ac_cv_path_PRTDIAG+:} false; then :
17181  $as_echo_n "(cached) " >&6
17182else
17183  case $PRTDIAG in
17184  [\\/]* | ?:[\\/]*)
17185  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
17186  ;;
17187  *)
17188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17189as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
17190for as_dir in $as_dummy
17191do
17192  IFS=$as_save_IFS
17193  test -z "$as_dir" && as_dir=.
17194    for ac_exec_ext in '' $ac_executable_extensions; do
17195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17196    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
17197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17198    break 2
17199  fi
17200done
17201  done
17202IFS=$as_save_IFS
17203
17204  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
17205  ;;
17206esac
17207fi
17208PRTDIAG=$ac_cv_path_PRTDIAG
17209if test -n "$PRTDIAG"; then
17210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
17211$as_echo "$PRTDIAG" >&6; }
17212else
17213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17214$as_echo "no" >&6; }
17215fi
17216
17217
17218     cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
17219     cputype=`echo "$cputype" | tr -d ' -' | sed 's/SPARCIIi/SPARCII/' | tr $as_cr_LETTERS $as_cr_letters`
17220     case $cputype in
17221         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
17222         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
17223         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
17224         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
17225         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
17226         *cypress*) ax_gcc_arch=cypress ;;
17227     esac ;;
17228
17229  alphaev5) ax_gcc_arch=ev5 ;;
17230  alphaev56) ax_gcc_arch=ev56 ;;
17231  alphapca56) ax_gcc_arch="pca56 ev56" ;;
17232  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
17233  alphaev6) ax_gcc_arch=ev6 ;;
17234  alphaev67) ax_gcc_arch=ev67 ;;
17235  alphaev68) ax_gcc_arch="ev68 ev67" ;;
17236  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
17237  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
17238  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
17239
17240  powerpc*)
17241     cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
17242     cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
17243     case $cputype in
17244       *750*) ax_gcc_arch="750 G3" ;;
17245       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
17246       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
17247       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
17248       *970*) ax_gcc_arch="970 G5 power4";;
17249       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
17250       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
17251       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
17252       *) ax_gcc_arch=$cputype ;;
17253     esac
17254     ax_gcc_arch="$ax_gcc_arch powerpc"
17255     ;;
17256esac
17257fi # not cross-compiling
17258fi # guess arch
17259
17260if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
17261for arch in $ax_gcc_arch; do
17262  if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
17263    flags="-mtune=$arch"
17264    # -mcpu=$arch and m$arch generate nonportable code on every arch except
17265    # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
17266    case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
17267  else
17268    flags="-march=$arch -mcpu=$arch -m$arch"
17269  fi
17270  for flag in $flags; do
17271    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
17272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17273$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17274if eval \${$as_CACHEVAR+:} false; then :
17275  $as_echo_n "(cached) " >&6
17276else
17277
17278  ax_check_save_flags=$CFLAGS
17279  CFLAGS="$CFLAGS  $flag"
17280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281/* end confdefs.h.  */
17282
17283int
17284main ()
17285{
17286
17287  ;
17288  return 0;
17289}
17290_ACEOF
17291if ac_fn_c_try_compile "$LINENO"; then :
17292  eval "$as_CACHEVAR=yes"
17293else
17294  eval "$as_CACHEVAR=no"
17295fi
17296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297  CFLAGS=$ax_check_save_flags
17298fi
17299eval ac_res=\$$as_CACHEVAR
17300	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17301$as_echo "$ac_res" >&6; }
17302if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
17303  ax_cv_gcc_archflag=$flag; break
17304else
17305  :
17306fi
17307
17308  done
17309  test "x$ax_cv_gcc_archflag" = xunknown || break
17310done
17311fi
17312
17313fi # $GCC=yes
17314
17315fi
17316
17317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
17318$as_echo_n "checking for gcc architecture flag... " >&6; }
17319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
17320$as_echo "$ax_cv_gcc_archflag" >&6; }
17321if test "x$ax_cv_gcc_archflag" = xunknown; then
17322  :
17323else
17324  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
17325fi
17326
17327     ;;
17328  esac
17329
17330  if test -z "$CFLAGS"; then
17331	echo ""
17332	echo "********************************************************"
17333        echo "* WARNING: Don't know the best CFLAGS for this system  *"
17334        echo "* Use ./configure CFLAGS=... to specify your own flags *"
17335	echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
17336	echo "********************************************************"
17337	echo ""
17338        CFLAGS="-O3"
17339  fi
17340
17341  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
17342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
17343$as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
17344if eval \${$as_CACHEVAR+:} false; then :
17345  $as_echo_n "(cached) " >&6
17346else
17347
17348  ax_check_save_flags=$CFLAGS
17349  CFLAGS="$CFLAGS  $CFLAGS"
17350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351/* end confdefs.h.  */
17352
17353int
17354main ()
17355{
17356
17357  ;
17358  return 0;
17359}
17360_ACEOF
17361if ac_fn_c_try_compile "$LINENO"; then :
17362  eval "$as_CACHEVAR=yes"
17363else
17364  eval "$as_CACHEVAR=no"
17365fi
17366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17367  CFLAGS=$ax_check_save_flags
17368fi
17369eval ac_res=\$$as_CACHEVAR
17370	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17371$as_echo "$ac_res" >&6; }
17372if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
17373  :
17374else
17375
17376	echo ""
17377        echo "********************************************************"
17378        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
17379        echo "* your compiler.                                       *"
17380        echo "* Use ./configure CFLAGS=... to specify your own flags *"
17381        echo "********************************************************"
17382        echo ""
17383        CFLAGS=""
17384
17385fi
17386
17387
17388fi
17389
17390# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
17391# compiler.
17392if test "$ax_cv_c_compiler_vendor" != "sun"; then
17393  if ${CFLAGS+:} false; then :
17394  case " $CFLAGS " in
17395    *"  "*)
17396      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
17397  (: CFLAGS already contains ) 2>&5
17398  ac_status=$?
17399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17400  test $ac_status = 0; }
17401      ;;
17402    *)
17403      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
17404  (: CFLAGS="$CFLAGS ") 2>&5
17405  ac_status=$?
17406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17407  test $ac_status = 0; }
17408      CFLAGS="$CFLAGS "
17409      ;;
17410   esac
17411else
17412  CFLAGS=""
17413fi
17414
17415ac_ext=c
17416ac_cpp='$CPP $CPPFLAGS'
17417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17419ac_compiler_gnu=$ac_cv_c_compiler_gnu
17420
17421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17422$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17423if ${ac_cv_cflags_warn_all+:} false; then :
17424  $as_echo_n "(cached) " >&6
17425else
17426  ac_cv_cflags_warn_all="no, unknown"
17427ac_save_CFLAGS="$CFLAGS"
17428for ac_arg in "-warn all  % -warn all"      "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
17429do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431/* end confdefs.h.  */
17432
17433int
17434main ()
17435{
17436
17437  ;
17438  return 0;
17439}
17440_ACEOF
17441if ac_fn_c_try_compile "$LINENO"; then :
17442  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17443fi
17444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17445done
17446CFLAGS="$ac_save_CFLAGS"
17447
17448fi
17449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17450$as_echo "$ac_cv_cflags_warn_all" >&6; }
17451
17452case ".$ac_cv_cflags_warn_all" in
17453     .ok|.ok,*)  ;;
17454   .|.no|.no,*)  ;;
17455   *) if ${CFLAGS+:} false; then :
17456  case " $CFLAGS " in
17457    *" $ac_cv_cflags_warn_all "*)
17458      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17459  (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17460  ac_status=$?
17461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17462  test $ac_status = 0; }
17463      ;;
17464    *)
17465      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17466  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17467  ac_status=$?
17468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17469  test $ac_status = 0; }
17470      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17471      ;;
17472   esac
17473else
17474  CFLAGS="$ac_cv_cflags_warn_all"
17475fi
17476 ;;
17477esac
17478
17479ac_ext=c
17480ac_cpp='$CPP $CPPFLAGS'
17481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483ac_compiler_gnu=$ac_cv_c_compiler_gnu
17484
17485
17486fi
17487
17488if test "x$GCC" = "xyes"; then
17489  CFLAGS="$CFLAGS -fexceptions"
17490fi
17491
17492cat > local.exp <<EOF
17493set CC_FOR_TARGET "$CC"
17494set CXX_FOR_TARGET "$CXX"
17495EOF
17496
17497
17498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17499$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17500    # Check whether --enable-maintainer-mode was given.
17501if test "${enable_maintainer_mode+set}" = set; then :
17502  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17503else
17504  USE_MAINTAINER_MODE=no
17505fi
17506
17507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17508$as_echo "$USE_MAINTAINER_MODE" >&6; }
17509   if test $USE_MAINTAINER_MODE = yes; then
17510  MAINTAINER_MODE_TRUE=
17511  MAINTAINER_MODE_FALSE='#'
17512else
17513  MAINTAINER_MODE_TRUE='#'
17514  MAINTAINER_MODE_FALSE=
17515fi
17516
17517  MAINT=$MAINTAINER_MODE_TRUE
17518
17519
17520
17521for ac_header in sys/mman.h
17522do :
17523  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
17524if test "x$ac_cv_header_sys_mman_h" = xyes; then :
17525  cat >>confdefs.h <<_ACEOF
17526#define HAVE_SYS_MMAN_H 1
17527_ACEOF
17528
17529fi
17530
17531done
17532
17533for ac_func in mmap mkostemp
17534do :
17535  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17536ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17537if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17538  cat >>confdefs.h <<_ACEOF
17539#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17540_ACEOF
17541
17542fi
17543done
17544
17545
17546ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
17547if test "x$ac_cv_header_sys_mman_h" = xyes; then :
17548  libffi_header_sys_mman_h=yes
17549else
17550  libffi_header_sys_mman_h=no
17551fi
17552
17553
17554ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17555if test "x$ac_cv_func_mmap" = xyes; then :
17556  libffi_func_mmap=yes
17557else
17558  libffi_func_mmap=no
17559fi
17560
17561if test "$libffi_header_sys_mman_h" != yes \
17562 || test "$libffi_func_mmap" != yes; then
17563   ac_cv_func_mmap_file=no
17564   ac_cv_func_mmap_dev_zero=no
17565   ac_cv_func_mmap_anon=no
17566else
17567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
17568$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
17569if ${ac_cv_func_mmap_file+:} false; then :
17570  $as_echo_n "(cached) " >&6
17571else
17572  # Add a system to this blacklist if
17573   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
17574   # memory area containing the same data that you'd get if you applied
17575   # read() to the same fd.  The only system known to have a problem here
17576   # is VMS, where text files have record structure.
17577   case "$host_os" in
17578     vms* | ultrix*)
17579	ac_cv_func_mmap_file=no ;;
17580     *)
17581	ac_cv_func_mmap_file=yes;;
17582   esac
17583fi
17584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
17585$as_echo "$ac_cv_func_mmap_file" >&6; }
17586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
17587$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
17588if ${ac_cv_func_mmap_dev_zero+:} false; then :
17589  $as_echo_n "(cached) " >&6
17590else
17591  # Add a system to this blacklist if it has mmap() but /dev/zero
17592   # does not exist, or if mmapping /dev/zero does not give anonymous
17593   # zeroed pages with both the following properties:
17594   # 1. If you map N consecutive pages in with one call, and then
17595   #    unmap any subset of those pages, the pages that were not
17596   #    explicitly unmapped remain accessible.
17597   # 2. If you map two adjacent blocks of memory and then unmap them
17598   #    both at once, they must both go away.
17599   # Systems known to be in this category are Windows (all variants),
17600   # VMS, and Darwin.
17601   case "$host_os" in
17602     vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
17603	ac_cv_func_mmap_dev_zero=no ;;
17604     *)
17605	ac_cv_func_mmap_dev_zero=yes;;
17606   esac
17607fi
17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
17609$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
17610
17611   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
17612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
17613$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
17614if ${ac_cv_decl_map_anon+:} false; then :
17615  $as_echo_n "(cached) " >&6
17616else
17617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618/* end confdefs.h.  */
17619#include <sys/types.h>
17620#include <sys/mman.h>
17621#include <unistd.h>
17622
17623#ifndef MAP_ANONYMOUS
17624#define MAP_ANONYMOUS MAP_ANON
17625#endif
17626
17627int
17628main ()
17629{
17630int n = MAP_ANONYMOUS;
17631  ;
17632  return 0;
17633}
17634_ACEOF
17635if ac_fn_c_try_compile "$LINENO"; then :
17636  ac_cv_decl_map_anon=yes
17637else
17638  ac_cv_decl_map_anon=no
17639fi
17640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17641fi
17642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
17643$as_echo "$ac_cv_decl_map_anon" >&6; }
17644
17645   if test $ac_cv_decl_map_anon = no; then
17646     ac_cv_func_mmap_anon=no
17647   else
17648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
17649$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
17650if ${ac_cv_func_mmap_anon+:} false; then :
17651  $as_echo_n "(cached) " >&6
17652else
17653  # Add a system to this blacklist if it has mmap() and MAP_ANON or
17654   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
17655   # doesn't give anonymous zeroed pages with the same properties listed
17656   # above for use of /dev/zero.
17657   # Systems known to be in this category are Windows, VMS, and SCO Unix.
17658   case "$host_os" in
17659     vms* | cygwin* | pe | mingw* | sco* | udk* )
17660	ac_cv_func_mmap_anon=no ;;
17661     *)
17662	ac_cv_func_mmap_anon=yes;;
17663   esac
17664fi
17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
17666$as_echo "$ac_cv_func_mmap_anon" >&6; }
17667   fi
17668fi
17669
17670if test $ac_cv_func_mmap_file = yes; then
17671
17672$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
17673
17674fi
17675if test $ac_cv_func_mmap_dev_zero = yes; then
17676
17677$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
17678
17679fi
17680if test $ac_cv_func_mmap_anon = yes; then
17681
17682$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
17683
17684fi
17685
17686
17687 if test -d $srcdir/testsuite; then
17688  TESTSUBDIR_TRUE=
17689  TESTSUBDIR_FALSE='#'
17690else
17691  TESTSUBDIR_TRUE='#'
17692  TESTSUBDIR_FALSE=
17693fi
17694
17695
17696TARGETDIR="unknown"
17697HAVE_LONG_DOUBLE_VARIANT=0
17698case "$host" in
17699  aarch64*-*-*)
17700	TARGET=AARCH64; TARGETDIR=aarch64
17701	;;
17702
17703  alpha*-*-*)
17704	TARGET=ALPHA; TARGETDIR=alpha;
17705	# Support 128-bit long double, changeable via command-line switch.
17706	HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
17707	;;
17708
17709  arc*-*-*)
17710	TARGET=ARC; TARGETDIR=arc
17711	;;
17712
17713  arm*-*-*)
17714	TARGET=ARM; TARGETDIR=arm
17715	;;
17716
17717  amd64-*-freebsd* | amd64-*-openbsd*)
17718	TARGET=X86_64; TARGETDIR=x86
17719  	;;
17720
17721  amd64-*-freebsd*)
17722	TARGET=X86_64; TARGETDIR=x86
17723  	;;
17724
17725  amd64-*-freebsd*)
17726	TARGET=X86_64; TARGETDIR=x86
17727	;;
17728
17729  avr32*-*-*)
17730	TARGET=AVR32; TARGETDIR=avr32
17731	;;
17732
17733  bfin*)
17734  	TARGET=BFIN; TARGETDIR=bfin
17735  	;;
17736
17737  cris-*-*)
17738	TARGET=LIBFFI_CRIS; TARGETDIR=cris
17739	;;
17740
17741  frv-*-*)
17742	TARGET=FRV; TARGETDIR=frv
17743	;;
17744
17745  hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
17746	TARGET=PA_LINUX; TARGETDIR=pa
17747	;;
17748  hppa*64-*-hpux*)
17749	TARGET=PA64_HPUX; TARGETDIR=pa
17750	;;
17751  hppa*-*-hpux*)
17752	TARGET=PA_HPUX; TARGETDIR=pa
17753	;;
17754
17755  i?86-*-freebsd* | i?86-*-openbsd*)
17756	TARGET=X86_FREEBSD; TARGETDIR=x86
17757	;;
17758  i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
17759	TARGET=X86_WIN32; TARGETDIR=x86
17760	# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
17761	# We must also check with_cross_host to decide if this is a native
17762	# or cross-build and select where to install dlls appropriately.
17763	if test -n "$with_cross_host" &&
17764	   test x"$with_cross_host" != x"no"; then
17765	  AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
17766	else
17767	  AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
17768	fi
17769	;;
17770  i?86-*-darwin*)
17771	TARGET=X86_DARWIN; TARGETDIR=x86
17772	;;
17773  i?86-*-solaris2.1[0-9]*)
17774	TARGETDIR=x86
17775	if test $ac_cv_sizeof_size_t = 4; then
17776	  TARGET=X86;
17777	else
17778	  TARGET=X86_64;
17779	fi
17780	;;
17781
17782  x86_64-*-darwin*)
17783	TARGET=X86_DARWIN; TARGETDIR=x86
17784	;;
17785
17786  x86_64-*-cygwin* | x86_64-*-mingw*)
17787	TARGET=X86_WIN64; TARGETDIR=x86
17788	# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
17789	# We must also check with_cross_host to decide if this is a native
17790	# or cross-build and select where to install dlls appropriately.
17791	if test -n "$with_cross_host" &&
17792	   test x"$with_cross_host" != x"no"; then
17793	  AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
17794	else
17795	  AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
17796	fi
17797	;;
17798
17799  i?86-*-* | x86_64-*-*)
17800	TARGETDIR=x86
17801	if test $ac_cv_sizeof_size_t = 4; then
17802	  case "$host" in
17803	    *-gnux32)
17804	      TARGET=X86_64
17805	      ;;
17806	    *)
17807	      TARGET=X86
17808	      ;;
17809          esac
17810	else
17811	  TARGET=X86_64;
17812	fi
17813	;;
17814
17815  ia64*-*-*)
17816	TARGET=IA64; TARGETDIR=ia64
17817	;;
17818
17819  m32r*-*-*)
17820	TARGET=M32R; TARGETDIR=m32r
17821	;;
17822
17823  m68k-*-*)
17824	TARGET=M68K; TARGETDIR=m68k
17825	;;
17826
17827  m88k-*-*)
17828	TARGET=M88K; TARGETDIR=m88k
17829	;;
17830
17831  microblaze*-*-*)
17832	TARGET=MICROBLAZE; TARGETDIR=microblaze
17833	;;
17834
17835  moxie-*-*)
17836	TARGET=MOXIE; TARGETDIR=moxie
17837	;;
17838
17839  metag-*-*)
17840	TARGET=METAG; TARGETDIR=metag
17841	;;
17842
17843  mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
17844	TARGET=MIPS; TARGETDIR=mips
17845	;;
17846  mips*-*linux* | mips*-*-openbsd*)
17847	# Support 128-bit long double for NewABI.
17848	HAVE_LONG_DOUBLE='defined(__mips64)'
17849	TARGET=MIPS; TARGETDIR=mips
17850	;;
17851
17852  nios2*-linux*)
17853	TARGET=NIOS2; TARGETDIR=nios2
17854	;;
17855
17856  or1k*-linux*)
17857	TARGET=OR1K; TARGETDIR=or1k
17858	;;
17859
17860  powerpc*-*-linux* | powerpc-*-sysv*)
17861	TARGET=POWERPC; TARGETDIR=powerpc
17862	HAVE_LONG_DOUBLE_VARIANT=1
17863	;;
17864  powerpc-*-amigaos*)
17865	TARGET=POWERPC; TARGETDIR=powerpc
17866	;;
17867  powerpc-*-beos*)
17868	TARGET=POWERPC; TARGETDIR=powerpc
17869	;;
17870  powerpc-*-darwin* | powerpc64-*-darwin*)
17871	TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
17872	;;
17873  powerpc-*-aix* | rs6000-*-aix*)
17874	TARGET=POWERPC_AIX; TARGETDIR=powerpc
17875	;;
17876  powerpc-*-freebsd* | powerpc-*-openbsd*)
17877	TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
17878	HAVE_LONG_DOUBLE_VARIANT=1
17879	;;
17880  powerpc64-*-freebsd*)
17881	TARGET=POWERPC; TARGETDIR=powerpc
17882	;;
17883  powerpc*-*-rtems*)
17884	TARGET=POWERPC; TARGETDIR=powerpc
17885	;;
17886
17887  s390-*-* | s390x-*-*)
17888	TARGET=S390; TARGETDIR=s390
17889	;;
17890
17891  sh-*-* | sh[34]*-*-*)
17892	TARGET=SH; TARGETDIR=sh
17893	;;
17894  sh64-*-* | sh5*-*-*)
17895	TARGET=SH64; TARGETDIR=sh64
17896	;;
17897
17898  sparc*-*-*)
17899	TARGET=SPARC; TARGETDIR=sparc
17900	;;
17901
17902  tile*-*)
17903        TARGET=TILE; TARGETDIR=tile
17904        ;;
17905
17906  vax-*-*)
17907	TARGET=VAX; TARGETDIR=vax
17908	;;
17909
17910  xtensa*-*)
17911	TARGET=XTENSA; TARGETDIR=xtensa
17912	;;
17913
17914esac
17915
17916
17917
17918
17919if test $TARGETDIR = unknown; then
17920  as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
17921fi
17922
17923 if test x$TARGET = xMIPS; then
17924  MIPS_TRUE=
17925  MIPS_FALSE='#'
17926else
17927  MIPS_TRUE='#'
17928  MIPS_FALSE=
17929fi
17930
17931 if test x$TARGET = xBFIN; then
17932  BFIN_TRUE=
17933  BFIN_FALSE='#'
17934else
17935  BFIN_TRUE='#'
17936  BFIN_FALSE=
17937fi
17938
17939 if test x$TARGET = xSPARC; then
17940  SPARC_TRUE=
17941  SPARC_FALSE='#'
17942else
17943  SPARC_TRUE='#'
17944  SPARC_FALSE=
17945fi
17946
17947 if test x$TARGET = xX86; then
17948  X86_TRUE=
17949  X86_FALSE='#'
17950else
17951  X86_TRUE='#'
17952  X86_FALSE=
17953fi
17954
17955 if test x$TARGET = xX86_FREEBSD; then
17956  X86_FREEBSD_TRUE=
17957  X86_FREEBSD_FALSE='#'
17958else
17959  X86_FREEBSD_TRUE='#'
17960  X86_FREEBSD_FALSE=
17961fi
17962
17963 if test x$TARGET = xX86_WIN32; then
17964  X86_WIN32_TRUE=
17965  X86_WIN32_FALSE='#'
17966else
17967  X86_WIN32_TRUE='#'
17968  X86_WIN32_FALSE=
17969fi
17970
17971 if test x$TARGET = xX86_WIN64; then
17972  X86_WIN64_TRUE=
17973  X86_WIN64_FALSE='#'
17974else
17975  X86_WIN64_TRUE='#'
17976  X86_WIN64_FALSE=
17977fi
17978
17979 if test x$TARGET = xX86_DARWIN; then
17980  X86_DARWIN_TRUE=
17981  X86_DARWIN_FALSE='#'
17982else
17983  X86_DARWIN_TRUE='#'
17984  X86_DARWIN_FALSE=
17985fi
17986
17987 if test x$TARGET = xX86_DARWIN && test $ac_cv_sizeof_size_t = 4; then
17988  X86_DARWIN32_TRUE=
17989  X86_DARWIN32_FALSE='#'
17990else
17991  X86_DARWIN32_TRUE='#'
17992  X86_DARWIN32_FALSE=
17993fi
17994
17995 if test x$TARGET = xX86_DARWIN && test $ac_cv_sizeof_size_t = 8; then
17996  X86_DARWIN64_TRUE=
17997  X86_DARWIN64_FALSE='#'
17998else
17999  X86_DARWIN64_TRUE='#'
18000  X86_DARWIN64_FALSE=
18001fi
18002
18003 if test x$TARGET = xALPHA; then
18004  ALPHA_TRUE=
18005  ALPHA_FALSE='#'
18006else
18007  ALPHA_TRUE='#'
18008  ALPHA_FALSE=
18009fi
18010
18011 if test x$TARGET = xIA64; then
18012  IA64_TRUE=
18013  IA64_FALSE='#'
18014else
18015  IA64_TRUE='#'
18016  IA64_FALSE=
18017fi
18018
18019 if test x$TARGET = xM32R; then
18020  M32R_TRUE=
18021  M32R_FALSE='#'
18022else
18023  M32R_TRUE='#'
18024  M32R_FALSE=
18025fi
18026
18027 if test x$TARGET = xM68K; then
18028  M68K_TRUE=
18029  M68K_FALSE='#'
18030else
18031  M68K_TRUE='#'
18032  M68K_FALSE=
18033fi
18034
18035 if test x$TARGET = xM88K; then
18036  M88K_TRUE=
18037  M88K_FALSE='#'
18038else
18039  M88K_TRUE='#'
18040  M88K_FALSE=
18041fi
18042
18043 if test x$TARGET = xMICROBLAZE; then
18044  MICROBLAZE_TRUE=
18045  MICROBLAZE_FALSE='#'
18046else
18047  MICROBLAZE_TRUE='#'
18048  MICROBLAZE_FALSE=
18049fi
18050
18051 if test x$TARGET = xMETAG; then
18052  METAG_TRUE=
18053  METAG_FALSE='#'
18054else
18055  METAG_TRUE='#'
18056  METAG_FALSE=
18057fi
18058
18059 if test x$TARGET = xMOXIE; then
18060  MOXIE_TRUE=
18061  MOXIE_FALSE='#'
18062else
18063  MOXIE_TRUE='#'
18064  MOXIE_FALSE=
18065fi
18066
18067 if test x$TARGET = xNIOS2; then
18068  NIOS2_TRUE=
18069  NIOS2_FALSE='#'
18070else
18071  NIOS2_TRUE='#'
18072  NIOS2_FALSE=
18073fi
18074
18075 if test x$TARGET = xOR1K; then
18076  OR1K_TRUE=
18077  OR1K_FALSE='#'
18078else
18079  OR1K_TRUE='#'
18080  OR1K_FALSE=
18081fi
18082
18083 if test x$TARGET = xPOWERPC; then
18084  POWERPC_TRUE=
18085  POWERPC_FALSE='#'
18086else
18087  POWERPC_TRUE='#'
18088  POWERPC_FALSE=
18089fi
18090
18091 if test x$TARGET = xPOWERPC_AIX; then
18092  POWERPC_AIX_TRUE=
18093  POWERPC_AIX_FALSE='#'
18094else
18095  POWERPC_AIX_TRUE='#'
18096  POWERPC_AIX_FALSE=
18097fi
18098
18099 if test x$TARGET = xPOWERPC_DARWIN; then
18100  POWERPC_DARWIN_TRUE=
18101  POWERPC_DARWIN_FALSE='#'
18102else
18103  POWERPC_DARWIN_TRUE='#'
18104  POWERPC_DARWIN_FALSE=
18105fi
18106
18107 if test x$TARGET = xPOWERPC_FREEBSD; then
18108  POWERPC_FREEBSD_TRUE=
18109  POWERPC_FREEBSD_FALSE='#'
18110else
18111  POWERPC_FREEBSD_TRUE='#'
18112  POWERPC_FREEBSD_FALSE=
18113fi
18114
18115 if test x$TARGET = xAARCH64; then
18116  AARCH64_TRUE=
18117  AARCH64_FALSE='#'
18118else
18119  AARCH64_TRUE='#'
18120  AARCH64_FALSE=
18121fi
18122
18123 if test x$TARGET = xARC; then
18124  ARC_TRUE=
18125  ARC_FALSE='#'
18126else
18127  ARC_TRUE='#'
18128  ARC_FALSE=
18129fi
18130
18131 if test x$TARGET = xARM; then
18132  ARM_TRUE=
18133  ARM_FALSE='#'
18134else
18135  ARM_TRUE='#'
18136  ARM_FALSE=
18137fi
18138
18139 if test x$TARGET = xAVR32; then
18140  AVR32_TRUE=
18141  AVR32_FALSE='#'
18142else
18143  AVR32_TRUE='#'
18144  AVR32_FALSE=
18145fi
18146
18147 if test x$TARGET = xLIBFFI_CRIS; then
18148  LIBFFI_CRIS_TRUE=
18149  LIBFFI_CRIS_FALSE='#'
18150else
18151  LIBFFI_CRIS_TRUE='#'
18152  LIBFFI_CRIS_FALSE=
18153fi
18154
18155 if test x$TARGET = xFRV; then
18156  FRV_TRUE=
18157  FRV_FALSE='#'
18158else
18159  FRV_TRUE='#'
18160  FRV_FALSE=
18161fi
18162
18163 if test x$TARGET = xS390; then
18164  S390_TRUE=
18165  S390_FALSE='#'
18166else
18167  S390_TRUE='#'
18168  S390_FALSE=
18169fi
18170
18171 if test x$TARGET = xX86_64; then
18172  X86_64_TRUE=
18173  X86_64_FALSE='#'
18174else
18175  X86_64_TRUE='#'
18176  X86_64_FALSE=
18177fi
18178
18179 if test x$TARGET = xSH; then
18180  SH_TRUE=
18181  SH_FALSE='#'
18182else
18183  SH_TRUE='#'
18184  SH_FALSE=
18185fi
18186
18187 if test x$TARGET = xSH64; then
18188  SH64_TRUE=
18189  SH64_FALSE='#'
18190else
18191  SH64_TRUE='#'
18192  SH64_FALSE=
18193fi
18194
18195 if test x$TARGET = xPA_LINUX; then
18196  PA_LINUX_TRUE=
18197  PA_LINUX_FALSE='#'
18198else
18199  PA_LINUX_TRUE='#'
18200  PA_LINUX_FALSE=
18201fi
18202
18203 if test x$TARGET = xPA_HPUX; then
18204  PA_HPUX_TRUE=
18205  PA_HPUX_FALSE='#'
18206else
18207  PA_HPUX_TRUE='#'
18208  PA_HPUX_FALSE=
18209fi
18210
18211 if test x$TARGET = xPA64_HPUX; then
18212  PA64_HPUX_TRUE=
18213  PA64_HPUX_FALSE='#'
18214else
18215  PA64_HPUX_TRUE='#'
18216  PA64_HPUX_FALSE=
18217fi
18218
18219 if test x$TARGET = xTILE; then
18220  TILE_TRUE=
18221  TILE_FALSE='#'
18222else
18223  TILE_TRUE='#'
18224  TILE_FALSE=
18225fi
18226
18227 if test x$TARGET = xVAX; then
18228  VAX_TRUE=
18229  VAX_FALSE='#'
18230else
18231  VAX_TRUE='#'
18232  VAX_FALSE=
18233fi
18234
18235 if test x$TARGET = xXTENSA; then
18236  XTENSA_TRUE=
18237  XTENSA_FALSE='#'
18238else
18239  XTENSA_TRUE='#'
18240  XTENSA_FALSE=
18241fi
18242
18243
18244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18245$as_echo_n "checking for ANSI C header files... " >&6; }
18246if ${ac_cv_header_stdc+:} false; then :
18247  $as_echo_n "(cached) " >&6
18248else
18249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250/* end confdefs.h.  */
18251#include <stdlib.h>
18252#include <stdarg.h>
18253#include <string.h>
18254#include <float.h>
18255
18256int
18257main ()
18258{
18259
18260  ;
18261  return 0;
18262}
18263_ACEOF
18264if ac_fn_c_try_compile "$LINENO"; then :
18265  ac_cv_header_stdc=yes
18266else
18267  ac_cv_header_stdc=no
18268fi
18269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18270
18271if test $ac_cv_header_stdc = yes; then
18272  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274/* end confdefs.h.  */
18275#include <string.h>
18276
18277_ACEOF
18278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18279  $EGREP "memchr" >/dev/null 2>&1; then :
18280
18281else
18282  ac_cv_header_stdc=no
18283fi
18284rm -f conftest*
18285
18286fi
18287
18288if test $ac_cv_header_stdc = yes; then
18289  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291/* end confdefs.h.  */
18292#include <stdlib.h>
18293
18294_ACEOF
18295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18296  $EGREP "free" >/dev/null 2>&1; then :
18297
18298else
18299  ac_cv_header_stdc=no
18300fi
18301rm -f conftest*
18302
18303fi
18304
18305if test $ac_cv_header_stdc = yes; then
18306  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18307  if test "$cross_compiling" = yes; then :
18308  :
18309else
18310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311/* end confdefs.h.  */
18312#include <ctype.h>
18313#include <stdlib.h>
18314#if ((' ' & 0x0FF) == 0x020)
18315# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18316# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18317#else
18318# define ISLOWER(c) \
18319		   (('a' <= (c) && (c) <= 'i') \
18320		     || ('j' <= (c) && (c) <= 'r') \
18321		     || ('s' <= (c) && (c) <= 'z'))
18322# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18323#endif
18324
18325#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18326int
18327main ()
18328{
18329  int i;
18330  for (i = 0; i < 256; i++)
18331    if (XOR (islower (i), ISLOWER (i))
18332	|| toupper (i) != TOUPPER (i))
18333      return 2;
18334  return 0;
18335}
18336_ACEOF
18337if ac_fn_c_try_run "$LINENO"; then :
18338
18339else
18340  ac_cv_header_stdc=no
18341fi
18342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18343  conftest.$ac_objext conftest.beam conftest.$ac_ext
18344fi
18345
18346fi
18347fi
18348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18349$as_echo "$ac_cv_header_stdc" >&6; }
18350if test $ac_cv_header_stdc = yes; then
18351
18352$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18353
18354fi
18355
18356for ac_func in memcpy
18357do :
18358  ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
18359if test "x$ac_cv_func_memcpy" = xyes; then :
18360  cat >>confdefs.h <<_ACEOF
18361#define HAVE_MEMCPY 1
18362_ACEOF
18363
18364fi
18365done
18366
18367ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18368if test "x$ac_cv_type_size_t" = xyes; then :
18369
18370else
18371
18372cat >>confdefs.h <<_ACEOF
18373#define size_t unsigned int
18374_ACEOF
18375
18376fi
18377
18378# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18379# for constant arguments.  Useless!
18380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18381$as_echo_n "checking for working alloca.h... " >&6; }
18382if ${ac_cv_working_alloca_h+:} false; then :
18383  $as_echo_n "(cached) " >&6
18384else
18385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386/* end confdefs.h.  */
18387#include <alloca.h>
18388int
18389main ()
18390{
18391char *p = (char *) alloca (2 * sizeof (int));
18392			  if (p) return 0;
18393  ;
18394  return 0;
18395}
18396_ACEOF
18397if ac_fn_c_try_link "$LINENO"; then :
18398  ac_cv_working_alloca_h=yes
18399else
18400  ac_cv_working_alloca_h=no
18401fi
18402rm -f core conftest.err conftest.$ac_objext \
18403    conftest$ac_exeext conftest.$ac_ext
18404fi
18405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18406$as_echo "$ac_cv_working_alloca_h" >&6; }
18407if test $ac_cv_working_alloca_h = yes; then
18408
18409$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18410
18411fi
18412
18413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18414$as_echo_n "checking for alloca... " >&6; }
18415if ${ac_cv_func_alloca_works+:} false; then :
18416  $as_echo_n "(cached) " >&6
18417else
18418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419/* end confdefs.h.  */
18420#ifdef __GNUC__
18421# define alloca __builtin_alloca
18422#else
18423# ifdef _MSC_VER
18424#  include <malloc.h>
18425#  define alloca _alloca
18426# else
18427#  ifdef HAVE_ALLOCA_H
18428#   include <alloca.h>
18429#  else
18430#   ifdef _AIX
18431 #pragma alloca
18432#   else
18433#    ifndef alloca /* predefined by HP cc +Olibcalls */
18434void *alloca (size_t);
18435#    endif
18436#   endif
18437#  endif
18438# endif
18439#endif
18440
18441int
18442main ()
18443{
18444char *p = (char *) alloca (1);
18445				    if (p) return 0;
18446  ;
18447  return 0;
18448}
18449_ACEOF
18450if ac_fn_c_try_link "$LINENO"; then :
18451  ac_cv_func_alloca_works=yes
18452else
18453  ac_cv_func_alloca_works=no
18454fi
18455rm -f core conftest.err conftest.$ac_objext \
18456    conftest$ac_exeext conftest.$ac_ext
18457fi
18458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18459$as_echo "$ac_cv_func_alloca_works" >&6; }
18460
18461if test $ac_cv_func_alloca_works = yes; then
18462
18463$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18464
18465else
18466  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18467# that cause trouble.  Some versions do not even contain alloca or
18468# contain a buggy version.  If you still want to use their alloca,
18469# use ar to extract alloca.o from them instead of compiling alloca.c.
18470
18471ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18472
18473$as_echo "#define C_ALLOCA 1" >>confdefs.h
18474
18475
18476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18477$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18478if ${ac_cv_os_cray+:} false; then :
18479  $as_echo_n "(cached) " >&6
18480else
18481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482/* end confdefs.h.  */
18483#if defined CRAY && ! defined CRAY2
18484webecray
18485#else
18486wenotbecray
18487#endif
18488
18489_ACEOF
18490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18491  $EGREP "webecray" >/dev/null 2>&1; then :
18492  ac_cv_os_cray=yes
18493else
18494  ac_cv_os_cray=no
18495fi
18496rm -f conftest*
18497
18498fi
18499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18500$as_echo "$ac_cv_os_cray" >&6; }
18501if test $ac_cv_os_cray = yes; then
18502  for ac_func in _getb67 GETB67 getb67; do
18503    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18504ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18505if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18506
18507cat >>confdefs.h <<_ACEOF
18508#define CRAY_STACKSEG_END $ac_func
18509_ACEOF
18510
18511    break
18512fi
18513
18514  done
18515fi
18516
18517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18518$as_echo_n "checking stack direction for C alloca... " >&6; }
18519if ${ac_cv_c_stack_direction+:} false; then :
18520  $as_echo_n "(cached) " >&6
18521else
18522  if test "$cross_compiling" = yes; then :
18523  ac_cv_c_stack_direction=0
18524else
18525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526/* end confdefs.h.  */
18527$ac_includes_default
18528int
18529find_stack_direction (int *addr, int depth)
18530{
18531  int dir, dummy = 0;
18532  if (! addr)
18533    addr = &dummy;
18534  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18535  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18536  return dir + dummy;
18537}
18538
18539int
18540main (int argc, char **argv)
18541{
18542  return find_stack_direction (0, argc + !argv + 20) < 0;
18543}
18544_ACEOF
18545if ac_fn_c_try_run "$LINENO"; then :
18546  ac_cv_c_stack_direction=1
18547else
18548  ac_cv_c_stack_direction=-1
18549fi
18550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18551  conftest.$ac_objext conftest.beam conftest.$ac_ext
18552fi
18553
18554fi
18555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18556$as_echo "$ac_cv_c_stack_direction" >&6; }
18557cat >>confdefs.h <<_ACEOF
18558#define STACK_DIRECTION $ac_cv_c_stack_direction
18559_ACEOF
18560
18561
18562fi
18563
18564
18565# The cast to long int works around a bug in the HP C Compiler
18566# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18567# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18568# This bug is HP SR number 8606223364.
18569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
18570$as_echo_n "checking size of double... " >&6; }
18571if ${ac_cv_sizeof_double+:} false; then :
18572  $as_echo_n "(cached) " >&6
18573else
18574  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
18575
18576else
18577  if test "$ac_cv_type_double" = yes; then
18578     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18580as_fn_error 77 "cannot compute sizeof (double)
18581See \`config.log' for more details" "$LINENO" 5; }
18582   else
18583     ac_cv_sizeof_double=0
18584   fi
18585fi
18586
18587fi
18588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
18589$as_echo "$ac_cv_sizeof_double" >&6; }
18590
18591
18592
18593cat >>confdefs.h <<_ACEOF
18594#define SIZEOF_DOUBLE $ac_cv_sizeof_double
18595_ACEOF
18596
18597
18598# The cast to long int works around a bug in the HP C Compiler
18599# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18600# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18601# This bug is HP SR number 8606223364.
18602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
18603$as_echo_n "checking size of long double... " >&6; }
18604if ${ac_cv_sizeof_long_double+:} false; then :
18605  $as_echo_n "(cached) " >&6
18606else
18607  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
18608
18609else
18610  if test "$ac_cv_type_long_double" = yes; then
18611     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18613as_fn_error 77 "cannot compute sizeof (long double)
18614See \`config.log' for more details" "$LINENO" 5; }
18615   else
18616     ac_cv_sizeof_long_double=0
18617   fi
18618fi
18619
18620fi
18621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
18622$as_echo "$ac_cv_sizeof_long_double" >&6; }
18623
18624
18625
18626cat >>confdefs.h <<_ACEOF
18627#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
18628_ACEOF
18629
18630
18631
18632# Also AC_SUBST this variable for ffi.h.
18633if test -z "$HAVE_LONG_DOUBLE"; then
18634  HAVE_LONG_DOUBLE=0
18635  if test $ac_cv_sizeof_long_double != 0; then
18636    if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
18637
18638$as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
18639
18640      HAVE_LONG_DOUBLE=1
18641    else
18642      if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
18643        HAVE_LONG_DOUBLE=1
18644
18645$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18646
18647      fi
18648    fi
18649  fi
18650fi
18651
18652
18653
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18655$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18656if ${ac_cv_c_bigendian+:} false; then :
18657  $as_echo_n "(cached) " >&6
18658else
18659  ac_cv_c_bigendian=unknown
18660    # See if we're dealing with a universal compiler.
18661    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662/* end confdefs.h.  */
18663#ifndef __APPLE_CC__
18664	       not a universal capable compiler
18665	     #endif
18666	     typedef int dummy;
18667
18668_ACEOF
18669if ac_fn_c_try_compile "$LINENO"; then :
18670
18671	# Check for potential -arch flags.  It is not universal unless
18672	# there are at least two -arch flags with different values.
18673	ac_arch=
18674	ac_prev=
18675	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18676	 if test -n "$ac_prev"; then
18677	   case $ac_word in
18678	     i?86 | x86_64 | ppc | ppc64)
18679	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18680		 ac_arch=$ac_word
18681	       else
18682		 ac_cv_c_bigendian=universal
18683		 break
18684	       fi
18685	       ;;
18686	   esac
18687	   ac_prev=
18688	 elif test "x$ac_word" = "x-arch"; then
18689	   ac_prev=arch
18690	 fi
18691       done
18692fi
18693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18694    if test $ac_cv_c_bigendian = unknown; then
18695      # See if sys/param.h defines the BYTE_ORDER macro.
18696      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697/* end confdefs.h.  */
18698#include <sys/types.h>
18699	     #include <sys/param.h>
18700
18701int
18702main ()
18703{
18704#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18705		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18706		     && LITTLE_ENDIAN)
18707	      bogus endian macros
18708	     #endif
18709
18710  ;
18711  return 0;
18712}
18713_ACEOF
18714if ac_fn_c_try_compile "$LINENO"; then :
18715  # It does; now see whether it defined to BIG_ENDIAN or not.
18716	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717/* end confdefs.h.  */
18718#include <sys/types.h>
18719		#include <sys/param.h>
18720
18721int
18722main ()
18723{
18724#if BYTE_ORDER != BIG_ENDIAN
18725		 not big endian
18726		#endif
18727
18728  ;
18729  return 0;
18730}
18731_ACEOF
18732if ac_fn_c_try_compile "$LINENO"; then :
18733  ac_cv_c_bigendian=yes
18734else
18735  ac_cv_c_bigendian=no
18736fi
18737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18738fi
18739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18740    fi
18741    if test $ac_cv_c_bigendian = unknown; then
18742      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18743      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18744/* end confdefs.h.  */
18745#include <limits.h>
18746
18747int
18748main ()
18749{
18750#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18751	      bogus endian macros
18752	     #endif
18753
18754  ;
18755  return 0;
18756}
18757_ACEOF
18758if ac_fn_c_try_compile "$LINENO"; then :
18759  # It does; now see whether it defined to _BIG_ENDIAN or not.
18760	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761/* end confdefs.h.  */
18762#include <limits.h>
18763
18764int
18765main ()
18766{
18767#ifndef _BIG_ENDIAN
18768		 not big endian
18769		#endif
18770
18771  ;
18772  return 0;
18773}
18774_ACEOF
18775if ac_fn_c_try_compile "$LINENO"; then :
18776  ac_cv_c_bigendian=yes
18777else
18778  ac_cv_c_bigendian=no
18779fi
18780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18781fi
18782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783    fi
18784    if test $ac_cv_c_bigendian = unknown; then
18785      # Compile a test program.
18786      if test "$cross_compiling" = yes; then :
18787  # Try to guess by grepping values from an object file.
18788	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789/* end confdefs.h.  */
18790short int ascii_mm[] =
18791		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18792		short int ascii_ii[] =
18793		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18794		int use_ascii (int i) {
18795		  return ascii_mm[i] + ascii_ii[i];
18796		}
18797		short int ebcdic_ii[] =
18798		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18799		short int ebcdic_mm[] =
18800		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18801		int use_ebcdic (int i) {
18802		  return ebcdic_mm[i] + ebcdic_ii[i];
18803		}
18804		extern int foo;
18805
18806int
18807main ()
18808{
18809return use_ascii (foo) == use_ebcdic (foo);
18810  ;
18811  return 0;
18812}
18813_ACEOF
18814if ac_fn_c_try_compile "$LINENO"; then :
18815  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18816	      ac_cv_c_bigendian=yes
18817	    fi
18818	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18819	      if test "$ac_cv_c_bigendian" = unknown; then
18820		ac_cv_c_bigendian=no
18821	      else
18822		# finding both strings is unlikely to happen, but who knows?
18823		ac_cv_c_bigendian=unknown
18824	      fi
18825	    fi
18826fi
18827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828else
18829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830/* end confdefs.h.  */
18831$ac_includes_default
18832int
18833main ()
18834{
18835
18836	     /* Are we little or big endian?  From Harbison&Steele.  */
18837	     union
18838	     {
18839	       long int l;
18840	       char c[sizeof (long int)];
18841	     } u;
18842	     u.l = 1;
18843	     return u.c[sizeof (long int) - 1] == 1;
18844
18845  ;
18846  return 0;
18847}
18848_ACEOF
18849if ac_fn_c_try_run "$LINENO"; then :
18850  ac_cv_c_bigendian=no
18851else
18852  ac_cv_c_bigendian=yes
18853fi
18854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18855  conftest.$ac_objext conftest.beam conftest.$ac_ext
18856fi
18857
18858    fi
18859fi
18860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18861$as_echo "$ac_cv_c_bigendian" >&6; }
18862 case $ac_cv_c_bigendian in #(
18863   yes)
18864     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18865;; #(
18866   no)
18867      ;; #(
18868   universal)
18869
18870$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18871
18872     ;; #(
18873   *)
18874     as_fn_error $? "unknown endianness
18875 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18876 esac
18877
18878
18879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
18880$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
18881if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
18882  $as_echo_n "(cached) " >&6
18883else
18884
18885    gcc_cv_as_cfi_pseudo_op=unknown
18886    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887/* end confdefs.h.  */
18888asm (".cfi_startproc\n\t.cfi_endproc");
18889int
18890main ()
18891{
18892
18893  ;
18894  return 0;
18895}
18896_ACEOF
18897if ac_fn_c_try_compile "$LINENO"; then :
18898  gcc_cv_as_cfi_pseudo_op=yes
18899else
18900  gcc_cv_as_cfi_pseudo_op=no
18901fi
18902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18903
18904fi
18905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
18906$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
18907 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
18908
18909$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
18910
18911 fi
18912
18913
18914if test x$TARGET = xSPARC; then
18915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
18916$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
18917if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
18918  $as_echo_n "(cached) " >&6
18919else
18920
18921	save_CFLAGS="$CFLAGS"
18922	save_LDFLAGS="$LDFLAGS"
18923	CFLAGS="$CFLAGS -fpic"
18924	LDFLAGS="$LDFLAGS -shared"
18925	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926/* end confdefs.h.  */
18927asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
18928int
18929main ()
18930{
18931
18932  ;
18933  return 0;
18934}
18935_ACEOF
18936if ac_fn_c_try_link "$LINENO"; then :
18937  libffi_cv_as_sparc_ua_pcrel=yes
18938else
18939  libffi_cv_as_sparc_ua_pcrel=no
18940fi
18941rm -f core conftest.err conftest.$ac_objext \
18942    conftest$ac_exeext conftest.$ac_ext
18943	CFLAGS="$save_CFLAGS"
18944	LDFLAGS="$save_LDFLAGS"
18945fi
18946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
18947$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
18948    if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
18949
18950$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
18951
18952    fi
18953
18954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
18955$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
18956if ${libffi_cv_as_register_pseudo_op+:} false; then :
18957  $as_echo_n "(cached) " >&6
18958else
18959
18960       libffi_cv_as_register_pseudo_op=unknown
18961       # Check if we have .register
18962       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963/* end confdefs.h.  */
18964
18965int
18966main ()
18967{
18968asm (".register %g2, #scratch");
18969  ;
18970  return 0;
18971}
18972_ACEOF
18973if ac_fn_c_try_compile "$LINENO"; then :
18974  libffi_cv_as_register_pseudo_op=yes
18975else
18976  libffi_cv_as_register_pseudo_op=no
18977fi
18978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979
18980fi
18981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
18982$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
18983    if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
18984
18985$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
18986
18987    fi
18988fi
18989
18990if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
18991    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
18992$as_echo_n "checking assembler supports pc related relocs... " >&6; }
18993if ${libffi_cv_as_x86_pcrel+:} false; then :
18994  $as_echo_n "(cached) " >&6
18995else
18996
18997	libffi_cv_as_x86_pcrel=no
18998	echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
18999	if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
19000	    libffi_cv_as_x86_pcrel=yes
19001	fi
19002
19003fi
19004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
19005$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
19006    if test "x$libffi_cv_as_x86_pcrel" = xyes; then
19007
19008$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
19009
19010    fi
19011
19012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
19013$as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
19014if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
19015  $as_echo_n "(cached) " >&6
19016else
19017
19018       libffi_cv_as_ascii_pseudo_op=unknown
19019       # Check if we have .ascii
19020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021/* end confdefs.h.  */
19022
19023int
19024main ()
19025{
19026asm (".ascii \\"string\\"");
19027  ;
19028  return 0;
19029}
19030_ACEOF
19031if ac_fn_c_try_compile "$LINENO"; then :
19032  libffi_cv_as_ascii_pseudo_op=yes
19033else
19034  libffi_cv_as_ascii_pseudo_op=no
19035fi
19036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19037
19038fi
19039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
19040$as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
19041    if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
19042
19043$as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
19044
19045    fi
19046
19047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
19048$as_echo_n "checking assembler .string pseudo-op support... " >&6; }
19049if ${libffi_cv_as_string_pseudo_op+:} false; then :
19050  $as_echo_n "(cached) " >&6
19051else
19052
19053       libffi_cv_as_string_pseudo_op=unknown
19054       # Check if we have .string
19055       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19056/* end confdefs.h.  */
19057
19058int
19059main ()
19060{
19061asm (".string \\"string\\"");
19062  ;
19063  return 0;
19064}
19065_ACEOF
19066if ac_fn_c_try_compile "$LINENO"; then :
19067  libffi_cv_as_string_pseudo_op=yes
19068else
19069  libffi_cv_as_string_pseudo_op=no
19070fi
19071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19072
19073fi
19074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
19075$as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
19076    if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
19077
19078$as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
19079
19080    fi
19081fi
19082
19083# On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
19084# Check whether --enable-pax_emutramp was given.
19085if test "${enable_pax_emutramp+set}" = set; then :
19086  enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
19087
19088$as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
19089
19090  fi
19091fi
19092
19093
19094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19095$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19096if ${lt_cv_sys_symbol_underscore+:} false; then :
19097  $as_echo_n "(cached) " >&6
19098else
19099  lt_cv_sys_symbol_underscore=no
19100  cat > conftest.$ac_ext <<_LT_EOF
19101void nm_test_func(){}
19102int main(){nm_test_func;return 0;}
19103_LT_EOF
19104  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19105  (eval $ac_compile) 2>&5
19106  ac_status=$?
19107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19108  test $ac_status = 0; }; then
19109    # Now try to grab the symbols.
19110    ac_nlist=conftest.nm
19111    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19112  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19113  ac_status=$?
19114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19115  test $ac_status = 0; } && test -s "$ac_nlist"; then
19116      # See whether the symbols have a leading underscore.
19117      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19118        lt_cv_sys_symbol_underscore=yes
19119      else
19120        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19121	  :
19122        else
19123	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19124        fi
19125      fi
19126    else
19127      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19128    fi
19129  else
19130    echo "configure: failed program was:" >&5
19131    cat conftest.c >&5
19132  fi
19133  rm -rf conftest*
19134
19135fi
19136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19137$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19138  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19139
19140
19141if test "x$sys_symbol_underscore" = xyes; then
19142
19143$as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
19144
19145fi
19146
19147FFI_EXEC_TRAMPOLINE_TABLE=0
19148case "$target" in
19149     *arm*-apple-darwin*)
19150       FFI_EXEC_TRAMPOLINE_TABLE=1
19151
19152$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
19153
19154     ;;
19155     *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
19156
19157$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
19158
19159     ;;
19160esac
19161 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
19162  FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
19163  FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
19164else
19165  FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
19166  FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
19167fi
19168
19169
19170
19171if test x$TARGET = xX86_64; then
19172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
19173$as_echo_n "checking toolchain supports unwind section type... " >&6; }
19174if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
19175  $as_echo_n "(cached) " >&6
19176else
19177
19178        cat  > conftest1.s << EOF
19179.text
19180.globl foo
19181foo:
19182jmp bar
19183.section .eh_frame,"a",@unwind
19184bar:
19185EOF
19186
19187        cat > conftest2.c  << EOF
19188extern void foo();
19189int main(){foo();}
19190EOF
19191
19192	libffi_cv_as_x86_64_unwind_section_type=no
19193	# we ensure that we can compile _and_ link an assembly file containing an @unwind section
19194	# since the compiler can support it and not the linker (ie old binutils)
19195	if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
19196           $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
19197	    libffi_cv_as_x86_64_unwind_section_type=yes
19198	fi
19199
19200fi
19201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
19202$as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
19203    if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
19204
19205$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
19206
19207    fi
19208fi
19209
19210if test "x$GCC" = "xyes"; then
19211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
19212$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
19213if ${libffi_cv_ro_eh_frame+:} false; then :
19214  $as_echo_n "(cached) " >&6
19215else
19216
19217  	libffi_cv_ro_eh_frame=no
19218  	echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
19219  	if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
19220	    objdump -h conftest.o > conftest.dump 2>&1
19221	    libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
19222	    libffi_test_line=`expr $libffi_eh_frame_line + 1`p
19223	    sed -n $libffi_test_line conftest.dump > conftest.line
19224  	    if grep READONLY conftest.line > /dev/null; then
19225  		libffi_cv_ro_eh_frame=yes
19226  	    fi
19227  	fi
19228  	rm -f conftest.*
19229
19230fi
19231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
19232$as_echo "$libffi_cv_ro_eh_frame" >&6; }
19233  if test "x$libffi_cv_ro_eh_frame" = xyes; then
19234
19235$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
19236
19237
19238$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
19239
19240  else
19241
19242$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
19243
19244  fi
19245
19246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
19247$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
19248if ${libffi_cv_hidden_visibility_attribute+:} false; then :
19249  $as_echo_n "(cached) " >&6
19250else
19251
19252  	echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
19253  	libffi_cv_hidden_visibility_attribute=no
19254  	if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
19255  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19256  (eval $ac_try) 2>&5
19257  ac_status=$?
19258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19259  test $ac_status = 0; }; }; then
19260  	    if grep '\.hidden.*foo' conftest.s >/dev/null; then
19261  		libffi_cv_hidden_visibility_attribute=yes
19262  	    fi
19263  	fi
19264  	rm -f conftest.*
19265
19266fi
19267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
19268$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
19269  if test $libffi_cv_hidden_visibility_attribute = yes; then
19270
19271$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
19272
19273  fi
19274fi
19275
19276
19277
19278
19279
19280
19281
19282
19283# Check whether --enable-debug was given.
19284if test "${enable_debug+set}" = set; then :
19285  enableval=$enable_debug; if test "$enable_debug" = "yes"; then
19286
19287$as_echo "#define FFI_DEBUG 1" >>confdefs.h
19288
19289  fi
19290fi
19291
19292 if test "$enable_debug" = "yes"; then
19293  FFI_DEBUG_TRUE=
19294  FFI_DEBUG_FALSE='#'
19295else
19296  FFI_DEBUG_TRUE='#'
19297  FFI_DEBUG_FALSE=
19298fi
19299
19300
19301# Check whether --enable-structs was given.
19302if test "${enable_structs+set}" = set; then :
19303  enableval=$enable_structs; if test "$enable_structs" = "no"; then
19304
19305$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
19306
19307  fi
19308fi
19309
19310 if test "$enable_debug" = "yes"; then
19311  FFI_DEBUG_TRUE=
19312  FFI_DEBUG_FALSE='#'
19313else
19314  FFI_DEBUG_TRUE='#'
19315  FFI_DEBUG_FALSE=
19316fi
19317
19318
19319# Check whether --enable-raw-api was given.
19320if test "${enable_raw_api+set}" = set; then :
19321  enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
19322
19323$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
19324
19325  fi
19326fi
19327
19328
19329# Check whether --enable-purify-safety was given.
19330if test "${enable_purify_safety+set}" = set; then :
19331  enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
19332
19333$as_echo "#define USING_PURIFY 1" >>confdefs.h
19334
19335  fi
19336fi
19337
19338
19339# These variables are only ever used when we cross-build to X86_WIN32.
19340# And we only support this with GCC, so...
19341if test "x$GCC" = "xyes"; then
19342  if test -n "$with_cross_host" &&
19343     test x"$with_cross_host" != x"no"; then
19344    toolexecdir="${exec_prefix}"/'$(target_alias)'
19345    toolexeclibdir="${toolexecdir}"/lib
19346  else
19347    toolexecdir="${libdir}"/gcc-lib/'$(target_alias)'
19348    toolexeclibdir="${libdir}"
19349  fi
19350  multi_os_directory=`$CC $CFLAGS -print-multi-os-directory`
19351  case $multi_os_directory in
19352    .) ;; # Avoid trailing /.
19353    ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
19354  esac
19355
19356else
19357  toolexeclibdir="${libdir}"
19358fi
19359
19360
19361ac_config_commands="$ac_config_commands include"
19362
19363ac_config_commands="$ac_config_commands src"
19364
19365
19366ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
19367
19368
19369ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
19370
19371
19372cat >confcache <<\_ACEOF
19373# This file is a shell script that caches the results of configure
19374# tests run on this system so they can be shared between configure
19375# scripts and configure runs, see configure's option --config-cache.
19376# It is not useful on other systems.  If it contains results you don't
19377# want to keep, you may remove or edit it.
19378#
19379# config.status only pays attention to the cache file if you give it
19380# the --recheck option to rerun configure.
19381#
19382# `ac_cv_env_foo' variables (set or unset) will be overridden when
19383# loading this file, other *unset* `ac_cv_foo' will be assigned the
19384# following values.
19385
19386_ACEOF
19387
19388# The following way of writing the cache mishandles newlines in values,
19389# but we know of no workaround that is simple, portable, and efficient.
19390# So, we kill variables containing newlines.
19391# Ultrix sh set writes to stderr and can't be redirected directly,
19392# and sets the high bit in the cache file unless we assign to the vars.
19393(
19394  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19395    eval ac_val=\$$ac_var
19396    case $ac_val in #(
19397    *${as_nl}*)
19398      case $ac_var in #(
19399      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19400$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19401      esac
19402      case $ac_var in #(
19403      _ | IFS | as_nl) ;; #(
19404      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19405      *) { eval $ac_var=; unset $ac_var;} ;;
19406      esac ;;
19407    esac
19408  done
19409
19410  (set) 2>&1 |
19411    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19412    *${as_nl}ac_space=\ *)
19413      # `set' does not quote correctly, so add quotes: double-quote
19414      # substitution turns \\\\ into \\, and sed turns \\ into \.
19415      sed -n \
19416	"s/'/'\\\\''/g;
19417	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19418      ;; #(
19419    *)
19420      # `set' quotes correctly as required by POSIX, so do not add quotes.
19421      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19422      ;;
19423    esac |
19424    sort
19425) |
19426  sed '
19427     /^ac_cv_env_/b end
19428     t clear
19429     :clear
19430     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19431     t end
19432     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19433     :end' >>confcache
19434if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19435  if test -w "$cache_file"; then
19436    if test "x$cache_file" != "x/dev/null"; then
19437      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19438$as_echo "$as_me: updating cache $cache_file" >&6;}
19439      if test ! -f "$cache_file" || test -h "$cache_file"; then
19440	cat confcache >"$cache_file"
19441      else
19442        case $cache_file in #(
19443        */* | ?:*)
19444	  mv -f confcache "$cache_file"$$ &&
19445	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19446        *)
19447	  mv -f confcache "$cache_file" ;;
19448	esac
19449      fi
19450    fi
19451  else
19452    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19453$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19454  fi
19455fi
19456rm -f confcache
19457
19458test "x$prefix" = xNONE && prefix=$ac_default_prefix
19459# Let make expand exec_prefix.
19460test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19461
19462DEFS=-DHAVE_CONFIG_H
19463
19464ac_libobjs=
19465ac_ltlibobjs=
19466U=
19467for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19468  # 1. Remove the extension, and $U if already installed.
19469  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19470  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19471  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19472  #    will be set to the directory where LIBOBJS objects are built.
19473  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19474  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19475done
19476LIBOBJS=$ac_libobjs
19477
19478LTLIBOBJS=$ac_ltlibobjs
19479
19480
19481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19482$as_echo_n "checking that generated files are newer than configure... " >&6; }
19483   if test -n "$am_sleep_pid"; then
19484     # Hide warnings about reused PIDs.
19485     wait $am_sleep_pid 2>/dev/null
19486   fi
19487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19488$as_echo "done" >&6; }
19489 if test -n "$EXEEXT"; then
19490  am__EXEEXT_TRUE=
19491  am__EXEEXT_FALSE='#'
19492else
19493  am__EXEEXT_TRUE='#'
19494  am__EXEEXT_FALSE=
19495fi
19496
19497if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19498  as_fn_error $? "conditional \"AMDEP\" was never defined.
19499Usually this means the macro was only invoked conditionally." "$LINENO" 5
19500fi
19501if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19502  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19503Usually this means the macro was only invoked conditionally." "$LINENO" 5
19504fi
19505if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19506  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19507Usually this means the macro was only invoked conditionally." "$LINENO" 5
19508fi
19509if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19510  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19511Usually this means the macro was only invoked conditionally." "$LINENO" 5
19512fi
19513if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19514  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19515Usually this means the macro was only invoked conditionally." "$LINENO" 5
19516fi
19517if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
19518  as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
19519Usually this means the macro was only invoked conditionally." "$LINENO" 5
19520fi
19521if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
19522  as_fn_error $? "conditional \"MIPS\" was never defined.
19523Usually this means the macro was only invoked conditionally." "$LINENO" 5
19524fi
19525if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
19526  as_fn_error $? "conditional \"BFIN\" was never defined.
19527Usually this means the macro was only invoked conditionally." "$LINENO" 5
19528fi
19529if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
19530  as_fn_error $? "conditional \"SPARC\" was never defined.
19531Usually this means the macro was only invoked conditionally." "$LINENO" 5
19532fi
19533if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
19534  as_fn_error $? "conditional \"X86\" was never defined.
19535Usually this means the macro was only invoked conditionally." "$LINENO" 5
19536fi
19537if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
19538  as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
19539Usually this means the macro was only invoked conditionally." "$LINENO" 5
19540fi
19541if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
19542  as_fn_error $? "conditional \"X86_WIN32\" was never defined.
19543Usually this means the macro was only invoked conditionally." "$LINENO" 5
19544fi
19545if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
19546  as_fn_error $? "conditional \"X86_WIN64\" was never defined.
19547Usually this means the macro was only invoked conditionally." "$LINENO" 5
19548fi
19549if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
19550  as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
19551Usually this means the macro was only invoked conditionally." "$LINENO" 5
19552fi
19553if test -z "${X86_DARWIN32_TRUE}" && test -z "${X86_DARWIN32_FALSE}"; then
19554  as_fn_error $? "conditional \"X86_DARWIN32\" was never defined.
19555Usually this means the macro was only invoked conditionally." "$LINENO" 5
19556fi
19557if test -z "${X86_DARWIN64_TRUE}" && test -z "${X86_DARWIN64_FALSE}"; then
19558  as_fn_error $? "conditional \"X86_DARWIN64\" was never defined.
19559Usually this means the macro was only invoked conditionally." "$LINENO" 5
19560fi
19561if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
19562  as_fn_error $? "conditional \"ALPHA\" was never defined.
19563Usually this means the macro was only invoked conditionally." "$LINENO" 5
19564fi
19565if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
19566  as_fn_error $? "conditional \"IA64\" was never defined.
19567Usually this means the macro was only invoked conditionally." "$LINENO" 5
19568fi
19569if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
19570  as_fn_error $? "conditional \"M32R\" was never defined.
19571Usually this means the macro was only invoked conditionally." "$LINENO" 5
19572fi
19573if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
19574  as_fn_error $? "conditional \"M68K\" was never defined.
19575Usually this means the macro was only invoked conditionally." "$LINENO" 5
19576fi
19577if test -z "${M88K_TRUE}" && test -z "${M88K_FALSE}"; then
19578  as_fn_error $? "conditional \"M88K\" was never defined.
19579Usually this means the macro was only invoked conditionally." "$LINENO" 5
19580fi
19581if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
19582  as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
19583Usually this means the macro was only invoked conditionally." "$LINENO" 5
19584fi
19585if test -z "${METAG_TRUE}" && test -z "${METAG_FALSE}"; then
19586  as_fn_error $? "conditional \"METAG\" was never defined.
19587Usually this means the macro was only invoked conditionally." "$LINENO" 5
19588fi
19589if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
19590  as_fn_error $? "conditional \"MOXIE\" was never defined.
19591Usually this means the macro was only invoked conditionally." "$LINENO" 5
19592fi
19593if test -z "${NIOS2_TRUE}" && test -z "${NIOS2_FALSE}"; then
19594  as_fn_error $? "conditional \"NIOS2\" was never defined.
19595Usually this means the macro was only invoked conditionally." "$LINENO" 5
19596fi
19597if test -z "${OR1K_TRUE}" && test -z "${OR1K_FALSE}"; then
19598  as_fn_error $? "conditional \"OR1K\" was never defined.
19599Usually this means the macro was only invoked conditionally." "$LINENO" 5
19600fi
19601if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
19602  as_fn_error $? "conditional \"POWERPC\" was never defined.
19603Usually this means the macro was only invoked conditionally." "$LINENO" 5
19604fi
19605if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
19606  as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
19607Usually this means the macro was only invoked conditionally." "$LINENO" 5
19608fi
19609if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
19610  as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
19611Usually this means the macro was only invoked conditionally." "$LINENO" 5
19612fi
19613if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
19614  as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
19615Usually this means the macro was only invoked conditionally." "$LINENO" 5
19616fi
19617if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
19618  as_fn_error $? "conditional \"AARCH64\" was never defined.
19619Usually this means the macro was only invoked conditionally." "$LINENO" 5
19620fi
19621if test -z "${ARC_TRUE}" && test -z "${ARC_FALSE}"; then
19622  as_fn_error $? "conditional \"ARC\" was never defined.
19623Usually this means the macro was only invoked conditionally." "$LINENO" 5
19624fi
19625if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
19626  as_fn_error $? "conditional \"ARM\" was never defined.
19627Usually this means the macro was only invoked conditionally." "$LINENO" 5
19628fi
19629if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
19630  as_fn_error $? "conditional \"AVR32\" was never defined.
19631Usually this means the macro was only invoked conditionally." "$LINENO" 5
19632fi
19633if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
19634  as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
19635Usually this means the macro was only invoked conditionally." "$LINENO" 5
19636fi
19637if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
19638  as_fn_error $? "conditional \"FRV\" was never defined.
19639Usually this means the macro was only invoked conditionally." "$LINENO" 5
19640fi
19641if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
19642  as_fn_error $? "conditional \"S390\" was never defined.
19643Usually this means the macro was only invoked conditionally." "$LINENO" 5
19644fi
19645if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
19646  as_fn_error $? "conditional \"X86_64\" was never defined.
19647Usually this means the macro was only invoked conditionally." "$LINENO" 5
19648fi
19649if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
19650  as_fn_error $? "conditional \"SH\" was never defined.
19651Usually this means the macro was only invoked conditionally." "$LINENO" 5
19652fi
19653if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
19654  as_fn_error $? "conditional \"SH64\" was never defined.
19655Usually this means the macro was only invoked conditionally." "$LINENO" 5
19656fi
19657if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
19658  as_fn_error $? "conditional \"PA_LINUX\" was never defined.
19659Usually this means the macro was only invoked conditionally." "$LINENO" 5
19660fi
19661if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
19662  as_fn_error $? "conditional \"PA_HPUX\" was never defined.
19663Usually this means the macro was only invoked conditionally." "$LINENO" 5
19664fi
19665if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
19666  as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
19667Usually this means the macro was only invoked conditionally." "$LINENO" 5
19668fi
19669if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
19670  as_fn_error $? "conditional \"TILE\" was never defined.
19671Usually this means the macro was only invoked conditionally." "$LINENO" 5
19672fi
19673if test -z "${VAX_TRUE}" && test -z "${VAX_FALSE}"; then
19674  as_fn_error $? "conditional \"VAX\" was never defined.
19675Usually this means the macro was only invoked conditionally." "$LINENO" 5
19676fi
19677if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
19678  as_fn_error $? "conditional \"XTENSA\" was never defined.
19679Usually this means the macro was only invoked conditionally." "$LINENO" 5
19680fi
19681
19682if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
19683  as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
19684Usually this means the macro was only invoked conditionally." "$LINENO" 5
19685fi
19686if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
19687  as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
19688Usually this means the macro was only invoked conditionally." "$LINENO" 5
19689fi
19690if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
19691  as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
19692Usually this means the macro was only invoked conditionally." "$LINENO" 5
19693fi
19694
19695: "${CONFIG_STATUS=./config.status}"
19696ac_write_fail=0
19697ac_clean_files_save=$ac_clean_files
19698ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19699{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19700$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19701as_write_fail=0
19702cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19703#! $SHELL
19704# Generated by $as_me.
19705# Run this file to recreate the current configuration.
19706# Compiler output produced by configure, useful for debugging
19707# configure, is in config.log if it exists.
19708
19709debug=false
19710ac_cs_recheck=false
19711ac_cs_silent=false
19712
19713SHELL=\${CONFIG_SHELL-$SHELL}
19714export SHELL
19715_ASEOF
19716cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19717## -------------------- ##
19718## M4sh Initialization. ##
19719## -------------------- ##
19720
19721# Be more Bourne compatible
19722DUALCASE=1; export DUALCASE # for MKS sh
19723if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19724  emulate sh
19725  NULLCMD=:
19726  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19727  # is contrary to our usage.  Disable this feature.
19728  alias -g '${1+"$@"}'='"$@"'
19729  setopt NO_GLOB_SUBST
19730else
19731  case `(set -o) 2>/dev/null` in #(
19732  *posix*) :
19733    set -o posix ;; #(
19734  *) :
19735     ;;
19736esac
19737fi
19738
19739
19740as_nl='
19741'
19742export as_nl
19743# Printing a long string crashes Solaris 7 /usr/bin/printf.
19744as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19745as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19746as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19747# Prefer a ksh shell builtin over an external printf program on Solaris,
19748# but without wasting forks for bash or zsh.
19749if test -z "$BASH_VERSION$ZSH_VERSION" \
19750    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19751  as_echo='print -r --'
19752  as_echo_n='print -rn --'
19753elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19754  as_echo='printf %s\n'
19755  as_echo_n='printf %s'
19756else
19757  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19758    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19759    as_echo_n='/usr/ucb/echo -n'
19760  else
19761    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19762    as_echo_n_body='eval
19763      arg=$1;
19764      case $arg in #(
19765      *"$as_nl"*)
19766	expr "X$arg" : "X\\(.*\\)$as_nl";
19767	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19768      esac;
19769      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19770    '
19771    export as_echo_n_body
19772    as_echo_n='sh -c $as_echo_n_body as_echo'
19773  fi
19774  export as_echo_body
19775  as_echo='sh -c $as_echo_body as_echo'
19776fi
19777
19778# The user is always right.
19779if test "${PATH_SEPARATOR+set}" != set; then
19780  PATH_SEPARATOR=:
19781  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19782    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19783      PATH_SEPARATOR=';'
19784  }
19785fi
19786
19787
19788# IFS
19789# We need space, tab and new line, in precisely that order.  Quoting is
19790# there to prevent editors from complaining about space-tab.
19791# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19792# splitting by setting IFS to empty value.)
19793IFS=" ""	$as_nl"
19794
19795# Find who we are.  Look in the path if we contain no directory separator.
19796as_myself=
19797case $0 in #((
19798  *[\\/]* ) as_myself=$0 ;;
19799  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19800for as_dir in $PATH
19801do
19802  IFS=$as_save_IFS
19803  test -z "$as_dir" && as_dir=.
19804    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19805  done
19806IFS=$as_save_IFS
19807
19808     ;;
19809esac
19810# We did not find ourselves, most probably we were run as `sh COMMAND'
19811# in which case we are not to be found in the path.
19812if test "x$as_myself" = x; then
19813  as_myself=$0
19814fi
19815if test ! -f "$as_myself"; then
19816  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19817  exit 1
19818fi
19819
19820# Unset variables that we do not need and which cause bugs (e.g. in
19821# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19822# suppresses any "Segmentation fault" message there.  '((' could
19823# trigger a bug in pdksh 5.2.14.
19824for as_var in BASH_ENV ENV MAIL MAILPATH
19825do eval test x\${$as_var+set} = xset \
19826  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19827done
19828PS1='$ '
19829PS2='> '
19830PS4='+ '
19831
19832# NLS nuisances.
19833LC_ALL=C
19834export LC_ALL
19835LANGUAGE=C
19836export LANGUAGE
19837
19838# CDPATH.
19839(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19840
19841
19842# as_fn_error STATUS ERROR [LINENO LOG_FD]
19843# ----------------------------------------
19844# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19845# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19846# script with STATUS, using 1 if that was 0.
19847as_fn_error ()
19848{
19849  as_status=$1; test $as_status -eq 0 && as_status=1
19850  if test "$4"; then
19851    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19852    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19853  fi
19854  $as_echo "$as_me: error: $2" >&2
19855  as_fn_exit $as_status
19856} # as_fn_error
19857
19858
19859# as_fn_set_status STATUS
19860# -----------------------
19861# Set $? to STATUS, without forking.
19862as_fn_set_status ()
19863{
19864  return $1
19865} # as_fn_set_status
19866
19867# as_fn_exit STATUS
19868# -----------------
19869# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19870as_fn_exit ()
19871{
19872  set +e
19873  as_fn_set_status $1
19874  exit $1
19875} # as_fn_exit
19876
19877# as_fn_unset VAR
19878# ---------------
19879# Portably unset VAR.
19880as_fn_unset ()
19881{
19882  { eval $1=; unset $1;}
19883}
19884as_unset=as_fn_unset
19885# as_fn_append VAR VALUE
19886# ----------------------
19887# Append the text in VALUE to the end of the definition contained in VAR. Take
19888# advantage of any shell optimizations that allow amortized linear growth over
19889# repeated appends, instead of the typical quadratic growth present in naive
19890# implementations.
19891if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19892  eval 'as_fn_append ()
19893  {
19894    eval $1+=\$2
19895  }'
19896else
19897  as_fn_append ()
19898  {
19899    eval $1=\$$1\$2
19900  }
19901fi # as_fn_append
19902
19903# as_fn_arith ARG...
19904# ------------------
19905# Perform arithmetic evaluation on the ARGs, and store the result in the
19906# global $as_val. Take advantage of shells that can avoid forks. The arguments
19907# must be portable across $(()) and expr.
19908if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19909  eval 'as_fn_arith ()
19910  {
19911    as_val=$(( $* ))
19912  }'
19913else
19914  as_fn_arith ()
19915  {
19916    as_val=`expr "$@" || test $? -eq 1`
19917  }
19918fi # as_fn_arith
19919
19920
19921if expr a : '\(a\)' >/dev/null 2>&1 &&
19922   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19923  as_expr=expr
19924else
19925  as_expr=false
19926fi
19927
19928if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19929  as_basename=basename
19930else
19931  as_basename=false
19932fi
19933
19934if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19935  as_dirname=dirname
19936else
19937  as_dirname=false
19938fi
19939
19940as_me=`$as_basename -- "$0" ||
19941$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19942	 X"$0" : 'X\(//\)$' \| \
19943	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19944$as_echo X/"$0" |
19945    sed '/^.*\/\([^/][^/]*\)\/*$/{
19946	    s//\1/
19947	    q
19948	  }
19949	  /^X\/\(\/\/\)$/{
19950	    s//\1/
19951	    q
19952	  }
19953	  /^X\/\(\/\).*/{
19954	    s//\1/
19955	    q
19956	  }
19957	  s/.*/./; q'`
19958
19959# Avoid depending upon Character Ranges.
19960as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19961as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19962as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19963as_cr_digits='0123456789'
19964as_cr_alnum=$as_cr_Letters$as_cr_digits
19965
19966ECHO_C= ECHO_N= ECHO_T=
19967case `echo -n x` in #(((((
19968-n*)
19969  case `echo 'xy\c'` in
19970  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19971  xy)  ECHO_C='\c';;
19972  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19973       ECHO_T='	';;
19974  esac;;
19975*)
19976  ECHO_N='-n';;
19977esac
19978
19979rm -f conf$$ conf$$.exe conf$$.file
19980if test -d conf$$.dir; then
19981  rm -f conf$$.dir/conf$$.file
19982else
19983  rm -f conf$$.dir
19984  mkdir conf$$.dir 2>/dev/null
19985fi
19986if (echo >conf$$.file) 2>/dev/null; then
19987  if ln -s conf$$.file conf$$ 2>/dev/null; then
19988    as_ln_s='ln -s'
19989    # ... but there are two gotchas:
19990    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19991    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19992    # In both cases, we have to default to `cp -pR'.
19993    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19994      as_ln_s='cp -pR'
19995  elif ln conf$$.file conf$$ 2>/dev/null; then
19996    as_ln_s=ln
19997  else
19998    as_ln_s='cp -pR'
19999  fi
20000else
20001  as_ln_s='cp -pR'
20002fi
20003rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20004rmdir conf$$.dir 2>/dev/null
20005
20006
20007# as_fn_mkdir_p
20008# -------------
20009# Create "$as_dir" as a directory, including parents if necessary.
20010as_fn_mkdir_p ()
20011{
20012
20013  case $as_dir in #(
20014  -*) as_dir=./$as_dir;;
20015  esac
20016  test -d "$as_dir" || eval $as_mkdir_p || {
20017    as_dirs=
20018    while :; do
20019      case $as_dir in #(
20020      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20021      *) as_qdir=$as_dir;;
20022      esac
20023      as_dirs="'$as_qdir' $as_dirs"
20024      as_dir=`$as_dirname -- "$as_dir" ||
20025$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20026	 X"$as_dir" : 'X\(//\)[^/]' \| \
20027	 X"$as_dir" : 'X\(//\)$' \| \
20028	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20029$as_echo X"$as_dir" |
20030    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20031	    s//\1/
20032	    q
20033	  }
20034	  /^X\(\/\/\)[^/].*/{
20035	    s//\1/
20036	    q
20037	  }
20038	  /^X\(\/\/\)$/{
20039	    s//\1/
20040	    q
20041	  }
20042	  /^X\(\/\).*/{
20043	    s//\1/
20044	    q
20045	  }
20046	  s/.*/./; q'`
20047      test -d "$as_dir" && break
20048    done
20049    test -z "$as_dirs" || eval "mkdir $as_dirs"
20050  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20051
20052
20053} # as_fn_mkdir_p
20054if mkdir -p . 2>/dev/null; then
20055  as_mkdir_p='mkdir -p "$as_dir"'
20056else
20057  test -d ./-p && rmdir ./-p
20058  as_mkdir_p=false
20059fi
20060
20061
20062# as_fn_executable_p FILE
20063# -----------------------
20064# Test if FILE is an executable regular file.
20065as_fn_executable_p ()
20066{
20067  test -f "$1" && test -x "$1"
20068} # as_fn_executable_p
20069as_test_x='test -x'
20070as_executable_p=as_fn_executable_p
20071
20072# Sed expression to map a string onto a valid CPP name.
20073as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20074
20075# Sed expression to map a string onto a valid variable name.
20076as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20077
20078
20079exec 6>&1
20080## ----------------------------------- ##
20081## Main body of $CONFIG_STATUS script. ##
20082## ----------------------------------- ##
20083_ASEOF
20084test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20085
20086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20087# Save the log message, to keep $0 and so on meaningful, and to
20088# report actual input values of CONFIG_FILES etc. instead of their
20089# values after options handling.
20090ac_log="
20091This file was extended by libffi $as_me 3.2.1, which was
20092generated by GNU Autoconf 2.69.  Invocation command line was
20093
20094  CONFIG_FILES    = $CONFIG_FILES
20095  CONFIG_HEADERS  = $CONFIG_HEADERS
20096  CONFIG_LINKS    = $CONFIG_LINKS
20097  CONFIG_COMMANDS = $CONFIG_COMMANDS
20098  $ $0 $@
20099
20100on `(hostname || uname -n) 2>/dev/null | sed 1q`
20101"
20102
20103_ACEOF
20104
20105case $ac_config_files in *"
20106"*) set x $ac_config_files; shift; ac_config_files=$*;;
20107esac
20108
20109case $ac_config_headers in *"
20110"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20111esac
20112
20113
20114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20115# Files that config.status was made for.
20116config_files="$ac_config_files"
20117config_headers="$ac_config_headers"
20118config_links="$ac_config_links"
20119config_commands="$ac_config_commands"
20120
20121_ACEOF
20122
20123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20124ac_cs_usage="\
20125\`$as_me' instantiates files and other configuration actions
20126from templates according to the current configuration.  Unless the files
20127and actions are specified as TAGs, all are instantiated by default.
20128
20129Usage: $0 [OPTION]... [TAG]...
20130
20131  -h, --help       print this help, then exit
20132  -V, --version    print version number and configuration settings, then exit
20133      --config     print configuration, then exit
20134  -q, --quiet, --silent
20135                   do not print progress messages
20136  -d, --debug      don't remove temporary files
20137      --recheck    update $as_me by reconfiguring in the same conditions
20138      --file=FILE[:TEMPLATE]
20139                   instantiate the configuration file FILE
20140      --header=FILE[:TEMPLATE]
20141                   instantiate the configuration header FILE
20142
20143Configuration files:
20144$config_files
20145
20146Configuration headers:
20147$config_headers
20148
20149Configuration links:
20150$config_links
20151
20152Configuration commands:
20153$config_commands
20154
20155Report bugs to <http://github.com/atgreen/libffi/issues>."
20156
20157_ACEOF
20158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20159ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20160ac_cs_version="\\
20161libffi config.status 3.2.1
20162configured by $0, generated by GNU Autoconf 2.69,
20163  with options \\"\$ac_cs_config\\"
20164
20165Copyright (C) 2012 Free Software Foundation, Inc.
20166This config.status script is free software; the Free Software Foundation
20167gives unlimited permission to copy, distribute and modify it."
20168
20169ac_pwd='$ac_pwd'
20170srcdir='$srcdir'
20171INSTALL='$INSTALL'
20172MKDIR_P='$MKDIR_P'
20173AWK='$AWK'
20174test -n "\$AWK" || AWK=awk
20175_ACEOF
20176
20177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20178# The default lists apply if the user does not specify any file.
20179ac_need_defaults=:
20180while test $# != 0
20181do
20182  case $1 in
20183  --*=?*)
20184    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20185    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20186    ac_shift=:
20187    ;;
20188  --*=)
20189    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20190    ac_optarg=
20191    ac_shift=:
20192    ;;
20193  *)
20194    ac_option=$1
20195    ac_optarg=$2
20196    ac_shift=shift
20197    ;;
20198  esac
20199
20200  case $ac_option in
20201  # Handling of the options.
20202  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20203    ac_cs_recheck=: ;;
20204  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20205    $as_echo "$ac_cs_version"; exit ;;
20206  --config | --confi | --conf | --con | --co | --c )
20207    $as_echo "$ac_cs_config"; exit ;;
20208  --debug | --debu | --deb | --de | --d | -d )
20209    debug=: ;;
20210  --file | --fil | --fi | --f )
20211    $ac_shift
20212    case $ac_optarg in
20213    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20214    '') as_fn_error $? "missing file argument" ;;
20215    esac
20216    as_fn_append CONFIG_FILES " '$ac_optarg'"
20217    ac_need_defaults=false;;
20218  --header | --heade | --head | --hea )
20219    $ac_shift
20220    case $ac_optarg in
20221    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20222    esac
20223    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20224    ac_need_defaults=false;;
20225  --he | --h)
20226    # Conflict between --help and --header
20227    as_fn_error $? "ambiguous option: \`$1'
20228Try \`$0 --help' for more information.";;
20229  --help | --hel | -h )
20230    $as_echo "$ac_cs_usage"; exit ;;
20231  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20232  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20233    ac_cs_silent=: ;;
20234
20235  # This is an error.
20236  -*) as_fn_error $? "unrecognized option: \`$1'
20237Try \`$0 --help' for more information." ;;
20238
20239  *) as_fn_append ac_config_targets " $1"
20240     ac_need_defaults=false ;;
20241
20242  esac
20243  shift
20244done
20245
20246ac_configure_extra_args=
20247
20248if $ac_cs_silent; then
20249  exec 6>/dev/null
20250  ac_configure_extra_args="$ac_configure_extra_args --silent"
20251fi
20252
20253_ACEOF
20254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20255if \$ac_cs_recheck; then
20256  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20257  shift
20258  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20259  CONFIG_SHELL='$SHELL'
20260  export CONFIG_SHELL
20261  exec "\$@"
20262fi
20263
20264_ACEOF
20265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20266exec 5>>config.log
20267{
20268  echo
20269  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20270## Running $as_me. ##
20271_ASBOX
20272  $as_echo "$ac_log"
20273} >&5
20274
20275_ACEOF
20276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20277#
20278# INIT-COMMANDS
20279#
20280ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
20281ax_enable_builddir_host="$HOST"                        # $HOST / $host
20282ax_enable_builddir_version="$VERSION"                  # $VERSION
20283ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
20284ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
20285ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
20286ax_enable_builddir="$ax_enable_builddir"               # $SUB
20287
20288AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20289
20290
20291# The HP-UX ksh and POSIX shell print the target directory to stdout
20292# if CDPATH is set.
20293(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20294
20295sed_quote_subst='$sed_quote_subst'
20296double_quote_subst='$double_quote_subst'
20297delay_variable_subst='$delay_variable_subst'
20298macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20299macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20300enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20301enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20302pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20303enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20304shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20305SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20306ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20307PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20308host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20309host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20310host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20311build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20312build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20313build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20314SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20315Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20316GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20317EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20318FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20319LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20320NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20321LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20322max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20323ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20324exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20325lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20326lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20327lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20328lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20329lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20330reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20331reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20332OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20333deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20334file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20335file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20336want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20337DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20338sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20339AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20340AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20341archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20342STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20343RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20344old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20345old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20346old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20347lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20348CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20349CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20350compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20351GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20352lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20353lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20354lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20355lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20356lt_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"`'
20357lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20358nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20359lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20360lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20361objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20362MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20363lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20364lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20365lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20366lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20367lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20368need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20369MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20370DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20371NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20372LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20373OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20374OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20375libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20376shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20377extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20378archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20379enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20380export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20381whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20382compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20383old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20384old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20385archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20386archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20387module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20388module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20389with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20390allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20391no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20392hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20393hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20394hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20395hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20396hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20397hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20398hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20399inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20400link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20401always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20402export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20403exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20404include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20405prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20406postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20407file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20408variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20409need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20410need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20411version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20412runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20413shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20414shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20415libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20416library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20417soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20418install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20419postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20420postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20421finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20422finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20423hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20424sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20425configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20426configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20427hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20428enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20429enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20430enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20431old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20432striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20433compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20434predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20435postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20436predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20437postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20438compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20439LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20440reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20441reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20442old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20443compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20444GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20445lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20446lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20447lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20448lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20449lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20450archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20451enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20452export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20453whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20454compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20455old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20456old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20457archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20458archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20459module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20460module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20461with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20462allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20463no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20464hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20465hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20466hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20467hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20468hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20469hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20470hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20471inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20472link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20473always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20474export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20475exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20476include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20477prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20478postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20479file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20480hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20481compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20482predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20483postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20484predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20485postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20486compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20487
20488LTCC='$LTCC'
20489LTCFLAGS='$LTCFLAGS'
20490compiler='$compiler_DEFAULT'
20491
20492# A function that is used when there is no print builtin or printf.
20493func_fallback_echo ()
20494{
20495  eval 'cat <<_LTECHO_EOF
20496\$1
20497_LTECHO_EOF'
20498}
20499
20500# Quote evaled strings.
20501for var in SHELL \
20502ECHO \
20503PATH_SEPARATOR \
20504SED \
20505GREP \
20506EGREP \
20507FGREP \
20508LD \
20509NM \
20510LN_S \
20511lt_SP2NL \
20512lt_NL2SP \
20513reload_flag \
20514OBJDUMP \
20515deplibs_check_method \
20516file_magic_cmd \
20517file_magic_glob \
20518want_nocaseglob \
20519DLLTOOL \
20520sharedlib_from_linklib_cmd \
20521AR \
20522AR_FLAGS \
20523archiver_list_spec \
20524STRIP \
20525RANLIB \
20526CC \
20527CFLAGS \
20528compiler \
20529lt_cv_sys_global_symbol_pipe \
20530lt_cv_sys_global_symbol_to_cdecl \
20531lt_cv_sys_global_symbol_to_import \
20532lt_cv_sys_global_symbol_to_c_name_address \
20533lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20534lt_cv_nm_interface \
20535nm_file_list_spec \
20536lt_cv_truncate_bin \
20537lt_prog_compiler_no_builtin_flag \
20538lt_prog_compiler_pic \
20539lt_prog_compiler_wl \
20540lt_prog_compiler_static \
20541lt_cv_prog_compiler_c_o \
20542need_locks \
20543MANIFEST_TOOL \
20544DSYMUTIL \
20545NMEDIT \
20546LIPO \
20547OTOOL \
20548OTOOL64 \
20549shrext_cmds \
20550export_dynamic_flag_spec \
20551whole_archive_flag_spec \
20552compiler_needs_object \
20553with_gnu_ld \
20554allow_undefined_flag \
20555no_undefined_flag \
20556hardcode_libdir_flag_spec \
20557hardcode_libdir_separator \
20558exclude_expsyms \
20559include_expsyms \
20560file_list_spec \
20561variables_saved_for_relink \
20562libname_spec \
20563library_names_spec \
20564soname_spec \
20565install_override_mode \
20566finish_eval \
20567old_striplib \
20568striplib \
20569compiler_lib_search_dirs \
20570predep_objects \
20571postdep_objects \
20572predeps \
20573postdeps \
20574compiler_lib_search_path \
20575LD_CXX \
20576reload_flag_CXX \
20577compiler_CXX \
20578lt_prog_compiler_no_builtin_flag_CXX \
20579lt_prog_compiler_pic_CXX \
20580lt_prog_compiler_wl_CXX \
20581lt_prog_compiler_static_CXX \
20582lt_cv_prog_compiler_c_o_CXX \
20583export_dynamic_flag_spec_CXX \
20584whole_archive_flag_spec_CXX \
20585compiler_needs_object_CXX \
20586with_gnu_ld_CXX \
20587allow_undefined_flag_CXX \
20588no_undefined_flag_CXX \
20589hardcode_libdir_flag_spec_CXX \
20590hardcode_libdir_separator_CXX \
20591exclude_expsyms_CXX \
20592include_expsyms_CXX \
20593file_list_spec_CXX \
20594compiler_lib_search_dirs_CXX \
20595predep_objects_CXX \
20596postdep_objects_CXX \
20597predeps_CXX \
20598postdeps_CXX \
20599compiler_lib_search_path_CXX; do
20600    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20601    *[\\\\\\\`\\"\\\$]*)
20602      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20603      ;;
20604    *)
20605      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20606      ;;
20607    esac
20608done
20609
20610# Double-quote double-evaled strings.
20611for var in reload_cmds \
20612old_postinstall_cmds \
20613old_postuninstall_cmds \
20614old_archive_cmds \
20615extract_expsyms_cmds \
20616old_archive_from_new_cmds \
20617old_archive_from_expsyms_cmds \
20618archive_cmds \
20619archive_expsym_cmds \
20620module_cmds \
20621module_expsym_cmds \
20622export_symbols_cmds \
20623prelink_cmds \
20624postlink_cmds \
20625postinstall_cmds \
20626postuninstall_cmds \
20627finish_cmds \
20628sys_lib_search_path_spec \
20629configure_time_dlsearch_path \
20630configure_time_lt_sys_library_path \
20631reload_cmds_CXX \
20632old_archive_cmds_CXX \
20633old_archive_from_new_cmds_CXX \
20634old_archive_from_expsyms_cmds_CXX \
20635archive_cmds_CXX \
20636archive_expsym_cmds_CXX \
20637module_cmds_CXX \
20638module_expsym_cmds_CXX \
20639export_symbols_cmds_CXX \
20640prelink_cmds_CXX \
20641postlink_cmds_CXX; do
20642    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20643    *[\\\\\\\`\\"\\\$]*)
20644      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20645      ;;
20646    *)
20647      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20648      ;;
20649    esac
20650done
20651
20652ac_aux_dir='$ac_aux_dir'
20653
20654# See if we are running on zsh, and set the options that allow our
20655# commands through without removal of \ escapes INIT.
20656if test -n "\${ZSH_VERSION+set}"; then
20657   setopt NO_GLOB_SUBST
20658fi
20659
20660
20661    PACKAGE='$PACKAGE'
20662    VERSION='$VERSION'
20663    RM='$RM'
20664    ofile='$ofile'
20665
20666
20667
20668
20669
20670TARGETDIR="$TARGETDIR"
20671
20672_ACEOF
20673
20674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20675
20676# Handling of arguments.
20677for ac_config_target in $ac_config_targets
20678do
20679  case $ac_config_target in
20680    "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
20681    "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
20682    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20683    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20684    "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
20685    "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
20686    "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
20687    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20688    "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
20689    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20690    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20691    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20692    "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
20693
20694  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20695  esac
20696done
20697
20698
20699# If the user did not use the arguments to specify the items to instantiate,
20700# then the envvar interface is used.  Set only those that are not.
20701# We use the long form for the default assignment because of an extremely
20702# bizarre bug on SunOS 4.1.3.
20703if $ac_need_defaults; then
20704  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20705  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20706  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20707  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20708fi
20709
20710# Have a temporary directory for convenience.  Make it in the build tree
20711# simply because there is no reason against having it here, and in addition,
20712# creating and moving files from /tmp can sometimes cause problems.
20713# Hook for its removal unless debugging.
20714# Note that there is a small window in which the directory will not be cleaned:
20715# after its creation but before its name has been assigned to `$tmp'.
20716$debug ||
20717{
20718  tmp= ac_tmp=
20719  trap 'exit_status=$?
20720  : "${ac_tmp:=$tmp}"
20721  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20722' 0
20723  trap 'as_fn_exit 1' 1 2 13 15
20724}
20725# Create a (secure) tmp directory for tmp files.
20726
20727{
20728  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20729  test -d "$tmp"
20730}  ||
20731{
20732  tmp=./conf$$-$RANDOM
20733  (umask 077 && mkdir "$tmp")
20734} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20735ac_tmp=$tmp
20736
20737# Set up the scripts for CONFIG_FILES section.
20738# No need to generate them if there are no CONFIG_FILES.
20739# This happens for instance with `./config.status config.h'.
20740if test -n "$CONFIG_FILES"; then
20741
20742
20743ac_cr=`echo X | tr X '\015'`
20744# On cygwin, bash can eat \r inside `` if the user requested igncr.
20745# But we know of no other shell where ac_cr would be empty at this
20746# point, so we can use a bashism as a fallback.
20747if test "x$ac_cr" = x; then
20748  eval ac_cr=\$\'\\r\'
20749fi
20750ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20751if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20752  ac_cs_awk_cr='\\r'
20753else
20754  ac_cs_awk_cr=$ac_cr
20755fi
20756
20757echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20758_ACEOF
20759
20760
20761{
20762  echo "cat >conf$$subs.awk <<_ACEOF" &&
20763  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20764  echo "_ACEOF"
20765} >conf$$subs.sh ||
20766  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20767ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20768ac_delim='%!_!# '
20769for ac_last_try in false false false false false :; do
20770  . ./conf$$subs.sh ||
20771    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20772
20773  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20774  if test $ac_delim_n = $ac_delim_num; then
20775    break
20776  elif $ac_last_try; then
20777    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20778  else
20779    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20780  fi
20781done
20782rm -f conf$$subs.sh
20783
20784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20785cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20786_ACEOF
20787sed -n '
20788h
20789s/^/S["/; s/!.*/"]=/
20790p
20791g
20792s/^[^!]*!//
20793:repl
20794t repl
20795s/'"$ac_delim"'$//
20796t delim
20797:nl
20798h
20799s/\(.\{148\}\)..*/\1/
20800t more1
20801s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20802p
20803n
20804b repl
20805:more1
20806s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20807p
20808g
20809s/.\{148\}//
20810t nl
20811:delim
20812h
20813s/\(.\{148\}\)..*/\1/
20814t more2
20815s/["\\]/\\&/g; s/^/"/; s/$/"/
20816p
20817b
20818:more2
20819s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20820p
20821g
20822s/.\{148\}//
20823t delim
20824' <conf$$subs.awk | sed '
20825/^[^""]/{
20826  N
20827  s/\n//
20828}
20829' >>$CONFIG_STATUS || ac_write_fail=1
20830rm -f conf$$subs.awk
20831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20832_ACAWK
20833cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20834  for (key in S) S_is_set[key] = 1
20835  FS = ""
20836
20837}
20838{
20839  line = $ 0
20840  nfields = split(line, field, "@")
20841  substed = 0
20842  len = length(field[1])
20843  for (i = 2; i < nfields; i++) {
20844    key = field[i]
20845    keylen = length(key)
20846    if (S_is_set[key]) {
20847      value = S[key]
20848      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20849      len += length(value) + length(field[++i])
20850      substed = 1
20851    } else
20852      len += 1 + keylen
20853  }
20854
20855  print line
20856}
20857
20858_ACAWK
20859_ACEOF
20860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20861if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20862  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20863else
20864  cat
20865fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20866  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20867_ACEOF
20868
20869# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20870# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20871# trailing colons and then remove the whole line if VPATH becomes empty
20872# (actually we leave an empty line to preserve line numbers).
20873if test "x$srcdir" = x.; then
20874  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20875h
20876s///
20877s/^/:/
20878s/[	 ]*$/:/
20879s/:\$(srcdir):/:/g
20880s/:\${srcdir}:/:/g
20881s/:@srcdir@:/:/g
20882s/^:*//
20883s/:*$//
20884x
20885s/\(=[	 ]*\).*/\1/
20886G
20887s/\n//
20888s/^[^=]*=[	 ]*$//
20889}'
20890fi
20891
20892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20893fi # test -n "$CONFIG_FILES"
20894
20895# Set up the scripts for CONFIG_HEADERS section.
20896# No need to generate them if there are no CONFIG_HEADERS.
20897# This happens for instance with `./config.status Makefile'.
20898if test -n "$CONFIG_HEADERS"; then
20899cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20900BEGIN {
20901_ACEOF
20902
20903# Transform confdefs.h into an awk script `defines.awk', embedded as
20904# here-document in config.status, that substitutes the proper values into
20905# config.h.in to produce config.h.
20906
20907# Create a delimiter string that does not exist in confdefs.h, to ease
20908# handling of long lines.
20909ac_delim='%!_!# '
20910for ac_last_try in false false :; do
20911  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20912  if test -z "$ac_tt"; then
20913    break
20914  elif $ac_last_try; then
20915    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20916  else
20917    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20918  fi
20919done
20920
20921# For the awk script, D is an array of macro values keyed by name,
20922# likewise P contains macro parameters if any.  Preserve backslash
20923# newline sequences.
20924
20925ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20926sed -n '
20927s/.\{148\}/&'"$ac_delim"'/g
20928t rset
20929:rset
20930s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20931t def
20932d
20933:def
20934s/\\$//
20935t bsnl
20936s/["\\]/\\&/g
20937s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20938D["\1"]=" \3"/p
20939s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20940d
20941:bsnl
20942s/["\\]/\\&/g
20943s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20944D["\1"]=" \3\\\\\\n"\\/p
20945t cont
20946s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20947t cont
20948d
20949:cont
20950n
20951s/.\{148\}/&'"$ac_delim"'/g
20952t clear
20953:clear
20954s/\\$//
20955t bsnlc
20956s/["\\]/\\&/g; s/^/"/; s/$/"/p
20957d
20958:bsnlc
20959s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20960b cont
20961' <confdefs.h | sed '
20962s/'"$ac_delim"'/"\\\
20963"/g' >>$CONFIG_STATUS || ac_write_fail=1
20964
20965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20966  for (key in D) D_is_set[key] = 1
20967  FS = ""
20968}
20969/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20970  line = \$ 0
20971  split(line, arg, " ")
20972  if (arg[1] == "#") {
20973    defundef = arg[2]
20974    mac1 = arg[3]
20975  } else {
20976    defundef = substr(arg[1], 2)
20977    mac1 = arg[2]
20978  }
20979  split(mac1, mac2, "(") #)
20980  macro = mac2[1]
20981  prefix = substr(line, 1, index(line, defundef) - 1)
20982  if (D_is_set[macro]) {
20983    # Preserve the white space surrounding the "#".
20984    print prefix "define", macro P[macro] D[macro]
20985    next
20986  } else {
20987    # Replace #undef with comments.  This is necessary, for example,
20988    # in the case of _POSIX_SOURCE, which is predefined and required
20989    # on some systems where configure will not decide to define it.
20990    if (defundef == "undef") {
20991      print "/*", prefix defundef, macro, "*/"
20992      next
20993    }
20994  }
20995}
20996{ print }
20997_ACAWK
20998_ACEOF
20999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21000  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21001fi # test -n "$CONFIG_HEADERS"
21002
21003
21004eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
21005shift
21006for ac_tag
21007do
21008  case $ac_tag in
21009  :[FHLC]) ac_mode=$ac_tag; continue;;
21010  esac
21011  case $ac_mode$ac_tag in
21012  :[FHL]*:*);;
21013  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21014  :[FH]-) ac_tag=-:-;;
21015  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21016  esac
21017  ac_save_IFS=$IFS
21018  IFS=:
21019  set x $ac_tag
21020  IFS=$ac_save_IFS
21021  shift
21022  ac_file=$1
21023  shift
21024
21025  case $ac_mode in
21026  :L) ac_source=$1;;
21027  :[FH])
21028    ac_file_inputs=
21029    for ac_f
21030    do
21031      case $ac_f in
21032      -) ac_f="$ac_tmp/stdin";;
21033      *) # Look for the file first in the build tree, then in the source tree
21034	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21035	 # because $ac_f cannot contain `:'.
21036	 test -f "$ac_f" ||
21037	   case $ac_f in
21038	   [\\/$]*) false;;
21039	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21040	   esac ||
21041	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21042      esac
21043      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21044      as_fn_append ac_file_inputs " '$ac_f'"
21045    done
21046
21047    # Let's still pretend it is `configure' which instantiates (i.e., don't
21048    # use $as_me), people would be surprised to read:
21049    #    /* config.h.  Generated by config.status.  */
21050    configure_input='Generated from '`
21051	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21052	`' by configure.'
21053    if test x"$ac_file" != x-; then
21054      configure_input="$ac_file.  $configure_input"
21055      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21056$as_echo "$as_me: creating $ac_file" >&6;}
21057    fi
21058    # Neutralize special characters interpreted by sed in replacement strings.
21059    case $configure_input in #(
21060    *\&* | *\|* | *\\* )
21061       ac_sed_conf_input=`$as_echo "$configure_input" |
21062       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21063    *) ac_sed_conf_input=$configure_input;;
21064    esac
21065
21066    case $ac_tag in
21067    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21068      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21069    esac
21070    ;;
21071  esac
21072
21073  ac_dir=`$as_dirname -- "$ac_file" ||
21074$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21075	 X"$ac_file" : 'X\(//\)[^/]' \| \
21076	 X"$ac_file" : 'X\(//\)$' \| \
21077	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21078$as_echo X"$ac_file" |
21079    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21080	    s//\1/
21081	    q
21082	  }
21083	  /^X\(\/\/\)[^/].*/{
21084	    s//\1/
21085	    q
21086	  }
21087	  /^X\(\/\/\)$/{
21088	    s//\1/
21089	    q
21090	  }
21091	  /^X\(\/\).*/{
21092	    s//\1/
21093	    q
21094	  }
21095	  s/.*/./; q'`
21096  as_dir="$ac_dir"; as_fn_mkdir_p
21097  ac_builddir=.
21098
21099case "$ac_dir" in
21100.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21101*)
21102  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21103  # A ".." for each directory in $ac_dir_suffix.
21104  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21105  case $ac_top_builddir_sub in
21106  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21107  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21108  esac ;;
21109esac
21110ac_abs_top_builddir=$ac_pwd
21111ac_abs_builddir=$ac_pwd$ac_dir_suffix
21112# for backward compatibility:
21113ac_top_builddir=$ac_top_build_prefix
21114
21115case $srcdir in
21116  .)  # We are building in place.
21117    ac_srcdir=.
21118    ac_top_srcdir=$ac_top_builddir_sub
21119    ac_abs_top_srcdir=$ac_pwd ;;
21120  [\\/]* | ?:[\\/]* )  # Absolute name.
21121    ac_srcdir=$srcdir$ac_dir_suffix;
21122    ac_top_srcdir=$srcdir
21123    ac_abs_top_srcdir=$srcdir ;;
21124  *) # Relative name.
21125    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21126    ac_top_srcdir=$ac_top_build_prefix$srcdir
21127    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21128esac
21129ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21130
21131
21132  case $ac_mode in
21133  :F)
21134  #
21135  # CONFIG_FILE
21136  #
21137
21138  case $INSTALL in
21139  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21140  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21141  esac
21142  ac_MKDIR_P=$MKDIR_P
21143  case $MKDIR_P in
21144  [\\/$]* | ?:[\\/]* ) ;;
21145  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21146  esac
21147_ACEOF
21148
21149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21150# If the template does not know about datarootdir, expand it.
21151# FIXME: This hack should be removed a few years after 2.60.
21152ac_datarootdir_hack=; ac_datarootdir_seen=
21153ac_sed_dataroot='
21154/datarootdir/ {
21155  p
21156  q
21157}
21158/@datadir@/p
21159/@docdir@/p
21160/@infodir@/p
21161/@localedir@/p
21162/@mandir@/p'
21163case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21164*datarootdir*) ac_datarootdir_seen=yes;;
21165*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21166  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21167$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21168_ACEOF
21169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21170  ac_datarootdir_hack='
21171  s&@datadir@&$datadir&g
21172  s&@docdir@&$docdir&g
21173  s&@infodir@&$infodir&g
21174  s&@localedir@&$localedir&g
21175  s&@mandir@&$mandir&g
21176  s&\\\${datarootdir}&$datarootdir&g' ;;
21177esac
21178_ACEOF
21179
21180# Neutralize VPATH when `$srcdir' = `.'.
21181# Shell code in configure.ac might set extrasub.
21182# FIXME: do we really want to maintain this feature?
21183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21184ac_sed_extra="$ac_vpsub
21185$extrasub
21186_ACEOF
21187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21188:t
21189/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21190s|@configure_input@|$ac_sed_conf_input|;t t
21191s&@top_builddir@&$ac_top_builddir_sub&;t t
21192s&@top_build_prefix@&$ac_top_build_prefix&;t t
21193s&@srcdir@&$ac_srcdir&;t t
21194s&@abs_srcdir@&$ac_abs_srcdir&;t t
21195s&@top_srcdir@&$ac_top_srcdir&;t t
21196s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21197s&@builddir@&$ac_builddir&;t t
21198s&@abs_builddir@&$ac_abs_builddir&;t t
21199s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21200s&@INSTALL@&$ac_INSTALL&;t t
21201s&@MKDIR_P@&$ac_MKDIR_P&;t t
21202$ac_datarootdir_hack
21203"
21204eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21205  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21206
21207test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21208  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21209  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21210      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21211  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21212which seems to be undefined.  Please make sure it is defined" >&5
21213$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21214which seems to be undefined.  Please make sure it is defined" >&2;}
21215
21216  rm -f "$ac_tmp/stdin"
21217  case $ac_file in
21218  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21219  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21220  esac \
21221  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21222 ;;
21223  :H)
21224  #
21225  # CONFIG_HEADER
21226  #
21227  if test x"$ac_file" != x-; then
21228    {
21229      $as_echo "/* $configure_input  */" \
21230      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21231    } >"$ac_tmp/config.h" \
21232      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21233    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21234      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21235$as_echo "$as_me: $ac_file is unchanged" >&6;}
21236    else
21237      rm -f "$ac_file"
21238      mv "$ac_tmp/config.h" "$ac_file" \
21239	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21240    fi
21241  else
21242    $as_echo "/* $configure_input  */" \
21243      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21244      || as_fn_error $? "could not create -" "$LINENO" 5
21245  fi
21246# Compute "$ac_file"'s index in $config_headers.
21247_am_arg="$ac_file"
21248_am_stamp_count=1
21249for _am_header in $config_headers :; do
21250  case $_am_header in
21251    $_am_arg | $_am_arg:* )
21252      break ;;
21253    * )
21254      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21255  esac
21256done
21257echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21258$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21259	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21260	 X"$_am_arg" : 'X\(//\)$' \| \
21261	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21262$as_echo X"$_am_arg" |
21263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21264	    s//\1/
21265	    q
21266	  }
21267	  /^X\(\/\/\)[^/].*/{
21268	    s//\1/
21269	    q
21270	  }
21271	  /^X\(\/\/\)$/{
21272	    s//\1/
21273	    q
21274	  }
21275	  /^X\(\/\).*/{
21276	    s//\1/
21277	    q
21278	  }
21279	  s/.*/./; q'`/stamp-h$_am_stamp_count
21280 ;;
21281  :L)
21282  #
21283  # CONFIG_LINK
21284  #
21285
21286  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
21287    :
21288  else
21289    # Prefer the file from the source tree if names are identical.
21290    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21291      ac_source=$srcdir/$ac_source
21292    fi
21293
21294    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21295$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21296
21297    if test ! -r "$ac_source"; then
21298      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21299    fi
21300    rm -f "$ac_file"
21301
21302    # Try a relative symlink, then a hard link, then a copy.
21303    case $ac_source in
21304    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21305	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21306    esac
21307    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21308      ln "$ac_source" "$ac_file" 2>/dev/null ||
21309      cp -p "$ac_source" "$ac_file" ||
21310      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21311  fi
21312 ;;
21313  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21314$as_echo "$as_me: executing $ac_file commands" >&6;}
21315 ;;
21316  esac
21317
21318
21319  case $ac_file$ac_mode in
21320    "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
21321  if test ".$ax_enable_builddir" = ".." ; then
21322    if test -f "$top_srcdir/Makefile" ; then
21323      { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
21324$as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
21325    else
21326      { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
21327$as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
21328    fi
21329  else
21330    if test -f "$ac_top_srcdir/Makefile" ; then
21331      a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
21332      test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
21333    fi
21334    if test -f "$ac_top_srcdir/Makefile" ; then
21335	echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
21336	echo "	@ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
21337      eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
21338      if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
21339      then rm $ac_top_srcdir/Makefile ; fi
21340      cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
21341    fi
21342    if test ! -f "$ac_top_srcdir/Makefile" ; then
21343      { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
21344$as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
21345      x='`' ; cat >$tmp/conftemp.sed <<_EOF
21346/^\$/n
21347x
21348/^\$/bS
21349x
21350/\\\\\$/{H;d;}
21351{H;s/.*//;x;}
21352bM
21353:S
21354x
21355/\\\\\$/{h;d;}
21356{h;s/.*//;x;}
21357:M
21358s/\\(\\n\\)	/\\1 /g
21359/^	/d
21360/^[	 ]*[\\#]/d
21361/^VPATH *=/d
21362s/^srcdir *=.*/srcdir = ./
21363s/^top_srcdir *=.*/top_srcdir = ./
21364/[:=]/!d
21365/^\\./d
21366/ = /b
21367/ .= /b
21368/:/!b
21369s/:.*/:/
21370s/ /  /g
21371s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
21372s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
21373s/  / /g
21374/^all all-all[ :]/i\\
21375all-configured : all-all
21376s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
21377/-all-all/d
21378a\\
21379	@ HOST="\$(HOST)\" \\\\\\
21380	; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
21381	; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
21382	; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
21383	; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
21384	; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
21385	; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
21386	; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
21387	; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
21388	; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
21389/dist-all *:/a\\
21390	@ HOST="\$(HOST)\" \\\\\\
21391	; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
21392	; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
21393	; found=$x echo \$\$BUILD | wc -w $x \\\\\\
21394	; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
21395	; if test "\$\$found" -eq "0" ; then : \\\\\\
21396	; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
21397	; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
21398	; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
21399	; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
21400/dist-[a-zA-Z0-9]*-all *:/a\\
21401	@ HOST="\$(HOST)\" \\\\\\
21402	; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
21403	; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
21404	; found=$x echo \$\$BUILD | wc -w $x \\\\\\
21405	; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
21406	; if test "\$\$found" -eq "0" ; then : \\\\\\
21407	; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
21408	; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
21409	; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
21410	; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
21411/distclean-all *:/a\\
21412	@ HOST="\$(HOST)\" \\\\\\
21413	; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
21414	; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
21415	; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
21416	; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
21417	; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
21418	; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
21419	; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
21420	; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
21421	; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
21422	; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
21423	; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
21424_EOF
21425      cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
21426      $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
21427      if test -f "$ac_top_srcdir/Makefile.mk" ; then
21428        { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
21429$as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
21430        cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
21431      fi ; xxxx="####"
21432      echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
21433      # sanity check
21434      if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
21435        { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
21436$as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
21437        $ax_enable_builddir_sed -e '/^@ HOST=/s/^/	/' -e '/^; /s/^/	/' $ac_top_srcdir/Makefile \
21438          >$ac_top_srcdir/Makefile~
21439        (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
21440      fi
21441    else
21442      xxxx="\\#\\#\\#\\#"
21443      # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
21444      echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
21445      $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
21446        cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
21447        cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
21448      if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
21449        { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
21450$as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
21451        rm "$tmp/mkfile.tmp"
21452      else
21453        { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
21454$as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
21455        mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
21456      fi
21457    fi
21458    { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
21459$as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
21460    xxxx="####"
21461    echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
21462  fi
21463 ;;
21464    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21465  # Older Autoconf quotes --file arguments for eval, but not when files
21466  # are listed without --file.  Let's play safe and only enable the eval
21467  # if we detect the quoting.
21468  case $CONFIG_FILES in
21469  *\'*) eval set x "$CONFIG_FILES" ;;
21470  *)   set x $CONFIG_FILES ;;
21471  esac
21472  shift
21473  for mf
21474  do
21475    # Strip MF so we end up with the name of the file.
21476    mf=`echo "$mf" | sed -e 's/:.*$//'`
21477    # Check whether this is an Automake generated Makefile or not.
21478    # We used to match only the files named 'Makefile.in', but
21479    # some people rename them; so instead we look at the file content.
21480    # Grep'ing the first line is not enough: some people post-process
21481    # each Makefile.in and add a new line on top of each file to say so.
21482    # Grep'ing the whole file is not good either: AIX grep has a line
21483    # limit of 2048, but all sed's we know have understand at least 4000.
21484    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21485      dirpart=`$as_dirname -- "$mf" ||
21486$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21487	 X"$mf" : 'X\(//\)[^/]' \| \
21488	 X"$mf" : 'X\(//\)$' \| \
21489	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21490$as_echo X"$mf" |
21491    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21492	    s//\1/
21493	    q
21494	  }
21495	  /^X\(\/\/\)[^/].*/{
21496	    s//\1/
21497	    q
21498	  }
21499	  /^X\(\/\/\)$/{
21500	    s//\1/
21501	    q
21502	  }
21503	  /^X\(\/\).*/{
21504	    s//\1/
21505	    q
21506	  }
21507	  s/.*/./; q'`
21508    else
21509      continue
21510    fi
21511    # Extract the definition of DEPDIR, am__include, and am__quote
21512    # from the Makefile without running 'make'.
21513    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21514    test -z "$DEPDIR" && continue
21515    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21516    test -z "$am__include" && continue
21517    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21518    # Find all dependency output files, they are included files with
21519    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21520    # simplest approach to changing $(DEPDIR) to its actual value in the
21521    # expansion.
21522    for file in `sed -n "
21523      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21524	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21525      # Make sure the directory exists.
21526      test -f "$dirpart/$file" && continue
21527      fdir=`$as_dirname -- "$file" ||
21528$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21529	 X"$file" : 'X\(//\)[^/]' \| \
21530	 X"$file" : 'X\(//\)$' \| \
21531	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21532$as_echo X"$file" |
21533    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21534	    s//\1/
21535	    q
21536	  }
21537	  /^X\(\/\/\)[^/].*/{
21538	    s//\1/
21539	    q
21540	  }
21541	  /^X\(\/\/\)$/{
21542	    s//\1/
21543	    q
21544	  }
21545	  /^X\(\/\).*/{
21546	    s//\1/
21547	    q
21548	  }
21549	  s/.*/./; q'`
21550      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21551      # echo "creating $dirpart/$file"
21552      echo '# dummy' > "$dirpart/$file"
21553    done
21554  done
21555}
21556 ;;
21557    "libtool":C)
21558
21559    # See if we are running on zsh, and set the options that allow our
21560    # commands through without removal of \ escapes.
21561    if test -n "${ZSH_VERSION+set}"; then
21562      setopt NO_GLOB_SUBST
21563    fi
21564
21565    cfgfile=${ofile}T
21566    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21567    $RM "$cfgfile"
21568
21569    cat <<_LT_EOF >> "$cfgfile"
21570#! $SHELL
21571# Generated automatically by $as_me ($PACKAGE) $VERSION
21572# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21573
21574# Provide generalized library-building support services.
21575# Written by Gordon Matzigkeit, 1996
21576
21577# Copyright (C) 2014 Free Software Foundation, Inc.
21578# This is free software; see the source for copying conditions.  There is NO
21579# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21580
21581# GNU Libtool is free software; you can redistribute it and/or modify
21582# it under the terms of the GNU General Public License as published by
21583# the Free Software Foundation; either version 2 of of the License, or
21584# (at your option) any later version.
21585#
21586# As a special exception to the GNU General Public License, if you
21587# distribute this file as part of a program or library that is built
21588# using GNU Libtool, you may include this file under the  same
21589# distribution terms that you use for the rest of that program.
21590#
21591# GNU Libtool is distributed in the hope that it will be useful, but
21592# WITHOUT ANY WARRANTY; without even the implied warranty of
21593# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21594# GNU General Public License for more details.
21595#
21596# You should have received a copy of the GNU General Public License
21597# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21598
21599
21600# The names of the tagged configurations supported by this script.
21601available_tags='CXX '
21602
21603# Configured defaults for sys_lib_dlsearch_path munging.
21604: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21605
21606# ### BEGIN LIBTOOL CONFIG
21607
21608# Which release of libtool.m4 was used?
21609macro_version=$macro_version
21610macro_revision=$macro_revision
21611
21612# Whether or not to build shared libraries.
21613build_libtool_libs=$enable_shared
21614
21615# Whether or not to build static libraries.
21616build_old_libs=$enable_static
21617
21618# What type of objects to build.
21619pic_mode=$pic_mode
21620
21621# Whether or not to optimize for fast installation.
21622fast_install=$enable_fast_install
21623
21624# Shared archive member basename,for filename based shared library versioning on AIX.
21625shared_archive_member_spec=$shared_archive_member_spec
21626
21627# Shell to use when invoking shell scripts.
21628SHELL=$lt_SHELL
21629
21630# An echo program that protects backslashes.
21631ECHO=$lt_ECHO
21632
21633# The PATH separator for the build system.
21634PATH_SEPARATOR=$lt_PATH_SEPARATOR
21635
21636# The host system.
21637host_alias=$host_alias
21638host=$host
21639host_os=$host_os
21640
21641# The build system.
21642build_alias=$build_alias
21643build=$build
21644build_os=$build_os
21645
21646# A sed program that does not truncate output.
21647SED=$lt_SED
21648
21649# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21650Xsed="\$SED -e 1s/^X//"
21651
21652# A grep program that handles long lines.
21653GREP=$lt_GREP
21654
21655# An ERE matcher.
21656EGREP=$lt_EGREP
21657
21658# A literal string matcher.
21659FGREP=$lt_FGREP
21660
21661# A BSD- or MS-compatible name lister.
21662NM=$lt_NM
21663
21664# Whether we need soft or hard links.
21665LN_S=$lt_LN_S
21666
21667# What is the maximum length of a command?
21668max_cmd_len=$max_cmd_len
21669
21670# Object file suffix (normally "o").
21671objext=$ac_objext
21672
21673# Executable file suffix (normally "").
21674exeext=$exeext
21675
21676# whether the shell understands "unset".
21677lt_unset=$lt_unset
21678
21679# turn spaces into newlines.
21680SP2NL=$lt_lt_SP2NL
21681
21682# turn newlines into spaces.
21683NL2SP=$lt_lt_NL2SP
21684
21685# convert \$build file names to \$host format.
21686to_host_file_cmd=$lt_cv_to_host_file_cmd
21687
21688# convert \$build files to toolchain format.
21689to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21690
21691# An object symbol dumper.
21692OBJDUMP=$lt_OBJDUMP
21693
21694# Method to check whether dependent libraries are shared objects.
21695deplibs_check_method=$lt_deplibs_check_method
21696
21697# Command to use when deplibs_check_method = "file_magic".
21698file_magic_cmd=$lt_file_magic_cmd
21699
21700# How to find potential files when deplibs_check_method = "file_magic".
21701file_magic_glob=$lt_file_magic_glob
21702
21703# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21704want_nocaseglob=$lt_want_nocaseglob
21705
21706# DLL creation program.
21707DLLTOOL=$lt_DLLTOOL
21708
21709# Command to associate shared and link libraries.
21710sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21711
21712# The archiver.
21713AR=$lt_AR
21714
21715# Flags to create an archive.
21716AR_FLAGS=$lt_AR_FLAGS
21717
21718# How to feed a file listing to the archiver.
21719archiver_list_spec=$lt_archiver_list_spec
21720
21721# A symbol stripping program.
21722STRIP=$lt_STRIP
21723
21724# Commands used to install an old-style archive.
21725RANLIB=$lt_RANLIB
21726old_postinstall_cmds=$lt_old_postinstall_cmds
21727old_postuninstall_cmds=$lt_old_postuninstall_cmds
21728
21729# Whether to use a lock for old archive extraction.
21730lock_old_archive_extraction=$lock_old_archive_extraction
21731
21732# A C compiler.
21733LTCC=$lt_CC
21734
21735# LTCC compiler flags.
21736LTCFLAGS=$lt_CFLAGS
21737
21738# Take the output of nm and produce a listing of raw symbols and C names.
21739global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21740
21741# Transform the output of nm in a proper C declaration.
21742global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21743
21744# Transform the output of nm into a list of symbols to manually relocate.
21745global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21746
21747# Transform the output of nm in a C name address pair.
21748global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21749
21750# Transform the output of nm in a C name address pair when lib prefix is needed.
21751global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21752
21753# The name lister interface.
21754nm_interface=$lt_lt_cv_nm_interface
21755
21756# Specify filename containing input files for \$NM.
21757nm_file_list_spec=$lt_nm_file_list_spec
21758
21759# The root where to search for dependent libraries,and where our libraries should be installed.
21760lt_sysroot=$lt_sysroot
21761
21762# Command to truncate a binary pipe.
21763lt_truncate_bin=$lt_lt_cv_truncate_bin
21764
21765# The name of the directory that contains temporary libtool files.
21766objdir=$objdir
21767
21768# Used to examine libraries when file_magic_cmd begins with "file".
21769MAGIC_CMD=$MAGIC_CMD
21770
21771# Must we lock files when doing compilation?
21772need_locks=$lt_need_locks
21773
21774# Manifest tool.
21775MANIFEST_TOOL=$lt_MANIFEST_TOOL
21776
21777# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21778DSYMUTIL=$lt_DSYMUTIL
21779
21780# Tool to change global to local symbols on Mac OS X.
21781NMEDIT=$lt_NMEDIT
21782
21783# Tool to manipulate fat objects and archives on Mac OS X.
21784LIPO=$lt_LIPO
21785
21786# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21787OTOOL=$lt_OTOOL
21788
21789# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21790OTOOL64=$lt_OTOOL64
21791
21792# Old archive suffix (normally "a").
21793libext=$libext
21794
21795# Shared library suffix (normally ".so").
21796shrext_cmds=$lt_shrext_cmds
21797
21798# The commands to extract the exported symbol list from a shared archive.
21799extract_expsyms_cmds=$lt_extract_expsyms_cmds
21800
21801# Variables whose values should be saved in libtool wrapper scripts and
21802# restored at link time.
21803variables_saved_for_relink=$lt_variables_saved_for_relink
21804
21805# Do we need the "lib" prefix for modules?
21806need_lib_prefix=$need_lib_prefix
21807
21808# Do we need a version for libraries?
21809need_version=$need_version
21810
21811# Library versioning type.
21812version_type=$version_type
21813
21814# Shared library runtime path variable.
21815runpath_var=$runpath_var
21816
21817# Shared library path variable.
21818shlibpath_var=$shlibpath_var
21819
21820# Is shlibpath searched before the hard-coded library search path?
21821shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21822
21823# Format of library name prefix.
21824libname_spec=$lt_libname_spec
21825
21826# List of archive names.  First name is the real one, the rest are links.
21827# The last name is the one that the linker finds with -lNAME
21828library_names_spec=$lt_library_names_spec
21829
21830# The coded name of the library, if different from the real name.
21831soname_spec=$lt_soname_spec
21832
21833# Permission mode override for installation of shared libraries.
21834install_override_mode=$lt_install_override_mode
21835
21836# Command to use after installation of a shared archive.
21837postinstall_cmds=$lt_postinstall_cmds
21838
21839# Command to use after uninstallation of a shared archive.
21840postuninstall_cmds=$lt_postuninstall_cmds
21841
21842# Commands used to finish a libtool library installation in a directory.
21843finish_cmds=$lt_finish_cmds
21844
21845# As "finish_cmds", except a single script fragment to be evaled but
21846# not shown.
21847finish_eval=$lt_finish_eval
21848
21849# Whether we should hardcode library paths into libraries.
21850hardcode_into_libs=$hardcode_into_libs
21851
21852# Compile-time system search path for libraries.
21853sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21854
21855# Detected run-time system search path for libraries.
21856sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21857
21858# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21859configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21860
21861# Whether dlopen is supported.
21862dlopen_support=$enable_dlopen
21863
21864# Whether dlopen of programs is supported.
21865dlopen_self=$enable_dlopen_self
21866
21867# Whether dlopen of statically linked programs is supported.
21868dlopen_self_static=$enable_dlopen_self_static
21869
21870# Commands to strip libraries.
21871old_striplib=$lt_old_striplib
21872striplib=$lt_striplib
21873
21874
21875# The linker used to build libraries.
21876LD=$lt_LD
21877
21878# How to create reloadable object files.
21879reload_flag=$lt_reload_flag
21880reload_cmds=$lt_reload_cmds
21881
21882# Commands used to build an old-style archive.
21883old_archive_cmds=$lt_old_archive_cmds
21884
21885# A language specific compiler.
21886CC=$lt_compiler
21887
21888# Is the compiler the GNU compiler?
21889with_gcc=$GCC
21890
21891# Compiler flag to turn off builtin functions.
21892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21893
21894# Additional compiler flags for building library objects.
21895pic_flag=$lt_lt_prog_compiler_pic
21896
21897# How to pass a linker flag through the compiler.
21898wl=$lt_lt_prog_compiler_wl
21899
21900# Compiler flag to prevent dynamic linking.
21901link_static_flag=$lt_lt_prog_compiler_static
21902
21903# Does compiler simultaneously support -c and -o options?
21904compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21905
21906# Whether or not to add -lc for building shared libraries.
21907build_libtool_need_lc=$archive_cmds_need_lc
21908
21909# Whether or not to disallow shared libs when runtime libs are static.
21910allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21911
21912# Compiler flag to allow reflexive dlopens.
21913export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21914
21915# Compiler flag to generate shared objects directly from archives.
21916whole_archive_flag_spec=$lt_whole_archive_flag_spec
21917
21918# Whether the compiler copes with passing no objects directly.
21919compiler_needs_object=$lt_compiler_needs_object
21920
21921# Create an old-style archive from a shared archive.
21922old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21923
21924# Create a temporary old-style archive to link instead of a shared archive.
21925old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21926
21927# Commands used to build a shared archive.
21928archive_cmds=$lt_archive_cmds
21929archive_expsym_cmds=$lt_archive_expsym_cmds
21930
21931# Commands used to build a loadable module if different from building
21932# a shared archive.
21933module_cmds=$lt_module_cmds
21934module_expsym_cmds=$lt_module_expsym_cmds
21935
21936# Whether we are building with GNU ld or not.
21937with_gnu_ld=$lt_with_gnu_ld
21938
21939# Flag that allows shared libraries with undefined symbols to be built.
21940allow_undefined_flag=$lt_allow_undefined_flag
21941
21942# Flag that enforces no undefined symbols.
21943no_undefined_flag=$lt_no_undefined_flag
21944
21945# Flag to hardcode \$libdir into a binary during linking.
21946# This must work even if \$libdir does not exist
21947hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21948
21949# Whether we need a single "-rpath" flag with a separated argument.
21950hardcode_libdir_separator=$lt_hardcode_libdir_separator
21951
21952# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21953# DIR into the resulting binary.
21954hardcode_direct=$hardcode_direct
21955
21956# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21957# DIR into the resulting binary and the resulting library dependency is
21958# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21959# library is relocated.
21960hardcode_direct_absolute=$hardcode_direct_absolute
21961
21962# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21963# into the resulting binary.
21964hardcode_minus_L=$hardcode_minus_L
21965
21966# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21967# into the resulting binary.
21968hardcode_shlibpath_var=$hardcode_shlibpath_var
21969
21970# Set to "yes" if building a shared library automatically hardcodes DIR
21971# into the library and all subsequent libraries and executables linked
21972# against it.
21973hardcode_automatic=$hardcode_automatic
21974
21975# Set to yes if linker adds runtime paths of dependent libraries
21976# to runtime path list.
21977inherit_rpath=$inherit_rpath
21978
21979# Whether libtool must link a program against all its dependency libraries.
21980link_all_deplibs=$link_all_deplibs
21981
21982# Set to "yes" if exported symbols are required.
21983always_export_symbols=$always_export_symbols
21984
21985# The commands to list exported symbols.
21986export_symbols_cmds=$lt_export_symbols_cmds
21987
21988# Symbols that should not be listed in the preloaded symbols.
21989exclude_expsyms=$lt_exclude_expsyms
21990
21991# Symbols that must always be exported.
21992include_expsyms=$lt_include_expsyms
21993
21994# Commands necessary for linking programs (against libraries) with templates.
21995prelink_cmds=$lt_prelink_cmds
21996
21997# Commands necessary for finishing linking programs.
21998postlink_cmds=$lt_postlink_cmds
21999
22000# Specify filename containing input files.
22001file_list_spec=$lt_file_list_spec
22002
22003# How to hardcode a shared library path into an executable.
22004hardcode_action=$hardcode_action
22005
22006# The directories searched by this compiler when creating a shared library.
22007compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22008
22009# Dependencies to place before and after the objects being linked to
22010# create a shared library.
22011predep_objects=$lt_predep_objects
22012postdep_objects=$lt_postdep_objects
22013predeps=$lt_predeps
22014postdeps=$lt_postdeps
22015
22016# The library search path used internally by the compiler when linking
22017# a shared library.
22018compiler_lib_search_path=$lt_compiler_lib_search_path
22019
22020# ### END LIBTOOL CONFIG
22021
22022_LT_EOF
22023
22024    cat <<'_LT_EOF' >> "$cfgfile"
22025
22026# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22027
22028# func_munge_path_list VARIABLE PATH
22029# -----------------------------------
22030# VARIABLE is name of variable containing _space_ separated list of
22031# directories to be munged by the contents of PATH, which is string
22032# having a format:
22033# "DIR[:DIR]:"
22034#       string "DIR[ DIR]" will be prepended to VARIABLE
22035# ":DIR[:DIR]"
22036#       string "DIR[ DIR]" will be appended to VARIABLE
22037# "DIRP[:DIRP]::[DIRA:]DIRA"
22038#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22039#       "DIRA[ DIRA]" will be appended to VARIABLE
22040# "DIR[:DIR]"
22041#       VARIABLE will be replaced by "DIR[ DIR]"
22042func_munge_path_list ()
22043{
22044    case x$2 in
22045    x)
22046        ;;
22047    *:)
22048        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22049        ;;
22050    x:*)
22051        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22052        ;;
22053    *::*)
22054        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22055        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22056        ;;
22057    *)
22058        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22059        ;;
22060    esac
22061}
22062
22063
22064# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22065func_cc_basename ()
22066{
22067    for cc_temp in $*""; do
22068      case $cc_temp in
22069        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22070        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22071        \-*) ;;
22072        *) break;;
22073      esac
22074    done
22075    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22076}
22077
22078
22079# ### END FUNCTIONS SHARED WITH CONFIGURE
22080
22081_LT_EOF
22082
22083  case $host_os in
22084  aix3*)
22085    cat <<\_LT_EOF >> "$cfgfile"
22086# AIX sometimes has problems with the GCC collect2 program.  For some
22087# reason, if we set the COLLECT_NAMES environment variable, the problems
22088# vanish in a puff of smoke.
22089if test set != "${COLLECT_NAMES+set}"; then
22090  COLLECT_NAMES=
22091  export COLLECT_NAMES
22092fi
22093_LT_EOF
22094    ;;
22095  esac
22096
22097
22098ltmain=$ac_aux_dir/ltmain.sh
22099
22100
22101  # We use sed instead of cat because bash on DJGPP gets confused if
22102  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22103  # text mode, it properly converts lines to CR/LF.  This bash problem
22104  # is reportedly fixed, but why not run on old versions too?
22105  sed '$q' "$ltmain" >> "$cfgfile" \
22106     || (rm -f "$cfgfile"; exit 1)
22107
22108   mv -f "$cfgfile" "$ofile" ||
22109    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22110  chmod +x "$ofile"
22111
22112
22113    cat <<_LT_EOF >> "$ofile"
22114
22115# ### BEGIN LIBTOOL TAG CONFIG: CXX
22116
22117# The linker used to build libraries.
22118LD=$lt_LD_CXX
22119
22120# How to create reloadable object files.
22121reload_flag=$lt_reload_flag_CXX
22122reload_cmds=$lt_reload_cmds_CXX
22123
22124# Commands used to build an old-style archive.
22125old_archive_cmds=$lt_old_archive_cmds_CXX
22126
22127# A language specific compiler.
22128CC=$lt_compiler_CXX
22129
22130# Is the compiler the GNU compiler?
22131with_gcc=$GCC_CXX
22132
22133# Compiler flag to turn off builtin functions.
22134no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22135
22136# Additional compiler flags for building library objects.
22137pic_flag=$lt_lt_prog_compiler_pic_CXX
22138
22139# How to pass a linker flag through the compiler.
22140wl=$lt_lt_prog_compiler_wl_CXX
22141
22142# Compiler flag to prevent dynamic linking.
22143link_static_flag=$lt_lt_prog_compiler_static_CXX
22144
22145# Does compiler simultaneously support -c and -o options?
22146compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22147
22148# Whether or not to add -lc for building shared libraries.
22149build_libtool_need_lc=$archive_cmds_need_lc_CXX
22150
22151# Whether or not to disallow shared libs when runtime libs are static.
22152allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22153
22154# Compiler flag to allow reflexive dlopens.
22155export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22156
22157# Compiler flag to generate shared objects directly from archives.
22158whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22159
22160# Whether the compiler copes with passing no objects directly.
22161compiler_needs_object=$lt_compiler_needs_object_CXX
22162
22163# Create an old-style archive from a shared archive.
22164old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22165
22166# Create a temporary old-style archive to link instead of a shared archive.
22167old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22168
22169# Commands used to build a shared archive.
22170archive_cmds=$lt_archive_cmds_CXX
22171archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22172
22173# Commands used to build a loadable module if different from building
22174# a shared archive.
22175module_cmds=$lt_module_cmds_CXX
22176module_expsym_cmds=$lt_module_expsym_cmds_CXX
22177
22178# Whether we are building with GNU ld or not.
22179with_gnu_ld=$lt_with_gnu_ld_CXX
22180
22181# Flag that allows shared libraries with undefined symbols to be built.
22182allow_undefined_flag=$lt_allow_undefined_flag_CXX
22183
22184# Flag that enforces no undefined symbols.
22185no_undefined_flag=$lt_no_undefined_flag_CXX
22186
22187# Flag to hardcode \$libdir into a binary during linking.
22188# This must work even if \$libdir does not exist
22189hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22190
22191# Whether we need a single "-rpath" flag with a separated argument.
22192hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22193
22194# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22195# DIR into the resulting binary.
22196hardcode_direct=$hardcode_direct_CXX
22197
22198# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22199# DIR into the resulting binary and the resulting library dependency is
22200# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22201# library is relocated.
22202hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22203
22204# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22205# into the resulting binary.
22206hardcode_minus_L=$hardcode_minus_L_CXX
22207
22208# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22209# into the resulting binary.
22210hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22211
22212# Set to "yes" if building a shared library automatically hardcodes DIR
22213# into the library and all subsequent libraries and executables linked
22214# against it.
22215hardcode_automatic=$hardcode_automatic_CXX
22216
22217# Set to yes if linker adds runtime paths of dependent libraries
22218# to runtime path list.
22219inherit_rpath=$inherit_rpath_CXX
22220
22221# Whether libtool must link a program against all its dependency libraries.
22222link_all_deplibs=$link_all_deplibs_CXX
22223
22224# Set to "yes" if exported symbols are required.
22225always_export_symbols=$always_export_symbols_CXX
22226
22227# The commands to list exported symbols.
22228export_symbols_cmds=$lt_export_symbols_cmds_CXX
22229
22230# Symbols that should not be listed in the preloaded symbols.
22231exclude_expsyms=$lt_exclude_expsyms_CXX
22232
22233# Symbols that must always be exported.
22234include_expsyms=$lt_include_expsyms_CXX
22235
22236# Commands necessary for linking programs (against libraries) with templates.
22237prelink_cmds=$lt_prelink_cmds_CXX
22238
22239# Commands necessary for finishing linking programs.
22240postlink_cmds=$lt_postlink_cmds_CXX
22241
22242# Specify filename containing input files.
22243file_list_spec=$lt_file_list_spec_CXX
22244
22245# How to hardcode a shared library path into an executable.
22246hardcode_action=$hardcode_action_CXX
22247
22248# The directories searched by this compiler when creating a shared library.
22249compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22250
22251# Dependencies to place before and after the objects being linked to
22252# create a shared library.
22253predep_objects=$lt_predep_objects_CXX
22254postdep_objects=$lt_postdep_objects_CXX
22255predeps=$lt_predeps_CXX
22256postdeps=$lt_postdeps_CXX
22257
22258# The library search path used internally by the compiler when linking
22259# a shared library.
22260compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22261
22262# ### END LIBTOOL TAG CONFIG: CXX
22263_LT_EOF
22264
22265 ;;
22266    "include":C) test -d include || mkdir include ;;
22267    "src":C)
22268test -d src || mkdir src
22269test -d src/$TARGETDIR || mkdir src/$TARGETDIR
22270 ;;
22271
22272  esac
22273done # for ac_tag
22274
22275
22276as_fn_exit 0
22277_ACEOF
22278ac_clean_files=$ac_clean_files_save
22279
22280test $ac_write_fail = 0 ||
22281  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22282
22283
22284# configure is writing to config.log, and then calls config.status.
22285# config.status does its own redirection, appending to config.log.
22286# Unfortunately, on DOS this fails, as config.log is still kept open
22287# by configure, so config.status won't be able to write to it; its
22288# output is simply discarded.  So we exec the FD to /dev/null,
22289# effectively closing config.log, so it can be properly (re)opened and
22290# appended to by config.status.  When coming back to configure, we
22291# need to make the FD available again.
22292if test "$no_create" != yes; then
22293  ac_cs_success=:
22294  ac_config_status_args=
22295  test "$silent" = yes &&
22296    ac_config_status_args="$ac_config_status_args --quiet"
22297  exec 5>/dev/null
22298  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22299  exec 5>>config.log
22300  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22301  # would make configure fail if this is the last instruction.
22302  $ac_cs_success || as_fn_exit 1
22303fi
22304if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22305  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22306$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22307fi
22308
22309