1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for isl-interface 0.
4#
5# Report bugs to <isl-development@googlegroups.com>.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: isl-development@googlegroups.com about your system,
279$0: 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='isl-interface'
592PACKAGE_TARNAME='isl-interface'
593PACKAGE_VERSION='0'
594PACKAGE_STRING='isl-interface 0'
595PACKAGE_BUGREPORT='isl-development@googlegroups.com'
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
638CONFIG_STATUS_DEPENDENCIES
639XCODE_SELECT
640LLVM_CONFIG
641CLANG_LIBS
642CLANG_RFLAG
643CLANG_LDFLAGS
644CLANG_CXXFLAGS
645LT_SYS_LIBRARY_PATH
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
651MANIFEST_TOOL
652RANLIB
653ac_ct_AR
654AR
655DLLTOOL
656OBJDUMP
657LN_S
658NM
659ac_ct_DUMPBIN
660DUMPBIN
661LD
662FGREP
663EGREP
664SED
665LIBTOOL
666HAVE_CXX11
667GREP
668CXXCPPFLAGS_FOR_BUILD
669CXXFLAGS_FOR_BUILD
670CXXCPP_FOR_BUILD
671ac_ct_CXX_FOR_BUILD
672CXX_FOR_BUILD
673host_os
674host_vendor
675host_cpu
676host
677CXXCPP
678LDFLAGS_FOR_BUILD
679CPPFLAGS_FOR_BUILD
680CFLAGS_FOR_BUILD
681BUILD_OBJEXT
682BUILD_EXEEXT
683CPP_FOR_BUILD
684ac_ct_CC_FOR_BUILD
685CC_FOR_BUILD
686build_os
687build_vendor
688build_cpu
689build
690CPP
691am__fastdepCC_FALSE
692am__fastdepCC_TRUE
693CCDEPMODE
694ac_ct_CC
695CFLAGS
696CC
697am__fastdepCXX_FALSE
698am__fastdepCXX_TRUE
699CXXDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__include
705DEPDIR
706OBJEXT
707EXEEXT
708ac_ct_CXX
709CPPFLAGS
710LDFLAGS
711CXXFLAGS
712CXX
713AM_BACKSLASH
714AM_DEFAULT_VERBOSITY
715AM_DEFAULT_V
716AM_V
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL
778am__quote'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_silent_rules
783enable_dependency_tracking
784enable_shared
785enable_static
786with_pic
787enable_fast_install
788with_aix_soname
789with_gnu_ld
790with_sysroot
791enable_libtool_lock
792'
793      ac_precious_vars='build_alias
794host_alias
795target_alias
796CXX
797CXXFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801CCC
802CC
803CFLAGS
804CPP
805CXXCPP
806LT_SYS_LIBRARY_PATH'
807
808
809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
812ac_unrecognized_opts=
813ac_unrecognized_sep=
814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
836# (The list follows the same order as the GNU Coding Standards.)
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
845includedir='${prefix}/include'
846oldincludedir='/usr/include'
847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848infodir='${datarootdir}/info'
849htmldir='${docdir}'
850dvidir='${docdir}'
851pdfdir='${docdir}'
852psdir='${docdir}'
853libdir='${exec_prefix}/lib'
854localedir='${datarootdir}/locale'
855mandir='${datarootdir}/man'
856
857ac_prev=
858ac_dashdash=
859for ac_option
860do
861  # If the previous option needs an argument, assign it.
862  if test -n "$ac_prev"; then
863    eval $ac_prev=\$ac_option
864    ac_prev=
865    continue
866  fi
867
868  case $ac_option in
869  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870  *=)   ac_optarg= ;;
871  *)    ac_optarg=yes ;;
872  esac
873
874  # Accept the important Cygnus configure options, so we can diagnose typos.
875
876  case $ac_dashdash$ac_option in
877  --)
878    ac_dashdash=yes ;;
879
880  -bindir | --bindir | --bindi | --bind | --bin | --bi)
881    ac_prev=bindir ;;
882  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883    bindir=$ac_optarg ;;
884
885  -build | --build | --buil | --bui | --bu)
886    ac_prev=build_alias ;;
887  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888    build_alias=$ac_optarg ;;
889
890  -cache-file | --cache-file | --cache-fil | --cache-fi \
891  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892    ac_prev=cache_file ;;
893  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895    cache_file=$ac_optarg ;;
896
897  --config-cache | -C)
898    cache_file=config.cache ;;
899
900  -datadir | --datadir | --datadi | --datad)
901    ac_prev=datadir ;;
902  -datadir=* | --datadir=* | --datadi=* | --datad=*)
903    datadir=$ac_optarg ;;
904
905  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906  | --dataroo | --dataro | --datar)
907    ac_prev=datarootdir ;;
908  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910    datarootdir=$ac_optarg ;;
911
912  -disable-* | --disable-*)
913    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914    # Reject names that are not valid shell variable names.
915    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916      as_fn_error $? "invalid feature name: $ac_useropt"
917    ac_useropt_orig=$ac_useropt
918    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919    case $ac_user_opts in
920      *"
921"enable_$ac_useropt"
922"*) ;;
923      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924	 ac_unrecognized_sep=', ';;
925    esac
926    eval enable_$ac_useropt=no ;;
927
928  -docdir | --docdir | --docdi | --doc | --do)
929    ac_prev=docdir ;;
930  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931    docdir=$ac_optarg ;;
932
933  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934    ac_prev=dvidir ;;
935  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936    dvidir=$ac_optarg ;;
937
938  -enable-* | --enable-*)
939    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940    # Reject names that are not valid shell variable names.
941    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942      as_fn_error $? "invalid feature name: $ac_useropt"
943    ac_useropt_orig=$ac_useropt
944    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945    case $ac_user_opts in
946      *"
947"enable_$ac_useropt"
948"*) ;;
949      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950	 ac_unrecognized_sep=', ';;
951    esac
952    eval enable_$ac_useropt=\$ac_optarg ;;
953
954  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956  | --exec | --exe | --ex)
957    ac_prev=exec_prefix ;;
958  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960  | --exec=* | --exe=* | --ex=*)
961    exec_prefix=$ac_optarg ;;
962
963  -gas | --gas | --ga | --g)
964    # Obsolete; use --with-gas.
965    with_gas=yes ;;
966
967  -help | --help | --hel | --he | -h)
968    ac_init_help=long ;;
969  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970    ac_init_help=recursive ;;
971  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972    ac_init_help=short ;;
973
974  -host | --host | --hos | --ho)
975    ac_prev=host_alias ;;
976  -host=* | --host=* | --hos=* | --ho=*)
977    host_alias=$ac_optarg ;;
978
979  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980    ac_prev=htmldir ;;
981  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982  | --ht=*)
983    htmldir=$ac_optarg ;;
984
985  -includedir | --includedir | --includedi | --included | --include \
986  | --includ | --inclu | --incl | --inc)
987    ac_prev=includedir ;;
988  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989  | --includ=* | --inclu=* | --incl=* | --inc=*)
990    includedir=$ac_optarg ;;
991
992  -infodir | --infodir | --infodi | --infod | --info | --inf)
993    ac_prev=infodir ;;
994  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995    infodir=$ac_optarg ;;
996
997  -libdir | --libdir | --libdi | --libd)
998    ac_prev=libdir ;;
999  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000    libdir=$ac_optarg ;;
1001
1002  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003  | --libexe | --libex | --libe)
1004    ac_prev=libexecdir ;;
1005  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006  | --libexe=* | --libex=* | --libe=*)
1007    libexecdir=$ac_optarg ;;
1008
1009  -localedir | --localedir | --localedi | --localed | --locale)
1010    ac_prev=localedir ;;
1011  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012    localedir=$ac_optarg ;;
1013
1014  -localstatedir | --localstatedir | --localstatedi | --localstated \
1015  | --localstate | --localstat | --localsta | --localst | --locals)
1016    ac_prev=localstatedir ;;
1017  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019    localstatedir=$ac_optarg ;;
1020
1021  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022    ac_prev=mandir ;;
1023  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024    mandir=$ac_optarg ;;
1025
1026  -nfp | --nfp | --nf)
1027    # Obsolete; use --without-fp.
1028    with_fp=no ;;
1029
1030  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031  | --no-cr | --no-c | -n)
1032    no_create=yes ;;
1033
1034  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036    no_recursion=yes ;;
1037
1038  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040  | --oldin | --oldi | --old | --ol | --o)
1041    ac_prev=oldincludedir ;;
1042  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045    oldincludedir=$ac_optarg ;;
1046
1047  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048    ac_prev=prefix ;;
1049  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050    prefix=$ac_optarg ;;
1051
1052  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053  | --program-pre | --program-pr | --program-p)
1054    ac_prev=program_prefix ;;
1055  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057    program_prefix=$ac_optarg ;;
1058
1059  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060  | --program-suf | --program-su | --program-s)
1061    ac_prev=program_suffix ;;
1062  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064    program_suffix=$ac_optarg ;;
1065
1066  -program-transform-name | --program-transform-name \
1067  | --program-transform-nam | --program-transform-na \
1068  | --program-transform-n | --program-transform- \
1069  | --program-transform | --program-transfor \
1070  | --program-transfo | --program-transf \
1071  | --program-trans | --program-tran \
1072  | --progr-tra | --program-tr | --program-t)
1073    ac_prev=program_transform_name ;;
1074  -program-transform-name=* | --program-transform-name=* \
1075  | --program-transform-nam=* | --program-transform-na=* \
1076  | --program-transform-n=* | --program-transform-=* \
1077  | --program-transform=* | --program-transfor=* \
1078  | --program-transfo=* | --program-transf=* \
1079  | --program-trans=* | --program-tran=* \
1080  | --progr-tra=* | --program-tr=* | --program-t=*)
1081    program_transform_name=$ac_optarg ;;
1082
1083  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084    ac_prev=pdfdir ;;
1085  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086    pdfdir=$ac_optarg ;;
1087
1088  -psdir | --psdir | --psdi | --psd | --ps)
1089    ac_prev=psdir ;;
1090  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091    psdir=$ac_optarg ;;
1092
1093  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094  | -silent | --silent | --silen | --sile | --sil)
1095    silent=yes ;;
1096
1097  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098    ac_prev=sbindir ;;
1099  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100  | --sbi=* | --sb=*)
1101    sbindir=$ac_optarg ;;
1102
1103  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105  | --sharedst | --shareds | --shared | --share | --shar \
1106  | --sha | --sh)
1107    ac_prev=sharedstatedir ;;
1108  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111  | --sha=* | --sh=*)
1112    sharedstatedir=$ac_optarg ;;
1113
1114  -site | --site | --sit)
1115    ac_prev=site ;;
1116  -site=* | --site=* | --sit=*)
1117    site=$ac_optarg ;;
1118
1119  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120    ac_prev=srcdir ;;
1121  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122    srcdir=$ac_optarg ;;
1123
1124  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125  | --syscon | --sysco | --sysc | --sys | --sy)
1126    ac_prev=sysconfdir ;;
1127  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129    sysconfdir=$ac_optarg ;;
1130
1131  -target | --target | --targe | --targ | --tar | --ta | --t)
1132    ac_prev=target_alias ;;
1133  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134    target_alias=$ac_optarg ;;
1135
1136  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137    verbose=yes ;;
1138
1139  -version | --version | --versio | --versi | --vers | -V)
1140    ac_init_version=: ;;
1141
1142  -with-* | --with-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=\$ac_optarg ;;
1157
1158  -without-* | --without-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid package name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=no ;;
1173
1174  --x)
1175    # Obsolete; use --with-x.
1176    with_x=yes ;;
1177
1178  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179  | --x-incl | --x-inc | --x-in | --x-i)
1180    ac_prev=x_includes ;;
1181  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183    x_includes=$ac_optarg ;;
1184
1185  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187    ac_prev=x_libraries ;;
1188  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190    x_libraries=$ac_optarg ;;
1191
1192  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information"
1194    ;;
1195
1196  *=*)
1197    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198    # Reject names that are not valid shell variable names.
1199    case $ac_envvar in #(
1200      '' | [0-9]* | *[!_$as_cr_alnum]* )
1201      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202    esac
1203    eval $ac_envvar=\$ac_optarg
1204    export $ac_envvar ;;
1205
1206  *)
1207    # FIXME: should be removed in autoconf 3.0.
1208    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212    ;;
1213
1214  esac
1215done
1216
1217if test -n "$ac_prev"; then
1218  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219  as_fn_error $? "missing argument to $ac_option"
1220fi
1221
1222if test -n "$ac_unrecognized_opts"; then
1223  case $enable_option_checking in
1224    no) ;;
1225    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227  esac
1228fi
1229
1230# Check all directory arguments for consistency.
1231for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232		datadir sysconfdir sharedstatedir localstatedir includedir \
1233		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234		libdir localedir mandir
1235do
1236  eval ac_val=\$$ac_var
1237  # Remove trailing slashes.
1238  case $ac_val in
1239    */ )
1240      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241      eval $ac_var=\$ac_val;;
1242  esac
1243  # Be sure to have absolute directory names.
1244  case $ac_val in
1245    [\\/$]* | ?:[\\/]* )  continue;;
1246    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247  esac
1248  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249done
1250
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260  if test "x$build_alias" = x; then
1261    cross_compiling=maybe
1262  elif test "x$build_alias" != "x$host_alias"; then
1263    cross_compiling=yes
1264  fi
1265fi
1266
1267ac_tool_prefix=
1268test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270test "$silent" = yes && exec 6>/dev/null
1271
1272
1273ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276  as_fn_error $? "working directory cannot be determined"
1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278  as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283  ac_srcdir_defaulted=yes
1284  # Try the directory containing this script, then the parent directory.
1285  ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287	 X"$as_myself" : 'X\(//\)[^/]' \| \
1288	 X"$as_myself" : 'X\(//\)$' \| \
1289	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290$as_echo X"$as_myself" |
1291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)[^/].*/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\).*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  s/.*/./; q'`
1308  srcdir=$ac_confdir
1309  if test ! -r "$srcdir/$ac_unique_file"; then
1310    srcdir=..
1311  fi
1312else
1313  ac_srcdir_defaulted=no
1314fi
1315if test ! -r "$srcdir/$ac_unique_file"; then
1316  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318fi
1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320ac_abs_confdir=`(
1321	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322	pwd)`
1323# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then
1325  srcdir=.
1326fi
1327# Remove unnecessary trailing slashes from srcdir.
1328# Double slashes in file names in object file debugging info
1329# mess up M-x gdb in Emacs.
1330case $srcdir in
1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332esac
1333for ac_var in $ac_precious_vars; do
1334  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_env_${ac_var}_value=\$${ac_var}
1336  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338done
1339
1340#
1341# Report the --help message.
1342#
1343if test "$ac_init_help" = "long"; then
1344  # Omit some internal or obsolete options to make the list less imposing.
1345  # This message is too long to be a string in the A/UX 3.1 sh.
1346  cat <<_ACEOF
1347\`configure' configures isl-interface 0 to adapt to many kinds of systems.
1348
1349Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352VAR=VALUE.  See below for descriptions of some of the useful variables.
1353
1354Defaults for the options are specified in brackets.
1355
1356Configuration:
1357  -h, --help              display this help and exit
1358      --help=short        display options specific to this package
1359      --help=recursive    display the short help of all the included packages
1360  -V, --version           display version information and exit
1361  -q, --quiet, --silent   do not print \`checking ...' messages
1362      --cache-file=FILE   cache test results in FILE [disabled]
1363  -C, --config-cache      alias for \`--cache-file=config.cache'
1364  -n, --no-create         do not create output files
1365      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1366
1367Installation directories:
1368  --prefix=PREFIX         install architecture-independent files in PREFIX
1369                          [$ac_default_prefix]
1370  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1371                          [PREFIX]
1372
1373By default, \`make install' will install all the files in
1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1375an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376for instance \`--prefix=\$HOME'.
1377
1378For better control, use the options below.
1379
1380Fine tuning of the installation directories:
1381  --bindir=DIR            user executables [EPREFIX/bin]
1382  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1383  --libexecdir=DIR        program executables [EPREFIX/libexec]
1384  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1385  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1386  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1387  --libdir=DIR            object code libraries [EPREFIX/lib]
1388  --includedir=DIR        C header files [PREFIX/include]
1389  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1390  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1391  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1392  --infodir=DIR           info documentation [DATAROOTDIR/info]
1393  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1394  --mandir=DIR            man documentation [DATAROOTDIR/man]
1395  --docdir=DIR            documentation root [DATAROOTDIR/doc/isl-interface]
1396  --htmldir=DIR           html documentation [DOCDIR]
1397  --dvidir=DIR            dvi documentation [DOCDIR]
1398  --pdfdir=DIR            pdf documentation [DOCDIR]
1399  --psdir=DIR             ps documentation [DOCDIR]
1400_ACEOF
1401
1402  cat <<\_ACEOF
1403
1404Program names:
1405  --program-prefix=PREFIX            prepend PREFIX to installed program names
1406  --program-suffix=SUFFIX            append SUFFIX to installed program names
1407  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1408
1409System types:
1410  --build=BUILD     configure for building on BUILD [guessed]
1411  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1412_ACEOF
1413fi
1414
1415if test -n "$ac_init_help"; then
1416  case $ac_init_help in
1417     short | recursive ) echo "Configuration of isl-interface 0:";;
1418   esac
1419  cat <<\_ACEOF
1420
1421Optional Features:
1422  --disable-option-checking  ignore unrecognized --enable/--with options
1423  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1424  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1425  --enable-silent-rules   less verbose build output (undo: "make V=1")
1426  --disable-silent-rules  verbose build output (undo: "make V=0")
1427  --enable-dependency-tracking
1428                          do not reject slow dependency extractors
1429  --disable-dependency-tracking
1430                          speeds up one-time build
1431  --enable-shared[=PKGS]  build shared libraries [default=no]
1432  --enable-static[=PKGS]  build static libraries [default=yes]
1433  --enable-fast-install[=PKGS]
1434                          optimize for fast installation [default=yes]
1435  --disable-libtool-lock  avoid locking (might break parallel builds)
1436
1437Optional Packages:
1438  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1439  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1440  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1441                          both]
1442  --with-aix-soname=aix|svr4|both
1443                          shared library versioning (aka "SONAME") variant to
1444                          provide on AIX, [default=aix].
1445  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1446  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1447                          compiler's sysroot if not specified).
1448
1449Some influential environment variables:
1450  CXX         C++ compiler command
1451  CXXFLAGS    C++ compiler flags
1452  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1453              nonstandard directory <lib dir>
1454  LIBS        libraries to pass to the linker, e.g. -l<library>
1455  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456              you have headers in a nonstandard directory <include dir>
1457  CC          C compiler command
1458  CFLAGS      C compiler flags
1459  CPP         C preprocessor
1460  CXXCPP      C++ preprocessor
1461  LT_SYS_LIBRARY_PATH
1462              User-defined run-time library search path.
1463
1464Use these variables to override the choices made by `configure' or to help
1465it to find libraries and programs with nonstandard names/locations.
1466
1467Report bugs to <isl-development@googlegroups.com>.
1468_ACEOF
1469ac_status=$?
1470fi
1471
1472if test "$ac_init_help" = "recursive"; then
1473  # If there are subdirs, report their specific --help.
1474  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475    test -d "$ac_dir" ||
1476      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477      continue
1478    ac_builddir=.
1479
1480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
1483  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484  # A ".." for each directory in $ac_dir_suffix.
1485  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486  case $ac_top_builddir_sub in
1487  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489  esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
1495
1496case $srcdir in
1497  .)  # We are building in place.
1498    ac_srcdir=.
1499    ac_top_srcdir=$ac_top_builddir_sub
1500    ac_abs_top_srcdir=$ac_pwd ;;
1501  [\\/]* | ?:[\\/]* )  # Absolute name.
1502    ac_srcdir=$srcdir$ac_dir_suffix;
1503    ac_top_srcdir=$srcdir
1504    ac_abs_top_srcdir=$srcdir ;;
1505  *) # Relative name.
1506    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507    ac_top_srcdir=$ac_top_build_prefix$srcdir
1508    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509esac
1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512    cd "$ac_dir" || { ac_status=$?; continue; }
1513    # Check for guested configure.
1514    if test -f "$ac_srcdir/configure.gnu"; then
1515      echo &&
1516      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517    elif test -f "$ac_srcdir/configure"; then
1518      echo &&
1519      $SHELL "$ac_srcdir/configure" --help=recursive
1520    else
1521      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522    fi || ac_status=$?
1523    cd "$ac_pwd" || { ac_status=$?; break; }
1524  done
1525fi
1526
1527test -n "$ac_init_help" && exit $ac_status
1528if $ac_init_version; then
1529  cat <<\_ACEOF
1530isl-interface configure 0
1531generated by GNU Autoconf 2.69
1532
1533Copyright (C) 2012 Free Software Foundation, Inc.
1534This configure script is free software; the Free Software Foundation
1535gives unlimited permission to copy, distribute and modify it.
1536_ACEOF
1537  exit
1538fi
1539
1540## ------------------------ ##
1541## Autoconf initialization. ##
1542## ------------------------ ##
1543
1544# ac_fn_cxx_try_compile LINENO
1545# ----------------------------
1546# Try to compile conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_cxx_try_compile ()
1548{
1549  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550  rm -f conftest.$ac_objext
1551  if { { ac_try="$ac_compile"
1552case "(($ac_try" in
1553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554  *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558  (eval "$ac_compile") 2>conftest.err
1559  ac_status=$?
1560  if test -s conftest.err; then
1561    grep -v '^ *+' conftest.err >conftest.er1
1562    cat conftest.er1 >&5
1563    mv -f conftest.er1 conftest.err
1564  fi
1565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566  test $ac_status = 0; } && {
1567	 test -z "$ac_cxx_werror_flag" ||
1568	 test ! -s conftest.err
1569       } && test -s conftest.$ac_objext; then :
1570  ac_retval=0
1571else
1572  $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575	ac_retval=1
1576fi
1577  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578  as_fn_set_status $ac_retval
1579
1580} # ac_fn_cxx_try_compile
1581
1582# ac_fn_c_try_compile LINENO
1583# --------------------------
1584# Try to compile conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_compile ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  rm -f conftest.$ac_objext
1589  if { { ac_try="$ac_compile"
1590case "(($ac_try" in
1591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592  *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596  (eval "$ac_compile") 2>conftest.err
1597  ac_status=$?
1598  if test -s conftest.err; then
1599    grep -v '^ *+' conftest.err >conftest.er1
1600    cat conftest.er1 >&5
1601    mv -f conftest.er1 conftest.err
1602  fi
1603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604  test $ac_status = 0; } && {
1605	 test -z "$ac_c_werror_flag" ||
1606	 test ! -s conftest.err
1607       } && test -s conftest.$ac_objext; then :
1608  ac_retval=0
1609else
1610  $as_echo "$as_me: failed program was:" >&5
1611sed 's/^/| /' conftest.$ac_ext >&5
1612
1613	ac_retval=1
1614fi
1615  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616  as_fn_set_status $ac_retval
1617
1618} # ac_fn_c_try_compile
1619
1620# ac_fn_c_try_cpp LINENO
1621# ----------------------
1622# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1623ac_fn_c_try_cpp ()
1624{
1625  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626  if { { ac_try="$ac_cpp conftest.$ac_ext"
1627case "(($ac_try" in
1628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629  *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1634  ac_status=$?
1635  if test -s conftest.err; then
1636    grep -v '^ *+' conftest.err >conftest.er1
1637    cat conftest.er1 >&5
1638    mv -f conftest.er1 conftest.err
1639  fi
1640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641  test $ac_status = 0; } > conftest.i && {
1642	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1643	 test ! -s conftest.err
1644       }; then :
1645  ac_retval=0
1646else
1647  $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650    ac_retval=1
1651fi
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653  as_fn_set_status $ac_retval
1654
1655} # ac_fn_c_try_cpp
1656
1657# ac_fn_cxx_try_cpp LINENO
1658# ------------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_cxx_try_cpp ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671  ac_status=$?
1672  if test -s conftest.err; then
1673    grep -v '^ *+' conftest.err >conftest.er1
1674    cat conftest.er1 >&5
1675    mv -f conftest.er1 conftest.err
1676  fi
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; } > conftest.i && {
1679	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1680	 test ! -s conftest.err
1681       }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687    ac_retval=1
1688fi
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_cxx_try_cpp
1693
1694# ac_fn_c_try_link LINENO
1695# -----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_link ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  rm -f conftest.$ac_objext conftest$ac_exeext
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>conftest.err
1709  ac_status=$?
1710  if test -s conftest.err; then
1711    grep -v '^ *+' conftest.err >conftest.er1
1712    cat conftest.er1 >&5
1713    mv -f conftest.er1 conftest.err
1714  fi
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; } && {
1717	 test -z "$ac_c_werror_flag" ||
1718	 test ! -s conftest.err
1719       } && test -s conftest$ac_exeext && {
1720	 test "$cross_compiling" = yes ||
1721	 test -x conftest$ac_exeext
1722       }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728	ac_retval=1
1729fi
1730  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732  # interfere with the next link command; also delete a directory that is
1733  # left behind by Apple's compiler.  We do this before executing the actions.
1734  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_link
1739
1740# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1741# -------------------------------------------------------
1742# Tests whether HEADER exists and can be compiled using the include files in
1743# INCLUDES, setting the cache variable VAR accordingly.
1744ac_fn_c_check_header_compile ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if eval \${$3+:} false; then :
1750  $as_echo_n "(cached) " >&6
1751else
1752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753/* end confdefs.h.  */
1754$4
1755#include <$2>
1756_ACEOF
1757if ac_fn_c_try_compile "$LINENO"; then :
1758  eval "$3=yes"
1759else
1760  eval "$3=no"
1761fi
1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763fi
1764eval ac_res=\$$3
1765	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766$as_echo "$ac_res" >&6; }
1767  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769} # ac_fn_c_check_header_compile
1770
1771# ac_fn_c_try_run LINENO
1772# ----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774# that executables *can* be run.
1775ac_fn_c_try_run ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781  *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785  (eval "$ac_link") 2>&5
1786  ac_status=$?
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789  { { case "(($ac_try" in
1790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791  *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795  (eval "$ac_try") 2>&5
1796  ac_status=$?
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; }; }; then :
1799  ac_retval=0
1800else
1801  $as_echo "$as_me: program exited with status $ac_status" >&5
1802       $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805       ac_retval=$ac_status
1806fi
1807  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_run
1812
1813# ac_fn_c_check_func LINENO FUNC VAR
1814# ----------------------------------
1815# Tests whether FUNC exists, setting the cache variable VAR accordingly
1816ac_fn_c_check_func ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823else
1824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828#define $2 innocuous_$2
1829
1830/* System header to define __stub macros and hopefully few prototypes,
1831    which can conflict with char $2 (); below.
1832    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833    <limits.h> exists even on freestanding compilers.  */
1834
1835#ifdef __STDC__
1836# include <limits.h>
1837#else
1838# include <assert.h>
1839#endif
1840
1841#undef $2
1842
1843/* Override any GCC internal prototype to avoid an error.
1844   Use char because int might match the return type of a GCC
1845   builtin and then its argument prototype would still apply.  */
1846#ifdef __cplusplus
1847extern "C"
1848#endif
1849char $2 ();
1850/* The GNU C library defines this for functions which it implements
1851    to always fail with ENOSYS.  Some functions are actually named
1852    something starting with __ and the normal name is an alias.  */
1853#if defined __stub_$2 || defined __stub___$2
1854choke me
1855#endif
1856
1857int
1858main ()
1859{
1860return $2 ();
1861  ;
1862  return 0;
1863}
1864_ACEOF
1865if ac_fn_c_try_link "$LINENO"; then :
1866  eval "$3=yes"
1867else
1868  eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext \
1871    conftest$ac_exeext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_func
1879
1880# ac_fn_cxx_try_link LINENO
1881# -------------------------
1882# Try to link conftest.$ac_ext, and return whether this succeeded.
1883ac_fn_cxx_try_link ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  rm -f conftest.$ac_objext conftest$ac_exeext
1887  if { { ac_try="$ac_link"
1888case "(($ac_try" in
1889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890  *) ac_try_echo=$ac_try;;
1891esac
1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893$as_echo "$ac_try_echo"; } >&5
1894  (eval "$ac_link") 2>conftest.err
1895  ac_status=$?
1896  if test -s conftest.err; then
1897    grep -v '^ *+' conftest.err >conftest.er1
1898    cat conftest.er1 >&5
1899    mv -f conftest.er1 conftest.err
1900  fi
1901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902  test $ac_status = 0; } && {
1903	 test -z "$ac_cxx_werror_flag" ||
1904	 test ! -s conftest.err
1905       } && test -s conftest$ac_exeext && {
1906	 test "$cross_compiling" = yes ||
1907	 test -x conftest$ac_exeext
1908       }; then :
1909  ac_retval=0
1910else
1911  $as_echo "$as_me: failed program was:" >&5
1912sed 's/^/| /' conftest.$ac_ext >&5
1913
1914	ac_retval=1
1915fi
1916  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918  # interfere with the next link command; also delete a directory that is
1919  # left behind by Apple's compiler.  We do this before executing the actions.
1920  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922  as_fn_set_status $ac_retval
1923
1924} # ac_fn_cxx_try_link
1925
1926# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1927# ---------------------------------------------------------
1928# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1929# the include files in INCLUDES and setting the cache variable VAR
1930# accordingly.
1931ac_fn_cxx_check_header_mongrel ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  if eval \${$3+:} false; then :
1935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if eval \${$3+:} false; then :
1938  $as_echo_n "(cached) " >&6
1939fi
1940eval ac_res=\$$3
1941	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943else
1944  # Is the header compilable?
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1946$as_echo_n "checking $2 usability... " >&6; }
1947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h.  */
1949$4
1950#include <$2>
1951_ACEOF
1952if ac_fn_cxx_try_compile "$LINENO"; then :
1953  ac_header_compiler=yes
1954else
1955  ac_header_compiler=no
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1959$as_echo "$ac_header_compiler" >&6; }
1960
1961# Is the header present?
1962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1963$as_echo_n "checking $2 presence... " >&6; }
1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h.  */
1966#include <$2>
1967_ACEOF
1968if ac_fn_cxx_try_cpp "$LINENO"; then :
1969  ac_header_preproc=yes
1970else
1971  ac_header_preproc=no
1972fi
1973rm -f conftest.err conftest.i conftest.$ac_ext
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1975$as_echo "$ac_header_preproc" >&6; }
1976
1977# So?  What about this header?
1978case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1979  yes:no: )
1980    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1981$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1982    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984    ;;
1985  no:yes:* )
1986    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1987$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1989$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1990    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1991$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1993$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1994    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996( $as_echo "## ----------------------------------------------- ##
1997## Report this to isl-development@googlegroups.com ##
1998## ----------------------------------------------- ##"
1999     ) | sed "s/^/$as_me: WARNING:     /" >&2
2000    ;;
2001esac
2002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if eval \${$3+:} false; then :
2005  $as_echo_n "(cached) " >&6
2006else
2007  eval "$3=\$ac_header_compiler"
2008fi
2009eval ac_res=\$$3
2010	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012fi
2013  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015} # ac_fn_cxx_check_header_mongrel
2016
2017# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2018# ---------------------------------------------------------
2019# Tests whether HEADER exists and can be compiled using the include files in
2020# INCLUDES, setting the cache variable VAR accordingly.
2021ac_fn_cxx_check_header_compile ()
2022{
2023  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025$as_echo_n "checking for $2... " >&6; }
2026if eval \${$3+:} false; then :
2027  $as_echo_n "(cached) " >&6
2028else
2029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h.  */
2031$4
2032#include <$2>
2033_ACEOF
2034if ac_fn_cxx_try_compile "$LINENO"; then :
2035  eval "$3=yes"
2036else
2037  eval "$3=no"
2038fi
2039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040fi
2041eval ac_res=\$$3
2042	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043$as_echo "$ac_res" >&6; }
2044  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2046} # ac_fn_cxx_check_header_compile
2047cat >config.log <<_ACEOF
2048This file contains any messages produced by compilers while
2049running configure, to aid debugging if configure makes a mistake.
2050
2051It was created by isl-interface $as_me 0, which was
2052generated by GNU Autoconf 2.69.  Invocation command line was
2053
2054  $ $0 $@
2055
2056_ACEOF
2057exec 5>>config.log
2058{
2059cat <<_ASUNAME
2060## --------- ##
2061## Platform. ##
2062## --------- ##
2063
2064hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2065uname -m = `(uname -m) 2>/dev/null || echo unknown`
2066uname -r = `(uname -r) 2>/dev/null || echo unknown`
2067uname -s = `(uname -s) 2>/dev/null || echo unknown`
2068uname -v = `(uname -v) 2>/dev/null || echo unknown`
2069
2070/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2071/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2072
2073/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2074/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2075/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2076/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2077/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2078/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2079/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2080
2081_ASUNAME
2082
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086  IFS=$as_save_IFS
2087  test -z "$as_dir" && as_dir=.
2088    $as_echo "PATH: $as_dir"
2089  done
2090IFS=$as_save_IFS
2091
2092} >&5
2093
2094cat >&5 <<_ACEOF
2095
2096
2097## ----------- ##
2098## Core tests. ##
2099## ----------- ##
2100
2101_ACEOF
2102
2103
2104# Keep a trace of the command line.
2105# Strip out --no-create and --no-recursion so they do not pile up.
2106# Strip out --silent because we don't want to record it for future runs.
2107# Also quote any args containing shell meta-characters.
2108# Make two passes to allow for proper duplicate-argument suppression.
2109ac_configure_args=
2110ac_configure_args0=
2111ac_configure_args1=
2112ac_must_keep_next=false
2113for ac_pass in 1 2
2114do
2115  for ac_arg
2116  do
2117    case $ac_arg in
2118    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2119    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2120    | -silent | --silent | --silen | --sile | --sil)
2121      continue ;;
2122    *\'*)
2123      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2124    esac
2125    case $ac_pass in
2126    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2127    2)
2128      as_fn_append ac_configure_args1 " '$ac_arg'"
2129      if test $ac_must_keep_next = true; then
2130	ac_must_keep_next=false # Got value, back to normal.
2131      else
2132	case $ac_arg in
2133	  *=* | --config-cache | -C | -disable-* | --disable-* \
2134	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2135	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2136	  | -with-* | --with-* | -without-* | --without-* | --x)
2137	    case "$ac_configure_args0 " in
2138	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2139	    esac
2140	    ;;
2141	  -* ) ac_must_keep_next=true ;;
2142	esac
2143      fi
2144      as_fn_append ac_configure_args " '$ac_arg'"
2145      ;;
2146    esac
2147  done
2148done
2149{ ac_configure_args0=; unset ac_configure_args0;}
2150{ ac_configure_args1=; unset ac_configure_args1;}
2151
2152# When interrupted or exit'd, cleanup temporary files, and complete
2153# config.log.  We remove comments because anyway the quotes in there
2154# would cause problems or look ugly.
2155# WARNING: Use '\'' to represent an apostrophe within the trap.
2156# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2157trap 'exit_status=$?
2158  # Save into config.log some information that might help in debugging.
2159  {
2160    echo
2161
2162    $as_echo "## ---------------- ##
2163## Cache variables. ##
2164## ---------------- ##"
2165    echo
2166    # The following way of writing the cache mishandles newlines in values,
2167(
2168  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2169    eval ac_val=\$$ac_var
2170    case $ac_val in #(
2171    *${as_nl}*)
2172      case $ac_var in #(
2173      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2174$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2175      esac
2176      case $ac_var in #(
2177      _ | IFS | as_nl) ;; #(
2178      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2179      *) { eval $ac_var=; unset $ac_var;} ;;
2180      esac ;;
2181    esac
2182  done
2183  (set) 2>&1 |
2184    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2185    *${as_nl}ac_space=\ *)
2186      sed -n \
2187	"s/'\''/'\''\\\\'\'''\''/g;
2188	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2189      ;; #(
2190    *)
2191      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2192      ;;
2193    esac |
2194    sort
2195)
2196    echo
2197
2198    $as_echo "## ----------------- ##
2199## Output variables. ##
2200## ----------------- ##"
2201    echo
2202    for ac_var in $ac_subst_vars
2203    do
2204      eval ac_val=\$$ac_var
2205      case $ac_val in
2206      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207      esac
2208      $as_echo "$ac_var='\''$ac_val'\''"
2209    done | sort
2210    echo
2211
2212    if test -n "$ac_subst_files"; then
2213      $as_echo "## ------------------- ##
2214## File substitutions. ##
2215## ------------------- ##"
2216      echo
2217      for ac_var in $ac_subst_files
2218      do
2219	eval ac_val=\$$ac_var
2220	case $ac_val in
2221	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222	esac
2223	$as_echo "$ac_var='\''$ac_val'\''"
2224      done | sort
2225      echo
2226    fi
2227
2228    if test -s confdefs.h; then
2229      $as_echo "## ----------- ##
2230## confdefs.h. ##
2231## ----------- ##"
2232      echo
2233      cat confdefs.h
2234      echo
2235    fi
2236    test "$ac_signal" != 0 &&
2237      $as_echo "$as_me: caught signal $ac_signal"
2238    $as_echo "$as_me: exit $exit_status"
2239  } >&5
2240  rm -f core *.core core.conftest.* &&
2241    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2242    exit $exit_status
2243' 0
2244for ac_signal in 1 2 13 15; do
2245  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2246done
2247ac_signal=0
2248
2249# confdefs.h avoids OS command line length limits that DEFS can exceed.
2250rm -f -r conftest* confdefs.h
2251
2252$as_echo "/* confdefs.h */" > confdefs.h
2253
2254# Predefined preprocessor variables.
2255
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_NAME "$PACKAGE_NAME"
2258_ACEOF
2259
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2262_ACEOF
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_VERSION "$PACKAGE_VERSION"
2266_ACEOF
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_STRING "$PACKAGE_STRING"
2270_ACEOF
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2274_ACEOF
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_URL "$PACKAGE_URL"
2278_ACEOF
2279
2280
2281# Let the site file select an alternate cache file if it wants to.
2282# Prefer an explicitly selected file to automatically selected ones.
2283ac_site_file1=NONE
2284ac_site_file2=NONE
2285if test -n "$CONFIG_SITE"; then
2286  # We do not want a PATH search for config.site.
2287  case $CONFIG_SITE in #((
2288    -*)  ac_site_file1=./$CONFIG_SITE;;
2289    */*) ac_site_file1=$CONFIG_SITE;;
2290    *)   ac_site_file1=./$CONFIG_SITE;;
2291  esac
2292elif test "x$prefix" != xNONE; then
2293  ac_site_file1=$prefix/share/config.site
2294  ac_site_file2=$prefix/etc/config.site
2295else
2296  ac_site_file1=$ac_default_prefix/share/config.site
2297  ac_site_file2=$ac_default_prefix/etc/config.site
2298fi
2299for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2300do
2301  test "x$ac_site_file" = xNONE && continue
2302  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2303    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2305    sed 's/^/| /' "$ac_site_file" >&5
2306    . "$ac_site_file" \
2307      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309as_fn_error $? "failed to load site script $ac_site_file
2310See \`config.log' for more details" "$LINENO" 5; }
2311  fi
2312done
2313
2314if test -r "$cache_file"; then
2315  # Some versions of bash will fail to source /dev/null (special files
2316  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2317  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2318    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2319$as_echo "$as_me: loading cache $cache_file" >&6;}
2320    case $cache_file in
2321      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2322      *)                      . "./$cache_file";;
2323    esac
2324  fi
2325else
2326  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2327$as_echo "$as_me: creating cache $cache_file" >&6;}
2328  >$cache_file
2329fi
2330
2331# Check that the precious variables saved in the cache have kept the same
2332# value.
2333ac_cache_corrupted=false
2334for ac_var in $ac_precious_vars; do
2335  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2336  eval ac_new_set=\$ac_env_${ac_var}_set
2337  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2338  eval ac_new_val=\$ac_env_${ac_var}_value
2339  case $ac_old_set,$ac_new_set in
2340    set,)
2341      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2342$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2343      ac_cache_corrupted=: ;;
2344    ,set)
2345      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2346$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2347      ac_cache_corrupted=: ;;
2348    ,);;
2349    *)
2350      if test "x$ac_old_val" != "x$ac_new_val"; then
2351	# differences in whitespace do not lead to failure.
2352	ac_old_val_w=`echo x $ac_old_val`
2353	ac_new_val_w=`echo x $ac_new_val`
2354	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2355	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2356$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2357	  ac_cache_corrupted=:
2358	else
2359	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2360$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2361	  eval $ac_var=\$ac_old_val
2362	fi
2363	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2364$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2365	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2366$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2367      fi;;
2368  esac
2369  # Pass precious variables to config.status.
2370  if test "$ac_new_set" = set; then
2371    case $ac_new_val in
2372    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2373    *) ac_arg=$ac_var=$ac_new_val ;;
2374    esac
2375    case " $ac_configure_args " in
2376      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2377      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2378    esac
2379  fi
2380done
2381if $ac_cache_corrupted; then
2382  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2385$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2386  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2387fi
2388## -------------------- ##
2389## Main body of script. ##
2390## -------------------- ##
2391
2392ac_ext=c
2393ac_cpp='$CPP $CPPFLAGS'
2394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397
2398
2399ac_aux_dir=
2400for ac_dir in . "$srcdir"/.; do
2401  if test -f "$ac_dir/install-sh"; then
2402    ac_aux_dir=$ac_dir
2403    ac_install_sh="$ac_aux_dir/install-sh -c"
2404    break
2405  elif test -f "$ac_dir/install.sh"; then
2406    ac_aux_dir=$ac_dir
2407    ac_install_sh="$ac_aux_dir/install.sh -c"
2408    break
2409  elif test -f "$ac_dir/shtool"; then
2410    ac_aux_dir=$ac_dir
2411    ac_install_sh="$ac_aux_dir/shtool install -c"
2412    break
2413  fi
2414done
2415if test -z "$ac_aux_dir"; then
2416  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2417fi
2418
2419# These three variables are undocumented and unsupported,
2420# and are intended to be withdrawn in a future Autoconf release.
2421# They can cause serious problems if a builder's source tree is in a directory
2422# whose full name contains unusual characters.
2423ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2424ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2425ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2426
2427
2428
2429am__api_version='1.16'
2430
2431# Find a good install program.  We prefer a C program (faster),
2432# so one script is as good as another.  But avoid the broken or
2433# incompatible versions:
2434# SysV /etc/install, /usr/sbin/install
2435# SunOS /usr/etc/install
2436# IRIX /sbin/install
2437# AIX /bin/install
2438# AmigaOS /C/install, which installs bootblocks on floppy discs
2439# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442# OS/2's system install, which has a completely different semantic
2443# ./install, which can be erroneously created by make from ./install.sh.
2444# Reject install programs that cannot install multiple files.
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2446$as_echo_n "checking for a BSD-compatible install... " >&6; }
2447if test -z "$INSTALL"; then
2448if ${ac_cv_path_install+:} false; then :
2449  $as_echo_n "(cached) " >&6
2450else
2451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454  IFS=$as_save_IFS
2455  test -z "$as_dir" && as_dir=.
2456    # Account for people who put trailing slashes in PATH elements.
2457case $as_dir/ in #((
2458  ./ | .// | /[cC]/* | \
2459  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2460  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2461  /usr/ucb/* ) ;;
2462  *)
2463    # OSF1 and SCO ODT 3.0 have their own names for install.
2464    # Don't use installbsd from OSF since it installs stuff as root
2465    # by default.
2466    for ac_prog in ginstall scoinst install; do
2467      for ac_exec_ext in '' $ac_executable_extensions; do
2468	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2469	  if test $ac_prog = install &&
2470	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471	    # AIX install.  It has an incompatible calling convention.
2472	    :
2473	  elif test $ac_prog = install &&
2474	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475	    # program-specific install script used by HP pwplus--don't use.
2476	    :
2477	  else
2478	    rm -rf conftest.one conftest.two conftest.dir
2479	    echo one > conftest.one
2480	    echo two > conftest.two
2481	    mkdir conftest.dir
2482	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2483	      test -s conftest.one && test -s conftest.two &&
2484	      test -s conftest.dir/conftest.one &&
2485	      test -s conftest.dir/conftest.two
2486	    then
2487	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2488	      break 3
2489	    fi
2490	  fi
2491	fi
2492      done
2493    done
2494    ;;
2495esac
2496
2497  done
2498IFS=$as_save_IFS
2499
2500rm -rf conftest.one conftest.two conftest.dir
2501
2502fi
2503  if test "${ac_cv_path_install+set}" = set; then
2504    INSTALL=$ac_cv_path_install
2505  else
2506    # As a last resort, use the slow shell script.  Don't cache a
2507    # value for INSTALL within a source directory, because that will
2508    # break other packages using the cache if that directory is
2509    # removed, or if the value is a relative name.
2510    INSTALL=$ac_install_sh
2511  fi
2512fi
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2514$as_echo "$INSTALL" >&6; }
2515
2516# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2517# It thinks the first close brace ends the variable substitution.
2518test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2519
2520test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2521
2522test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2523
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2525$as_echo_n "checking whether build environment is sane... " >&6; }
2526# Reject unsafe characters in $srcdir or the absolute working directory
2527# name.  Accept space and tab only in the latter.
2528am_lf='
2529'
2530case `pwd` in
2531  *[\\\"\#\$\&\'\`$am_lf]*)
2532    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2533esac
2534case $srcdir in
2535  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2536    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2537esac
2538
2539# Do 'set' in a subshell so we don't clobber the current shell's
2540# arguments.  Must try -L first in case configure is actually a
2541# symlink; some systems play weird games with the mod time of symlinks
2542# (eg FreeBSD returns the mod time of the symlink's containing
2543# directory).
2544if (
2545   am_has_slept=no
2546   for am_try in 1 2; do
2547     echo "timestamp, slept: $am_has_slept" > conftest.file
2548     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2549     if test "$*" = "X"; then
2550	# -L didn't work.
2551	set X `ls -t "$srcdir/configure" conftest.file`
2552     fi
2553     if test "$*" != "X $srcdir/configure conftest.file" \
2554	&& test "$*" != "X conftest.file $srcdir/configure"; then
2555
2556	# If neither matched, then we have a broken ls.  This can happen
2557	# if, for instance, CONFIG_SHELL is bash and it inherits a
2558	# broken ls alias from the environment.  This has actually
2559	# happened.  Such a system could not be considered "sane".
2560	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2561  alias in your environment" "$LINENO" 5
2562     fi
2563     if test "$2" = conftest.file || test $am_try -eq 2; then
2564       break
2565     fi
2566     # Just in case.
2567     sleep 1
2568     am_has_slept=yes
2569   done
2570   test "$2" = conftest.file
2571   )
2572then
2573   # Ok.
2574   :
2575else
2576   as_fn_error $? "newly created file is older than distributed files!
2577Check your system clock" "$LINENO" 5
2578fi
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580$as_echo "yes" >&6; }
2581# If we didn't sleep, we still need to ensure time stamps of config.status and
2582# generated files are strictly newer.
2583am_sleep_pid=
2584if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2585  ( sleep 1 ) &
2586  am_sleep_pid=$!
2587fi
2588
2589rm -f conftest.file
2590
2591test "$program_prefix" != NONE &&
2592  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2593# Use a double $ so make ignores it.
2594test "$program_suffix" != NONE &&
2595  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2596# Double any \ or $.
2597# By default was `s,x,x', remove it if useless.
2598ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2599program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2600
2601# Expand $ac_aux_dir to an absolute path.
2602am_aux_dir=`cd "$ac_aux_dir" && pwd`
2603
2604if test x"${MISSING+set}" != xset; then
2605  MISSING="\${SHELL} '$am_aux_dir/missing'"
2606fi
2607# Use eval to expand $SHELL
2608if eval "$MISSING --is-lightweight"; then
2609  am_missing_run="$MISSING "
2610else
2611  am_missing_run=
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2613$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2614fi
2615
2616if test x"${install_sh+set}" != xset; then
2617  case $am_aux_dir in
2618  *\ * | *\	*)
2619    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2620  *)
2621    install_sh="\${SHELL} $am_aux_dir/install-sh"
2622  esac
2623fi
2624
2625# Installed binaries are usually stripped using 'strip' when the user
2626# run "make install-strip".  However 'strip' might not be the right
2627# tool to use in cross-compilation environments, therefore Automake
2628# will honor the 'STRIP' environment variable to overrule this program.
2629if test "$cross_compiling" != no; then
2630  if test -n "$ac_tool_prefix"; then
2631  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2632set dummy ${ac_tool_prefix}strip; ac_word=$2
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634$as_echo_n "checking for $ac_word... " >&6; }
2635if ${ac_cv_prog_STRIP+:} false; then :
2636  $as_echo_n "(cached) " >&6
2637else
2638  if test -n "$STRIP"; then
2639  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644  IFS=$as_save_IFS
2645  test -z "$as_dir" && as_dir=.
2646    for ac_exec_ext in '' $ac_executable_extensions; do
2647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650    break 2
2651  fi
2652done
2653  done
2654IFS=$as_save_IFS
2655
2656fi
2657fi
2658STRIP=$ac_cv_prog_STRIP
2659if test -n "$STRIP"; then
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2661$as_echo "$STRIP" >&6; }
2662else
2663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664$as_echo "no" >&6; }
2665fi
2666
2667
2668fi
2669if test -z "$ac_cv_prog_STRIP"; then
2670  ac_ct_STRIP=$STRIP
2671  # Extract the first word of "strip", so it can be a program name with args.
2672set dummy strip; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  if test -n "$ac_ct_STRIP"; then
2679  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684  IFS=$as_save_IFS
2685  test -z "$as_dir" && as_dir=.
2686    for ac_exec_ext in '' $ac_executable_extensions; do
2687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688    ac_cv_prog_ac_ct_STRIP="strip"
2689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690    break 2
2691  fi
2692done
2693  done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2699if test -n "$ac_ct_STRIP"; then
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2701$as_echo "$ac_ct_STRIP" >&6; }
2702else
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707  if test "x$ac_ct_STRIP" = x; then
2708    STRIP=":"
2709  else
2710    case $cross_compiling:$ac_tool_warned in
2711yes:)
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2714ac_tool_warned=yes ;;
2715esac
2716    STRIP=$ac_ct_STRIP
2717  fi
2718else
2719  STRIP="$ac_cv_prog_STRIP"
2720fi
2721
2722fi
2723INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2724
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2726$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2727if test -z "$MKDIR_P"; then
2728  if ${ac_cv_path_mkdir+:} false; then :
2729  $as_echo_n "(cached) " >&6
2730else
2731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2733do
2734  IFS=$as_save_IFS
2735  test -z "$as_dir" && as_dir=.
2736    for ac_prog in mkdir gmkdir; do
2737	 for ac_exec_ext in '' $ac_executable_extensions; do
2738	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2739	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2740	     'mkdir (GNU coreutils) '* | \
2741	     'mkdir (coreutils) '* | \
2742	     'mkdir (fileutils) '4.1*)
2743	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2744	       break 3;;
2745	   esac
2746	 done
2747       done
2748  done
2749IFS=$as_save_IFS
2750
2751fi
2752
2753  test -d ./--version && rmdir ./--version
2754  if test "${ac_cv_path_mkdir+set}" = set; then
2755    MKDIR_P="$ac_cv_path_mkdir -p"
2756  else
2757    # As a last resort, use the slow shell script.  Don't cache a
2758    # value for MKDIR_P within a source directory, because that will
2759    # break other packages using the cache if that directory is
2760    # removed, or if the value is a relative name.
2761    MKDIR_P="$ac_install_sh -d"
2762  fi
2763fi
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2765$as_echo "$MKDIR_P" >&6; }
2766
2767for ac_prog in gawk mawk nawk awk
2768do
2769  # Extract the first word of "$ac_prog", so it can be a program name with args.
2770set dummy $ac_prog; ac_word=$2
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if ${ac_cv_prog_AWK+:} false; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  if test -n "$AWK"; then
2777  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782  IFS=$as_save_IFS
2783  test -z "$as_dir" && as_dir=.
2784    for ac_exec_ext in '' $ac_executable_extensions; do
2785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786    ac_cv_prog_AWK="$ac_prog"
2787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788    break 2
2789  fi
2790done
2791  done
2792IFS=$as_save_IFS
2793
2794fi
2795fi
2796AWK=$ac_cv_prog_AWK
2797if test -n "$AWK"; then
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2799$as_echo "$AWK" >&6; }
2800else
2801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802$as_echo "no" >&6; }
2803fi
2804
2805
2806  test -n "$AWK" && break
2807done
2808
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2810$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2811set x ${MAKE-make}
2812ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2813if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2814  $as_echo_n "(cached) " >&6
2815else
2816  cat >conftest.make <<\_ACEOF
2817SHELL = /bin/sh
2818all:
2819	@echo '@@@%%%=$(MAKE)=@@@%%%'
2820_ACEOF
2821# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2822case `${MAKE-make} -f conftest.make 2>/dev/null` in
2823  *@@@%%%=?*=@@@%%%*)
2824    eval ac_cv_prog_make_${ac_make}_set=yes;;
2825  *)
2826    eval ac_cv_prog_make_${ac_make}_set=no;;
2827esac
2828rm -f conftest.make
2829fi
2830if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2832$as_echo "yes" >&6; }
2833  SET_MAKE=
2834else
2835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836$as_echo "no" >&6; }
2837  SET_MAKE="MAKE=${MAKE-make}"
2838fi
2839
2840rm -rf .tst 2>/dev/null
2841mkdir .tst 2>/dev/null
2842if test -d .tst; then
2843  am__leading_dot=.
2844else
2845  am__leading_dot=_
2846fi
2847rmdir .tst 2>/dev/null
2848
2849# Check whether --enable-silent-rules was given.
2850if test "${enable_silent_rules+set}" = set; then :
2851  enableval=$enable_silent_rules;
2852fi
2853
2854case $enable_silent_rules in # (((
2855  yes) AM_DEFAULT_VERBOSITY=0;;
2856   no) AM_DEFAULT_VERBOSITY=1;;
2857    *) AM_DEFAULT_VERBOSITY=1;;
2858esac
2859am_make=${MAKE-make}
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2861$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2862if ${am_cv_make_support_nested_variables+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  if $as_echo 'TRUE=$(BAR$(V))
2866BAR0=false
2867BAR1=true
2868V=1
2869am__doit:
2870	@$(TRUE)
2871.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2872  am_cv_make_support_nested_variables=yes
2873else
2874  am_cv_make_support_nested_variables=no
2875fi
2876fi
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2878$as_echo "$am_cv_make_support_nested_variables" >&6; }
2879if test $am_cv_make_support_nested_variables = yes; then
2880    AM_V='$(V)'
2881  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2882else
2883  AM_V=$AM_DEFAULT_VERBOSITY
2884  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2885fi
2886AM_BACKSLASH='\'
2887
2888if test "`cd $srcdir && pwd`" != "`pwd`"; then
2889  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2890  # is not polluted with repeated "-I."
2891  am__isrc=' -I$(srcdir)'
2892  # test to see if srcdir already configured
2893  if test -f $srcdir/config.status; then
2894    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2895  fi
2896fi
2897
2898# test whether we have cygpath
2899if test -z "$CYGPATH_W"; then
2900  if (cygpath --version) >/dev/null 2>/dev/null; then
2901    CYGPATH_W='cygpath -w'
2902  else
2903    CYGPATH_W=echo
2904  fi
2905fi
2906
2907
2908# Define the identity of the package.
2909 PACKAGE='isl-interface'
2910 VERSION='0'
2911
2912
2913cat >>confdefs.h <<_ACEOF
2914#define PACKAGE "$PACKAGE"
2915_ACEOF
2916
2917
2918cat >>confdefs.h <<_ACEOF
2919#define VERSION "$VERSION"
2920_ACEOF
2921
2922# Some tools Automake needs.
2923
2924ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925
2926
2927AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2928
2929
2930AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931
2932
2933AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2934
2935
2936MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937
2938# For better backward compatibility.  To be removed once Automake 1.9.x
2939# dies out for good.  For more background, see:
2940# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2941# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2942mkdir_p='$(MKDIR_P)'
2943
2944# We need awk for the "check" target (and possibly the TAP driver).  The
2945# system "awk" is bad on some platforms.
2946# Always define AMTAR for backward compatibility.  Yes, it's still used
2947# in the wild :-(  We should find a proper way to deprecate it ...
2948AMTAR='$${TAR-tar}'
2949
2950
2951# We'll loop over all known methods to create a tar archive until one works.
2952_am_tools='gnutar  pax cpio none'
2953
2954am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2955
2956
2957
2958
2959
2960
2961# POSIX will say in a future version that running "rm -f" with no argument
2962# is OK; and we want to be able to make that assumption in our Makefile
2963# recipes.  So use an aggressive probe to check that the usage we want is
2964# actually supported "in the wild" to an acceptable degree.
2965# See automake bug#10828.
2966# To make any issue more visible, cause the running configure to be aborted
2967# by default if the 'rm' program in use doesn't match our expectations; the
2968# user can still override this though.
2969if rm -f && rm -fr && rm -rf; then : OK; else
2970  cat >&2 <<'END'
2971Oops!
2972
2973Your 'rm' program seems unable to run without file operands specified
2974on the command line, even when the '-f' option is present.  This is contrary
2975to the behaviour of most rm programs out there, and not conforming with
2976the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2977
2978Please tell bug-automake@gnu.org about your system, including the value
2979of your $PATH and any error possibly output before this message.  This
2980can help us improve future automake versions.
2981
2982END
2983  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2984    echo 'Configuration will proceed anyway, since you have set the' >&2
2985    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2986    echo >&2
2987  else
2988    cat >&2 <<'END'
2989Aborting the configuration process, to ensure you take notice of the issue.
2990
2991You can download and install GNU coreutils to get an 'rm' implementation
2992that behaves properly: <https://www.gnu.org/software/coreutils/>.
2993
2994If you want to complete the configuration process using your problematic
2995'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2996to "yes", and re-run configure.
2997
2998END
2999    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3000  fi
3001fi
3002
3003# Check whether --enable-silent-rules was given.
3004if test "${enable_silent_rules+set}" = set; then :
3005  enableval=$enable_silent_rules;
3006fi
3007
3008case $enable_silent_rules in # (((
3009  yes) AM_DEFAULT_VERBOSITY=0;;
3010   no) AM_DEFAULT_VERBOSITY=1;;
3011    *) AM_DEFAULT_VERBOSITY=0;;
3012esac
3013am_make=${MAKE-make}
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3015$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3016if ${am_cv_make_support_nested_variables+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if $as_echo 'TRUE=$(BAR$(V))
3020BAR0=false
3021BAR1=true
3022V=1
3023am__doit:
3024	@$(TRUE)
3025.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3026  am_cv_make_support_nested_variables=yes
3027else
3028  am_cv_make_support_nested_variables=no
3029fi
3030fi
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3032$as_echo "$am_cv_make_support_nested_variables" >&6; }
3033if test $am_cv_make_support_nested_variables = yes; then
3034    AM_V='$(V)'
3035  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3036else
3037  AM_V=$AM_DEFAULT_VERBOSITY
3038  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3039fi
3040AM_BACKSLASH='\'
3041
3042
3043ac_ext=cpp
3044ac_cpp='$CXXCPP $CPPFLAGS'
3045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3048if test -z "$CXX"; then
3049  if test -n "$CCC"; then
3050    CXX=$CCC
3051  else
3052    if test -n "$ac_tool_prefix"; then
3053  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3054  do
3055    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058$as_echo_n "checking for $ac_word... " >&6; }
3059if ${ac_cv_prog_CXX+:} false; then :
3060  $as_echo_n "(cached) " >&6
3061else
3062  if test -n "$CXX"; then
3063  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3064else
3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068  IFS=$as_save_IFS
3069  test -z "$as_dir" && as_dir=.
3070    for ac_exec_ext in '' $ac_executable_extensions; do
3071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074    break 2
3075  fi
3076done
3077  done
3078IFS=$as_save_IFS
3079
3080fi
3081fi
3082CXX=$ac_cv_prog_CXX
3083if test -n "$CXX"; then
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3085$as_echo "$CXX" >&6; }
3086else
3087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088$as_echo "no" >&6; }
3089fi
3090
3091
3092    test -n "$CXX" && break
3093  done
3094fi
3095if test -z "$CXX"; then
3096  ac_ct_CXX=$CXX
3097  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3098do
3099  # Extract the first word of "$ac_prog", so it can be a program name with args.
3100set dummy $ac_prog; ac_word=$2
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102$as_echo_n "checking for $ac_word... " >&6; }
3103if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  if test -n "$ac_ct_CXX"; then
3107  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112  IFS=$as_save_IFS
3113  test -z "$as_dir" && as_dir=.
3114    for ac_exec_ext in '' $ac_executable_extensions; do
3115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116    ac_cv_prog_ac_ct_CXX="$ac_prog"
3117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118    break 2
3119  fi
3120done
3121  done
3122IFS=$as_save_IFS
3123
3124fi
3125fi
3126ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3127if test -n "$ac_ct_CXX"; then
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3129$as_echo "$ac_ct_CXX" >&6; }
3130else
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132$as_echo "no" >&6; }
3133fi
3134
3135
3136  test -n "$ac_ct_CXX" && break
3137done
3138
3139  if test "x$ac_ct_CXX" = x; then
3140    CXX="g++"
3141  else
3142    case $cross_compiling:$ac_tool_warned in
3143yes:)
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146ac_tool_warned=yes ;;
3147esac
3148    CXX=$ac_ct_CXX
3149  fi
3150fi
3151
3152  fi
3153fi
3154# Provide some information about the compiler.
3155$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3156set X $ac_compile
3157ac_compiler=$2
3158for ac_option in --version -v -V -qversion; do
3159  { { ac_try="$ac_compiler $ac_option >&5"
3160case "(($ac_try" in
3161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162  *) ac_try_echo=$ac_try;;
3163esac
3164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165$as_echo "$ac_try_echo"; } >&5
3166  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3167  ac_status=$?
3168  if test -s conftest.err; then
3169    sed '10a\
3170... rest of stderr output deleted ...
3171         10q' conftest.err >conftest.er1
3172    cat conftest.er1 >&5
3173  fi
3174  rm -f conftest.er1 conftest.err
3175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176  test $ac_status = 0; }
3177done
3178
3179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180/* end confdefs.h.  */
3181
3182int
3183main ()
3184{
3185
3186  ;
3187  return 0;
3188}
3189_ACEOF
3190ac_clean_files_save=$ac_clean_files
3191ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3192# Try to create an executable without -o first, disregard a.out.
3193# It will help us diagnose broken compilers, and finding out an intuition
3194# of exeext.
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3196$as_echo_n "checking whether the C++ compiler works... " >&6; }
3197ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3198
3199# The possible output files:
3200ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3201
3202ac_rmfiles=
3203for ac_file in $ac_files
3204do
3205  case $ac_file in
3206    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3207    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3208  esac
3209done
3210rm -f $ac_rmfiles
3211
3212if { { ac_try="$ac_link_default"
3213case "(($ac_try" in
3214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215  *) ac_try_echo=$ac_try;;
3216esac
3217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218$as_echo "$ac_try_echo"; } >&5
3219  (eval "$ac_link_default") 2>&5
3220  ac_status=$?
3221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222  test $ac_status = 0; }; then :
3223  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3224# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3225# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3226# so that the user can short-circuit this test for compilers unknown to
3227# Autoconf.
3228for ac_file in $ac_files ''
3229do
3230  test -f "$ac_file" || continue
3231  case $ac_file in
3232    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3233	;;
3234    [ab].out )
3235	# We found the default executable, but exeext='' is most
3236	# certainly right.
3237	break;;
3238    *.* )
3239	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3240	then :; else
3241	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3242	fi
3243	# We set ac_cv_exeext here because the later test for it is not
3244	# safe: cross compilers may not add the suffix if given an `-o'
3245	# argument, so we may need to know it at that point already.
3246	# Even if this section looks crufty: it has the advantage of
3247	# actually working.
3248	break;;
3249    * )
3250	break;;
3251  esac
3252done
3253test "$ac_cv_exeext" = no && ac_cv_exeext=
3254
3255else
3256  ac_file=''
3257fi
3258if test -z "$ac_file"; then :
3259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260$as_echo "no" >&6; }
3261$as_echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266as_fn_error 77 "C++ compiler cannot create executables
3267See \`config.log' for more details" "$LINENO" 5; }
3268else
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270$as_echo "yes" >&6; }
3271fi
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3273$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3275$as_echo "$ac_file" >&6; }
3276ac_exeext=$ac_cv_exeext
3277
3278rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3279ac_clean_files=$ac_clean_files_save
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3281$as_echo_n "checking for suffix of executables... " >&6; }
3282if { { ac_try="$ac_link"
3283case "(($ac_try" in
3284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285  *) ac_try_echo=$ac_try;;
3286esac
3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288$as_echo "$ac_try_echo"; } >&5
3289  (eval "$ac_link") 2>&5
3290  ac_status=$?
3291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292  test $ac_status = 0; }; then :
3293  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3294# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3295# work properly (i.e., refer to `conftest.exe'), while it won't with
3296# `rm'.
3297for ac_file in conftest.exe conftest conftest.*; do
3298  test -f "$ac_file" || continue
3299  case $ac_file in
3300    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302	  break;;
3303    * ) break;;
3304  esac
3305done
3306else
3307  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3310See \`config.log' for more details" "$LINENO" 5; }
3311fi
3312rm -f conftest conftest$ac_cv_exeext
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3314$as_echo "$ac_cv_exeext" >&6; }
3315
3316rm -f conftest.$ac_ext
3317EXEEXT=$ac_cv_exeext
3318ac_exeext=$EXEEXT
3319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320/* end confdefs.h.  */
3321#include <stdio.h>
3322int
3323main ()
3324{
3325FILE *f = fopen ("conftest.out", "w");
3326 return ferror (f) || fclose (f) != 0;
3327
3328  ;
3329  return 0;
3330}
3331_ACEOF
3332ac_clean_files="$ac_clean_files conftest.out"
3333# Check that the compiler produces executables we can run.  If not, either
3334# the compiler is broken, or we cross compile.
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3336$as_echo_n "checking whether we are cross compiling... " >&6; }
3337if test "$cross_compiling" != yes; then
3338  { { ac_try="$ac_link"
3339case "(($ac_try" in
3340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341  *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345  (eval "$ac_link") 2>&5
3346  ac_status=$?
3347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348  test $ac_status = 0; }
3349  if { ac_try='./conftest$ac_cv_exeext'
3350  { { case "(($ac_try" in
3351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352  *) ac_try_echo=$ac_try;;
3353esac
3354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355$as_echo "$ac_try_echo"; } >&5
3356  (eval "$ac_try") 2>&5
3357  ac_status=$?
3358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359  test $ac_status = 0; }; }; then
3360    cross_compiling=no
3361  else
3362    if test "$cross_compiling" = maybe; then
3363	cross_compiling=yes
3364    else
3365	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367as_fn_error $? "cannot run C++ compiled programs.
3368If you meant to cross compile, use \`--host'.
3369See \`config.log' for more details" "$LINENO" 5; }
3370    fi
3371  fi
3372fi
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3374$as_echo "$cross_compiling" >&6; }
3375
3376rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3377ac_clean_files=$ac_clean_files_save
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3379$as_echo_n "checking for suffix of object files... " >&6; }
3380if ${ac_cv_objext+:} false; then :
3381  $as_echo_n "(cached) " >&6
3382else
3383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384/* end confdefs.h.  */
3385
3386int
3387main ()
3388{
3389
3390  ;
3391  return 0;
3392}
3393_ACEOF
3394rm -f conftest.o conftest.obj
3395if { { ac_try="$ac_compile"
3396case "(($ac_try" in
3397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398  *) ac_try_echo=$ac_try;;
3399esac
3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401$as_echo "$ac_try_echo"; } >&5
3402  (eval "$ac_compile") 2>&5
3403  ac_status=$?
3404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405  test $ac_status = 0; }; then :
3406  for ac_file in conftest.o conftest.obj conftest.*; do
3407  test -f "$ac_file" || continue;
3408  case $ac_file in
3409    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3410    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3411       break;;
3412  esac
3413done
3414else
3415  $as_echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
3418{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420as_fn_error $? "cannot compute suffix of object files: cannot compile
3421See \`config.log' for more details" "$LINENO" 5; }
3422fi
3423rm -f conftest.$ac_cv_objext conftest.$ac_ext
3424fi
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3426$as_echo "$ac_cv_objext" >&6; }
3427OBJEXT=$ac_cv_objext
3428ac_objext=$OBJEXT
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3430$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3431if ${ac_cv_cxx_compiler_gnu+:} false; then :
3432  $as_echo_n "(cached) " >&6
3433else
3434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h.  */
3436
3437int
3438main ()
3439{
3440#ifndef __GNUC__
3441       choke me
3442#endif
3443
3444  ;
3445  return 0;
3446}
3447_ACEOF
3448if ac_fn_cxx_try_compile "$LINENO"; then :
3449  ac_compiler_gnu=yes
3450else
3451  ac_compiler_gnu=no
3452fi
3453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3455
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3458$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3459if test $ac_compiler_gnu = yes; then
3460  GXX=yes
3461else
3462  GXX=
3463fi
3464ac_test_CXXFLAGS=${CXXFLAGS+set}
3465ac_save_CXXFLAGS=$CXXFLAGS
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3467$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3468if ${ac_cv_prog_cxx_g+:} false; then :
3469  $as_echo_n "(cached) " >&6
3470else
3471  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3472   ac_cxx_werror_flag=yes
3473   ac_cv_prog_cxx_g=no
3474   CXXFLAGS="-g"
3475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h.  */
3477
3478int
3479main ()
3480{
3481
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486if ac_fn_cxx_try_compile "$LINENO"; then :
3487  ac_cv_prog_cxx_g=yes
3488else
3489  CXXFLAGS=""
3490      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491/* end confdefs.h.  */
3492
3493int
3494main ()
3495{
3496
3497  ;
3498  return 0;
3499}
3500_ACEOF
3501if ac_fn_cxx_try_compile "$LINENO"; then :
3502
3503else
3504  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3505	 CXXFLAGS="-g"
3506	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507/* end confdefs.h.  */
3508
3509int
3510main ()
3511{
3512
3513  ;
3514  return 0;
3515}
3516_ACEOF
3517if ac_fn_cxx_try_compile "$LINENO"; then :
3518  ac_cv_prog_cxx_g=yes
3519fi
3520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521fi
3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523fi
3524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3528$as_echo "$ac_cv_prog_cxx_g" >&6; }
3529if test "$ac_test_CXXFLAGS" = set; then
3530  CXXFLAGS=$ac_save_CXXFLAGS
3531elif test $ac_cv_prog_cxx_g = yes; then
3532  if test "$GXX" = yes; then
3533    CXXFLAGS="-g -O2"
3534  else
3535    CXXFLAGS="-g"
3536  fi
3537else
3538  if test "$GXX" = yes; then
3539    CXXFLAGS="-O2"
3540  else
3541    CXXFLAGS=
3542  fi
3543fi
3544ac_ext=c
3545ac_cpp='$CPP $CPPFLAGS'
3546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549DEPDIR="${am__leading_dot}deps"
3550
3551ac_config_commands="$ac_config_commands depfiles"
3552
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3554$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3555cat > confinc.mk << 'END'
3556am__doit:
3557	@echo this is the am__doit target >confinc.out
3558.PHONY: am__doit
3559END
3560am__include="#"
3561am__quote=
3562# BSD make does it like this.
3563echo '.include "confinc.mk" # ignored' > confmf.BSD
3564# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3565echo 'include confinc.mk # ignored' > confmf.GNU
3566_am_result=no
3567for s in GNU BSD; do
3568  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3569   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3570   ac_status=$?
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); }
3573  case $?:`cat confinc.out 2>/dev/null` in #(
3574  '0:this is the am__doit target') :
3575    case $s in #(
3576  BSD) :
3577    am__include='.include' am__quote='"' ;; #(
3578  *) :
3579    am__include='include' am__quote='' ;;
3580esac ;; #(
3581  *) :
3582     ;;
3583esac
3584  if test "$am__include" != "#"; then
3585    _am_result="yes ($s style)"
3586    break
3587  fi
3588done
3589rm -f confinc.* confmf.*
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3591$as_echo "${_am_result}" >&6; }
3592
3593# Check whether --enable-dependency-tracking was given.
3594if test "${enable_dependency_tracking+set}" = set; then :
3595  enableval=$enable_dependency_tracking;
3596fi
3597
3598if test "x$enable_dependency_tracking" != xno; then
3599  am_depcomp="$ac_aux_dir/depcomp"
3600  AMDEPBACKSLASH='\'
3601  am__nodep='_no'
3602fi
3603 if test "x$enable_dependency_tracking" != xno; then
3604  AMDEP_TRUE=
3605  AMDEP_FALSE='#'
3606else
3607  AMDEP_TRUE='#'
3608  AMDEP_FALSE=
3609fi
3610
3611
3612
3613depcc="$CXX"  am_compiler_list=
3614
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3616$as_echo_n "checking dependency style of $depcc... " >&6; }
3617if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3618  $as_echo_n "(cached) " >&6
3619else
3620  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3621  # We make a subdir and do the tests there.  Otherwise we can end up
3622  # making bogus files that we don't know about and never remove.  For
3623  # instance it was reported that on HP-UX the gcc test will end up
3624  # making a dummy file named 'D' -- because '-MD' means "put the output
3625  # in D".
3626  rm -rf conftest.dir
3627  mkdir conftest.dir
3628  # Copy depcomp to subdir because otherwise we won't find it if we're
3629  # using a relative directory.
3630  cp "$am_depcomp" conftest.dir
3631  cd conftest.dir
3632  # We will build objects and dependencies in a subdirectory because
3633  # it helps to detect inapplicable dependency modes.  For instance
3634  # both Tru64's cc and ICC support -MD to output dependencies as a
3635  # side effect of compilation, but ICC will put the dependencies in
3636  # the current directory while Tru64 will put them in the object
3637  # directory.
3638  mkdir sub
3639
3640  am_cv_CXX_dependencies_compiler_type=none
3641  if test "$am_compiler_list" = ""; then
3642     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3643  fi
3644  am__universal=false
3645  case " $depcc " in #(
3646     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3647     esac
3648
3649  for depmode in $am_compiler_list; do
3650    # Setup a source with many dependencies, because some compilers
3651    # like to wrap large dependency lists on column 80 (with \), and
3652    # we should not choose a depcomp mode which is confused by this.
3653    #
3654    # We need to recreate these files for each test, as the compiler may
3655    # overwrite some of them when testing with obscure command lines.
3656    # This happens at least with the AIX C compiler.
3657    : > sub/conftest.c
3658    for i in 1 2 3 4 5 6; do
3659      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3660      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3661      # Solaris 10 /bin/sh.
3662      echo '/* dummy */' > sub/conftst$i.h
3663    done
3664    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3665
3666    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3667    # mode.  It turns out that the SunPro C++ compiler does not properly
3668    # handle '-M -o', and we need to detect this.  Also, some Intel
3669    # versions had trouble with output in subdirs.
3670    am__obj=sub/conftest.${OBJEXT-o}
3671    am__minus_obj="-o $am__obj"
3672    case $depmode in
3673    gcc)
3674      # This depmode causes a compiler race in universal mode.
3675      test "$am__universal" = false || continue
3676      ;;
3677    nosideeffect)
3678      # After this tag, mechanisms are not by side-effect, so they'll
3679      # only be used when explicitly requested.
3680      if test "x$enable_dependency_tracking" = xyes; then
3681	continue
3682      else
3683	break
3684      fi
3685      ;;
3686    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3687      # This compiler won't grok '-c -o', but also, the minuso test has
3688      # not run yet.  These depmodes are late enough in the game, and
3689      # so weak that their functioning should not be impacted.
3690      am__obj=conftest.${OBJEXT-o}
3691      am__minus_obj=
3692      ;;
3693    none) break ;;
3694    esac
3695    if depmode=$depmode \
3696       source=sub/conftest.c object=$am__obj \
3697       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3698       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3699         >/dev/null 2>conftest.err &&
3700       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3701       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3702       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3703       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3704      # icc doesn't choke on unknown options, it will just issue warnings
3705      # or remarks (even with -Werror).  So we grep stderr for any message
3706      # that says an option was ignored or not supported.
3707      # When given -MP, icc 7.0 and 7.1 complain thusly:
3708      #   icc: Command line warning: ignoring option '-M'; no argument required
3709      # The diagnosis changed in icc 8.0:
3710      #   icc: Command line remark: option '-MP' not supported
3711      if (grep 'ignoring option' conftest.err ||
3712          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3713        am_cv_CXX_dependencies_compiler_type=$depmode
3714        break
3715      fi
3716    fi
3717  done
3718
3719  cd ..
3720  rm -rf conftest.dir
3721else
3722  am_cv_CXX_dependencies_compiler_type=none
3723fi
3724
3725fi
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3727$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3728CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3729
3730 if
3731  test "x$enable_dependency_tracking" != xno \
3732  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3733  am__fastdepCXX_TRUE=
3734  am__fastdepCXX_FALSE='#'
3735else
3736  am__fastdepCXX_TRUE='#'
3737  am__fastdepCXX_FALSE=
3738fi
3739
3740
3741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746if test -n "$ac_tool_prefix"; then
3747  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3748set dummy ${ac_tool_prefix}gcc; ac_word=$2
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750$as_echo_n "checking for $ac_word... " >&6; }
3751if ${ac_cv_prog_CC+:} false; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  if test -n "$CC"; then
3755  ac_cv_prog_CC="$CC" # Let the user override the test.
3756else
3757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH
3759do
3760  IFS=$as_save_IFS
3761  test -z "$as_dir" && as_dir=.
3762    for ac_exec_ext in '' $ac_executable_extensions; do
3763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766    break 2
3767  fi
3768done
3769  done
3770IFS=$as_save_IFS
3771
3772fi
3773fi
3774CC=$ac_cv_prog_CC
3775if test -n "$CC"; then
3776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777$as_echo "$CC" >&6; }
3778else
3779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780$as_echo "no" >&6; }
3781fi
3782
3783
3784fi
3785if test -z "$ac_cv_prog_CC"; then
3786  ac_ct_CC=$CC
3787  # Extract the first word of "gcc", so it can be a program name with args.
3788set dummy gcc; ac_word=$2
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790$as_echo_n "checking for $ac_word... " >&6; }
3791if ${ac_cv_prog_ac_ct_CC+:} false; then :
3792  $as_echo_n "(cached) " >&6
3793else
3794  if test -n "$ac_ct_CC"; then
3795  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796else
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800  IFS=$as_save_IFS
3801  test -z "$as_dir" && as_dir=.
3802    for ac_exec_ext in '' $ac_executable_extensions; do
3803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804    ac_cv_prog_ac_ct_CC="gcc"
3805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806    break 2
3807  fi
3808done
3809  done
3810IFS=$as_save_IFS
3811
3812fi
3813fi
3814ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815if test -n "$ac_ct_CC"; then
3816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817$as_echo "$ac_ct_CC" >&6; }
3818else
3819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820$as_echo "no" >&6; }
3821fi
3822
3823  if test "x$ac_ct_CC" = x; then
3824    CC=""
3825  else
3826    case $cross_compiling:$ac_tool_warned in
3827yes:)
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830ac_tool_warned=yes ;;
3831esac
3832    CC=$ac_ct_CC
3833  fi
3834else
3835  CC="$ac_cv_prog_CC"
3836fi
3837
3838if test -z "$CC"; then
3839          if test -n "$ac_tool_prefix"; then
3840    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3841set dummy ${ac_tool_prefix}cc; ac_word=$2
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843$as_echo_n "checking for $ac_word... " >&6; }
3844if ${ac_cv_prog_CC+:} false; then :
3845  $as_echo_n "(cached) " >&6
3846else
3847  if test -n "$CC"; then
3848  ac_cv_prog_CC="$CC" # Let the user override the test.
3849else
3850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH
3852do
3853  IFS=$as_save_IFS
3854  test -z "$as_dir" && as_dir=.
3855    for ac_exec_ext in '' $ac_executable_extensions; do
3856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857    ac_cv_prog_CC="${ac_tool_prefix}cc"
3858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859    break 2
3860  fi
3861done
3862  done
3863IFS=$as_save_IFS
3864
3865fi
3866fi
3867CC=$ac_cv_prog_CC
3868if test -n "$CC"; then
3869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870$as_echo "$CC" >&6; }
3871else
3872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873$as_echo "no" >&6; }
3874fi
3875
3876
3877  fi
3878fi
3879if test -z "$CC"; then
3880  # Extract the first word of "cc", so it can be a program name with args.
3881set dummy cc; ac_word=$2
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883$as_echo_n "checking for $ac_word... " >&6; }
3884if ${ac_cv_prog_CC+:} false; then :
3885  $as_echo_n "(cached) " >&6
3886else
3887  if test -n "$CC"; then
3888  ac_cv_prog_CC="$CC" # Let the user override the test.
3889else
3890  ac_prog_rejected=no
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894  IFS=$as_save_IFS
3895  test -z "$as_dir" && as_dir=.
3896    for ac_exec_ext in '' $ac_executable_extensions; do
3897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3899       ac_prog_rejected=yes
3900       continue
3901     fi
3902    ac_cv_prog_CC="cc"
3903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904    break 2
3905  fi
3906done
3907  done
3908IFS=$as_save_IFS
3909
3910if test $ac_prog_rejected = yes; then
3911  # We found a bogon in the path, so make sure we never use it.
3912  set dummy $ac_cv_prog_CC
3913  shift
3914  if test $# != 0; then
3915    # We chose a different compiler from the bogus one.
3916    # However, it has the same basename, so the bogon will be chosen
3917    # first if we set CC to just the basename; use the full file name.
3918    shift
3919    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3920  fi
3921fi
3922fi
3923fi
3924CC=$ac_cv_prog_CC
3925if test -n "$CC"; then
3926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927$as_echo "$CC" >&6; }
3928else
3929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930$as_echo "no" >&6; }
3931fi
3932
3933
3934fi
3935if test -z "$CC"; then
3936  if test -n "$ac_tool_prefix"; then
3937  for ac_prog in cl.exe
3938  do
3939    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942$as_echo_n "checking for $ac_word... " >&6; }
3943if ${ac_cv_prog_CC+:} false; then :
3944  $as_echo_n "(cached) " >&6
3945else
3946  if test -n "$CC"; then
3947  ac_cv_prog_CC="$CC" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952  IFS=$as_save_IFS
3953  test -z "$as_dir" && as_dir=.
3954    for ac_exec_ext in '' $ac_executable_extensions; do
3955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958    break 2
3959  fi
3960done
3961  done
3962IFS=$as_save_IFS
3963
3964fi
3965fi
3966CC=$ac_cv_prog_CC
3967if test -n "$CC"; then
3968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969$as_echo "$CC" >&6; }
3970else
3971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973fi
3974
3975
3976    test -n "$CC" && break
3977  done
3978fi
3979if test -z "$CC"; then
3980  ac_ct_CC=$CC
3981  for ac_prog in cl.exe
3982do
3983  # Extract the first word of "$ac_prog", so it can be a program name with args.
3984set dummy $ac_prog; ac_word=$2
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986$as_echo_n "checking for $ac_word... " >&6; }
3987if ${ac_cv_prog_ac_ct_CC+:} false; then :
3988  $as_echo_n "(cached) " >&6
3989else
3990  if test -n "$ac_ct_CC"; then
3991  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996  IFS=$as_save_IFS
3997  test -z "$as_dir" && as_dir=.
3998    for ac_exec_ext in '' $ac_executable_extensions; do
3999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000    ac_cv_prog_ac_ct_CC="$ac_prog"
4001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002    break 2
4003  fi
4004done
4005  done
4006IFS=$as_save_IFS
4007
4008fi
4009fi
4010ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011if test -n "$ac_ct_CC"; then
4012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013$as_echo "$ac_ct_CC" >&6; }
4014else
4015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016$as_echo "no" >&6; }
4017fi
4018
4019
4020  test -n "$ac_ct_CC" && break
4021done
4022
4023  if test "x$ac_ct_CC" = x; then
4024    CC=""
4025  else
4026    case $cross_compiling:$ac_tool_warned in
4027yes:)
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030ac_tool_warned=yes ;;
4031esac
4032    CC=$ac_ct_CC
4033  fi
4034fi
4035
4036fi
4037
4038
4039test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041as_fn_error $? "no acceptable C compiler found in \$PATH
4042See \`config.log' for more details" "$LINENO" 5; }
4043
4044# Provide some information about the compiler.
4045$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046set X $ac_compile
4047ac_compiler=$2
4048for ac_option in --version -v -V -qversion; do
4049  { { ac_try="$ac_compiler $ac_option >&5"
4050case "(($ac_try" in
4051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052  *) ac_try_echo=$ac_try;;
4053esac
4054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055$as_echo "$ac_try_echo"; } >&5
4056  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4057  ac_status=$?
4058  if test -s conftest.err; then
4059    sed '10a\
4060... rest of stderr output deleted ...
4061         10q' conftest.err >conftest.er1
4062    cat conftest.er1 >&5
4063  fi
4064  rm -f conftest.er1 conftest.err
4065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066  test $ac_status = 0; }
4067done
4068
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4070$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4071if ${ac_cv_c_compiler_gnu+:} false; then :
4072  $as_echo_n "(cached) " >&6
4073else
4074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h.  */
4076
4077int
4078main ()
4079{
4080#ifndef __GNUC__
4081       choke me
4082#endif
4083
4084  ;
4085  return 0;
4086}
4087_ACEOF
4088if ac_fn_c_try_compile "$LINENO"; then :
4089  ac_compiler_gnu=yes
4090else
4091  ac_compiler_gnu=no
4092fi
4093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094ac_cv_c_compiler_gnu=$ac_compiler_gnu
4095
4096fi
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4098$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4099if test $ac_compiler_gnu = yes; then
4100  GCC=yes
4101else
4102  GCC=
4103fi
4104ac_test_CFLAGS=${CFLAGS+set}
4105ac_save_CFLAGS=$CFLAGS
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4107$as_echo_n "checking whether $CC accepts -g... " >&6; }
4108if ${ac_cv_prog_cc_g+:} false; then :
4109  $as_echo_n "(cached) " >&6
4110else
4111  ac_save_c_werror_flag=$ac_c_werror_flag
4112   ac_c_werror_flag=yes
4113   ac_cv_prog_cc_g=no
4114   CFLAGS="-g"
4115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117
4118int
4119main ()
4120{
4121
4122  ;
4123  return 0;
4124}
4125_ACEOF
4126if ac_fn_c_try_compile "$LINENO"; then :
4127  ac_cv_prog_cc_g=yes
4128else
4129  CFLAGS=""
4130      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h.  */
4132
4133int
4134main ()
4135{
4136
4137  ;
4138  return 0;
4139}
4140_ACEOF
4141if ac_fn_c_try_compile "$LINENO"; then :
4142
4143else
4144  ac_c_werror_flag=$ac_save_c_werror_flag
4145	 CFLAGS="-g"
4146	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148
4149int
4150main ()
4151{
4152
4153  ;
4154  return 0;
4155}
4156_ACEOF
4157if ac_fn_c_try_compile "$LINENO"; then :
4158  ac_cv_prog_cc_g=yes
4159fi
4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161fi
4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163fi
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165   ac_c_werror_flag=$ac_save_c_werror_flag
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4168$as_echo "$ac_cv_prog_cc_g" >&6; }
4169if test "$ac_test_CFLAGS" = set; then
4170  CFLAGS=$ac_save_CFLAGS
4171elif test $ac_cv_prog_cc_g = yes; then
4172  if test "$GCC" = yes; then
4173    CFLAGS="-g -O2"
4174  else
4175    CFLAGS="-g"
4176  fi
4177else
4178  if test "$GCC" = yes; then
4179    CFLAGS="-O2"
4180  else
4181    CFLAGS=
4182  fi
4183fi
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4185$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4186if ${ac_cv_prog_cc_c89+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  ac_cv_prog_cc_c89=no
4190ac_save_CC=$CC
4191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192/* end confdefs.h.  */
4193#include <stdarg.h>
4194#include <stdio.h>
4195struct stat;
4196/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4197struct buf { int x; };
4198FILE * (*rcsopen) (struct buf *, struct stat *, int);
4199static char *e (p, i)
4200     char **p;
4201     int i;
4202{
4203  return p[i];
4204}
4205static char *f (char * (*g) (char **, int), char **p, ...)
4206{
4207  char *s;
4208  va_list v;
4209  va_start (v,p);
4210  s = g (p, va_arg (v,int));
4211  va_end (v);
4212  return s;
4213}
4214
4215/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4216   function prototypes and stuff, but not '\xHH' hex character constants.
4217   These don't provoke an error unfortunately, instead are silently treated
4218   as 'x'.  The following induces an error, until -std is added to get
4219   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4220   array size at least.  It's necessary to write '\x00'==0 to get something
4221   that's true only with -std.  */
4222int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4223
4224/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4225   inside strings and character constants.  */
4226#define FOO(x) 'x'
4227int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4228
4229int test (int i, double x);
4230struct s1 {int (*f) (int a);};
4231struct s2 {int (*f) (double a);};
4232int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4233int argc;
4234char **argv;
4235int
4236main ()
4237{
4238return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4239  ;
4240  return 0;
4241}
4242_ACEOF
4243for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4244	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4245do
4246  CC="$ac_save_CC $ac_arg"
4247  if ac_fn_c_try_compile "$LINENO"; then :
4248  ac_cv_prog_cc_c89=$ac_arg
4249fi
4250rm -f core conftest.err conftest.$ac_objext
4251  test "x$ac_cv_prog_cc_c89" != "xno" && break
4252done
4253rm -f conftest.$ac_ext
4254CC=$ac_save_CC
4255
4256fi
4257# AC_CACHE_VAL
4258case "x$ac_cv_prog_cc_c89" in
4259  x)
4260    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4261$as_echo "none needed" >&6; } ;;
4262  xno)
4263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4264$as_echo "unsupported" >&6; } ;;
4265  *)
4266    CC="$CC $ac_cv_prog_cc_c89"
4267    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4268$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4269esac
4270if test "x$ac_cv_prog_cc_c89" != xno; then :
4271
4272fi
4273
4274ac_ext=c
4275ac_cpp='$CPP $CPPFLAGS'
4276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279
4280ac_ext=c
4281ac_cpp='$CPP $CPPFLAGS'
4282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4286$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4287if ${am_cv_prog_cc_c_o+:} false; then :
4288  $as_echo_n "(cached) " >&6
4289else
4290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292
4293int
4294main ()
4295{
4296
4297  ;
4298  return 0;
4299}
4300_ACEOF
4301  # Make sure it works both with $CC and with simple cc.
4302  # Following AC_PROG_CC_C_O, we do the test twice because some
4303  # compilers refuse to overwrite an existing .o file with -o,
4304  # though they will create one.
4305  am_cv_prog_cc_c_o=yes
4306  for am_i in 1 2; do
4307    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4308   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); } \
4312         && test -f conftest2.$ac_objext; then
4313      : OK
4314    else
4315      am_cv_prog_cc_c_o=no
4316      break
4317    fi
4318  done
4319  rm -f core conftest*
4320  unset am_i
4321fi
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4323$as_echo "$am_cv_prog_cc_c_o" >&6; }
4324if test "$am_cv_prog_cc_c_o" != yes; then
4325   # Losing compiler, so override with the script.
4326   # FIXME: It is wrong to rewrite CC.
4327   # But if we don't then we get into trouble of one sort or another.
4328   # A longer-term fix would be to have automake use am__CC in this case,
4329   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4330   CC="$am_aux_dir/compile $CC"
4331fi
4332ac_ext=c
4333ac_cpp='$CPP $CPPFLAGS'
4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338
4339depcc="$CC"   am_compiler_list=
4340
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4342$as_echo_n "checking dependency style of $depcc... " >&6; }
4343if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4347  # We make a subdir and do the tests there.  Otherwise we can end up
4348  # making bogus files that we don't know about and never remove.  For
4349  # instance it was reported that on HP-UX the gcc test will end up
4350  # making a dummy file named 'D' -- because '-MD' means "put the output
4351  # in D".
4352  rm -rf conftest.dir
4353  mkdir conftest.dir
4354  # Copy depcomp to subdir because otherwise we won't find it if we're
4355  # using a relative directory.
4356  cp "$am_depcomp" conftest.dir
4357  cd conftest.dir
4358  # We will build objects and dependencies in a subdirectory because
4359  # it helps to detect inapplicable dependency modes.  For instance
4360  # both Tru64's cc and ICC support -MD to output dependencies as a
4361  # side effect of compilation, but ICC will put the dependencies in
4362  # the current directory while Tru64 will put them in the object
4363  # directory.
4364  mkdir sub
4365
4366  am_cv_CC_dependencies_compiler_type=none
4367  if test "$am_compiler_list" = ""; then
4368     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4369  fi
4370  am__universal=false
4371  case " $depcc " in #(
4372     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4373     esac
4374
4375  for depmode in $am_compiler_list; do
4376    # Setup a source with many dependencies, because some compilers
4377    # like to wrap large dependency lists on column 80 (with \), and
4378    # we should not choose a depcomp mode which is confused by this.
4379    #
4380    # We need to recreate these files for each test, as the compiler may
4381    # overwrite some of them when testing with obscure command lines.
4382    # This happens at least with the AIX C compiler.
4383    : > sub/conftest.c
4384    for i in 1 2 3 4 5 6; do
4385      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4386      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4387      # Solaris 10 /bin/sh.
4388      echo '/* dummy */' > sub/conftst$i.h
4389    done
4390    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4391
4392    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4393    # mode.  It turns out that the SunPro C++ compiler does not properly
4394    # handle '-M -o', and we need to detect this.  Also, some Intel
4395    # versions had trouble with output in subdirs.
4396    am__obj=sub/conftest.${OBJEXT-o}
4397    am__minus_obj="-o $am__obj"
4398    case $depmode in
4399    gcc)
4400      # This depmode causes a compiler race in universal mode.
4401      test "$am__universal" = false || continue
4402      ;;
4403    nosideeffect)
4404      # After this tag, mechanisms are not by side-effect, so they'll
4405      # only be used when explicitly requested.
4406      if test "x$enable_dependency_tracking" = xyes; then
4407	continue
4408      else
4409	break
4410      fi
4411      ;;
4412    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4413      # This compiler won't grok '-c -o', but also, the minuso test has
4414      # not run yet.  These depmodes are late enough in the game, and
4415      # so weak that their functioning should not be impacted.
4416      am__obj=conftest.${OBJEXT-o}
4417      am__minus_obj=
4418      ;;
4419    none) break ;;
4420    esac
4421    if depmode=$depmode \
4422       source=sub/conftest.c object=$am__obj \
4423       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4424       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4425         >/dev/null 2>conftest.err &&
4426       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4427       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4428       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4429       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4430      # icc doesn't choke on unknown options, it will just issue warnings
4431      # or remarks (even with -Werror).  So we grep stderr for any message
4432      # that says an option was ignored or not supported.
4433      # When given -MP, icc 7.0 and 7.1 complain thusly:
4434      #   icc: Command line warning: ignoring option '-M'; no argument required
4435      # The diagnosis changed in icc 8.0:
4436      #   icc: Command line remark: option '-MP' not supported
4437      if (grep 'ignoring option' conftest.err ||
4438          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4439        am_cv_CC_dependencies_compiler_type=$depmode
4440        break
4441      fi
4442    fi
4443  done
4444
4445  cd ..
4446  rm -rf conftest.dir
4447else
4448  am_cv_CC_dependencies_compiler_type=none
4449fi
4450
4451fi
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4453$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4454CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4455
4456 if
4457  test "x$enable_dependency_tracking" != xno \
4458  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4459  am__fastdepCC_TRUE=
4460  am__fastdepCC_FALSE='#'
4461else
4462  am__fastdepCC_TRUE='#'
4463  am__fastdepCC_FALSE=
4464fi
4465
4466
4467ac_ext=c
4468ac_cpp='$CPP $CPPFLAGS'
4469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4473$as_echo_n "checking how to run the C preprocessor... " >&6; }
4474# On Suns, sometimes $CPP names a directory.
4475if test -n "$CPP" && test -d "$CPP"; then
4476  CPP=
4477fi
4478if test -z "$CPP"; then
4479  if ${ac_cv_prog_CPP+:} false; then :
4480  $as_echo_n "(cached) " >&6
4481else
4482      # Double quotes because CPP needs to be expanded
4483    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4484    do
4485      ac_preproc_ok=false
4486for ac_c_preproc_warn_flag in '' yes
4487do
4488  # Use a header file that comes with gcc, so configuring glibc
4489  # with a fresh cross-compiler works.
4490  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4491  # <limits.h> exists even on freestanding compilers.
4492  # On the NeXT, cc -E runs the code through the compiler's parser,
4493  # not just through cpp. "Syntax error" is here to catch this case.
4494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h.  */
4496#ifdef __STDC__
4497# include <limits.h>
4498#else
4499# include <assert.h>
4500#endif
4501		     Syntax error
4502_ACEOF
4503if ac_fn_c_try_cpp "$LINENO"; then :
4504
4505else
4506  # Broken: fails on valid input.
4507continue
4508fi
4509rm -f conftest.err conftest.i conftest.$ac_ext
4510
4511  # OK, works on sane cases.  Now check whether nonexistent headers
4512  # can be detected and how.
4513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514/* end confdefs.h.  */
4515#include <ac_nonexistent.h>
4516_ACEOF
4517if ac_fn_c_try_cpp "$LINENO"; then :
4518  # Broken: success on invalid input.
4519continue
4520else
4521  # Passes both tests.
4522ac_preproc_ok=:
4523break
4524fi
4525rm -f conftest.err conftest.i conftest.$ac_ext
4526
4527done
4528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4529rm -f conftest.i conftest.err conftest.$ac_ext
4530if $ac_preproc_ok; then :
4531  break
4532fi
4533
4534    done
4535    ac_cv_prog_CPP=$CPP
4536
4537fi
4538  CPP=$ac_cv_prog_CPP
4539else
4540  ac_cv_prog_CPP=$CPP
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4543$as_echo "$CPP" >&6; }
4544ac_preproc_ok=false
4545for ac_c_preproc_warn_flag in '' yes
4546do
4547  # Use a header file that comes with gcc, so configuring glibc
4548  # with a fresh cross-compiler works.
4549  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4550  # <limits.h> exists even on freestanding compilers.
4551  # On the NeXT, cc -E runs the code through the compiler's parser,
4552  # not just through cpp. "Syntax error" is here to catch this case.
4553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554/* end confdefs.h.  */
4555#ifdef __STDC__
4556# include <limits.h>
4557#else
4558# include <assert.h>
4559#endif
4560		     Syntax error
4561_ACEOF
4562if ac_fn_c_try_cpp "$LINENO"; then :
4563
4564else
4565  # Broken: fails on valid input.
4566continue
4567fi
4568rm -f conftest.err conftest.i conftest.$ac_ext
4569
4570  # OK, works on sane cases.  Now check whether nonexistent headers
4571  # can be detected and how.
4572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574#include <ac_nonexistent.h>
4575_ACEOF
4576if ac_fn_c_try_cpp "$LINENO"; then :
4577  # Broken: success on invalid input.
4578continue
4579else
4580  # Passes both tests.
4581ac_preproc_ok=:
4582break
4583fi
4584rm -f conftest.err conftest.i conftest.$ac_ext
4585
4586done
4587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4588rm -f conftest.i conftest.err conftest.$ac_ext
4589if $ac_preproc_ok; then :
4590
4591else
4592  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4595See \`config.log' for more details" "$LINENO" 5; }
4596fi
4597
4598ac_ext=c
4599ac_cpp='$CPP $CPPFLAGS'
4600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604# Make sure we can run config.sub.
4605$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4606  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4607
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4609$as_echo_n "checking build system type... " >&6; }
4610if ${ac_cv_build+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  ac_build_alias=$build_alias
4614test "x$ac_build_alias" = x &&
4615  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4616test "x$ac_build_alias" = x &&
4617  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4618ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4619  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4620
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4623$as_echo "$ac_cv_build" >&6; }
4624case $ac_cv_build in
4625*-*-*) ;;
4626*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4627esac
4628build=$ac_cv_build
4629ac_save_IFS=$IFS; IFS='-'
4630set x $ac_cv_build
4631shift
4632build_cpu=$1
4633build_vendor=$2
4634shift; shift
4635# Remember, the first character of IFS is used to create $*,
4636# except with old shells:
4637build_os=$*
4638IFS=$ac_save_IFS
4639case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4640
4641
4642
4643
4644cross_compiling_build=no
4645
4646ac_build_tool_prefix=
4647if test -n "$build"; then :
4648  ac_build_tool_prefix="$build-"
4649elif test -n "$build_alias"; then :
4650  ac_build_tool_prefix="$build_alias-"
4651fi
4652
4653ac_ext=c
4654ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4655ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4656ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
4657ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
4658
4659ac_ext=c
4660ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4661ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4662ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
4663ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
4664if test -n "$ac_build_tool_prefix"; then
4665  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4666set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668$as_echo_n "checking for $ac_word... " >&6; }
4669if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4670  $as_echo_n "(cached) " >&6
4671else
4672  if test -n "$CC_FOR_BUILD"; then
4673  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4674else
4675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in $PATH
4677do
4678  IFS=$as_save_IFS
4679  test -z "$as_dir" && as_dir=.
4680    for ac_exec_ext in '' $ac_executable_extensions; do
4681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
4683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684    break 2
4685  fi
4686done
4687  done
4688IFS=$as_save_IFS
4689
4690fi
4691fi
4692CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4693if test -n "$CC_FOR_BUILD"; then
4694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4695$as_echo "$CC_FOR_BUILD" >&6; }
4696else
4697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698$as_echo "no" >&6; }
4699fi
4700
4701
4702fi
4703if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4704  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4705  # Extract the first word of "gcc", so it can be a program name with args.
4706set dummy gcc; ac_word=$2
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708$as_echo_n "checking for $ac_word... " >&6; }
4709if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4710  $as_echo_n "(cached) " >&6
4711else
4712  if test -n "$ac_ct_CC_FOR_BUILD"; then
4713  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718  IFS=$as_save_IFS
4719  test -z "$as_dir" && as_dir=.
4720    for ac_exec_ext in '' $ac_executable_extensions; do
4721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722    ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724    break 2
4725  fi
4726done
4727  done
4728IFS=$as_save_IFS
4729
4730fi
4731fi
4732ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4733if test -n "$ac_ct_CC_FOR_BUILD"; then
4734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4735$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4736else
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738$as_echo "no" >&6; }
4739fi
4740
4741  if test "x$ac_ct_CC_FOR_BUILD" = x; then
4742    CC_FOR_BUILD=""
4743  else
4744    case $cross_compiling_build:$ac_tool_warned in
4745yes:)
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4747$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4748ac_tool_warned=yes ;;
4749esac
4750    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4751  fi
4752else
4753  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4754fi
4755
4756if test -z "$CC_FOR_BUILD"; then
4757          if test -n "$ac_build_tool_prefix"; then
4758    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4759set dummy ${ac_build_tool_prefix}cc; ac_word=$2
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761$as_echo_n "checking for $ac_word... " >&6; }
4762if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  if test -n "$CC_FOR_BUILD"; then
4766  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771  IFS=$as_save_IFS
4772  test -z "$as_dir" && as_dir=.
4773    for ac_exec_ext in '' $ac_executable_extensions; do
4774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
4776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777    break 2
4778  fi
4779done
4780  done
4781IFS=$as_save_IFS
4782
4783fi
4784fi
4785CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4786if test -n "$CC_FOR_BUILD"; then
4787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4788$as_echo "$CC_FOR_BUILD" >&6; }
4789else
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791$as_echo "no" >&6; }
4792fi
4793
4794
4795  fi
4796fi
4797if test -z "$CC_FOR_BUILD"; then
4798  # Extract the first word of "cc", so it can be a program name with args.
4799set dummy cc; ac_word=$2
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801$as_echo_n "checking for $ac_word... " >&6; }
4802if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  if test -n "$CC_FOR_BUILD"; then
4806  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4807else
4808  ac_prog_rejected=no
4809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812  IFS=$as_save_IFS
4813  test -z "$as_dir" && as_dir=.
4814    for ac_exec_ext in '' $ac_executable_extensions; do
4815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4817       ac_prog_rejected=yes
4818       continue
4819     fi
4820    ac_cv_prog_CC_FOR_BUILD="cc"
4821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822    break 2
4823  fi
4824done
4825  done
4826IFS=$as_save_IFS
4827
4828if test $ac_prog_rejected = yes; then
4829  # We found a bogon in the path, so make sure we never use it.
4830  set dummy $ac_cv_prog_CC_FOR_BUILD
4831  shift
4832  if test $# != 0; then
4833    # We chose a different compiler from the bogus one.
4834    # However, it has the same basename, so the bogon will be chosen
4835    # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4836    shift
4837    ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4838  fi
4839fi
4840fi
4841fi
4842CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4843if test -n "$CC_FOR_BUILD"; then
4844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4845$as_echo "$CC_FOR_BUILD" >&6; }
4846else
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849fi
4850
4851
4852fi
4853if test -z "$CC_FOR_BUILD"; then
4854  if test -n "$ac_build_tool_prefix"; then
4855  for ac_prog in cl.exe
4856  do
4857    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4858set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860$as_echo_n "checking for $ac_word... " >&6; }
4861if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  if test -n "$CC_FOR_BUILD"; then
4865  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4866else
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870  IFS=$as_save_IFS
4871  test -z "$as_dir" && as_dir=.
4872    for ac_exec_ext in '' $ac_executable_extensions; do
4873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874    ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
4875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876    break 2
4877  fi
4878done
4879  done
4880IFS=$as_save_IFS
4881
4882fi
4883fi
4884CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4885if test -n "$CC_FOR_BUILD"; then
4886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4887$as_echo "$CC_FOR_BUILD" >&6; }
4888else
4889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890$as_echo "no" >&6; }
4891fi
4892
4893
4894    test -n "$CC_FOR_BUILD" && break
4895  done
4896fi
4897if test -z "$CC_FOR_BUILD"; then
4898  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4899  for ac_prog in cl.exe
4900do
4901  # Extract the first word of "$ac_prog", so it can be a program name with args.
4902set dummy $ac_prog; ac_word=$2
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904$as_echo_n "checking for $ac_word... " >&6; }
4905if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4906  $as_echo_n "(cached) " >&6
4907else
4908  if test -n "$ac_ct_CC_FOR_BUILD"; then
4909  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914  IFS=$as_save_IFS
4915  test -z "$as_dir" && as_dir=.
4916    for ac_exec_ext in '' $ac_executable_extensions; do
4917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918    ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
4919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920    break 2
4921  fi
4922done
4923  done
4924IFS=$as_save_IFS
4925
4926fi
4927fi
4928ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4929if test -n "$ac_ct_CC_FOR_BUILD"; then
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4931$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4932else
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934$as_echo "no" >&6; }
4935fi
4936
4937
4938  test -n "$ac_ct_CC_FOR_BUILD" && break
4939done
4940
4941  if test "x$ac_ct_CC_FOR_BUILD" = x; then
4942    CC_FOR_BUILD=""
4943  else
4944    case $cross_compiling_build:$ac_tool_warned in
4945yes:)
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4947$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4948ac_tool_warned=yes ;;
4949esac
4950    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4951  fi
4952fi
4953
4954fi
4955
4956
4957test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4959as_fn_error $? "no acceptable C compiler found in \$PATH
4960See \`config.log' for more details" "$LINENO" 5; }
4961
4962# Provide some information about the compiler.
4963$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4964set X $ac_compile
4965ac_compiler=$2
4966for ac_option in --version -v -V -qversion; do
4967  { { ac_try="$ac_compiler $ac_option >&5"
4968case "(($ac_try" in
4969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970  *) ac_try_echo=$ac_try;;
4971esac
4972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4973$as_echo "$ac_try_echo"; } >&5
4974  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4975  ac_status=$?
4976  if test -s conftest.err; then
4977    sed '10a\
4978... rest of stderr output deleted ...
4979         10q' conftest.err >conftest.er1
4980    cat conftest.er1 >&5
4981  fi
4982  rm -f conftest.er1 conftest.err
4983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984  test $ac_status = 0; }
4985done
4986
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4988$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4989if ${ac_cv_c_compiler_gnu+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993/* end confdefs.h.  */
4994
4995int
4996main ()
4997{
4998#ifndef __GNUC__
4999       choke me
5000#endif
5001
5002  ;
5003  return 0;
5004}
5005_ACEOF
5006if ac_fn_c_try_compile "$LINENO"; then :
5007  ac_compiler_gnu=yes
5008else
5009  ac_compiler_gnu=no
5010fi
5011rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5012ac_cv_c_compiler_gnu=$ac_compiler_gnu
5013
5014fi
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5016$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5017if test $ac_compiler_gnu = yes; then
5018  GCC_FOR_BUILD=yes
5019else
5020  GCC_FOR_BUILD=
5021fi
5022ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5023ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5025$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5026if ${ac_cv_build_prog_cc_g+:} false; then :
5027  $as_echo_n "(cached) " >&6
5028else
5029  ac_save_c_werror_flag=$ac_c_werror_flag
5030   ac_c_werror_flag=yes
5031   ac_cv_build_prog_cc_g=no
5032   CFLAGS_FOR_BUILD="-g"
5033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035
5036int
5037main ()
5038{
5039
5040  ;
5041  return 0;
5042}
5043_ACEOF
5044if ac_fn_c_try_compile "$LINENO"; then :
5045  ac_cv_build_prog_cc_g=yes
5046else
5047  CFLAGS_FOR_BUILD=""
5048      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049/* end confdefs.h.  */
5050
5051int
5052main ()
5053{
5054
5055  ;
5056  return 0;
5057}
5058_ACEOF
5059if ac_fn_c_try_compile "$LINENO"; then :
5060
5061else
5062  ac_c_werror_flag=$ac_save_c_werror_flag
5063	 CFLAGS_FOR_BUILD="-g"
5064	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065/* end confdefs.h.  */
5066
5067int
5068main ()
5069{
5070
5071  ;
5072  return 0;
5073}
5074_ACEOF
5075if ac_fn_c_try_compile "$LINENO"; then :
5076  ac_cv_build_prog_cc_g=yes
5077fi
5078rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5079fi
5080rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5081fi
5082rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5083   ac_c_werror_flag=$ac_save_c_werror_flag
5084fi
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5086$as_echo "$ac_cv_build_prog_cc_g" >&6; }
5087if test "$ac_test_CFLAGS" = set; then
5088  CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5089elif test $ac_cv_build_prog_cc_g = yes; then
5090  if test "$GCC_FOR_BUILD" = yes; then
5091    CFLAGS_FOR_BUILD="-g -O2"
5092  else
5093    CFLAGS_FOR_BUILD="-g"
5094  fi
5095else
5096  if test "$GCC_FOR_BUILD" = yes; then
5097    CFLAGS_FOR_BUILD="-O2"
5098  else
5099    CFLAGS_FOR_BUILD=
5100  fi
5101fi
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5103$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5104if ${ac_cv_build_prog_cc_c89+:} false; then :
5105  $as_echo_n "(cached) " >&6
5106else
5107  ac_cv_build_prog_cc_c89=no
5108ac_save_CC=$CC_FOR_BUILD
5109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110/* end confdefs.h.  */
5111#include <stdarg.h>
5112#include <stdio.h>
5113struct stat;
5114/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5115struct buf { int x; };
5116FILE * (*rcsopen) (struct buf *, struct stat *, int);
5117static char *e (p, i)
5118     char **p;
5119     int i;
5120{
5121  return p[i];
5122}
5123static char *f (char * (*g) (char **, int), char **p, ...)
5124{
5125  char *s;
5126  va_list v;
5127  va_start (v,p);
5128  s = g (p, va_arg (v,int));
5129  va_end (v);
5130  return s;
5131}
5132
5133/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5134   function prototypes and stuff, but not '\xHH' hex character constants.
5135   These don't provoke an error unfortunately, instead are silently treated
5136   as 'x'.  The following induces an error, until -std is added to get
5137   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5138   array size at least.  It's necessary to write '\x00'==0 to get something
5139   that's true only with -std.  */
5140int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5141
5142/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5143   inside strings and character constants.  */
5144#define FOO(x) 'x'
5145int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5146
5147int test (int i, double x);
5148struct s1 {int (*f) (int a);};
5149struct s2 {int (*f) (double a);};
5150int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5151int argc;
5152char **argv;
5153int
5154main ()
5155{
5156return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5157  ;
5158  return 0;
5159}
5160_ACEOF
5161for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5162	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5163do
5164  CC_FOR_BUILD="$ac_save_CC $ac_arg"
5165  if ac_fn_c_try_compile "$LINENO"; then :
5166  ac_cv_build_prog_cc_c89=$ac_arg
5167fi
5168rm -f core conftest.err conftest.$ac_build_objext
5169  test "x$ac_cv_build_prog_cc_c89" != "xno" && break
5170done
5171rm -f conftest.$ac_ext
5172CC_FOR_BUILD=$ac_save_CC
5173
5174fi
5175# AC_CACHE_VAL
5176case "x$ac_cv_build_prog_cc_c89" in
5177  x)
5178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5179$as_echo "none needed" >&6; } ;;
5180  xno)
5181    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5182$as_echo "unsupported" >&6; } ;;
5183  *)
5184    CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89"
5185    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
5186$as_echo "$ac_cv_build_prog_cc_c89" >&6; } ;;
5187esac
5188if test "x$ac_cv_build_prog_cc_c89" != xno; then :
5189
5190fi
5191
5192ac_ext=c
5193ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5194ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5195ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5196ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5197
5198ac_ext=c
5199ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5200ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5201ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5204$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5205if ${am_cv_build_prog_cc_c_o+:} false; then :
5206  $as_echo_n "(cached) " >&6
5207else
5208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209/* end confdefs.h.  */
5210
5211int
5212main ()
5213{
5214
5215  ;
5216  return 0;
5217}
5218_ACEOF
5219  # Make sure it works both with $CC and with simple cc.
5220  # Following AC_PROG_CC_C_O, we do the test twice because some
5221  # compilers refuse to overwrite an existing .o file with -o,
5222  # though they will create one.
5223  am_cv_build_prog_cc_c_o=yes
5224  for am_i in 1 2; do
5225    if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5226   ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } \
5230         && test -f conftest2.$ac_build_objext; then
5231      : OK
5232    else
5233      am_cv_build_prog_cc_c_o=no
5234      break
5235    fi
5236  done
5237  rm -f core conftest*
5238  unset am_i
5239fi
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5
5241$as_echo "$am_cv_build_prog_cc_c_o" >&6; }
5242if test "$am_cv_build_prog_cc_c_o" != yes; then
5243   # Losing compiler, so override with the script.
5244   # FIXME: It is wrong to rewrite CC.
5245   # But if we don't then we get into trouble of one sort or another.
5246   # A longer-term fix would be to have automake use am__CC in this case,
5247   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5248   CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5249fi
5250ac_ext=c
5251ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5252ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5253ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5254ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5255
5256
5257depcc="$CC_FOR_BUILD"   am_compiler_list=
5258
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5260$as_echo_n "checking dependency style of $depcc... " >&6; }
5261if ${am_cv_build_CC_dependencies_compiler_type+:} false; then :
5262  $as_echo_n "(cached) " >&6
5263else
5264  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5265  # We make a subdir and do the tests there.  Otherwise we can end up
5266  # making bogus files that we don't know about and never remove.  For
5267  # instance it was reported that on HP-UX the gcc test will end up
5268  # making a dummy file named 'D' -- because '-MD' means "put the output
5269  # in D".
5270  rm -rf conftest.dir
5271  mkdir conftest.dir
5272  # Copy depcomp to subdir because otherwise we won't find it if we're
5273  # using a relative directory.
5274  cp "$am_depcomp" conftest.dir
5275  cd conftest.dir
5276  # We will build objects and dependencies in a subdirectory because
5277  # it helps to detect inapplicable dependency modes.  For instance
5278  # both Tru64's cc and ICC support -MD to output dependencies as a
5279  # side effect of compilation, but ICC will put the dependencies in
5280  # the current directory while Tru64 will put them in the object
5281  # directory.
5282  mkdir sub
5283
5284  am_cv_build_CC_dependencies_compiler_type=none
5285  if test "$am_compiler_list" = ""; then
5286     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5287  fi
5288  am__universal=false
5289  case " $depcc " in #(
5290     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5291     esac
5292
5293  for depmode in $am_compiler_list; do
5294    # Setup a source with many dependencies, because some compilers
5295    # like to wrap large dependency lists on column 80 (with \), and
5296    # we should not choose a depcomp mode which is confused by this.
5297    #
5298    # We need to recreate these files for each test, as the compiler may
5299    # overwrite some of them when testing with obscure command lines.
5300    # This happens at least with the AIX C compiler.
5301    : > sub/conftest.c
5302    for i in 1 2 3 4 5 6; do
5303      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5304      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5305      # Solaris 10 /bin/sh.
5306      echo '/* dummy */' > sub/conftst$i.h
5307    done
5308    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5309
5310    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5311    # mode.  It turns out that the SunPro C++ compiler does not properly
5312    # handle '-M -o', and we need to detect this.  Also, some Intel
5313    # versions had trouble with output in subdirs.
5314    am__obj=sub/conftest.${BUILD_OBJEXT-o}
5315    am__minus_obj="-o $am__obj"
5316    case $depmode in
5317    gcc)
5318      # This depmode causes a compiler race in universal mode.
5319      test "$am__universal" = false || continue
5320      ;;
5321    nosideeffect)
5322      # After this tag, mechanisms are not by side-effect, so they'll
5323      # only be used when explicitly requested.
5324      if test "x$enable_dependency_tracking" = xyes; then
5325	continue
5326      else
5327	break
5328      fi
5329      ;;
5330    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5331      # This compiler won't grok '-c -o', but also, the minuso test has
5332      # not run yet.  These depmodes are late enough in the game, and
5333      # so weak that their functioning should not be impacted.
5334      am__obj=conftest.${BUILD_OBJEXT-o}
5335      am__minus_obj=
5336      ;;
5337    none) break ;;
5338    esac
5339    if depmode=$depmode \
5340       source=sub/conftest.c object=$am__obj \
5341       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5342       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5343         >/dev/null 2>conftest.err &&
5344       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5345       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5346       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5347       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5348      # icc doesn't choke on unknown options, it will just issue warnings
5349      # or remarks (even with -Werror).  So we grep stderr for any message
5350      # that says an option was ignored or not supported.
5351      # When given -MP, icc 7.0 and 7.1 complain thusly:
5352      #   icc: Command line warning: ignoring option '-M'; no argument required
5353      # The diagnosis changed in icc 8.0:
5354      #   icc: Command line remark: option '-MP' not supported
5355      if (grep 'ignoring option' conftest.err ||
5356          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5357        am_cv_build_CC_dependencies_compiler_type=$depmode
5358        break
5359      fi
5360    fi
5361  done
5362
5363  cd ..
5364  rm -rf conftest.dir
5365else
5366  am_cv_build_CC_dependencies_compiler_type=none
5367fi
5368
5369fi
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5
5371$as_echo "$am_cv_build_CC_dependencies_compiler_type" >&6; }
5372CCDEPMODE_FOR_BUILD=depmode=$am_cv_build_CC_dependencies_compiler_type
5373
5374 if
5375  test "x$enable_dependency_tracking" != xno \
5376  && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then
5377  am__fastdepCC_build_TRUE=
5378  am__fastdepCC_build_FALSE='#'
5379else
5380  am__fastdepCC_build_TRUE='#'
5381  am__fastdepCC_build_FALSE=
5382fi
5383
5384
5385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386/* end confdefs.h.  */
5387
5388int
5389main ()
5390{
5391
5392  ;
5393  return 0;
5394}
5395_ACEOF
5396ac_clean_files_save=$ac_clean_files
5397ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5398# Try to create an executable without -o first, disregard a.out.
5399# It will help us diagnose broken compilers, and finding out an intuition
5400# of exeext.
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5402$as_echo_n "checking whether the C compiler works... " >&6; }
5403ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5404
5405# The possible output files:
5406ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5407
5408ac_rmfiles=
5409for ac_file in $ac_files
5410do
5411  case $ac_file in
5412    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5413    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5414  esac
5415done
5416rm -f $ac_rmfiles
5417
5418if { { ac_try="$ac_link_default"
5419case "(($ac_try" in
5420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421  *) ac_try_echo=$ac_try;;
5422esac
5423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5424$as_echo "$ac_try_echo"; } >&5
5425  (eval "$ac_link_default") 2>&5
5426  ac_status=$?
5427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428  test $ac_status = 0; }; then :
5429  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5430# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5431# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5432# so that the user can short-circuit this test for compilers unknown to
5433# Autoconf.
5434for ac_file in $ac_files ''
5435do
5436  test -f "$ac_file" || continue
5437  case $ac_file in
5438    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5439	;;
5440    [ab].out )
5441	# We found the default executable, but exeext='' is most
5442	# certainly right.
5443	break;;
5444    *.* )
5445	if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5446	then :; else
5447	   ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5448	fi
5449	# We set ac_cv_exeext here because the later test for it is not
5450	# safe: cross compilers may not add the suffix if given an `-o'
5451	# argument, so we may need to know it at that point already.
5452	# Even if this section looks crufty: it has the advantage of
5453	# actually working.
5454	break;;
5455    * )
5456	break;;
5457  esac
5458done
5459test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5460
5461else
5462  ac_file=''
5463fi
5464if test -z "$ac_file"; then :
5465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466$as_echo "no" >&6; }
5467$as_echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5472as_fn_error 77 "C compiler cannot create executables
5473See \`config.log' for more details" "$LINENO" 5; }
5474else
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476$as_echo "yes" >&6; }
5477fi
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5479$as_echo_n "checking for C compiler default output file name... " >&6; }
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5481$as_echo "$ac_file" >&6; }
5482ac_build_exeext=$ac_cv_build_exeext
5483
5484rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5485ac_clean_files=$ac_clean_files_save
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5487$as_echo_n "checking for suffix of executables... " >&6; }
5488if { { ac_try="$ac_link"
5489case "(($ac_try" in
5490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491  *) ac_try_echo=$ac_try;;
5492esac
5493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5494$as_echo "$ac_try_echo"; } >&5
5495  (eval "$ac_link") 2>&5
5496  ac_status=$?
5497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5498  test $ac_status = 0; }; then :
5499  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5500# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5501# work properly (i.e., refer to `conftest.exe'), while it won't with
5502# `rm'.
5503for ac_file in conftest.exe conftest conftest.*; do
5504  test -f "$ac_file" || continue
5505  case $ac_file in
5506    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5507    *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5508	  break;;
5509    * ) break;;
5510  esac
5511done
5512else
5513  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5515as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5516See \`config.log' for more details" "$LINENO" 5; }
5517fi
5518rm -f conftest conftest$ac_cv_build_exeext
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5520$as_echo "$ac_cv_build_exeext" >&6; }
5521
5522rm -f conftest.$ac_ext
5523BUILD_EXEEXT=$ac_cv_build_exeext
5524ac_build_exeext=$BUILD_EXEEXT
5525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h.  */
5527#include <stdio.h>
5528int
5529main ()
5530{
5531FILE *f = fopen ("conftest.out", "w");
5532 return ferror (f) || fclose (f) != 0;
5533
5534  ;
5535  return 0;
5536}
5537_ACEOF
5538ac_clean_files="$ac_clean_files conftest.out"
5539# Check that the compiler produces executables we can run.  If not, either
5540# the compiler is broken, or we cross compile.
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5542$as_echo_n "checking whether we are cross compiling... " >&6; }
5543if test "$cross_compiling_build" != yes; then
5544  { { ac_try="$ac_link"
5545case "(($ac_try" in
5546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547  *) ac_try_echo=$ac_try;;
5548esac
5549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5550$as_echo "$ac_try_echo"; } >&5
5551  (eval "$ac_link") 2>&5
5552  ac_status=$?
5553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5554  test $ac_status = 0; }
5555  if { ac_try='./conftest$ac_cv_build_exeext'
5556  { { case "(($ac_try" in
5557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558  *) ac_try_echo=$ac_try;;
5559esac
5560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5561$as_echo "$ac_try_echo"; } >&5
5562  (eval "$ac_try") 2>&5
5563  ac_status=$?
5564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565  test $ac_status = 0; }; }; then
5566    cross_compiling_build=no
5567  else
5568    if test "$cross_compiling_build" = maybe; then
5569	cross_compiling_build=yes
5570    else
5571	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5573as_fn_error $? "cannot run C compiled programs.
5574If you meant to cross compile, use \`--build'.
5575See \`config.log' for more details" "$LINENO" 5; }
5576    fi
5577  fi
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
5580$as_echo "$cross_compiling_build" >&6; }
5581
5582rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5583ac_clean_files=$ac_clean_files_save
5584
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5586$as_echo_n "checking for suffix of object files... " >&6; }
5587if ${ac_cv_build_objext+:} false; then :
5588  $as_echo_n "(cached) " >&6
5589else
5590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h.  */
5592
5593int
5594main ()
5595{
5596
5597  ;
5598  return 0;
5599}
5600_ACEOF
5601rm -f conftest.o conftest.obj
5602if { { ac_try="$ac_compile"
5603case "(($ac_try" in
5604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605  *) ac_try_echo=$ac_try;;
5606esac
5607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5608$as_echo "$ac_try_echo"; } >&5
5609  (eval "$ac_compile") 2>&5
5610  ac_status=$?
5611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5612  test $ac_status = 0; }; then :
5613  for ac_file in conftest.o conftest.obj conftest.*; do
5614  test -f "$ac_file" || continue;
5615  case $ac_file in
5616    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5617    *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5618       break;;
5619  esac
5620done
5621else
5622  $as_echo "$as_me: failed program was:" >&5
5623sed 's/^/| /' conftest.$ac_ext >&5
5624
5625{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5627as_fn_error $? "cannot compute suffix of object files: cannot compile
5628See \`config.log' for more details" "$LINENO" 5; }
5629fi
5630rm -f conftest.$ac_cv_build_objext conftest.$ac_ext
5631fi
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
5633$as_echo "$ac_cv_build_objext" >&6; }
5634BUILD_OBJEXT=$ac_cv_build_objext
5635ac_build_objext=$BUILD_OBJEXT
5636
5637ac_ext=c
5638ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5639ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5640ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5641ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5643$as_echo_n "checking how to run the C preprocessor... " >&6; }
5644# On Suns, sometimes $CPP names a directory.
5645if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5646  CPP_FOR_BUILD=
5647fi
5648if test -z "$CPP_FOR_BUILD"; then
5649  if ${ac_cv_build_prog_CPP+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652      # Double quotes because CPP needs to be expanded
5653    for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5654    do
5655      ac_preproc_ok=false
5656for ac_c_preproc_warn_flag in '' yes
5657do
5658  # Use a header file that comes with gcc, so configuring glibc
5659  # with a fresh cross-compiler works.
5660  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5661  # <limits.h> exists even on freestanding compilers.
5662  # On the NeXT, cc -E runs the code through the compiler's parser,
5663  # not just through cpp. "Syntax error" is here to catch this case.
5664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665/* end confdefs.h.  */
5666#ifdef __STDC__
5667# include <limits.h>
5668#else
5669# include <assert.h>
5670#endif
5671		     Syntax error
5672_ACEOF
5673if ac_fn_c_try_cpp "$LINENO"; then :
5674
5675else
5676  # Broken: fails on valid input.
5677continue
5678fi
5679rm -f conftest.err conftest.i conftest.$ac_ext
5680
5681  # OK, works on sane cases.  Now check whether nonexistent headers
5682  # can be detected and how.
5683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h.  */
5685#include <ac_nonexistent.h>
5686_ACEOF
5687if ac_fn_c_try_cpp "$LINENO"; then :
5688  # Broken: success on invalid input.
5689continue
5690else
5691  # Passes both tests.
5692ac_preproc_ok=:
5693break
5694fi
5695rm -f conftest.err conftest.i conftest.$ac_ext
5696
5697done
5698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5699rm -f conftest.i conftest.err conftest.$ac_ext
5700if $ac_preproc_ok; then :
5701  break
5702fi
5703
5704    done
5705    ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5706
5707fi
5708  CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5709else
5710  ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5711fi
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
5713$as_echo "$CPP_FOR_BUILD" >&6; }
5714ac_preproc_ok=false
5715for ac_c_preproc_warn_flag in '' yes
5716do
5717  # Use a header file that comes with gcc, so configuring glibc
5718  # with a fresh cross-compiler works.
5719  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5720  # <limits.h> exists even on freestanding compilers.
5721  # On the NeXT, cc -E runs the code through the compiler's parser,
5722  # not just through cpp. "Syntax error" is here to catch this case.
5723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725#ifdef __STDC__
5726# include <limits.h>
5727#else
5728# include <assert.h>
5729#endif
5730		     Syntax error
5731_ACEOF
5732if ac_fn_c_try_cpp "$LINENO"; then :
5733
5734else
5735  # Broken: fails on valid input.
5736continue
5737fi
5738rm -f conftest.err conftest.i conftest.$ac_ext
5739
5740  # OK, works on sane cases.  Now check whether nonexistent headers
5741  # can be detected and how.
5742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h.  */
5744#include <ac_nonexistent.h>
5745_ACEOF
5746if ac_fn_c_try_cpp "$LINENO"; then :
5747  # Broken: success on invalid input.
5748continue
5749else
5750  # Passes both tests.
5751ac_preproc_ok=:
5752break
5753fi
5754rm -f conftest.err conftest.i conftest.$ac_ext
5755
5756done
5757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5758rm -f conftest.i conftest.err conftest.$ac_ext
5759if $ac_preproc_ok; then :
5760
5761else
5762  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5764as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5765See \`config.log' for more details" "$LINENO" 5; }
5766fi
5767
5768ac_ext=c
5769ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5770ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5771ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5772ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5773
5774
5775
5776ac_ext=c
5777ac_cpp='$CPP $CPPFLAGS'
5778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780ac_compiler_gnu=$ac_cv_c_compiler_gnu
5781
5782
5783
5784ac_ext=cpp
5785ac_cpp='$CXXCPP $CPPFLAGS'
5786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5790$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5791if test -z "$CXXCPP"; then
5792  if ${ac_cv_prog_CXXCPP+:} false; then :
5793  $as_echo_n "(cached) " >&6
5794else
5795      # Double quotes because CXXCPP needs to be expanded
5796    for CXXCPP in "$CXX -E" "/lib/cpp"
5797    do
5798      ac_preproc_ok=false
5799for ac_cxx_preproc_warn_flag in '' yes
5800do
5801  # Use a header file that comes with gcc, so configuring glibc
5802  # with a fresh cross-compiler works.
5803  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804  # <limits.h> exists even on freestanding compilers.
5805  # On the NeXT, cc -E runs the code through the compiler's parser,
5806  # not just through cpp. "Syntax error" is here to catch this case.
5807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808/* end confdefs.h.  */
5809#ifdef __STDC__
5810# include <limits.h>
5811#else
5812# include <assert.h>
5813#endif
5814		     Syntax error
5815_ACEOF
5816if ac_fn_cxx_try_cpp "$LINENO"; then :
5817
5818else
5819  # Broken: fails on valid input.
5820continue
5821fi
5822rm -f conftest.err conftest.i conftest.$ac_ext
5823
5824  # OK, works on sane cases.  Now check whether nonexistent headers
5825  # can be detected and how.
5826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h.  */
5828#include <ac_nonexistent.h>
5829_ACEOF
5830if ac_fn_cxx_try_cpp "$LINENO"; then :
5831  # Broken: success on invalid input.
5832continue
5833else
5834  # Passes both tests.
5835ac_preproc_ok=:
5836break
5837fi
5838rm -f conftest.err conftest.i conftest.$ac_ext
5839
5840done
5841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5842rm -f conftest.i conftest.err conftest.$ac_ext
5843if $ac_preproc_ok; then :
5844  break
5845fi
5846
5847    done
5848    ac_cv_prog_CXXCPP=$CXXCPP
5849
5850fi
5851  CXXCPP=$ac_cv_prog_CXXCPP
5852else
5853  ac_cv_prog_CXXCPP=$CXXCPP
5854fi
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5856$as_echo "$CXXCPP" >&6; }
5857ac_preproc_ok=false
5858for ac_cxx_preproc_warn_flag in '' yes
5859do
5860  # Use a header file that comes with gcc, so configuring glibc
5861  # with a fresh cross-compiler works.
5862  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5863  # <limits.h> exists even on freestanding compilers.
5864  # On the NeXT, cc -E runs the code through the compiler's parser,
5865  # not just through cpp. "Syntax error" is here to catch this case.
5866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867/* end confdefs.h.  */
5868#ifdef __STDC__
5869# include <limits.h>
5870#else
5871# include <assert.h>
5872#endif
5873		     Syntax error
5874_ACEOF
5875if ac_fn_cxx_try_cpp "$LINENO"; then :
5876
5877else
5878  # Broken: fails on valid input.
5879continue
5880fi
5881rm -f conftest.err conftest.i conftest.$ac_ext
5882
5883  # OK, works on sane cases.  Now check whether nonexistent headers
5884  # can be detected and how.
5885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886/* end confdefs.h.  */
5887#include <ac_nonexistent.h>
5888_ACEOF
5889if ac_fn_cxx_try_cpp "$LINENO"; then :
5890  # Broken: success on invalid input.
5891continue
5892else
5893  # Passes both tests.
5894ac_preproc_ok=:
5895break
5896fi
5897rm -f conftest.err conftest.i conftest.$ac_ext
5898
5899done
5900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5901rm -f conftest.i conftest.err conftest.$ac_ext
5902if $ac_preproc_ok; then :
5903
5904else
5905  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5907as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5908See \`config.log' for more details" "$LINENO" 5; }
5909fi
5910
5911ac_ext=c
5912ac_cpp='$CPP $CPPFLAGS'
5913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915ac_compiler_gnu=$ac_cv_c_compiler_gnu
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5918$as_echo_n "checking host system type... " >&6; }
5919if ${ac_cv_host+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922  if test "x$host_alias" = x; then
5923  ac_cv_host=$ac_cv_build
5924else
5925  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5926    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5927fi
5928
5929fi
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5931$as_echo "$ac_cv_host" >&6; }
5932case $ac_cv_host in
5933*-*-*) ;;
5934*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5935esac
5936host=$ac_cv_host
5937ac_save_IFS=$IFS; IFS='-'
5938set x $ac_cv_host
5939shift
5940host_cpu=$1
5941host_vendor=$2
5942shift; shift
5943# Remember, the first character of IFS is used to create $*,
5944# except with old shells:
5945host_os=$*
5946IFS=$ac_save_IFS
5947case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5948
5949
5950
5951
5952save_cross_compiling=$cross_compiling
5953save_ac_tool_prefix=$ac_tool_prefix
5954cross_compiling=no
5955ac_tool_prefix=
5956
5957ac_ext=cpp
5958ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5959ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5960ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5962if test -z "$CXX_FOR_BUILD"; then
5963  if test -n "$CCC"; then
5964    CXX_FOR_BUILD=$CCC
5965  else
5966    if test -n "$ac_tool_prefix"; then
5967  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5968  do
5969    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972$as_echo_n "checking for $ac_word... " >&6; }
5973if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  if test -n "$CXX_FOR_BUILD"; then
5977  ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982  IFS=$as_save_IFS
5983  test -z "$as_dir" && as_dir=.
5984    for ac_exec_ext in '' $ac_executable_extensions; do
5985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986    ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
5987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988    break 2
5989  fi
5990done
5991  done
5992IFS=$as_save_IFS
5993
5994fi
5995fi
5996CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
5997if test -n "$CXX_FOR_BUILD"; then
5998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
5999$as_echo "$CXX_FOR_BUILD" >&6; }
6000else
6001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002$as_echo "no" >&6; }
6003fi
6004
6005
6006    test -n "$CXX_FOR_BUILD" && break
6007  done
6008fi
6009if test -z "$CXX_FOR_BUILD"; then
6010  ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
6011  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6012do
6013  # Extract the first word of "$ac_prog", so it can be a program name with args.
6014set dummy $ac_prog; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
6017if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
6018  $as_echo_n "(cached) " >&6
6019else
6020  if test -n "$ac_ct_CXX_FOR_BUILD"; then
6021  ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026  IFS=$as_save_IFS
6027  test -z "$as_dir" && as_dir=.
6028    for ac_exec_ext in '' $ac_executable_extensions; do
6029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030    ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
6031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032    break 2
6033  fi
6034done
6035  done
6036IFS=$as_save_IFS
6037
6038fi
6039fi
6040ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
6041if test -n "$ac_ct_CXX_FOR_BUILD"; then
6042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
6043$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
6044else
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
6047fi
6048
6049
6050  test -n "$ac_ct_CXX_FOR_BUILD" && break
6051done
6052
6053  if test "x$ac_ct_CXX_FOR_BUILD" = x; then
6054    CXX_FOR_BUILD="g++"
6055  else
6056    case $cross_compiling:$ac_tool_warned in
6057yes:)
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6059$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6060ac_tool_warned=yes ;;
6061esac
6062    CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
6063  fi
6064fi
6065
6066  fi
6067fi
6068# Provide some information about the compiler.
6069$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6070set X $ac_build_compile
6071ac_compiler=$2
6072for ac_option in --version -v -V -qversion; do
6073  { { ac_try="$ac_compiler $ac_option >&5"
6074case "(($ac_try" in
6075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076  *) ac_try_echo=$ac_try;;
6077esac
6078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6079$as_echo "$ac_try_echo"; } >&5
6080  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6081  ac_status=$?
6082  if test -s conftest.err; then
6083    sed '10a\
6084... rest of stderr output deleted ...
6085         10q' conftest.err >conftest.er1
6086    cat conftest.er1 >&5
6087  fi
6088  rm -f conftest.er1 conftest.err
6089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6090  test $ac_status = 0; }
6091done
6092
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6094$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6095if ${ac_cv_cxx_compiler_gnu+:} false; then :
6096  $as_echo_n "(cached) " >&6
6097else
6098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099/* end confdefs.h.  */
6100
6101int
6102main ()
6103{
6104#ifndef __GNUC__
6105       choke me
6106#endif
6107
6108  ;
6109  return 0;
6110}
6111_ACEOF
6112if ac_fn_cxx_try_compile "$LINENO"; then :
6113  ac_compiler_gnu=yes
6114else
6115  ac_compiler_gnu=no
6116fi
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6119
6120fi
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6122$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6123if test $ac_compiler_gnu = yes; then
6124  GXX=yes
6125else
6126  GXX=
6127fi
6128ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
6129ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
6131$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
6132if ${ac_cv_build_prog_cxx_g+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6136   ac_cxx_werror_flag=yes
6137   ac_cv_build_prog_cxx_g=no
6138   CXXFLAGS_FOR_BUILD="-g"
6139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140/* end confdefs.h.  */
6141
6142int
6143main ()
6144{
6145
6146  ;
6147  return 0;
6148}
6149_ACEOF
6150if ac_fn_cxx_try_compile "$LINENO"; then :
6151  ac_cv_build_prog_cxx_g=yes
6152else
6153  CXXFLAGS_FOR_BUILD=""
6154      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156
6157int
6158main ()
6159{
6160
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_cxx_try_compile "$LINENO"; then :
6166
6167else
6168  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6169	 CXXFLAGS_FOR_BUILD="-g"
6170	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171/* end confdefs.h.  */
6172
6173int
6174main ()
6175{
6176
6177  ;
6178  return 0;
6179}
6180_ACEOF
6181if ac_fn_cxx_try_compile "$LINENO"; then :
6182  ac_cv_build_prog_cxx_g=yes
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185fi
6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187fi
6188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6190fi
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
6192$as_echo "$ac_cv_build_prog_cxx_g" >&6; }
6193if test "$ac_test_CXXFLAGS" = set; then
6194  CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
6195elif test $ac_cv_build_prog_cxx_g = yes; then
6196  if test "$GXX" = yes; then
6197    CXXFLAGS_FOR_BUILD="-g -O2"
6198  else
6199    CXXFLAGS_FOR_BUILD="-g"
6200  fi
6201else
6202  if test "$GXX" = yes; then
6203    CXXFLAGS_FOR_BUILD="-O2"
6204  else
6205    CXXFLAGS_FOR_BUILD=
6206  fi
6207fi
6208ac_ext=c
6209ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6210ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6211ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213
6214depcc="$CXX_FOR_BUILD"  am_compiler_list=
6215
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6217$as_echo_n "checking dependency style of $depcc... " >&6; }
6218if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6219  $as_echo_n "(cached) " >&6
6220else
6221  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6222  # We make a subdir and do the tests there.  Otherwise we can end up
6223  # making bogus files that we don't know about and never remove.  For
6224  # instance it was reported that on HP-UX the gcc test will end up
6225  # making a dummy file named 'D' -- because '-MD' means "put the output
6226  # in D".
6227  rm -rf conftest.dir
6228  mkdir conftest.dir
6229  # Copy depcomp to subdir because otherwise we won't find it if we're
6230  # using a relative directory.
6231  cp "$am_depcomp" conftest.dir
6232  cd conftest.dir
6233  # We will build objects and dependencies in a subdirectory because
6234  # it helps to detect inapplicable dependency modes.  For instance
6235  # both Tru64's cc and ICC support -MD to output dependencies as a
6236  # side effect of compilation, but ICC will put the dependencies in
6237  # the current directory while Tru64 will put them in the object
6238  # directory.
6239  mkdir sub
6240
6241  am_cv_CXX_dependencies_compiler_type=none
6242  if test "$am_compiler_list" = ""; then
6243     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6244  fi
6245  am__universal=false
6246  case " $depcc " in #(
6247     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6248     esac
6249
6250  for depmode in $am_compiler_list; do
6251    # Setup a source with many dependencies, because some compilers
6252    # like to wrap large dependency lists on column 80 (with \), and
6253    # we should not choose a depcomp mode which is confused by this.
6254    #
6255    # We need to recreate these files for each test, as the compiler may
6256    # overwrite some of them when testing with obscure command lines.
6257    # This happens at least with the AIX C compiler.
6258    : > sub/conftest.c
6259    for i in 1 2 3 4 5 6; do
6260      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6261      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6262      # Solaris 10 /bin/sh.
6263      echo '/* dummy */' > sub/conftst$i.h
6264    done
6265    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6266
6267    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6268    # mode.  It turns out that the SunPro C++ compiler does not properly
6269    # handle '-M -o', and we need to detect this.  Also, some Intel
6270    # versions had trouble with output in subdirs.
6271    am__obj=sub/conftest.${OBJEXT-o}
6272    am__minus_obj="-o $am__obj"
6273    case $depmode in
6274    gcc)
6275      # This depmode causes a compiler race in universal mode.
6276      test "$am__universal" = false || continue
6277      ;;
6278    nosideeffect)
6279      # After this tag, mechanisms are not by side-effect, so they'll
6280      # only be used when explicitly requested.
6281      if test "x$enable_dependency_tracking" = xyes; then
6282	continue
6283      else
6284	break
6285      fi
6286      ;;
6287    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6288      # This compiler won't grok '-c -o', but also, the minuso test has
6289      # not run yet.  These depmodes are late enough in the game, and
6290      # so weak that their functioning should not be impacted.
6291      am__obj=conftest.${OBJEXT-o}
6292      am__minus_obj=
6293      ;;
6294    none) break ;;
6295    esac
6296    if depmode=$depmode \
6297       source=sub/conftest.c object=$am__obj \
6298       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6299       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6300         >/dev/null 2>conftest.err &&
6301       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6302       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6303       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6304       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6305      # icc doesn't choke on unknown options, it will just issue warnings
6306      # or remarks (even with -Werror).  So we grep stderr for any message
6307      # that says an option was ignored or not supported.
6308      # When given -MP, icc 7.0 and 7.1 complain thusly:
6309      #   icc: Command line warning: ignoring option '-M'; no argument required
6310      # The diagnosis changed in icc 8.0:
6311      #   icc: Command line remark: option '-MP' not supported
6312      if (grep 'ignoring option' conftest.err ||
6313          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6314        am_cv_CXX_dependencies_compiler_type=$depmode
6315        break
6316      fi
6317    fi
6318  done
6319
6320  cd ..
6321  rm -rf conftest.dir
6322else
6323  am_cv_CXX_dependencies_compiler_type=none
6324fi
6325
6326fi
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6328$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6329CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6330
6331 if
6332  test "x$enable_dependency_tracking" != xno \
6333  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6334  am__fastdepCXX_TRUE=
6335  am__fastdepCXX_FALSE='#'
6336else
6337  am__fastdepCXX_TRUE='#'
6338  am__fastdepCXX_FALSE=
6339fi
6340
6341
6342ac_ext=cpp
6343ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6344ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6345ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6348$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6349if test -z "$CXXCPP_FOR_BUILD"; then
6350  if ${ac_cv_build_prog_CXXCPP+:} false; then :
6351  $as_echo_n "(cached) " >&6
6352else
6353      # Double quotes because CXXCPP needs to be expanded
6354    for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
6355    do
6356      ac_preproc_ok=false
6357for ac_cxx_preproc_warn_flag in '' yes
6358do
6359  # Use a header file that comes with gcc, so configuring glibc
6360  # with a fresh cross-compiler works.
6361  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6362  # <limits.h> exists even on freestanding compilers.
6363  # On the NeXT, cc -E runs the code through the compiler's parser,
6364  # not just through cpp. "Syntax error" is here to catch this case.
6365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367#ifdef __STDC__
6368# include <limits.h>
6369#else
6370# include <assert.h>
6371#endif
6372		     Syntax error
6373_ACEOF
6374if ac_fn_cxx_try_cpp "$LINENO"; then :
6375
6376else
6377  # Broken: fails on valid input.
6378continue
6379fi
6380rm -f conftest.err conftest.i conftest.$ac_ext
6381
6382  # OK, works on sane cases.  Now check whether nonexistent headers
6383  # can be detected and how.
6384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h.  */
6386#include <ac_nonexistent.h>
6387_ACEOF
6388if ac_fn_cxx_try_cpp "$LINENO"; then :
6389  # Broken: success on invalid input.
6390continue
6391else
6392  # Passes both tests.
6393ac_preproc_ok=:
6394break
6395fi
6396rm -f conftest.err conftest.i conftest.$ac_ext
6397
6398done
6399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6400rm -f conftest.i conftest.err conftest.$ac_ext
6401if $ac_preproc_ok; then :
6402  break
6403fi
6404
6405    done
6406    ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6407
6408fi
6409  CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
6410else
6411  ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6412fi
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
6414$as_echo "$CXXCPP_FOR_BUILD" >&6; }
6415ac_preproc_ok=false
6416for ac_cxx_preproc_warn_flag in '' yes
6417do
6418  # Use a header file that comes with gcc, so configuring glibc
6419  # with a fresh cross-compiler works.
6420  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6421  # <limits.h> exists even on freestanding compilers.
6422  # On the NeXT, cc -E runs the code through the compiler's parser,
6423  # not just through cpp. "Syntax error" is here to catch this case.
6424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425/* end confdefs.h.  */
6426#ifdef __STDC__
6427# include <limits.h>
6428#else
6429# include <assert.h>
6430#endif
6431		     Syntax error
6432_ACEOF
6433if ac_fn_cxx_try_cpp "$LINENO"; then :
6434
6435else
6436  # Broken: fails on valid input.
6437continue
6438fi
6439rm -f conftest.err conftest.i conftest.$ac_ext
6440
6441  # OK, works on sane cases.  Now check whether nonexistent headers
6442  # can be detected and how.
6443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444/* end confdefs.h.  */
6445#include <ac_nonexistent.h>
6446_ACEOF
6447if ac_fn_cxx_try_cpp "$LINENO"; then :
6448  # Broken: success on invalid input.
6449continue
6450else
6451  # Passes both tests.
6452ac_preproc_ok=:
6453break
6454fi
6455rm -f conftest.err conftest.i conftest.$ac_ext
6456
6457done
6458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6459rm -f conftest.i conftest.err conftest.$ac_ext
6460if $ac_preproc_ok; then :
6461
6462else
6463  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6465as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
6466See \`config.log' for more details" "$LINENO" 5; }
6467fi
6468
6469ac_ext=c
6470ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6471ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6472ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6473ac_compiler_gnu=$ac_cv_c_compiler_gnu
6474
6475
6476ac_tool_prefix=$save_ac_tool_prefix
6477cross_compiling=$save_cross_compiling
6478
6479
6480
6481
6482# extract_interface needs to be run on the build system.
6483# Since this is the only target that is being built,
6484# simply use the build compiler throughout.
6485# This ensures that the clang configure checks are
6486# performed using the right compiler.
6487CXX="$CXX_FOR_BUILD"
6488CXXCPP="$CXXCPP_FOR_BUILD"
6489EXEEXT="$BUILD_EXEEXT"
6490OBJEXT="$BUILD_OBJEXT"
6491
6492
6493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6494$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6495if ${ac_cv_path_GREP+:} false; then :
6496  $as_echo_n "(cached) " >&6
6497else
6498  if test -z "$GREP"; then
6499  ac_path_GREP_found=false
6500  # Loop through the user's path and test for each of PROGNAME-LIST
6501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6503do
6504  IFS=$as_save_IFS
6505  test -z "$as_dir" && as_dir=.
6506    for ac_prog in grep ggrep; do
6507    for ac_exec_ext in '' $ac_executable_extensions; do
6508      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6509      as_fn_executable_p "$ac_path_GREP" || continue
6510# Check for GNU ac_path_GREP and select it if it is found.
6511  # Check for GNU $ac_path_GREP
6512case `"$ac_path_GREP" --version 2>&1` in
6513*GNU*)
6514  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6515*)
6516  ac_count=0
6517  $as_echo_n 0123456789 >"conftest.in"
6518  while :
6519  do
6520    cat "conftest.in" "conftest.in" >"conftest.tmp"
6521    mv "conftest.tmp" "conftest.in"
6522    cp "conftest.in" "conftest.nl"
6523    $as_echo 'GREP' >> "conftest.nl"
6524    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6525    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6526    as_fn_arith $ac_count + 1 && ac_count=$as_val
6527    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6528      # Best one so far, save it but keep looking for a better one
6529      ac_cv_path_GREP="$ac_path_GREP"
6530      ac_path_GREP_max=$ac_count
6531    fi
6532    # 10*(2^10) chars as input seems more than enough
6533    test $ac_count -gt 10 && break
6534  done
6535  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6536esac
6537
6538      $ac_path_GREP_found && break 3
6539    done
6540  done
6541  done
6542IFS=$as_save_IFS
6543  if test -z "$ac_cv_path_GREP"; then
6544    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6545  fi
6546else
6547  ac_cv_path_GREP=$GREP
6548fi
6549
6550fi
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6552$as_echo "$ac_cv_path_GREP" >&6; }
6553 GREP="$ac_cv_path_GREP"
6554
6555
6556	echo $CXX | $GREP -e "-std=" > /dev/null 2> /dev/null
6557	if test $? -eq 0; then
6558		  ac_ext=cpp
6559ac_cpp='$CXXCPP $CPPFLAGS'
6560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6563  ac_success=no
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6565$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6566if ${ax_cv_cxx_compile_cxx11+:} false; then :
6567  $as_echo_n "(cached) " >&6
6568else
6569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* end confdefs.h.  */
6571
6572
6573// If the compiler admits that it is not ready for C++11, why torture it?
6574// Hopefully, this will speed up the test.
6575
6576#ifndef __cplusplus
6577
6578#error "This is not a C++ compiler"
6579
6580#elif __cplusplus < 201103L
6581
6582#error "This is not a C++11 compiler"
6583
6584#else
6585
6586namespace cxx11
6587{
6588
6589  namespace test_static_assert
6590  {
6591
6592    template <typename T>
6593    struct check
6594    {
6595      static_assert(sizeof(int) <= sizeof(T), "not big enough");
6596    };
6597
6598  }
6599
6600  namespace test_final_override
6601  {
6602
6603    struct Base
6604    {
6605      virtual void f() {}
6606    };
6607
6608    struct Derived : public Base
6609    {
6610      virtual void f() override {}
6611    };
6612
6613  }
6614
6615  namespace test_double_right_angle_brackets
6616  {
6617
6618    template < typename T >
6619    struct check {};
6620
6621    typedef check<void> single_type;
6622    typedef check<check<void>> double_type;
6623    typedef check<check<check<void>>> triple_type;
6624    typedef check<check<check<check<void>>>> quadruple_type;
6625
6626  }
6627
6628  namespace test_decltype
6629  {
6630
6631    int
6632    f()
6633    {
6634      int a = 1;
6635      decltype(a) b = 2;
6636      return a + b;
6637    }
6638
6639  }
6640
6641  namespace test_type_deduction
6642  {
6643
6644    template < typename T1, typename T2 >
6645    struct is_same
6646    {
6647      static const bool value = false;
6648    };
6649
6650    template < typename T >
6651    struct is_same<T, T>
6652    {
6653      static const bool value = true;
6654    };
6655
6656    template < typename T1, typename T2 >
6657    auto
6658    add(T1 a1, T2 a2) -> decltype(a1 + a2)
6659    {
6660      return a1 + a2;
6661    }
6662
6663    int
6664    test(const int c, volatile int v)
6665    {
6666      static_assert(is_same<int, decltype(0)>::value == true, "");
6667      static_assert(is_same<int, decltype(c)>::value == false, "");
6668      static_assert(is_same<int, decltype(v)>::value == false, "");
6669      auto ac = c;
6670      auto av = v;
6671      auto sumi = ac + av + 'x';
6672      auto sumf = ac + av + 1.0;
6673      static_assert(is_same<int, decltype(ac)>::value == true, "");
6674      static_assert(is_same<int, decltype(av)>::value == true, "");
6675      static_assert(is_same<int, decltype(sumi)>::value == true, "");
6676      static_assert(is_same<int, decltype(sumf)>::value == false, "");
6677      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6678      return (sumf > 0.0) ? sumi : add(c, v);
6679    }
6680
6681  }
6682
6683  namespace test_noexcept
6684  {
6685
6686    int f() { return 0; }
6687    int g() noexcept { return 0; }
6688
6689    static_assert(noexcept(f()) == false, "");
6690    static_assert(noexcept(g()) == true, "");
6691
6692  }
6693
6694  namespace test_constexpr
6695  {
6696
6697    template < typename CharT >
6698    unsigned long constexpr
6699    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6700    {
6701      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6702    }
6703
6704    template < typename CharT >
6705    unsigned long constexpr
6706    strlen_c(const CharT *const s) noexcept
6707    {
6708      return strlen_c_r(s, 0UL);
6709    }
6710
6711    static_assert(strlen_c("") == 0UL, "");
6712    static_assert(strlen_c("1") == 1UL, "");
6713    static_assert(strlen_c("example") == 7UL, "");
6714    static_assert(strlen_c("another\0example") == 7UL, "");
6715
6716  }
6717
6718  namespace test_rvalue_references
6719  {
6720
6721    template < int N >
6722    struct answer
6723    {
6724      static constexpr int value = N;
6725    };
6726
6727    answer<1> f(int&)       { return answer<1>(); }
6728    answer<2> f(const int&) { return answer<2>(); }
6729    answer<3> f(int&&)      { return answer<3>(); }
6730
6731    void
6732    test()
6733    {
6734      int i = 0;
6735      const int c = 0;
6736      static_assert(decltype(f(i))::value == 1, "");
6737      static_assert(decltype(f(c))::value == 2, "");
6738      static_assert(decltype(f(0))::value == 3, "");
6739    }
6740
6741  }
6742
6743  namespace test_uniform_initialization
6744  {
6745
6746    struct test
6747    {
6748      static const int zero {};
6749      static const int one {1};
6750    };
6751
6752    static_assert(test::zero == 0, "");
6753    static_assert(test::one == 1, "");
6754
6755  }
6756
6757  namespace test_lambdas
6758  {
6759
6760    void
6761    test1()
6762    {
6763      auto lambda1 = [](){};
6764      auto lambda2 = lambda1;
6765      lambda1();
6766      lambda2();
6767    }
6768
6769    int
6770    test2()
6771    {
6772      auto a = [](int i, int j){ return i + j; }(1, 2);
6773      auto b = []() -> int { return '0'; }();
6774      auto c = [=](){ return a + b; }();
6775      auto d = [&](){ return c; }();
6776      auto e = [a, &b](int x) mutable {
6777        const auto identity = [](int y){ return y; };
6778        for (auto i = 0; i < a; ++i)
6779          a += b--;
6780        return x + identity(a + b);
6781      }(0);
6782      return a + b + c + d + e;
6783    }
6784
6785    int
6786    test3()
6787    {
6788      const auto nullary = [](){ return 0; };
6789      const auto unary = [](int x){ return x; };
6790      using nullary_t = decltype(nullary);
6791      using unary_t = decltype(unary);
6792      const auto higher1st = [](nullary_t f){ return f(); };
6793      const auto higher2nd = [unary](nullary_t f1){
6794        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6795      };
6796      return higher1st(nullary) + higher2nd(nullary)(unary);
6797    }
6798
6799  }
6800
6801  namespace test_variadic_templates
6802  {
6803
6804    template <int...>
6805    struct sum;
6806
6807    template <int N0, int... N1toN>
6808    struct sum<N0, N1toN...>
6809    {
6810      static constexpr auto value = N0 + sum<N1toN...>::value;
6811    };
6812
6813    template <>
6814    struct sum<>
6815    {
6816      static constexpr auto value = 0;
6817    };
6818
6819    static_assert(sum<>::value == 0, "");
6820    static_assert(sum<1>::value == 1, "");
6821    static_assert(sum<23>::value == 23, "");
6822    static_assert(sum<1, 2>::value == 3, "");
6823    static_assert(sum<5, 5, 11>::value == 21, "");
6824    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6825
6826  }
6827
6828  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6829  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6830  // because of this.
6831  namespace test_template_alias_sfinae
6832  {
6833
6834    struct foo {};
6835
6836    template<typename T>
6837    using member = typename T::member_type;
6838
6839    template<typename T>
6840    void func(...) {}
6841
6842    template<typename T>
6843    void func(member<T>*) {}
6844
6845    void test();
6846
6847    void test() { func<foo>(0); }
6848
6849  }
6850
6851}  // namespace cxx11
6852
6853#endif  // __cplusplus >= 201103L
6854
6855
6856
6857_ACEOF
6858if ac_fn_cxx_try_compile "$LINENO"; then :
6859  ax_cv_cxx_compile_cxx11=yes
6860else
6861  ax_cv_cxx_compile_cxx11=no
6862fi
6863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864fi
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6866$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6867  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6868    ac_success=yes
6869  fi
6870  ac_ext=c
6871ac_cpp='$CPP $CPPFLAGS'
6872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874ac_compiler_gnu=$ac_cv_c_compiler_gnu
6875
6876  if test x$ac_success = xno; then
6877    HAVE_CXX11=0
6878  else
6879    HAVE_CXX11=1
6880
6881$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6882
6883  fi
6884
6885
6886	else
6887		  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=false
6888  ac_ext=cpp
6889ac_cpp='$CXXCPP $CPPFLAGS'
6890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6893  ac_success=no
6894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6895$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6896if ${ax_cv_cxx_compile_cxx11+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h.  */
6901
6902
6903// If the compiler admits that it is not ready for C++11, why torture it?
6904// Hopefully, this will speed up the test.
6905
6906#ifndef __cplusplus
6907
6908#error "This is not a C++ compiler"
6909
6910#elif __cplusplus < 201103L
6911
6912#error "This is not a C++11 compiler"
6913
6914#else
6915
6916namespace cxx11
6917{
6918
6919  namespace test_static_assert
6920  {
6921
6922    template <typename T>
6923    struct check
6924    {
6925      static_assert(sizeof(int) <= sizeof(T), "not big enough");
6926    };
6927
6928  }
6929
6930  namespace test_final_override
6931  {
6932
6933    struct Base
6934    {
6935      virtual void f() {}
6936    };
6937
6938    struct Derived : public Base
6939    {
6940      virtual void f() override {}
6941    };
6942
6943  }
6944
6945  namespace test_double_right_angle_brackets
6946  {
6947
6948    template < typename T >
6949    struct check {};
6950
6951    typedef check<void> single_type;
6952    typedef check<check<void>> double_type;
6953    typedef check<check<check<void>>> triple_type;
6954    typedef check<check<check<check<void>>>> quadruple_type;
6955
6956  }
6957
6958  namespace test_decltype
6959  {
6960
6961    int
6962    f()
6963    {
6964      int a = 1;
6965      decltype(a) b = 2;
6966      return a + b;
6967    }
6968
6969  }
6970
6971  namespace test_type_deduction
6972  {
6973
6974    template < typename T1, typename T2 >
6975    struct is_same
6976    {
6977      static const bool value = false;
6978    };
6979
6980    template < typename T >
6981    struct is_same<T, T>
6982    {
6983      static const bool value = true;
6984    };
6985
6986    template < typename T1, typename T2 >
6987    auto
6988    add(T1 a1, T2 a2) -> decltype(a1 + a2)
6989    {
6990      return a1 + a2;
6991    }
6992
6993    int
6994    test(const int c, volatile int v)
6995    {
6996      static_assert(is_same<int, decltype(0)>::value == true, "");
6997      static_assert(is_same<int, decltype(c)>::value == false, "");
6998      static_assert(is_same<int, decltype(v)>::value == false, "");
6999      auto ac = c;
7000      auto av = v;
7001      auto sumi = ac + av + 'x';
7002      auto sumf = ac + av + 1.0;
7003      static_assert(is_same<int, decltype(ac)>::value == true, "");
7004      static_assert(is_same<int, decltype(av)>::value == true, "");
7005      static_assert(is_same<int, decltype(sumi)>::value == true, "");
7006      static_assert(is_same<int, decltype(sumf)>::value == false, "");
7007      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7008      return (sumf > 0.0) ? sumi : add(c, v);
7009    }
7010
7011  }
7012
7013  namespace test_noexcept
7014  {
7015
7016    int f() { return 0; }
7017    int g() noexcept { return 0; }
7018
7019    static_assert(noexcept(f()) == false, "");
7020    static_assert(noexcept(g()) == true, "");
7021
7022  }
7023
7024  namespace test_constexpr
7025  {
7026
7027    template < typename CharT >
7028    unsigned long constexpr
7029    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7030    {
7031      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7032    }
7033
7034    template < typename CharT >
7035    unsigned long constexpr
7036    strlen_c(const CharT *const s) noexcept
7037    {
7038      return strlen_c_r(s, 0UL);
7039    }
7040
7041    static_assert(strlen_c("") == 0UL, "");
7042    static_assert(strlen_c("1") == 1UL, "");
7043    static_assert(strlen_c("example") == 7UL, "");
7044    static_assert(strlen_c("another\0example") == 7UL, "");
7045
7046  }
7047
7048  namespace test_rvalue_references
7049  {
7050
7051    template < int N >
7052    struct answer
7053    {
7054      static constexpr int value = N;
7055    };
7056
7057    answer<1> f(int&)       { return answer<1>(); }
7058    answer<2> f(const int&) { return answer<2>(); }
7059    answer<3> f(int&&)      { return answer<3>(); }
7060
7061    void
7062    test()
7063    {
7064      int i = 0;
7065      const int c = 0;
7066      static_assert(decltype(f(i))::value == 1, "");
7067      static_assert(decltype(f(c))::value == 2, "");
7068      static_assert(decltype(f(0))::value == 3, "");
7069    }
7070
7071  }
7072
7073  namespace test_uniform_initialization
7074  {
7075
7076    struct test
7077    {
7078      static const int zero {};
7079      static const int one {1};
7080    };
7081
7082    static_assert(test::zero == 0, "");
7083    static_assert(test::one == 1, "");
7084
7085  }
7086
7087  namespace test_lambdas
7088  {
7089
7090    void
7091    test1()
7092    {
7093      auto lambda1 = [](){};
7094      auto lambda2 = lambda1;
7095      lambda1();
7096      lambda2();
7097    }
7098
7099    int
7100    test2()
7101    {
7102      auto a = [](int i, int j){ return i + j; }(1, 2);
7103      auto b = []() -> int { return '0'; }();
7104      auto c = [=](){ return a + b; }();
7105      auto d = [&](){ return c; }();
7106      auto e = [a, &b](int x) mutable {
7107        const auto identity = [](int y){ return y; };
7108        for (auto i = 0; i < a; ++i)
7109          a += b--;
7110        return x + identity(a + b);
7111      }(0);
7112      return a + b + c + d + e;
7113    }
7114
7115    int
7116    test3()
7117    {
7118      const auto nullary = [](){ return 0; };
7119      const auto unary = [](int x){ return x; };
7120      using nullary_t = decltype(nullary);
7121      using unary_t = decltype(unary);
7122      const auto higher1st = [](nullary_t f){ return f(); };
7123      const auto higher2nd = [unary](nullary_t f1){
7124        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7125      };
7126      return higher1st(nullary) + higher2nd(nullary)(unary);
7127    }
7128
7129  }
7130
7131  namespace test_variadic_templates
7132  {
7133
7134    template <int...>
7135    struct sum;
7136
7137    template <int N0, int... N1toN>
7138    struct sum<N0, N1toN...>
7139    {
7140      static constexpr auto value = N0 + sum<N1toN...>::value;
7141    };
7142
7143    template <>
7144    struct sum<>
7145    {
7146      static constexpr auto value = 0;
7147    };
7148
7149    static_assert(sum<>::value == 0, "");
7150    static_assert(sum<1>::value == 1, "");
7151    static_assert(sum<23>::value == 23, "");
7152    static_assert(sum<1, 2>::value == 3, "");
7153    static_assert(sum<5, 5, 11>::value == 21, "");
7154    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7155
7156  }
7157
7158  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7159  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7160  // because of this.
7161  namespace test_template_alias_sfinae
7162  {
7163
7164    struct foo {};
7165
7166    template<typename T>
7167    using member = typename T::member_type;
7168
7169    template<typename T>
7170    void func(...) {}
7171
7172    template<typename T>
7173    void func(member<T>*) {}
7174
7175    void test();
7176
7177    void test() { func<foo>(0); }
7178
7179  }
7180
7181}  // namespace cxx11
7182
7183#endif  // __cplusplus >= 201103L
7184
7185
7186
7187_ACEOF
7188if ac_fn_cxx_try_compile "$LINENO"; then :
7189  ax_cv_cxx_compile_cxx11=yes
7190else
7191  ax_cv_cxx_compile_cxx11=no
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
7196$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
7197  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
7198    ac_success=yes
7199  fi
7200
7201
7202
7203    if test x$ac_success = xno; then
7204                for alternative in ${ax_cxx_compile_alternatives}; do
7205      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7206        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
7207        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7208$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7209if eval \${$cachevar+:} false; then :
7210  $as_echo_n "(cached) " >&6
7211else
7212  ac_save_CXX="$CXX"
7213           CXX="$CXX $switch"
7214           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h.  */
7216
7217
7218// If the compiler admits that it is not ready for C++11, why torture it?
7219// Hopefully, this will speed up the test.
7220
7221#ifndef __cplusplus
7222
7223#error "This is not a C++ compiler"
7224
7225#elif __cplusplus < 201103L
7226
7227#error "This is not a C++11 compiler"
7228
7229#else
7230
7231namespace cxx11
7232{
7233
7234  namespace test_static_assert
7235  {
7236
7237    template <typename T>
7238    struct check
7239    {
7240      static_assert(sizeof(int) <= sizeof(T), "not big enough");
7241    };
7242
7243  }
7244
7245  namespace test_final_override
7246  {
7247
7248    struct Base
7249    {
7250      virtual void f() {}
7251    };
7252
7253    struct Derived : public Base
7254    {
7255      virtual void f() override {}
7256    };
7257
7258  }
7259
7260  namespace test_double_right_angle_brackets
7261  {
7262
7263    template < typename T >
7264    struct check {};
7265
7266    typedef check<void> single_type;
7267    typedef check<check<void>> double_type;
7268    typedef check<check<check<void>>> triple_type;
7269    typedef check<check<check<check<void>>>> quadruple_type;
7270
7271  }
7272
7273  namespace test_decltype
7274  {
7275
7276    int
7277    f()
7278    {
7279      int a = 1;
7280      decltype(a) b = 2;
7281      return a + b;
7282    }
7283
7284  }
7285
7286  namespace test_type_deduction
7287  {
7288
7289    template < typename T1, typename T2 >
7290    struct is_same
7291    {
7292      static const bool value = false;
7293    };
7294
7295    template < typename T >
7296    struct is_same<T, T>
7297    {
7298      static const bool value = true;
7299    };
7300
7301    template < typename T1, typename T2 >
7302    auto
7303    add(T1 a1, T2 a2) -> decltype(a1 + a2)
7304    {
7305      return a1 + a2;
7306    }
7307
7308    int
7309    test(const int c, volatile int v)
7310    {
7311      static_assert(is_same<int, decltype(0)>::value == true, "");
7312      static_assert(is_same<int, decltype(c)>::value == false, "");
7313      static_assert(is_same<int, decltype(v)>::value == false, "");
7314      auto ac = c;
7315      auto av = v;
7316      auto sumi = ac + av + 'x';
7317      auto sumf = ac + av + 1.0;
7318      static_assert(is_same<int, decltype(ac)>::value == true, "");
7319      static_assert(is_same<int, decltype(av)>::value == true, "");
7320      static_assert(is_same<int, decltype(sumi)>::value == true, "");
7321      static_assert(is_same<int, decltype(sumf)>::value == false, "");
7322      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7323      return (sumf > 0.0) ? sumi : add(c, v);
7324    }
7325
7326  }
7327
7328  namespace test_noexcept
7329  {
7330
7331    int f() { return 0; }
7332    int g() noexcept { return 0; }
7333
7334    static_assert(noexcept(f()) == false, "");
7335    static_assert(noexcept(g()) == true, "");
7336
7337  }
7338
7339  namespace test_constexpr
7340  {
7341
7342    template < typename CharT >
7343    unsigned long constexpr
7344    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7345    {
7346      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7347    }
7348
7349    template < typename CharT >
7350    unsigned long constexpr
7351    strlen_c(const CharT *const s) noexcept
7352    {
7353      return strlen_c_r(s, 0UL);
7354    }
7355
7356    static_assert(strlen_c("") == 0UL, "");
7357    static_assert(strlen_c("1") == 1UL, "");
7358    static_assert(strlen_c("example") == 7UL, "");
7359    static_assert(strlen_c("another\0example") == 7UL, "");
7360
7361  }
7362
7363  namespace test_rvalue_references
7364  {
7365
7366    template < int N >
7367    struct answer
7368    {
7369      static constexpr int value = N;
7370    };
7371
7372    answer<1> f(int&)       { return answer<1>(); }
7373    answer<2> f(const int&) { return answer<2>(); }
7374    answer<3> f(int&&)      { return answer<3>(); }
7375
7376    void
7377    test()
7378    {
7379      int i = 0;
7380      const int c = 0;
7381      static_assert(decltype(f(i))::value == 1, "");
7382      static_assert(decltype(f(c))::value == 2, "");
7383      static_assert(decltype(f(0))::value == 3, "");
7384    }
7385
7386  }
7387
7388  namespace test_uniform_initialization
7389  {
7390
7391    struct test
7392    {
7393      static const int zero {};
7394      static const int one {1};
7395    };
7396
7397    static_assert(test::zero == 0, "");
7398    static_assert(test::one == 1, "");
7399
7400  }
7401
7402  namespace test_lambdas
7403  {
7404
7405    void
7406    test1()
7407    {
7408      auto lambda1 = [](){};
7409      auto lambda2 = lambda1;
7410      lambda1();
7411      lambda2();
7412    }
7413
7414    int
7415    test2()
7416    {
7417      auto a = [](int i, int j){ return i + j; }(1, 2);
7418      auto b = []() -> int { return '0'; }();
7419      auto c = [=](){ return a + b; }();
7420      auto d = [&](){ return c; }();
7421      auto e = [a, &b](int x) mutable {
7422        const auto identity = [](int y){ return y; };
7423        for (auto i = 0; i < a; ++i)
7424          a += b--;
7425        return x + identity(a + b);
7426      }(0);
7427      return a + b + c + d + e;
7428    }
7429
7430    int
7431    test3()
7432    {
7433      const auto nullary = [](){ return 0; };
7434      const auto unary = [](int x){ return x; };
7435      using nullary_t = decltype(nullary);
7436      using unary_t = decltype(unary);
7437      const auto higher1st = [](nullary_t f){ return f(); };
7438      const auto higher2nd = [unary](nullary_t f1){
7439        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7440      };
7441      return higher1st(nullary) + higher2nd(nullary)(unary);
7442    }
7443
7444  }
7445
7446  namespace test_variadic_templates
7447  {
7448
7449    template <int...>
7450    struct sum;
7451
7452    template <int N0, int... N1toN>
7453    struct sum<N0, N1toN...>
7454    {
7455      static constexpr auto value = N0 + sum<N1toN...>::value;
7456    };
7457
7458    template <>
7459    struct sum<>
7460    {
7461      static constexpr auto value = 0;
7462    };
7463
7464    static_assert(sum<>::value == 0, "");
7465    static_assert(sum<1>::value == 1, "");
7466    static_assert(sum<23>::value == 23, "");
7467    static_assert(sum<1, 2>::value == 3, "");
7468    static_assert(sum<5, 5, 11>::value == 21, "");
7469    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7470
7471  }
7472
7473  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7474  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7475  // because of this.
7476  namespace test_template_alias_sfinae
7477  {
7478
7479    struct foo {};
7480
7481    template<typename T>
7482    using member = typename T::member_type;
7483
7484    template<typename T>
7485    void func(...) {}
7486
7487    template<typename T>
7488    void func(member<T>*) {}
7489
7490    void test();
7491
7492    void test() { func<foo>(0); }
7493
7494  }
7495
7496}  // namespace cxx11
7497
7498#endif  // __cplusplus >= 201103L
7499
7500
7501
7502_ACEOF
7503if ac_fn_cxx_try_compile "$LINENO"; then :
7504  eval $cachevar=yes
7505else
7506  eval $cachevar=no
7507fi
7508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509           CXX="$ac_save_CXX"
7510fi
7511eval ac_res=\$$cachevar
7512	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7513$as_echo "$ac_res" >&6; }
7514        if eval test x\$$cachevar = xyes; then
7515          CXX="$CXX $switch"
7516          if test -n "$CXXCPP" ; then
7517            CXXCPP="$CXXCPP $switch"
7518          fi
7519          ac_success=yes
7520          break
7521        fi
7522      done
7523      if test x$ac_success = xyes; then
7524        break
7525      fi
7526    done
7527  fi
7528  ac_ext=c
7529ac_cpp='$CPP $CPPFLAGS'
7530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533
7534  if test x$ax_cxx_compile_cxx11_required = xtrue; then
7535    if test x$ac_success = xno; then
7536      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7537    fi
7538  fi
7539  if test x$ac_success = xno; then
7540    HAVE_CXX11=0
7541    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7542$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7543  else
7544    HAVE_CXX11=1
7545
7546$as_echo "#define HAVE_CXX11 1" >>confdefs.h
7547
7548  fi
7549
7550
7551
7552	fi
7553
7554
7555# Check whether --enable-shared was given.
7556if test "${enable_shared+set}" = set; then :
7557  enableval=$enable_shared; p=${PACKAGE-default}
7558    case $enableval in
7559    yes) enable_shared=yes ;;
7560    no) enable_shared=no ;;
7561    *)
7562      enable_shared=no
7563      # Look at the argument we got.  We use all the common list separators.
7564      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7565      for pkg in $enableval; do
7566	IFS=$lt_save_ifs
7567	if test "X$pkg" = "X$p"; then
7568	  enable_shared=yes
7569	fi
7570      done
7571      IFS=$lt_save_ifs
7572      ;;
7573    esac
7574else
7575  enable_shared=no
7576fi
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586case `pwd` in
7587  *\ * | *\	*)
7588    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7589$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7590esac
7591
7592
7593
7594macro_version='2.4.6.42-b88ce-dirty'
7595macro_revision='2.4.6.42'
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609ltmain=$ac_aux_dir/ltmain.sh
7610
7611# Backslashify metacharacters that are still active within
7612# double-quoted strings.
7613sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7614
7615# Same as above, but do not quote variable references.
7616double_quote_subst='s/\(["`\\]\)/\\\1/g'
7617
7618# Sed substitution to delay expansion of an escaped shell variable in a
7619# double_quote_subst'ed string.
7620delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7621
7622# Sed substitution to delay expansion of an escaped single quote.
7623delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7624
7625# Sed substitution to avoid accidental globbing in evaled expressions
7626no_glob_subst='s/\*/\\\*/g'
7627
7628ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7629ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7630ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7631
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7633$as_echo_n "checking how to print strings... " >&6; }
7634# Test print first, because it will be a builtin if present.
7635if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7636   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7637  ECHO='print -r --'
7638elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7639  ECHO='printf %s\n'
7640else
7641  # Use this function as a fallback that always works.
7642  func_fallback_echo ()
7643  {
7644    eval 'cat <<_LTECHO_EOF
7645$1
7646_LTECHO_EOF'
7647  }
7648  ECHO='func_fallback_echo'
7649fi
7650
7651# func_echo_all arg...
7652# Invoke $ECHO with all args, space-separated.
7653func_echo_all ()
7654{
7655    $ECHO ""
7656}
7657
7658case $ECHO in
7659  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7660$as_echo "printf" >&6; } ;;
7661  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7662$as_echo "print -r" >&6; } ;;
7663  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7664$as_echo "cat" >&6; } ;;
7665esac
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7681$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7682if ${ac_cv_path_SED+:} false; then :
7683  $as_echo_n "(cached) " >&6
7684else
7685            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7686     for ac_i in 1 2 3 4 5 6 7; do
7687       ac_script="$ac_script$as_nl$ac_script"
7688     done
7689     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7690     { ac_script=; unset ac_script;}
7691     if test -z "$SED"; then
7692  ac_path_SED_found=false
7693  # Loop through the user's path and test for each of PROGNAME-LIST
7694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695for as_dir in $PATH
7696do
7697  IFS=$as_save_IFS
7698  test -z "$as_dir" && as_dir=.
7699    for ac_prog in sed gsed; do
7700    for ac_exec_ext in '' $ac_executable_extensions; do
7701      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7702      as_fn_executable_p "$ac_path_SED" || continue
7703# Check for GNU ac_path_SED and select it if it is found.
7704  # Check for GNU $ac_path_SED
7705case `"$ac_path_SED" --version 2>&1` in
7706*GNU*)
7707  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7708*)
7709  ac_count=0
7710  $as_echo_n 0123456789 >"conftest.in"
7711  while :
7712  do
7713    cat "conftest.in" "conftest.in" >"conftest.tmp"
7714    mv "conftest.tmp" "conftest.in"
7715    cp "conftest.in" "conftest.nl"
7716    $as_echo '' >> "conftest.nl"
7717    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7718    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7719    as_fn_arith $ac_count + 1 && ac_count=$as_val
7720    if test $ac_count -gt ${ac_path_SED_max-0}; then
7721      # Best one so far, save it but keep looking for a better one
7722      ac_cv_path_SED="$ac_path_SED"
7723      ac_path_SED_max=$ac_count
7724    fi
7725    # 10*(2^10) chars as input seems more than enough
7726    test $ac_count -gt 10 && break
7727  done
7728  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7729esac
7730
7731      $ac_path_SED_found && break 3
7732    done
7733  done
7734  done
7735IFS=$as_save_IFS
7736  if test -z "$ac_cv_path_SED"; then
7737    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7738  fi
7739else
7740  ac_cv_path_SED=$SED
7741fi
7742
7743fi
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7745$as_echo "$ac_cv_path_SED" >&6; }
7746 SED="$ac_cv_path_SED"
7747  rm -f conftest.sed
7748
7749test -z "$SED" && SED=sed
7750Xsed="$SED -e 1s/^X//"
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7763$as_echo_n "checking for egrep... " >&6; }
7764if ${ac_cv_path_EGREP+:} false; then :
7765  $as_echo_n "(cached) " >&6
7766else
7767  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7768   then ac_cv_path_EGREP="$GREP -E"
7769   else
7770     if test -z "$EGREP"; then
7771  ac_path_EGREP_found=false
7772  # Loop through the user's path and test for each of PROGNAME-LIST
7773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7775do
7776  IFS=$as_save_IFS
7777  test -z "$as_dir" && as_dir=.
7778    for ac_prog in egrep; do
7779    for ac_exec_ext in '' $ac_executable_extensions; do
7780      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7781      as_fn_executable_p "$ac_path_EGREP" || continue
7782# Check for GNU ac_path_EGREP and select it if it is found.
7783  # Check for GNU $ac_path_EGREP
7784case `"$ac_path_EGREP" --version 2>&1` in
7785*GNU*)
7786  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7787*)
7788  ac_count=0
7789  $as_echo_n 0123456789 >"conftest.in"
7790  while :
7791  do
7792    cat "conftest.in" "conftest.in" >"conftest.tmp"
7793    mv "conftest.tmp" "conftest.in"
7794    cp "conftest.in" "conftest.nl"
7795    $as_echo 'EGREP' >> "conftest.nl"
7796    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7797    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7798    as_fn_arith $ac_count + 1 && ac_count=$as_val
7799    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7800      # Best one so far, save it but keep looking for a better one
7801      ac_cv_path_EGREP="$ac_path_EGREP"
7802      ac_path_EGREP_max=$ac_count
7803    fi
7804    # 10*(2^10) chars as input seems more than enough
7805    test $ac_count -gt 10 && break
7806  done
7807  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7808esac
7809
7810      $ac_path_EGREP_found && break 3
7811    done
7812  done
7813  done
7814IFS=$as_save_IFS
7815  if test -z "$ac_cv_path_EGREP"; then
7816    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7817  fi
7818else
7819  ac_cv_path_EGREP=$EGREP
7820fi
7821
7822   fi
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7825$as_echo "$ac_cv_path_EGREP" >&6; }
7826 EGREP="$ac_cv_path_EGREP"
7827
7828
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7830$as_echo_n "checking for fgrep... " >&6; }
7831if ${ac_cv_path_FGREP+:} false; then :
7832  $as_echo_n "(cached) " >&6
7833else
7834  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7835   then ac_cv_path_FGREP="$GREP -F"
7836   else
7837     if test -z "$FGREP"; then
7838  ac_path_FGREP_found=false
7839  # Loop through the user's path and test for each of PROGNAME-LIST
7840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7842do
7843  IFS=$as_save_IFS
7844  test -z "$as_dir" && as_dir=.
7845    for ac_prog in fgrep; do
7846    for ac_exec_ext in '' $ac_executable_extensions; do
7847      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7848      as_fn_executable_p "$ac_path_FGREP" || continue
7849# Check for GNU ac_path_FGREP and select it if it is found.
7850  # Check for GNU $ac_path_FGREP
7851case `"$ac_path_FGREP" --version 2>&1` in
7852*GNU*)
7853  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7854*)
7855  ac_count=0
7856  $as_echo_n 0123456789 >"conftest.in"
7857  while :
7858  do
7859    cat "conftest.in" "conftest.in" >"conftest.tmp"
7860    mv "conftest.tmp" "conftest.in"
7861    cp "conftest.in" "conftest.nl"
7862    $as_echo 'FGREP' >> "conftest.nl"
7863    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7864    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7865    as_fn_arith $ac_count + 1 && ac_count=$as_val
7866    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7867      # Best one so far, save it but keep looking for a better one
7868      ac_cv_path_FGREP="$ac_path_FGREP"
7869      ac_path_FGREP_max=$ac_count
7870    fi
7871    # 10*(2^10) chars as input seems more than enough
7872    test $ac_count -gt 10 && break
7873  done
7874  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7875esac
7876
7877      $ac_path_FGREP_found && break 3
7878    done
7879  done
7880  done
7881IFS=$as_save_IFS
7882  if test -z "$ac_cv_path_FGREP"; then
7883    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7884  fi
7885else
7886  ac_cv_path_FGREP=$FGREP
7887fi
7888
7889   fi
7890fi
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7892$as_echo "$ac_cv_path_FGREP" >&6; }
7893 FGREP="$ac_cv_path_FGREP"
7894
7895
7896test -z "$GREP" && GREP=grep
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916# Check whether --with-gnu-ld was given.
7917if test "${with_gnu_ld+set}" = set; then :
7918  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7919else
7920  with_gnu_ld=no
7921fi
7922
7923ac_prog=ld
7924if test yes = "$GCC"; then
7925  # Check if gcc -print-prog-name=ld gives a path.
7926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7927$as_echo_n "checking for ld used by $CC... " >&6; }
7928  case $host in
7929  *-*-mingw*)
7930    # gcc leaves a trailing carriage return, which upsets mingw
7931    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7932  *)
7933    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7934  esac
7935  case $ac_prog in
7936    # Accept absolute paths.
7937    [\\/]* | ?:[\\/]*)
7938      re_direlt='/[^/][^/]*/\.\./'
7939      # Canonicalize the pathname of ld
7940      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7941      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7942	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7943      done
7944      test -z "$LD" && LD=$ac_prog
7945      ;;
7946  "")
7947    # If it fails, then pretend we aren't using GCC.
7948    ac_prog=ld
7949    ;;
7950  *)
7951    # If it is relative, then search for the first ld in PATH.
7952    with_gnu_ld=unknown
7953    ;;
7954  esac
7955elif test yes = "$with_gnu_ld"; then
7956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7957$as_echo_n "checking for GNU ld... " >&6; }
7958else
7959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7960$as_echo_n "checking for non-GNU ld... " >&6; }
7961fi
7962if ${lt_cv_path_LD+:} false; then :
7963  $as_echo_n "(cached) " >&6
7964else
7965  if test -z "$LD"; then
7966  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7967  for ac_dir in $PATH; do
7968    IFS=$lt_save_ifs
7969    test -z "$ac_dir" && ac_dir=.
7970    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7971      lt_cv_path_LD=$ac_dir/$ac_prog
7972      # Check to see if the program is GNU ld.  I'd rather use --version,
7973      # but apparently some variants of GNU ld only accept -v.
7974      # Break only if it was the GNU/non-GNU ld that we prefer.
7975      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7976      *GNU* | *'with BFD'*)
7977	test no != "$with_gnu_ld" && break
7978	;;
7979      *)
7980	test yes != "$with_gnu_ld" && break
7981	;;
7982      esac
7983    fi
7984  done
7985  IFS=$lt_save_ifs
7986else
7987  lt_cv_path_LD=$LD # Let the user override the test with a path.
7988fi
7989fi
7990
7991LD=$lt_cv_path_LD
7992if test -n "$LD"; then
7993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7994$as_echo "$LD" >&6; }
7995else
7996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997$as_echo "no" >&6; }
7998fi
7999test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8001$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8002if ${lt_cv_prog_gnu_ld+:} false; then :
8003  $as_echo_n "(cached) " >&6
8004else
8005  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8006case `$LD -v 2>&1 </dev/null` in
8007*GNU* | *'with BFD'*)
8008  lt_cv_prog_gnu_ld=yes
8009  ;;
8010*)
8011  lt_cv_prog_gnu_ld=no
8012  ;;
8013esac
8014fi
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8016$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8017with_gnu_ld=$lt_cv_prog_gnu_ld
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8028$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8029if ${lt_cv_path_NM+:} false; then :
8030  $as_echo_n "(cached) " >&6
8031else
8032  if test -n "$NM"; then
8033  # Let the user override the test.
8034  lt_cv_path_NM=$NM
8035else
8036  lt_nm_to_check=${ac_tool_prefix}nm
8037  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8038    lt_nm_to_check="$lt_nm_to_check nm"
8039  fi
8040  for lt_tmp_nm in $lt_nm_to_check; do
8041    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8042    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8043      IFS=$lt_save_ifs
8044      test -z "$ac_dir" && ac_dir=.
8045      tmp_nm=$ac_dir/$lt_tmp_nm
8046      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8047	# Check to see if the nm accepts a BSD-compat flag.
8048	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8049	#   nm: unknown option "B" ignored
8050	# Tru64's nm complains that /dev/null is an invalid object file
8051	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8052	case $build_os in
8053	mingw*) lt_bad_file=conftest.nm/nofile ;;
8054	*) lt_bad_file=/dev/null ;;
8055	esac
8056	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8057	*$lt_bad_file* | *'Invalid file or object type'*)
8058	  lt_cv_path_NM="$tmp_nm -B"
8059	  break 2
8060	  ;;
8061	*)
8062	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8063	  */dev/null*)
8064	    lt_cv_path_NM="$tmp_nm -p"
8065	    break 2
8066	    ;;
8067	  *)
8068	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8069	    continue # so that we can try to find one that supports BSD flags
8070	    ;;
8071	  esac
8072	  ;;
8073	esac
8074      fi
8075    done
8076    IFS=$lt_save_ifs
8077  done
8078  : ${lt_cv_path_NM=no}
8079fi
8080fi
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8082$as_echo "$lt_cv_path_NM" >&6; }
8083if test no != "$lt_cv_path_NM"; then
8084  NM=$lt_cv_path_NM
8085else
8086  # Didn't find any BSD compatible name lister, look for dumpbin.
8087  if test -n "$DUMPBIN"; then :
8088    # Let the user override the test.
8089  else
8090    if test -n "$ac_tool_prefix"; then
8091  for ac_prog in dumpbin "link -dump"
8092  do
8093    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096$as_echo_n "checking for $ac_word... " >&6; }
8097if ${ac_cv_prog_DUMPBIN+:} false; then :
8098  $as_echo_n "(cached) " >&6
8099else
8100  if test -n "$DUMPBIN"; then
8101  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8102else
8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104for as_dir in $PATH
8105do
8106  IFS=$as_save_IFS
8107  test -z "$as_dir" && as_dir=.
8108    for ac_exec_ext in '' $ac_executable_extensions; do
8109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112    break 2
8113  fi
8114done
8115  done
8116IFS=$as_save_IFS
8117
8118fi
8119fi
8120DUMPBIN=$ac_cv_prog_DUMPBIN
8121if test -n "$DUMPBIN"; then
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8123$as_echo "$DUMPBIN" >&6; }
8124else
8125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126$as_echo "no" >&6; }
8127fi
8128
8129
8130    test -n "$DUMPBIN" && break
8131  done
8132fi
8133if test -z "$DUMPBIN"; then
8134  ac_ct_DUMPBIN=$DUMPBIN
8135  for ac_prog in dumpbin "link -dump"
8136do
8137  # Extract the first word of "$ac_prog", so it can be a program name with args.
8138set dummy $ac_prog; ac_word=$2
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140$as_echo_n "checking for $ac_word... " >&6; }
8141if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  if test -n "$ac_ct_DUMPBIN"; then
8145  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8146else
8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150  IFS=$as_save_IFS
8151  test -z "$as_dir" && as_dir=.
8152    for ac_exec_ext in '' $ac_executable_extensions; do
8153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156    break 2
8157  fi
8158done
8159  done
8160IFS=$as_save_IFS
8161
8162fi
8163fi
8164ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8165if test -n "$ac_ct_DUMPBIN"; then
8166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8167$as_echo "$ac_ct_DUMPBIN" >&6; }
8168else
8169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170$as_echo "no" >&6; }
8171fi
8172
8173
8174  test -n "$ac_ct_DUMPBIN" && break
8175done
8176
8177  if test "x$ac_ct_DUMPBIN" = x; then
8178    DUMPBIN=":"
8179  else
8180    case $cross_compiling:$ac_tool_warned in
8181yes:)
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8184ac_tool_warned=yes ;;
8185esac
8186    DUMPBIN=$ac_ct_DUMPBIN
8187  fi
8188fi
8189
8190    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8191    *COFF*)
8192      DUMPBIN="$DUMPBIN -symbols -headers"
8193      ;;
8194    *)
8195      DUMPBIN=:
8196      ;;
8197    esac
8198  fi
8199
8200  if test : != "$DUMPBIN"; then
8201    NM=$DUMPBIN
8202  fi
8203fi
8204test -z "$NM" && NM=nm
8205
8206
8207
8208
8209
8210
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8212$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8213if ${lt_cv_nm_interface+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  lt_cv_nm_interface="BSD nm"
8217  echo "int some_variable = 0;" > conftest.$ac_ext
8218  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8219  (eval "$ac_compile" 2>conftest.err)
8220  cat conftest.err >&5
8221  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8222  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8223  cat conftest.err >&5
8224  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8225  cat conftest.out >&5
8226  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8227    lt_cv_nm_interface="MS dumpbin"
8228  fi
8229  rm -f conftest*
8230fi
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8232$as_echo "$lt_cv_nm_interface" >&6; }
8233
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8235$as_echo_n "checking whether ln -s works... " >&6; }
8236LN_S=$as_ln_s
8237if test "$LN_S" = "ln -s"; then
8238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8239$as_echo "yes" >&6; }
8240else
8241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8242$as_echo "no, using $LN_S" >&6; }
8243fi
8244
8245# find the maximum length of command line arguments
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8247$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8248if ${lt_cv_sys_max_cmd_len+:} false; then :
8249  $as_echo_n "(cached) " >&6
8250else
8251    i=0
8252  teststring=ABCD
8253
8254  case $build_os in
8255  msdosdjgpp*)
8256    # On DJGPP, this test can blow up pretty badly due to problems in libc
8257    # (any single argument exceeding 2000 bytes causes a buffer overrun
8258    # during glob expansion).  Even if it were fixed, the result of this
8259    # check would be larger than it should be.
8260    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8261    ;;
8262
8263  gnu*)
8264    # Under GNU Hurd, this test is not required because there is
8265    # no limit to the length of command line arguments.
8266    # Libtool will interpret -1 as no limit whatsoever
8267    lt_cv_sys_max_cmd_len=-1;
8268    ;;
8269
8270  cygwin* | mingw* | cegcc*)
8271    # On Win9x/ME, this test blows up -- it succeeds, but takes
8272    # about 5 minutes as the teststring grows exponentially.
8273    # Worse, since 9x/ME are not pre-emptively multitasking,
8274    # you end up with a "frozen" computer, even though with patience
8275    # the test eventually succeeds (with a max line length of 256k).
8276    # Instead, let's just punt: use the minimum linelength reported by
8277    # all of the supported platforms: 8192 (on NT/2K/XP).
8278    lt_cv_sys_max_cmd_len=8192;
8279    ;;
8280
8281  mint*)
8282    # On MiNT this can take a long time and run out of memory.
8283    lt_cv_sys_max_cmd_len=8192;
8284    ;;
8285
8286  amigaos*)
8287    # On AmigaOS with pdksh, this test takes hours, literally.
8288    # So we just punt and use a minimum line length of 8192.
8289    lt_cv_sys_max_cmd_len=8192;
8290    ;;
8291
8292  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8293    # This has been around since 386BSD, at least.  Likely further.
8294    if test -x /sbin/sysctl; then
8295      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8296    elif test -x /usr/sbin/sysctl; then
8297      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8298    else
8299      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8300    fi
8301    # And add a safety zone
8302    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8303    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8304    ;;
8305
8306  interix*)
8307    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8308    lt_cv_sys_max_cmd_len=196608
8309    ;;
8310
8311  os2*)
8312    # The test takes a long time on OS/2.
8313    lt_cv_sys_max_cmd_len=8192
8314    ;;
8315
8316  osf*)
8317    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8318    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8319    # nice to cause kernel panics so lets avoid the loop below.
8320    # First set a reasonable default.
8321    lt_cv_sys_max_cmd_len=16384
8322    #
8323    if test -x /sbin/sysconfig; then
8324      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8325        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8326      esac
8327    fi
8328    ;;
8329  sco3.2v5*)
8330    lt_cv_sys_max_cmd_len=102400
8331    ;;
8332  sysv5* | sco5v6* | sysv4.2uw2*)
8333    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8334    if test -n "$kargmax"; then
8335      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8336    else
8337      lt_cv_sys_max_cmd_len=32768
8338    fi
8339    ;;
8340  *)
8341    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8342    if test -n "$lt_cv_sys_max_cmd_len" && \
8343       test undefined != "$lt_cv_sys_max_cmd_len"; then
8344      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8345      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8346    else
8347      # Make teststring a little bigger before we do anything with it.
8348      # a 1K string should be a reasonable start.
8349      for i in 1 2 3 4 5 6 7 8; do
8350        teststring=$teststring$teststring
8351      done
8352      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8353      # If test is not a shell built-in, we'll probably end up computing a
8354      # maximum length that is only half of the actual maximum length, but
8355      # we can't tell.
8356      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8357	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8358	      test 17 != "$i" # 1/2 MB should be enough
8359      do
8360        i=`expr $i + 1`
8361        teststring=$teststring$teststring
8362      done
8363      # Only check the string length outside the loop.
8364      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8365      teststring=
8366      # Add a significant safety factor because C++ compilers can tack on
8367      # massive amounts of additional arguments before passing them to the
8368      # linker.  It appears as though 1/2 is a usable value.
8369      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8370    fi
8371    ;;
8372  esac
8373
8374fi
8375
8376if test -n "$lt_cv_sys_max_cmd_len"; then
8377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8378$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8379else
8380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8381$as_echo "none" >&6; }
8382fi
8383max_cmd_len=$lt_cv_sys_max_cmd_len
8384
8385
8386
8387
8388
8389
8390: ${CP="cp -f"}
8391: ${MV="mv -f"}
8392: ${RM="rm -f"}
8393
8394if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8395  lt_unset=unset
8396else
8397  lt_unset=false
8398fi
8399
8400
8401
8402
8403
8404# test EBCDIC or ASCII
8405case `echo X|tr X '\101'` in
8406 A) # ASCII based system
8407    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8408  lt_SP2NL='tr \040 \012'
8409  lt_NL2SP='tr \015\012 \040\040'
8410  ;;
8411 *) # EBCDIC based system
8412  lt_SP2NL='tr \100 \n'
8413  lt_NL2SP='tr \r\n \100\100'
8414  ;;
8415esac
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8426$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8427if ${lt_cv_to_host_file_cmd+:} false; then :
8428  $as_echo_n "(cached) " >&6
8429else
8430  case $host in
8431  *-*-mingw* )
8432    case $build in
8433      *-*-mingw* ) # actually msys
8434        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8435        ;;
8436      *-*-cygwin* )
8437        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8438        ;;
8439      * ) # otherwise, assume *nix
8440        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8441        ;;
8442    esac
8443    ;;
8444  *-*-cygwin* )
8445    case $build in
8446      *-*-mingw* ) # actually msys
8447        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8448        ;;
8449      *-*-cygwin* )
8450        lt_cv_to_host_file_cmd=func_convert_file_noop
8451        ;;
8452      * ) # otherwise, assume *nix
8453        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8454        ;;
8455    esac
8456    ;;
8457  * ) # unhandled hosts (and "normal" native builds)
8458    lt_cv_to_host_file_cmd=func_convert_file_noop
8459    ;;
8460esac
8461
8462fi
8463
8464to_host_file_cmd=$lt_cv_to_host_file_cmd
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8466$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8467
8468
8469
8470
8471
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8473$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8474if ${lt_cv_to_tool_file_cmd+:} false; then :
8475  $as_echo_n "(cached) " >&6
8476else
8477  #assume ordinary cross tools, or native build.
8478lt_cv_to_tool_file_cmd=func_convert_file_noop
8479case $host in
8480  *-*-mingw* )
8481    case $build in
8482      *-*-mingw* ) # actually msys
8483        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8484        ;;
8485    esac
8486    ;;
8487esac
8488
8489fi
8490
8491to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8493$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8494
8495
8496
8497
8498
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8500$as_echo_n "checking for $LD option to reload object files... " >&6; }
8501if ${lt_cv_ld_reload_flag+:} false; then :
8502  $as_echo_n "(cached) " >&6
8503else
8504  lt_cv_ld_reload_flag='-r'
8505fi
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8507$as_echo "$lt_cv_ld_reload_flag" >&6; }
8508reload_flag=$lt_cv_ld_reload_flag
8509case $reload_flag in
8510"" | " "*) ;;
8511*) reload_flag=" $reload_flag" ;;
8512esac
8513reload_cmds='$LD$reload_flag -o $output$reload_objs'
8514case $host_os in
8515  cygwin* | mingw* | pw32* | cegcc*)
8516    if test yes != "$GCC"; then
8517      reload_cmds=false
8518    fi
8519    ;;
8520  darwin*)
8521    if test yes = "$GCC"; then
8522      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8523    else
8524      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8525    fi
8526    ;;
8527esac
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537if test -n "$ac_tool_prefix"; then
8538  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8539set dummy ${ac_tool_prefix}objdump; ac_word=$2
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541$as_echo_n "checking for $ac_word... " >&6; }
8542if ${ac_cv_prog_OBJDUMP+:} false; then :
8543  $as_echo_n "(cached) " >&6
8544else
8545  if test -n "$OBJDUMP"; then
8546  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8547else
8548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549for as_dir in $PATH
8550do
8551  IFS=$as_save_IFS
8552  test -z "$as_dir" && as_dir=.
8553    for ac_exec_ext in '' $ac_executable_extensions; do
8554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8555    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557    break 2
8558  fi
8559done
8560  done
8561IFS=$as_save_IFS
8562
8563fi
8564fi
8565OBJDUMP=$ac_cv_prog_OBJDUMP
8566if test -n "$OBJDUMP"; then
8567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8568$as_echo "$OBJDUMP" >&6; }
8569else
8570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571$as_echo "no" >&6; }
8572fi
8573
8574
8575fi
8576if test -z "$ac_cv_prog_OBJDUMP"; then
8577  ac_ct_OBJDUMP=$OBJDUMP
8578  # Extract the first word of "objdump", so it can be a program name with args.
8579set dummy objdump; ac_word=$2
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; }
8582if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8583  $as_echo_n "(cached) " >&6
8584else
8585  if test -n "$ac_ct_OBJDUMP"; then
8586  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8587else
8588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589for as_dir in $PATH
8590do
8591  IFS=$as_save_IFS
8592  test -z "$as_dir" && as_dir=.
8593    for ac_exec_ext in '' $ac_executable_extensions; do
8594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8595    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597    break 2
8598  fi
8599done
8600  done
8601IFS=$as_save_IFS
8602
8603fi
8604fi
8605ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8606if test -n "$ac_ct_OBJDUMP"; then
8607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8608$as_echo "$ac_ct_OBJDUMP" >&6; }
8609else
8610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611$as_echo "no" >&6; }
8612fi
8613
8614  if test "x$ac_ct_OBJDUMP" = x; then
8615    OBJDUMP="false"
8616  else
8617    case $cross_compiling:$ac_tool_warned in
8618yes:)
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8621ac_tool_warned=yes ;;
8622esac
8623    OBJDUMP=$ac_ct_OBJDUMP
8624  fi
8625else
8626  OBJDUMP="$ac_cv_prog_OBJDUMP"
8627fi
8628
8629test -z "$OBJDUMP" && OBJDUMP=objdump
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8640$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8641if ${lt_cv_deplibs_check_method+:} false; then :
8642  $as_echo_n "(cached) " >&6
8643else
8644  lt_cv_file_magic_cmd='$MAGIC_CMD'
8645lt_cv_file_magic_test_file=
8646lt_cv_deplibs_check_method='unknown'
8647# Need to set the preceding variable on all platforms that support
8648# interlibrary dependencies.
8649# 'none' -- dependencies not supported.
8650# 'unknown' -- same as none, but documents that we really don't know.
8651# 'pass_all' -- all dependencies passed with no checks.
8652# 'test_compile' -- check by making test program.
8653# 'file_magic [[regex]]' -- check by looking for files in library path
8654# that responds to the $file_magic_cmd with a given extended regex.
8655# If you have 'file' or equivalent on your system and you're not sure
8656# whether 'pass_all' will *always* work, you probably want this one.
8657
8658case $host_os in
8659aix[4-9]*)
8660  lt_cv_deplibs_check_method=pass_all
8661  ;;
8662
8663beos*)
8664  lt_cv_deplibs_check_method=pass_all
8665  ;;
8666
8667bsdi[45]*)
8668  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8669  lt_cv_file_magic_cmd='/usr/bin/file -L'
8670  lt_cv_file_magic_test_file=/shlib/libc.so
8671  ;;
8672
8673cygwin*)
8674  # func_win32_libid is a shell function defined in ltmain.sh
8675  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8676  lt_cv_file_magic_cmd='func_win32_libid'
8677  ;;
8678
8679mingw* | pw32*)
8680  # Base MSYS/MinGW do not provide the 'file' command needed by
8681  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8682  # unless we find 'file', for example because we are cross-compiling.
8683  if ( file / ) >/dev/null 2>&1; then
8684    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8685    lt_cv_file_magic_cmd='func_win32_libid'
8686  else
8687    # Keep this pattern in sync with the one in func_win32_libid.
8688    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8689    lt_cv_file_magic_cmd='$OBJDUMP -f'
8690  fi
8691  ;;
8692
8693cegcc*)
8694  # use the weaker test based on 'objdump'. See mingw*.
8695  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8696  lt_cv_file_magic_cmd='$OBJDUMP -f'
8697  ;;
8698
8699darwin* | rhapsody*)
8700  lt_cv_deplibs_check_method=pass_all
8701  ;;
8702
8703freebsd* | dragonfly*)
8704  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8705    case $host_cpu in
8706    i*86 )
8707      # Not sure whether the presence of OpenBSD here was a mistake.
8708      # Let's accept both of them until this is cleared up.
8709      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8710      lt_cv_file_magic_cmd=/usr/bin/file
8711      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8712      ;;
8713    esac
8714  else
8715    lt_cv_deplibs_check_method=pass_all
8716  fi
8717  ;;
8718
8719haiku*)
8720  lt_cv_deplibs_check_method=pass_all
8721  ;;
8722
8723hpux10.20* | hpux11*)
8724  lt_cv_file_magic_cmd=/usr/bin/file
8725  case $host_cpu in
8726  ia64*)
8727    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8728    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8729    ;;
8730  hppa*64*)
8731    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]'
8732    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8733    ;;
8734  *)
8735    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8736    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8737    ;;
8738  esac
8739  ;;
8740
8741interix[3-9]*)
8742  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8743  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8744  ;;
8745
8746irix5* | irix6* | nonstopux*)
8747  case $LD in
8748  *-32|*"-32 ") libmagic=32-bit;;
8749  *-n32|*"-n32 ") libmagic=N32;;
8750  *-64|*"-64 ") libmagic=64-bit;;
8751  *) libmagic=never-match;;
8752  esac
8753  lt_cv_deplibs_check_method=pass_all
8754  ;;
8755
8756# This must be glibc/ELF.
8757linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8758  lt_cv_deplibs_check_method=pass_all
8759  ;;
8760
8761netbsd*)
8762  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8763    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8764  else
8765    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8766  fi
8767  ;;
8768
8769newos6*)
8770  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8771  lt_cv_file_magic_cmd=/usr/bin/file
8772  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8773  ;;
8774
8775*nto* | *qnx*)
8776  lt_cv_deplibs_check_method=pass_all
8777  ;;
8778
8779openbsd* | bitrig*)
8780  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8781    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8782  else
8783    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8784  fi
8785  ;;
8786
8787osf3* | osf4* | osf5*)
8788  lt_cv_deplibs_check_method=pass_all
8789  ;;
8790
8791rdos*)
8792  lt_cv_deplibs_check_method=pass_all
8793  ;;
8794
8795solaris*)
8796  lt_cv_deplibs_check_method=pass_all
8797  ;;
8798
8799sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8800  lt_cv_deplibs_check_method=pass_all
8801  ;;
8802
8803sysv4 | sysv4.3*)
8804  case $host_vendor in
8805  motorola)
8806    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]'
8807    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8808    ;;
8809  ncr)
8810    lt_cv_deplibs_check_method=pass_all
8811    ;;
8812  sequent)
8813    lt_cv_file_magic_cmd='/bin/file'
8814    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8815    ;;
8816  sni)
8817    lt_cv_file_magic_cmd='/bin/file'
8818    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8819    lt_cv_file_magic_test_file=/lib/libc.so
8820    ;;
8821  siemens)
8822    lt_cv_deplibs_check_method=pass_all
8823    ;;
8824  pc)
8825    lt_cv_deplibs_check_method=pass_all
8826    ;;
8827  esac
8828  ;;
8829
8830tpf*)
8831  lt_cv_deplibs_check_method=pass_all
8832  ;;
8833os2*)
8834  lt_cv_deplibs_check_method=pass_all
8835  ;;
8836esac
8837
8838fi
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8840$as_echo "$lt_cv_deplibs_check_method" >&6; }
8841
8842file_magic_glob=
8843want_nocaseglob=no
8844if test "$build" = "$host"; then
8845  case $host_os in
8846  mingw* | pw32*)
8847    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8848      want_nocaseglob=yes
8849    else
8850      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8851    fi
8852    ;;
8853  esac
8854fi
8855
8856file_magic_cmd=$lt_cv_file_magic_cmd
8857deplibs_check_method=$lt_cv_deplibs_check_method
8858test -z "$deplibs_check_method" && deplibs_check_method=unknown
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881if test -n "$ac_tool_prefix"; then
8882  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8883set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8885$as_echo_n "checking for $ac_word... " >&6; }
8886if ${ac_cv_prog_DLLTOOL+:} false; then :
8887  $as_echo_n "(cached) " >&6
8888else
8889  if test -n "$DLLTOOL"; then
8890  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8891else
8892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893for as_dir in $PATH
8894do
8895  IFS=$as_save_IFS
8896  test -z "$as_dir" && as_dir=.
8897    for ac_exec_ext in '' $ac_executable_extensions; do
8898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8899    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8901    break 2
8902  fi
8903done
8904  done
8905IFS=$as_save_IFS
8906
8907fi
8908fi
8909DLLTOOL=$ac_cv_prog_DLLTOOL
8910if test -n "$DLLTOOL"; then
8911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8912$as_echo "$DLLTOOL" >&6; }
8913else
8914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915$as_echo "no" >&6; }
8916fi
8917
8918
8919fi
8920if test -z "$ac_cv_prog_DLLTOOL"; then
8921  ac_ct_DLLTOOL=$DLLTOOL
8922  # Extract the first word of "dlltool", so it can be a program name with args.
8923set dummy dlltool; ac_word=$2
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925$as_echo_n "checking for $ac_word... " >&6; }
8926if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8927  $as_echo_n "(cached) " >&6
8928else
8929  if test -n "$ac_ct_DLLTOOL"; then
8930  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8931else
8932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933for as_dir in $PATH
8934do
8935  IFS=$as_save_IFS
8936  test -z "$as_dir" && as_dir=.
8937    for ac_exec_ext in '' $ac_executable_extensions; do
8938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8939    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8941    break 2
8942  fi
8943done
8944  done
8945IFS=$as_save_IFS
8946
8947fi
8948fi
8949ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8950if test -n "$ac_ct_DLLTOOL"; then
8951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8952$as_echo "$ac_ct_DLLTOOL" >&6; }
8953else
8954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955$as_echo "no" >&6; }
8956fi
8957
8958  if test "x$ac_ct_DLLTOOL" = x; then
8959    DLLTOOL="false"
8960  else
8961    case $cross_compiling:$ac_tool_warned in
8962yes:)
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8965ac_tool_warned=yes ;;
8966esac
8967    DLLTOOL=$ac_ct_DLLTOOL
8968  fi
8969else
8970  DLLTOOL="$ac_cv_prog_DLLTOOL"
8971fi
8972
8973test -z "$DLLTOOL" && DLLTOOL=dlltool
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8985$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8986if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  lt_cv_sharedlib_from_linklib_cmd='unknown'
8990
8991case $host_os in
8992cygwin* | mingw* | pw32* | cegcc*)
8993  # two different shell functions defined in ltmain.sh;
8994  # decide which one to use based on capabilities of $DLLTOOL
8995  case `$DLLTOOL --help 2>&1` in
8996  *--identify-strict*)
8997    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8998    ;;
8999  *)
9000    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9001    ;;
9002  esac
9003  ;;
9004*)
9005  # fallback: assume linklib IS sharedlib
9006  lt_cv_sharedlib_from_linklib_cmd=$ECHO
9007  ;;
9008esac
9009
9010fi
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9012$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9013sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9014test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9015
9016
9017
9018
9019
9020
9021
9022
9023if test -n "$ac_tool_prefix"; then
9024  for ac_prog in ar
9025  do
9026    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029$as_echo_n "checking for $ac_word... " >&6; }
9030if ${ac_cv_prog_AR+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  if test -n "$AR"; then
9034  ac_cv_prog_AR="$AR" # Let the user override the test.
9035else
9036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037for as_dir in $PATH
9038do
9039  IFS=$as_save_IFS
9040  test -z "$as_dir" && as_dir=.
9041    for ac_exec_ext in '' $ac_executable_extensions; do
9042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9043    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045    break 2
9046  fi
9047done
9048  done
9049IFS=$as_save_IFS
9050
9051fi
9052fi
9053AR=$ac_cv_prog_AR
9054if test -n "$AR"; then
9055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9056$as_echo "$AR" >&6; }
9057else
9058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059$as_echo "no" >&6; }
9060fi
9061
9062
9063    test -n "$AR" && break
9064  done
9065fi
9066if test -z "$AR"; then
9067  ac_ct_AR=$AR
9068  for ac_prog in ar
9069do
9070  # Extract the first word of "$ac_prog", so it can be a program name with args.
9071set dummy $ac_prog; ac_word=$2
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073$as_echo_n "checking for $ac_word... " >&6; }
9074if ${ac_cv_prog_ac_ct_AR+:} false; then :
9075  $as_echo_n "(cached) " >&6
9076else
9077  if test -n "$ac_ct_AR"; then
9078  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9079else
9080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081for as_dir in $PATH
9082do
9083  IFS=$as_save_IFS
9084  test -z "$as_dir" && as_dir=.
9085    for ac_exec_ext in '' $ac_executable_extensions; do
9086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9087    ac_cv_prog_ac_ct_AR="$ac_prog"
9088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089    break 2
9090  fi
9091done
9092  done
9093IFS=$as_save_IFS
9094
9095fi
9096fi
9097ac_ct_AR=$ac_cv_prog_ac_ct_AR
9098if test -n "$ac_ct_AR"; then
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9100$as_echo "$ac_ct_AR" >&6; }
9101else
9102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103$as_echo "no" >&6; }
9104fi
9105
9106
9107  test -n "$ac_ct_AR" && break
9108done
9109
9110  if test "x$ac_ct_AR" = x; then
9111    AR="false"
9112  else
9113    case $cross_compiling:$ac_tool_warned in
9114yes:)
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9117ac_tool_warned=yes ;;
9118esac
9119    AR=$ac_ct_AR
9120  fi
9121fi
9122
9123: ${AR=ar}
9124
9125
9126
9127
9128
9129
9130# Use ARFLAGS variable as AR's operation code to sync the variable naming with
9131# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9132# higher priority because thats what people were doing historically (setting
9133# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
9134# variable obsoleted/removed.
9135
9136test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9137lt_ar_flags=$AR_FLAGS
9138
9139
9140
9141
9142
9143
9144# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
9145# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9146
9147
9148
9149
9150
9151
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9153$as_echo_n "checking for archiver @FILE support... " >&6; }
9154if ${lt_cv_ar_at_file+:} false; then :
9155  $as_echo_n "(cached) " >&6
9156else
9157  lt_cv_ar_at_file=no
9158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159/* end confdefs.h.  */
9160
9161int
9162main ()
9163{
9164
9165  ;
9166  return 0;
9167}
9168_ACEOF
9169if ac_fn_c_try_compile "$LINENO"; then :
9170  echo conftest.$ac_objext > conftest.lst
9171      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9172      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9173  (eval $lt_ar_try) 2>&5
9174  ac_status=$?
9175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9176  test $ac_status = 0; }
9177      if test 0 -eq "$ac_status"; then
9178	# Ensure the archiver fails upon bogus file names.
9179	rm -f conftest.$ac_objext libconftest.a
9180	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9181  (eval $lt_ar_try) 2>&5
9182  ac_status=$?
9183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9184  test $ac_status = 0; }
9185	if test 0 -ne "$ac_status"; then
9186          lt_cv_ar_at_file=@
9187        fi
9188      fi
9189      rm -f conftest.* libconftest.a
9190
9191fi
9192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193
9194fi
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9196$as_echo "$lt_cv_ar_at_file" >&6; }
9197
9198if test no = "$lt_cv_ar_at_file"; then
9199  archiver_list_spec=
9200else
9201  archiver_list_spec=$lt_cv_ar_at_file
9202fi
9203
9204
9205
9206
9207
9208
9209
9210if test -n "$ac_tool_prefix"; then
9211  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9212set dummy ${ac_tool_prefix}strip; ac_word=$2
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214$as_echo_n "checking for $ac_word... " >&6; }
9215if ${ac_cv_prog_STRIP+:} false; then :
9216  $as_echo_n "(cached) " >&6
9217else
9218  if test -n "$STRIP"; then
9219  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9220else
9221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222for as_dir in $PATH
9223do
9224  IFS=$as_save_IFS
9225  test -z "$as_dir" && as_dir=.
9226    for ac_exec_ext in '' $ac_executable_extensions; do
9227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9228    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230    break 2
9231  fi
9232done
9233  done
9234IFS=$as_save_IFS
9235
9236fi
9237fi
9238STRIP=$ac_cv_prog_STRIP
9239if test -n "$STRIP"; then
9240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9241$as_echo "$STRIP" >&6; }
9242else
9243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
9245fi
9246
9247
9248fi
9249if test -z "$ac_cv_prog_STRIP"; then
9250  ac_ct_STRIP=$STRIP
9251  # Extract the first word of "strip", so it can be a program name with args.
9252set dummy strip; ac_word=$2
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254$as_echo_n "checking for $ac_word... " >&6; }
9255if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9256  $as_echo_n "(cached) " >&6
9257else
9258  if test -n "$ac_ct_STRIP"; then
9259  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9260else
9261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262for as_dir in $PATH
9263do
9264  IFS=$as_save_IFS
9265  test -z "$as_dir" && as_dir=.
9266    for ac_exec_ext in '' $ac_executable_extensions; do
9267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9268    ac_cv_prog_ac_ct_STRIP="strip"
9269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270    break 2
9271  fi
9272done
9273  done
9274IFS=$as_save_IFS
9275
9276fi
9277fi
9278ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9279if test -n "$ac_ct_STRIP"; then
9280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9281$as_echo "$ac_ct_STRIP" >&6; }
9282else
9283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284$as_echo "no" >&6; }
9285fi
9286
9287  if test "x$ac_ct_STRIP" = x; then
9288    STRIP=":"
9289  else
9290    case $cross_compiling:$ac_tool_warned in
9291yes:)
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9294ac_tool_warned=yes ;;
9295esac
9296    STRIP=$ac_ct_STRIP
9297  fi
9298else
9299  STRIP="$ac_cv_prog_STRIP"
9300fi
9301
9302test -z "$STRIP" && STRIP=:
9303
9304
9305
9306
9307
9308
9309if test -n "$ac_tool_prefix"; then
9310  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9311set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313$as_echo_n "checking for $ac_word... " >&6; }
9314if ${ac_cv_prog_RANLIB+:} false; then :
9315  $as_echo_n "(cached) " >&6
9316else
9317  if test -n "$RANLIB"; then
9318  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9319else
9320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321for as_dir in $PATH
9322do
9323  IFS=$as_save_IFS
9324  test -z "$as_dir" && as_dir=.
9325    for ac_exec_ext in '' $ac_executable_extensions; do
9326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9327    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9329    break 2
9330  fi
9331done
9332  done
9333IFS=$as_save_IFS
9334
9335fi
9336fi
9337RANLIB=$ac_cv_prog_RANLIB
9338if test -n "$RANLIB"; then
9339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9340$as_echo "$RANLIB" >&6; }
9341else
9342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343$as_echo "no" >&6; }
9344fi
9345
9346
9347fi
9348if test -z "$ac_cv_prog_RANLIB"; then
9349  ac_ct_RANLIB=$RANLIB
9350  # Extract the first word of "ranlib", so it can be a program name with args.
9351set dummy ranlib; ac_word=$2
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353$as_echo_n "checking for $ac_word... " >&6; }
9354if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357  if test -n "$ac_ct_RANLIB"; then
9358  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9359else
9360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361for as_dir in $PATH
9362do
9363  IFS=$as_save_IFS
9364  test -z "$as_dir" && as_dir=.
9365    for ac_exec_ext in '' $ac_executable_extensions; do
9366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9367    ac_cv_prog_ac_ct_RANLIB="ranlib"
9368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9369    break 2
9370  fi
9371done
9372  done
9373IFS=$as_save_IFS
9374
9375fi
9376fi
9377ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9378if test -n "$ac_ct_RANLIB"; then
9379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9380$as_echo "$ac_ct_RANLIB" >&6; }
9381else
9382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383$as_echo "no" >&6; }
9384fi
9385
9386  if test "x$ac_ct_RANLIB" = x; then
9387    RANLIB=":"
9388  else
9389    case $cross_compiling:$ac_tool_warned in
9390yes:)
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9393ac_tool_warned=yes ;;
9394esac
9395    RANLIB=$ac_ct_RANLIB
9396  fi
9397else
9398  RANLIB="$ac_cv_prog_RANLIB"
9399fi
9400
9401test -z "$RANLIB" && RANLIB=:
9402
9403
9404
9405
9406
9407
9408# Determine commands to create old-style static archives.
9409old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9410old_postinstall_cmds='chmod 644 $oldlib'
9411old_postuninstall_cmds=
9412
9413if test -n "$RANLIB"; then
9414  case $host_os in
9415  bitrig* | openbsd*)
9416    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9417    ;;
9418  *)
9419    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9420    ;;
9421  esac
9422  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9423fi
9424
9425case $host_os in
9426  darwin*)
9427    lock_old_archive_extraction=yes ;;
9428  *)
9429    lock_old_archive_extraction=no ;;
9430esac
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470# If no C compiler was specified, use CC.
9471LTCC=${LTCC-"$CC"}
9472
9473# If no C compiler flags were specified, use CFLAGS.
9474LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9475
9476# Allow CC to be a program name with arguments.
9477compiler=$CC
9478
9479
9480# Check for command to grab the raw symbol name followed by C symbol from nm.
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9482$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9483if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9484  $as_echo_n "(cached) " >&6
9485else
9486
9487# These are sane defaults that work on at least a few old systems.
9488# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9489
9490# Character class describing NM global symbol codes.
9491symcode='[BCDEGRST]'
9492
9493# Regexp to match symbols that can be accessed directly from C.
9494sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9495
9496# Define system-specific variables.
9497case $host_os in
9498aix*)
9499  symcode='[BCDT]'
9500  ;;
9501cygwin* | mingw* | pw32* | cegcc*)
9502  symcode='[ABCDGISTW]'
9503  ;;
9504hpux*)
9505  if test ia64 = "$host_cpu"; then
9506    symcode='[ABCDEGRST]'
9507  fi
9508  ;;
9509irix* | nonstopux*)
9510  symcode='[BCDEGRST]'
9511  ;;
9512osf*)
9513  symcode='[BCDEGQRST]'
9514  ;;
9515solaris*)
9516  symcode='[BDRT]'
9517  ;;
9518sco3.2v5*)
9519  symcode='[DT]'
9520  ;;
9521sysv4.2uw2*)
9522  symcode='[DT]'
9523  ;;
9524sysv5* | sco5v6* | unixware* | OpenUNIX*)
9525  symcode='[ABDT]'
9526  ;;
9527sysv4)
9528  symcode='[DFNSTU]'
9529  ;;
9530esac
9531
9532# If we're using GNU nm, then use its standard symbol codes.
9533case `$NM -V 2>&1` in
9534*GNU* | *'with BFD'*)
9535  symcode='[ABCDGIRSTW]' ;;
9536esac
9537
9538if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9539  # Gets list of data symbols to import.
9540  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9541  # Adjust the below global symbol transforms to fixup imported variables.
9542  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9543  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9544  lt_c_name_lib_hook="\
9545  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9546  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9547else
9548  # Disable hooks by default.
9549  lt_cv_sys_global_symbol_to_import=
9550  lt_cdecl_hook=
9551  lt_c_name_hook=
9552  lt_c_name_lib_hook=
9553fi
9554
9555# Transform an extracted symbol line into a proper C declaration.
9556# Some systems (esp. on ia64) link data and code symbols differently,
9557# so use this general approach.
9558lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9559$lt_cdecl_hook\
9560" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9561" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9562
9563# Transform an extracted symbol line into symbol name and symbol address
9564lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9565$lt_c_name_hook\
9566" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9567" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9568
9569# Transform an extracted symbol line into symbol name with lib prefix and
9570# symbol address.
9571lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9572$lt_c_name_lib_hook\
9573" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9574" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9575" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9576
9577# Handle CRLF in mingw tool chain
9578opt_cr=
9579case $build_os in
9580mingw*)
9581  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9582  ;;
9583esac
9584
9585# Try without a prefix underscore, then with it.
9586for ac_symprfx in "" "_"; do
9587
9588  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9589  symxfrm="\\1 $ac_symprfx\\2 \\2"
9590
9591  # Write the raw and C identifiers.
9592  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9593    # Fake it for dumpbin and say T for any non-static function,
9594    # D for any global variable and I for any imported variable.
9595    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9596    # which start with @ or ?.
9597    lt_cv_sys_global_symbol_pipe="$AWK '"\
9598"     {last_section=section; section=\$ 3};"\
9599"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9600"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9601"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9602"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9603"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9604"     \$ 0!~/External *\|/{next};"\
9605"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9606"     {if(hide[section]) next};"\
9607"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9608"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9609"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9610"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9611"     ' prfx=^$ac_symprfx"
9612  else
9613    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9614  fi
9615  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9616
9617  # Check to see that the pipe works correctly.
9618  pipe_works=no
9619
9620  rm -f conftest*
9621  cat > conftest.$ac_ext <<_LT_EOF
9622#ifdef __cplusplus
9623extern "C" {
9624#endif
9625char nm_test_var;
9626void nm_test_func(void);
9627void nm_test_func(void){}
9628#ifdef __cplusplus
9629}
9630#endif
9631int main(){nm_test_var='a';nm_test_func();return(0);}
9632_LT_EOF
9633
9634  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9635  (eval $ac_compile) 2>&5
9636  ac_status=$?
9637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9638  test $ac_status = 0; }; then
9639    # Now try to grab the symbols.
9640    nlist=conftest.nm
9641    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9642  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9643  ac_status=$?
9644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9645  test $ac_status = 0; } && test -s "$nlist"; then
9646      # Try sorting and uniquifying the output.
9647      if sort "$nlist" | uniq > "$nlist"T; then
9648	mv -f "$nlist"T "$nlist"
9649      else
9650	rm -f "$nlist"T
9651      fi
9652
9653      # Make sure that we snagged all the symbols we need.
9654      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9655	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9656	  cat <<_LT_EOF > conftest.$ac_ext
9657/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9658#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9659/* DATA imports from DLLs on WIN32 can't be const, because runtime
9660   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9661# define LT_DLSYM_CONST
9662#elif defined __osf__
9663/* This system does not cope well with relocations in const data.  */
9664# define LT_DLSYM_CONST
9665#else
9666# define LT_DLSYM_CONST const
9667#endif
9668
9669#ifdef __cplusplus
9670extern "C" {
9671#endif
9672
9673_LT_EOF
9674	  # Now generate the symbol file.
9675	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9676
9677	  cat <<_LT_EOF >> conftest.$ac_ext
9678
9679/* The mapping between symbol names and symbols.  */
9680LT_DLSYM_CONST struct {
9681  const char *name;
9682  void       *address;
9683}
9684lt__PROGRAM__LTX_preloaded_symbols[] =
9685{
9686  { "@PROGRAM@", (void *) 0 },
9687_LT_EOF
9688	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9689	  cat <<\_LT_EOF >> conftest.$ac_ext
9690  {0, (void *) 0}
9691};
9692
9693/* This works around a problem in FreeBSD linker */
9694#ifdef FREEBSD_WORKAROUND
9695static const void *lt_preloaded_setup() {
9696  return lt__PROGRAM__LTX_preloaded_symbols;
9697}
9698#endif
9699
9700#ifdef __cplusplus
9701}
9702#endif
9703_LT_EOF
9704	  # Now try linking the two files.
9705	  mv conftest.$ac_objext conftstm.$ac_objext
9706	  lt_globsym_save_LIBS=$LIBS
9707	  lt_globsym_save_CFLAGS=$CFLAGS
9708	  LIBS=conftstm.$ac_objext
9709	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9710	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9711  (eval $ac_link) 2>&5
9712  ac_status=$?
9713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9714  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9715	    pipe_works=yes
9716	  fi
9717	  LIBS=$lt_globsym_save_LIBS
9718	  CFLAGS=$lt_globsym_save_CFLAGS
9719	else
9720	  echo "cannot find nm_test_func in $nlist" >&5
9721	fi
9722      else
9723	echo "cannot find nm_test_var in $nlist" >&5
9724      fi
9725    else
9726      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9727    fi
9728  else
9729    echo "$progname: failed program was:" >&5
9730    cat conftest.$ac_ext >&5
9731  fi
9732  rm -rf conftest* conftst*
9733
9734  # Do not use the global_symbol_pipe unless it works.
9735  if test yes = "$pipe_works"; then
9736    break
9737  else
9738    lt_cv_sys_global_symbol_pipe=
9739  fi
9740done
9741
9742fi
9743
9744if test -z "$lt_cv_sys_global_symbol_pipe"; then
9745  lt_cv_sys_global_symbol_to_cdecl=
9746fi
9747if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9749$as_echo "failed" >&6; }
9750else
9751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9752$as_echo "ok" >&6; }
9753fi
9754
9755# Response file support.
9756if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9757  nm_file_list_spec='@'
9758elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9759  nm_file_list_spec='@'
9760fi
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9799$as_echo_n "checking for sysroot... " >&6; }
9800
9801# Check whether --with-sysroot was given.
9802if test "${with_sysroot+set}" = set; then :
9803  withval=$with_sysroot;
9804else
9805  with_sysroot=no
9806fi
9807
9808
9809lt_sysroot=
9810case $with_sysroot in #(
9811 yes)
9812   if test yes = "$GCC"; then
9813     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9814   fi
9815   ;; #(
9816 /*)
9817   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9818   ;; #(
9819 no|'')
9820   ;; #(
9821 *)
9822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9823$as_echo "$with_sysroot" >&6; }
9824   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9825   ;;
9826esac
9827
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9829$as_echo "${lt_sysroot:-no}" >&6; }
9830
9831
9832
9833
9834
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9836$as_echo_n "checking for a working dd... " >&6; }
9837if ${ac_cv_path_lt_DD+:} false; then :
9838  $as_echo_n "(cached) " >&6
9839else
9840  printf 0123456789abcdef0123456789abcdef >conftest.i
9841cat conftest.i conftest.i >conftest2.i
9842: ${lt_DD:=$DD}
9843if test -z "$lt_DD"; then
9844  ac_path_lt_DD_found=false
9845  # Loop through the user's path and test for each of PROGNAME-LIST
9846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847for as_dir in $PATH
9848do
9849  IFS=$as_save_IFS
9850  test -z "$as_dir" && as_dir=.
9851    for ac_prog in dd; do
9852    for ac_exec_ext in '' $ac_executable_extensions; do
9853      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9854      as_fn_executable_p "$ac_path_lt_DD" || continue
9855if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9856  cmp -s conftest.i conftest.out \
9857  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9858fi
9859      $ac_path_lt_DD_found && break 3
9860    done
9861  done
9862  done
9863IFS=$as_save_IFS
9864  if test -z "$ac_cv_path_lt_DD"; then
9865    :
9866  fi
9867else
9868  ac_cv_path_lt_DD=$lt_DD
9869fi
9870
9871rm -f conftest.i conftest2.i conftest.out
9872fi
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9874$as_echo "$ac_cv_path_lt_DD" >&6; }
9875
9876
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9878$as_echo_n "checking how to truncate binary pipes... " >&6; }
9879if ${lt_cv_truncate_bin+:} false; then :
9880  $as_echo_n "(cached) " >&6
9881else
9882  printf 0123456789abcdef0123456789abcdef >conftest.i
9883cat conftest.i conftest.i >conftest2.i
9884lt_cv_truncate_bin=
9885if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9886  cmp -s conftest.i conftest.out \
9887  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9888fi
9889rm -f conftest.i conftest2.i conftest.out
9890test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9891fi
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9893$as_echo "$lt_cv_truncate_bin" >&6; }
9894
9895
9896
9897
9898
9899
9900
9901# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9902func_cc_basename ()
9903{
9904    for cc_temp in $*""; do
9905      case $cc_temp in
9906        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9907        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9908        \-*) ;;
9909        *) break;;
9910      esac
9911    done
9912    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9913}
9914
9915# Check whether --enable-libtool-lock was given.
9916if test "${enable_libtool_lock+set}" = set; then :
9917  enableval=$enable_libtool_lock;
9918fi
9919
9920test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9921
9922# Some flags need to be propagated to the compiler or linker for good
9923# libtool support.
9924case $host in
9925ia64-*-hpux*)
9926  # Find out what ABI is being produced by ac_compile, and set mode
9927  # options accordingly.
9928  echo 'int i;' > conftest.$ac_ext
9929  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9930  (eval $ac_compile) 2>&5
9931  ac_status=$?
9932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933  test $ac_status = 0; }; then
9934    case `/usr/bin/file conftest.$ac_objext` in
9935      *ELF-32*)
9936	HPUX_IA64_MODE=32
9937	;;
9938      *ELF-64*)
9939	HPUX_IA64_MODE=64
9940	;;
9941    esac
9942  fi
9943  rm -rf conftest*
9944  ;;
9945*-*-irix6*)
9946  # Find out what ABI is being produced by ac_compile, and set linker
9947  # options accordingly.
9948  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9949  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9950  (eval $ac_compile) 2>&5
9951  ac_status=$?
9952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9953  test $ac_status = 0; }; then
9954    if test yes = "$lt_cv_prog_gnu_ld"; then
9955      case `/usr/bin/file conftest.$ac_objext` in
9956	*32-bit*)
9957	  LD="${LD-ld} -melf32bsmip"
9958	  ;;
9959	*N32*)
9960	  LD="${LD-ld} -melf32bmipn32"
9961	  ;;
9962	*64-bit*)
9963	  LD="${LD-ld} -melf64bmip"
9964	;;
9965      esac
9966    else
9967      case `/usr/bin/file conftest.$ac_objext` in
9968	*32-bit*)
9969	  LD="${LD-ld} -32"
9970	  ;;
9971	*N32*)
9972	  LD="${LD-ld} -n32"
9973	  ;;
9974	*64-bit*)
9975	  LD="${LD-ld} -64"
9976	  ;;
9977      esac
9978    fi
9979  fi
9980  rm -rf conftest*
9981  ;;
9982
9983mips64*-*linux*)
9984  # Find out what ABI is being produced by ac_compile, and set linker
9985  # options accordingly.
9986  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9987  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9988  (eval $ac_compile) 2>&5
9989  ac_status=$?
9990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9991  test $ac_status = 0; }; then
9992    emul=elf
9993    case `/usr/bin/file conftest.$ac_objext` in
9994      *32-bit*)
9995	emul="${emul}32"
9996	;;
9997      *64-bit*)
9998	emul="${emul}64"
9999	;;
10000    esac
10001    case `/usr/bin/file conftest.$ac_objext` in
10002      *MSB*)
10003	emul="${emul}btsmip"
10004	;;
10005      *LSB*)
10006	emul="${emul}ltsmip"
10007	;;
10008    esac
10009    case `/usr/bin/file conftest.$ac_objext` in
10010      *N32*)
10011	emul="${emul}n32"
10012	;;
10013    esac
10014    LD="${LD-ld} -m $emul"
10015  fi
10016  rm -rf conftest*
10017  ;;
10018
10019x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10020s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10021  # Find out what ABI is being produced by ac_compile, and set linker
10022  # options accordingly.  Note that the listed cases only cover the
10023  # situations where additional linker options are needed (such as when
10024  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10025  # vice versa); the common cases where no linker options are needed do
10026  # not appear in the list.
10027  echo 'int i;' > conftest.$ac_ext
10028  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10029  (eval $ac_compile) 2>&5
10030  ac_status=$?
10031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10032  test $ac_status = 0; }; then
10033    case `/usr/bin/file conftest.o` in
10034      *32-bit*)
10035	case $host in
10036	  x86_64-*kfreebsd*-gnu)
10037	    LD="${LD-ld} -m elf_i386_fbsd"
10038	    ;;
10039	  x86_64-*linux*)
10040	    case `/usr/bin/file conftest.o` in
10041	      *x86-64*)
10042		LD="${LD-ld} -m elf32_x86_64"
10043		;;
10044	      *)
10045		LD="${LD-ld} -m elf_i386"
10046		;;
10047	    esac
10048	    ;;
10049	  powerpc64le-*linux*)
10050	    LD="${LD-ld} -m elf32lppclinux"
10051	    ;;
10052	  powerpc64-*linux*)
10053	    LD="${LD-ld} -m elf32ppclinux"
10054	    ;;
10055	  s390x-*linux*)
10056	    LD="${LD-ld} -m elf_s390"
10057	    ;;
10058	  sparc64-*linux*)
10059	    LD="${LD-ld} -m elf32_sparc"
10060	    ;;
10061	esac
10062	;;
10063      *64-bit*)
10064	case $host in
10065	  x86_64-*kfreebsd*-gnu)
10066	    LD="${LD-ld} -m elf_x86_64_fbsd"
10067	    ;;
10068	  x86_64-*linux*)
10069	    LD="${LD-ld} -m elf_x86_64"
10070	    ;;
10071	  powerpcle-*linux*)
10072	    LD="${LD-ld} -m elf64lppc"
10073	    ;;
10074	  powerpc-*linux*)
10075	    LD="${LD-ld} -m elf64ppc"
10076	    ;;
10077	  s390*-*linux*|s390*-*tpf*)
10078	    LD="${LD-ld} -m elf64_s390"
10079	    ;;
10080	  sparc*-*linux*)
10081	    LD="${LD-ld} -m elf64_sparc"
10082	    ;;
10083	esac
10084	;;
10085    esac
10086  fi
10087  rm -rf conftest*
10088  ;;
10089
10090*-*-sco3.2v5*)
10091  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10092  SAVE_CFLAGS=$CFLAGS
10093  CFLAGS="$CFLAGS -belf"
10094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10095$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10096if ${lt_cv_cc_needs_belf+:} false; then :
10097  $as_echo_n "(cached) " >&6
10098else
10099  ac_ext=c
10100ac_cpp='$CPP $CPPFLAGS'
10101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10103ac_compiler_gnu=$ac_cv_c_compiler_gnu
10104
10105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106/* end confdefs.h.  */
10107
10108int
10109main ()
10110{
10111
10112  ;
10113  return 0;
10114}
10115_ACEOF
10116if ac_fn_c_try_link "$LINENO"; then :
10117  lt_cv_cc_needs_belf=yes
10118else
10119  lt_cv_cc_needs_belf=no
10120fi
10121rm -f core conftest.err conftest.$ac_objext \
10122    conftest$ac_exeext conftest.$ac_ext
10123     ac_ext=c
10124ac_cpp='$CPP $CPPFLAGS'
10125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10127ac_compiler_gnu=$ac_cv_c_compiler_gnu
10128
10129fi
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10131$as_echo "$lt_cv_cc_needs_belf" >&6; }
10132  if test yes != "$lt_cv_cc_needs_belf"; then
10133    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10134    CFLAGS=$SAVE_CFLAGS
10135  fi
10136  ;;
10137*-*solaris*)
10138  # Find out what ABI is being produced by ac_compile, and set linker
10139  # options accordingly.
10140  echo 'int i;' > conftest.$ac_ext
10141  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10142  (eval $ac_compile) 2>&5
10143  ac_status=$?
10144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10145  test $ac_status = 0; }; then
10146    case `/usr/bin/file conftest.o` in
10147    *64-bit*)
10148      case $lt_cv_prog_gnu_ld in
10149      yes*)
10150        case $host in
10151        i?86-*-solaris*|x86_64-*-solaris*)
10152          LD="${LD-ld} -m elf_x86_64"
10153          ;;
10154        sparc*-*-solaris*)
10155          LD="${LD-ld} -m elf64_sparc"
10156          ;;
10157        esac
10158        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10159        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10160          LD=${LD-ld}_sol2
10161        fi
10162        ;;
10163      *)
10164	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10165	  LD="${LD-ld} -64"
10166	fi
10167	;;
10168      esac
10169      ;;
10170    esac
10171  fi
10172  rm -rf conftest*
10173  ;;
10174esac
10175
10176need_locks=$enable_libtool_lock
10177
10178if test -n "$ac_tool_prefix"; then
10179  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10180set dummy ${ac_tool_prefix}mt; ac_word=$2
10181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10182$as_echo_n "checking for $ac_word... " >&6; }
10183if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10184  $as_echo_n "(cached) " >&6
10185else
10186  if test -n "$MANIFEST_TOOL"; then
10187  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10188else
10189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190for as_dir in $PATH
10191do
10192  IFS=$as_save_IFS
10193  test -z "$as_dir" && as_dir=.
10194    for ac_exec_ext in '' $ac_executable_extensions; do
10195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10198    break 2
10199  fi
10200done
10201  done
10202IFS=$as_save_IFS
10203
10204fi
10205fi
10206MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10207if test -n "$MANIFEST_TOOL"; then
10208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10209$as_echo "$MANIFEST_TOOL" >&6; }
10210else
10211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212$as_echo "no" >&6; }
10213fi
10214
10215
10216fi
10217if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10218  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10219  # Extract the first word of "mt", so it can be a program name with args.
10220set dummy mt; ac_word=$2
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10222$as_echo_n "checking for $ac_word... " >&6; }
10223if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10224  $as_echo_n "(cached) " >&6
10225else
10226  if test -n "$ac_ct_MANIFEST_TOOL"; then
10227  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10228else
10229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230for as_dir in $PATH
10231do
10232  IFS=$as_save_IFS
10233  test -z "$as_dir" && as_dir=.
10234    for ac_exec_ext in '' $ac_executable_extensions; do
10235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10238    break 2
10239  fi
10240done
10241  done
10242IFS=$as_save_IFS
10243
10244fi
10245fi
10246ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10247if test -n "$ac_ct_MANIFEST_TOOL"; then
10248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10249$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10250else
10251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252$as_echo "no" >&6; }
10253fi
10254
10255  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10256    MANIFEST_TOOL=":"
10257  else
10258    case $cross_compiling:$ac_tool_warned in
10259yes:)
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10262ac_tool_warned=yes ;;
10263esac
10264    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10265  fi
10266else
10267  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10268fi
10269
10270test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10272$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10273if ${lt_cv_path_mainfest_tool+:} false; then :
10274  $as_echo_n "(cached) " >&6
10275else
10276  lt_cv_path_mainfest_tool=no
10277  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10278  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10279  cat conftest.err >&5
10280  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10281    lt_cv_path_mainfest_tool=yes
10282  fi
10283  rm -f conftest*
10284fi
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10286$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10287if test yes != "$lt_cv_path_mainfest_tool"; then
10288  MANIFEST_TOOL=:
10289fi
10290
10291
10292
10293
10294
10295
10296  case $host_os in
10297    rhapsody* | darwin*)
10298    if test -n "$ac_tool_prefix"; then
10299  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10300set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302$as_echo_n "checking for $ac_word... " >&6; }
10303if ${ac_cv_prog_DSYMUTIL+:} false; then :
10304  $as_echo_n "(cached) " >&6
10305else
10306  if test -n "$DSYMUTIL"; then
10307  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10308else
10309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310for as_dir in $PATH
10311do
10312  IFS=$as_save_IFS
10313  test -z "$as_dir" && as_dir=.
10314    for ac_exec_ext in '' $ac_executable_extensions; do
10315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10316    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318    break 2
10319  fi
10320done
10321  done
10322IFS=$as_save_IFS
10323
10324fi
10325fi
10326DSYMUTIL=$ac_cv_prog_DSYMUTIL
10327if test -n "$DSYMUTIL"; then
10328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10329$as_echo "$DSYMUTIL" >&6; }
10330else
10331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332$as_echo "no" >&6; }
10333fi
10334
10335
10336fi
10337if test -z "$ac_cv_prog_DSYMUTIL"; then
10338  ac_ct_DSYMUTIL=$DSYMUTIL
10339  # Extract the first word of "dsymutil", so it can be a program name with args.
10340set dummy dsymutil; ac_word=$2
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342$as_echo_n "checking for $ac_word... " >&6; }
10343if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10344  $as_echo_n "(cached) " >&6
10345else
10346  if test -n "$ac_ct_DSYMUTIL"; then
10347  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10348else
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352  IFS=$as_save_IFS
10353  test -z "$as_dir" && as_dir=.
10354    for ac_exec_ext in '' $ac_executable_extensions; do
10355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10356    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358    break 2
10359  fi
10360done
10361  done
10362IFS=$as_save_IFS
10363
10364fi
10365fi
10366ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10367if test -n "$ac_ct_DSYMUTIL"; then
10368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10369$as_echo "$ac_ct_DSYMUTIL" >&6; }
10370else
10371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372$as_echo "no" >&6; }
10373fi
10374
10375  if test "x$ac_ct_DSYMUTIL" = x; then
10376    DSYMUTIL=":"
10377  else
10378    case $cross_compiling:$ac_tool_warned in
10379yes:)
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10382ac_tool_warned=yes ;;
10383esac
10384    DSYMUTIL=$ac_ct_DSYMUTIL
10385  fi
10386else
10387  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10388fi
10389
10390    if test -n "$ac_tool_prefix"; then
10391  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10392set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394$as_echo_n "checking for $ac_word... " >&6; }
10395if ${ac_cv_prog_NMEDIT+:} false; then :
10396  $as_echo_n "(cached) " >&6
10397else
10398  if test -n "$NMEDIT"; then
10399  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10400else
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404  IFS=$as_save_IFS
10405  test -z "$as_dir" && as_dir=.
10406    for ac_exec_ext in '' $ac_executable_extensions; do
10407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410    break 2
10411  fi
10412done
10413  done
10414IFS=$as_save_IFS
10415
10416fi
10417fi
10418NMEDIT=$ac_cv_prog_NMEDIT
10419if test -n "$NMEDIT"; then
10420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10421$as_echo "$NMEDIT" >&6; }
10422else
10423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424$as_echo "no" >&6; }
10425fi
10426
10427
10428fi
10429if test -z "$ac_cv_prog_NMEDIT"; then
10430  ac_ct_NMEDIT=$NMEDIT
10431  # Extract the first word of "nmedit", so it can be a program name with args.
10432set dummy nmedit; ac_word=$2
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434$as_echo_n "checking for $ac_word... " >&6; }
10435if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10436  $as_echo_n "(cached) " >&6
10437else
10438  if test -n "$ac_ct_NMEDIT"; then
10439  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10440else
10441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442for as_dir in $PATH
10443do
10444  IFS=$as_save_IFS
10445  test -z "$as_dir" && as_dir=.
10446    for ac_exec_ext in '' $ac_executable_extensions; do
10447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10448    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10450    break 2
10451  fi
10452done
10453  done
10454IFS=$as_save_IFS
10455
10456fi
10457fi
10458ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10459if test -n "$ac_ct_NMEDIT"; then
10460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10461$as_echo "$ac_ct_NMEDIT" >&6; }
10462else
10463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464$as_echo "no" >&6; }
10465fi
10466
10467  if test "x$ac_ct_NMEDIT" = x; then
10468    NMEDIT=":"
10469  else
10470    case $cross_compiling:$ac_tool_warned in
10471yes:)
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10474ac_tool_warned=yes ;;
10475esac
10476    NMEDIT=$ac_ct_NMEDIT
10477  fi
10478else
10479  NMEDIT="$ac_cv_prog_NMEDIT"
10480fi
10481
10482    if test -n "$ac_tool_prefix"; then
10483  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10484set dummy ${ac_tool_prefix}lipo; ac_word=$2
10485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486$as_echo_n "checking for $ac_word... " >&6; }
10487if ${ac_cv_prog_LIPO+:} false; then :
10488  $as_echo_n "(cached) " >&6
10489else
10490  if test -n "$LIPO"; then
10491  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10492else
10493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494for as_dir in $PATH
10495do
10496  IFS=$as_save_IFS
10497  test -z "$as_dir" && as_dir=.
10498    for ac_exec_ext in '' $ac_executable_extensions; do
10499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502    break 2
10503  fi
10504done
10505  done
10506IFS=$as_save_IFS
10507
10508fi
10509fi
10510LIPO=$ac_cv_prog_LIPO
10511if test -n "$LIPO"; then
10512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10513$as_echo "$LIPO" >&6; }
10514else
10515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516$as_echo "no" >&6; }
10517fi
10518
10519
10520fi
10521if test -z "$ac_cv_prog_LIPO"; then
10522  ac_ct_LIPO=$LIPO
10523  # Extract the first word of "lipo", so it can be a program name with args.
10524set dummy lipo; ac_word=$2
10525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526$as_echo_n "checking for $ac_word... " >&6; }
10527if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10528  $as_echo_n "(cached) " >&6
10529else
10530  if test -n "$ac_ct_LIPO"; then
10531  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10532else
10533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534for as_dir in $PATH
10535do
10536  IFS=$as_save_IFS
10537  test -z "$as_dir" && as_dir=.
10538    for ac_exec_ext in '' $ac_executable_extensions; do
10539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10540    ac_cv_prog_ac_ct_LIPO="lipo"
10541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10542    break 2
10543  fi
10544done
10545  done
10546IFS=$as_save_IFS
10547
10548fi
10549fi
10550ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10551if test -n "$ac_ct_LIPO"; then
10552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10553$as_echo "$ac_ct_LIPO" >&6; }
10554else
10555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556$as_echo "no" >&6; }
10557fi
10558
10559  if test "x$ac_ct_LIPO" = x; then
10560    LIPO=":"
10561  else
10562    case $cross_compiling:$ac_tool_warned in
10563yes:)
10564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10566ac_tool_warned=yes ;;
10567esac
10568    LIPO=$ac_ct_LIPO
10569  fi
10570else
10571  LIPO="$ac_cv_prog_LIPO"
10572fi
10573
10574    if test -n "$ac_tool_prefix"; then
10575  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10576set dummy ${ac_tool_prefix}otool; ac_word=$2
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10578$as_echo_n "checking for $ac_word... " >&6; }
10579if ${ac_cv_prog_OTOOL+:} false; then :
10580  $as_echo_n "(cached) " >&6
10581else
10582  if test -n "$OTOOL"; then
10583  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10584else
10585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588  IFS=$as_save_IFS
10589  test -z "$as_dir" && as_dir=.
10590    for ac_exec_ext in '' $ac_executable_extensions; do
10591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10592    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594    break 2
10595  fi
10596done
10597  done
10598IFS=$as_save_IFS
10599
10600fi
10601fi
10602OTOOL=$ac_cv_prog_OTOOL
10603if test -n "$OTOOL"; then
10604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10605$as_echo "$OTOOL" >&6; }
10606else
10607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608$as_echo "no" >&6; }
10609fi
10610
10611
10612fi
10613if test -z "$ac_cv_prog_OTOOL"; then
10614  ac_ct_OTOOL=$OTOOL
10615  # Extract the first word of "otool", so it can be a program name with args.
10616set dummy otool; ac_word=$2
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618$as_echo_n "checking for $ac_word... " >&6; }
10619if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10620  $as_echo_n "(cached) " >&6
10621else
10622  if test -n "$ac_ct_OTOOL"; then
10623  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10624else
10625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626for as_dir in $PATH
10627do
10628  IFS=$as_save_IFS
10629  test -z "$as_dir" && as_dir=.
10630    for ac_exec_ext in '' $ac_executable_extensions; do
10631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10632    ac_cv_prog_ac_ct_OTOOL="otool"
10633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10634    break 2
10635  fi
10636done
10637  done
10638IFS=$as_save_IFS
10639
10640fi
10641fi
10642ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10643if test -n "$ac_ct_OTOOL"; then
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10645$as_echo "$ac_ct_OTOOL" >&6; }
10646else
10647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648$as_echo "no" >&6; }
10649fi
10650
10651  if test "x$ac_ct_OTOOL" = x; then
10652    OTOOL=":"
10653  else
10654    case $cross_compiling:$ac_tool_warned in
10655yes:)
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10658ac_tool_warned=yes ;;
10659esac
10660    OTOOL=$ac_ct_OTOOL
10661  fi
10662else
10663  OTOOL="$ac_cv_prog_OTOOL"
10664fi
10665
10666    if test -n "$ac_tool_prefix"; then
10667  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10668set dummy ${ac_tool_prefix}otool64; ac_word=$2
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670$as_echo_n "checking for $ac_word... " >&6; }
10671if ${ac_cv_prog_OTOOL64+:} false; then :
10672  $as_echo_n "(cached) " >&6
10673else
10674  if test -n "$OTOOL64"; then
10675  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10676else
10677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678for as_dir in $PATH
10679do
10680  IFS=$as_save_IFS
10681  test -z "$as_dir" && as_dir=.
10682    for ac_exec_ext in '' $ac_executable_extensions; do
10683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10684    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686    break 2
10687  fi
10688done
10689  done
10690IFS=$as_save_IFS
10691
10692fi
10693fi
10694OTOOL64=$ac_cv_prog_OTOOL64
10695if test -n "$OTOOL64"; then
10696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10697$as_echo "$OTOOL64" >&6; }
10698else
10699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700$as_echo "no" >&6; }
10701fi
10702
10703
10704fi
10705if test -z "$ac_cv_prog_OTOOL64"; then
10706  ac_ct_OTOOL64=$OTOOL64
10707  # Extract the first word of "otool64", so it can be a program name with args.
10708set dummy otool64; ac_word=$2
10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710$as_echo_n "checking for $ac_word... " >&6; }
10711if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10712  $as_echo_n "(cached) " >&6
10713else
10714  if test -n "$ac_ct_OTOOL64"; then
10715  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10716else
10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $PATH
10719do
10720  IFS=$as_save_IFS
10721  test -z "$as_dir" && as_dir=.
10722    for ac_exec_ext in '' $ac_executable_extensions; do
10723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724    ac_cv_prog_ac_ct_OTOOL64="otool64"
10725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726    break 2
10727  fi
10728done
10729  done
10730IFS=$as_save_IFS
10731
10732fi
10733fi
10734ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10735if test -n "$ac_ct_OTOOL64"; then
10736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10737$as_echo "$ac_ct_OTOOL64" >&6; }
10738else
10739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740$as_echo "no" >&6; }
10741fi
10742
10743  if test "x$ac_ct_OTOOL64" = x; then
10744    OTOOL64=":"
10745  else
10746    case $cross_compiling:$ac_tool_warned in
10747yes:)
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10750ac_tool_warned=yes ;;
10751esac
10752    OTOOL64=$ac_ct_OTOOL64
10753  fi
10754else
10755  OTOOL64="$ac_cv_prog_OTOOL64"
10756fi
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10785$as_echo_n "checking for -single_module linker flag... " >&6; }
10786if ${lt_cv_apple_cc_single_mod+:} false; then :
10787  $as_echo_n "(cached) " >&6
10788else
10789  lt_cv_apple_cc_single_mod=no
10790      if test -z "$LT_MULTI_MODULE"; then
10791	# By default we will add the -single_module flag. You can override
10792	# by either setting the environment variable LT_MULTI_MODULE
10793	# non-empty at configure time, or by adding -multi_module to the
10794	# link flags.
10795	rm -rf libconftest.dylib*
10796	echo "int foo(void){return 1;}" > conftest.c
10797	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10798-dynamiclib -Wl,-single_module conftest.c" >&5
10799	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10800	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10801        _lt_result=$?
10802	# If there is a non-empty error log, and "single_module"
10803	# appears in it, assume the flag caused a linker warning
10804        if test -s conftest.err && $GREP single_module conftest.err; then
10805	  cat conftest.err >&5
10806	# Otherwise, if the output was created with a 0 exit code from
10807	# the compiler, it worked.
10808	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10809	  lt_cv_apple_cc_single_mod=yes
10810	else
10811	  cat conftest.err >&5
10812	fi
10813	rm -rf libconftest.dylib*
10814	rm -f conftest.*
10815      fi
10816fi
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10818$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10819
10820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10821$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10822if ${lt_cv_ld_exported_symbols_list+:} false; then :
10823  $as_echo_n "(cached) " >&6
10824else
10825  lt_cv_ld_exported_symbols_list=no
10826      save_LDFLAGS=$LDFLAGS
10827      echo "_main" > conftest.sym
10828      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10829      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830/* end confdefs.h.  */
10831
10832int
10833main ()
10834{
10835
10836  ;
10837  return 0;
10838}
10839_ACEOF
10840if ac_fn_c_try_link "$LINENO"; then :
10841  lt_cv_ld_exported_symbols_list=yes
10842else
10843  lt_cv_ld_exported_symbols_list=no
10844fi
10845rm -f core conftest.err conftest.$ac_objext \
10846    conftest$ac_exeext conftest.$ac_ext
10847	LDFLAGS=$save_LDFLAGS
10848
10849fi
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10851$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10852
10853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10854$as_echo_n "checking for -force_load linker flag... " >&6; }
10855if ${lt_cv_ld_force_load+:} false; then :
10856  $as_echo_n "(cached) " >&6
10857else
10858  lt_cv_ld_force_load=no
10859      cat > conftest.c << _LT_EOF
10860int forced_loaded() { return 2;}
10861_LT_EOF
10862      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10863      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10864      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10865      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10866      echo "$RANLIB libconftest.a" >&5
10867      $RANLIB libconftest.a 2>&5
10868      cat > conftest.c << _LT_EOF
10869int main() { return 0;}
10870_LT_EOF
10871      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10872      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10873      _lt_result=$?
10874      if test -s conftest.err && $GREP force_load conftest.err; then
10875	cat conftest.err >&5
10876      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10877	lt_cv_ld_force_load=yes
10878      else
10879	cat conftest.err >&5
10880      fi
10881        rm -f conftest.err libconftest.a conftest conftest.c
10882        rm -rf conftest.dSYM
10883
10884fi
10885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10886$as_echo "$lt_cv_ld_force_load" >&6; }
10887    case $host_os in
10888    rhapsody* | darwin1.[012])
10889      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10890    darwin1.*)
10891      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10892    darwin*) # darwin 5.x on
10893      # if running on 10.5 or later, the deployment target defaults
10894      # to the OS version, if on x86, and 10.4, the deployment
10895      # target defaults to 10.4. Don't you love it?
10896      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10897	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10898	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10899	10.[012][,.]*)
10900	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10901	10.*)
10902	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10903      esac
10904    ;;
10905  esac
10906    if test yes = "$lt_cv_apple_cc_single_mod"; then
10907      _lt_dar_single_mod='$single_module'
10908    fi
10909    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10910      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10911    else
10912      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10913    fi
10914    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10915      _lt_dsymutil='~$DSYMUTIL $lib || :'
10916    else
10917      _lt_dsymutil=
10918    fi
10919    ;;
10920  esac
10921
10922# func_munge_path_list VARIABLE PATH
10923# -----------------------------------
10924# VARIABLE is name of variable containing _space_ separated list of
10925# directories to be munged by the contents of PATH, which is string
10926# having a format:
10927# "DIR[:DIR]:"
10928#       string "DIR[ DIR]" will be prepended to VARIABLE
10929# ":DIR[:DIR]"
10930#       string "DIR[ DIR]" will be appended to VARIABLE
10931# "DIRP[:DIRP]::[DIRA:]DIRA"
10932#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10933#       "DIRA[ DIRA]" will be appended to VARIABLE
10934# "DIR[:DIR]"
10935#       VARIABLE will be replaced by "DIR[ DIR]"
10936func_munge_path_list ()
10937{
10938    case x$2 in
10939    x)
10940        ;;
10941    *:)
10942        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10943        ;;
10944    x:*)
10945        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10946        ;;
10947    *::*)
10948        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10949        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10950        ;;
10951    *)
10952        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10953        ;;
10954    esac
10955}
10956
10957
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10959$as_echo_n "checking for ANSI C header files... " >&6; }
10960if ${ac_cv_header_stdc+:} false; then :
10961  $as_echo_n "(cached) " >&6
10962else
10963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964/* end confdefs.h.  */
10965#include <stdlib.h>
10966#include <stdarg.h>
10967#include <string.h>
10968#include <float.h>
10969
10970int
10971main ()
10972{
10973
10974  ;
10975  return 0;
10976}
10977_ACEOF
10978if ac_fn_c_try_compile "$LINENO"; then :
10979  ac_cv_header_stdc=yes
10980else
10981  ac_cv_header_stdc=no
10982fi
10983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10984
10985if test $ac_cv_header_stdc = yes; then
10986  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h.  */
10989#include <string.h>
10990
10991_ACEOF
10992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10993  $EGREP "memchr" >/dev/null 2>&1; then :
10994
10995else
10996  ac_cv_header_stdc=no
10997fi
10998rm -f conftest*
10999
11000fi
11001
11002if test $ac_cv_header_stdc = yes; then
11003  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005/* end confdefs.h.  */
11006#include <stdlib.h>
11007
11008_ACEOF
11009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11010  $EGREP "free" >/dev/null 2>&1; then :
11011
11012else
11013  ac_cv_header_stdc=no
11014fi
11015rm -f conftest*
11016
11017fi
11018
11019if test $ac_cv_header_stdc = yes; then
11020  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11021  if test "$cross_compiling" = yes; then :
11022  :
11023else
11024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025/* end confdefs.h.  */
11026#include <ctype.h>
11027#include <stdlib.h>
11028#if ((' ' & 0x0FF) == 0x020)
11029# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11030# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11031#else
11032# define ISLOWER(c) \
11033		   (('a' <= (c) && (c) <= 'i') \
11034		     || ('j' <= (c) && (c) <= 'r') \
11035		     || ('s' <= (c) && (c) <= 'z'))
11036# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11037#endif
11038
11039#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11040int
11041main ()
11042{
11043  int i;
11044  for (i = 0; i < 256; i++)
11045    if (XOR (islower (i), ISLOWER (i))
11046	|| toupper (i) != TOUPPER (i))
11047      return 2;
11048  return 0;
11049}
11050_ACEOF
11051if ac_fn_c_try_run "$LINENO"; then :
11052
11053else
11054  ac_cv_header_stdc=no
11055fi
11056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11057  conftest.$ac_objext conftest.beam conftest.$ac_ext
11058fi
11059
11060fi
11061fi
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11063$as_echo "$ac_cv_header_stdc" >&6; }
11064if test $ac_cv_header_stdc = yes; then
11065
11066$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11067
11068fi
11069
11070# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11071for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11072		  inttypes.h stdint.h unistd.h
11073do :
11074  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11075ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11076"
11077if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11078  cat >>confdefs.h <<_ACEOF
11079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11080_ACEOF
11081
11082fi
11083
11084done
11085
11086
11087for ac_header in dlfcn.h
11088do :
11089  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11090"
11091if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11092  cat >>confdefs.h <<_ACEOF
11093#define HAVE_DLFCN_H 1
11094_ACEOF
11095
11096fi
11097
11098done
11099
11100
11101
11102func_stripname_cnf ()
11103{
11104  case $2 in
11105  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11106  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
11107  esac
11108} # func_stripname_cnf
11109
11110
11111
11112
11113
11114# Set options
11115
11116
11117
11118        enable_dlopen=no
11119
11120
11121  enable_win32_dll=no
11122
11123
11124
11125  # Check whether --enable-static was given.
11126if test "${enable_static+set}" = set; then :
11127  enableval=$enable_static; p=${PACKAGE-default}
11128    case $enableval in
11129    yes) enable_static=yes ;;
11130    no) enable_static=no ;;
11131    *)
11132     enable_static=no
11133      # Look at the argument we got.  We use all the common list separators.
11134      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11135      for pkg in $enableval; do
11136	IFS=$lt_save_ifs
11137	if test "X$pkg" = "X$p"; then
11138	  enable_static=yes
11139	fi
11140      done
11141      IFS=$lt_save_ifs
11142      ;;
11143    esac
11144else
11145  enable_static=yes
11146fi
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157# Check whether --with-pic was given.
11158if test "${with_pic+set}" = set; then :
11159  withval=$with_pic; lt_p=${PACKAGE-default}
11160    case $withval in
11161    yes|no) pic_mode=$withval ;;
11162    *)
11163      pic_mode=default
11164      # Look at the argument we got.  We use all the common list separators.
11165      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11166      for lt_pkg in $withval; do
11167	IFS=$lt_save_ifs
11168	if test "X$lt_pkg" = "X$lt_p"; then
11169	  pic_mode=yes
11170	fi
11171      done
11172      IFS=$lt_save_ifs
11173      ;;
11174    esac
11175else
11176  pic_mode=default
11177fi
11178
11179
11180
11181
11182
11183
11184
11185
11186  # Check whether --enable-fast-install was given.
11187if test "${enable_fast_install+set}" = set; then :
11188  enableval=$enable_fast_install; p=${PACKAGE-default}
11189    case $enableval in
11190    yes) enable_fast_install=yes ;;
11191    no) enable_fast_install=no ;;
11192    *)
11193      enable_fast_install=no
11194      # Look at the argument we got.  We use all the common list separators.
11195      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11196      for pkg in $enableval; do
11197	IFS=$lt_save_ifs
11198	if test "X$pkg" = "X$p"; then
11199	  enable_fast_install=yes
11200	fi
11201      done
11202      IFS=$lt_save_ifs
11203      ;;
11204    esac
11205else
11206  enable_fast_install=yes
11207fi
11208
11209
11210
11211
11212
11213
11214
11215
11216  shared_archive_member_spec=
11217case $host,$enable_shared in
11218power*-*-aix[5-9]*,yes)
11219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11220$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11221
11222# Check whether --with-aix-soname was given.
11223if test "${with_aix_soname+set}" = set; then :
11224  withval=$with_aix_soname; case $withval in
11225    aix|svr4|both)
11226      ;;
11227    *)
11228      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11229      ;;
11230    esac
11231    lt_cv_with_aix_soname=$with_aix_soname
11232else
11233  if ${lt_cv_with_aix_soname+:} false; then :
11234  $as_echo_n "(cached) " >&6
11235else
11236  lt_cv_with_aix_soname=aix
11237fi
11238
11239    with_aix_soname=$lt_cv_with_aix_soname
11240fi
11241
11242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11243$as_echo "$with_aix_soname" >&6; }
11244  if test aix != "$with_aix_soname"; then
11245    # For the AIX way of multilib, we name the shared archive member
11246    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11247    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11248    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11249    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11250    if test 64 = "${OBJECT_MODE-32}"; then
11251      shared_archive_member_spec=shr_64
11252    else
11253      shared_archive_member_spec=shr
11254    fi
11255  fi
11256  ;;
11257*)
11258  with_aix_soname=aix
11259  ;;
11260esac
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271# This can be used to rebuild libtool when needed
11272LIBTOOL_DEPS=$ltmain
11273
11274# Always use our own libtool.
11275LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306test -z "$LN_S" && LN_S="ln -s"
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321if test -n "${ZSH_VERSION+set}"; then
11322   setopt NO_GLOB_SUBST
11323fi
11324
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11326$as_echo_n "checking for objdir... " >&6; }
11327if ${lt_cv_objdir+:} false; then :
11328  $as_echo_n "(cached) " >&6
11329else
11330  rm -f .libs 2>/dev/null
11331mkdir .libs 2>/dev/null
11332if test -d .libs; then
11333  lt_cv_objdir=.libs
11334else
11335  # MS-DOS does not allow filenames that begin with a dot.
11336  lt_cv_objdir=_libs
11337fi
11338rmdir .libs 2>/dev/null
11339fi
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11341$as_echo "$lt_cv_objdir" >&6; }
11342objdir=$lt_cv_objdir
11343
11344
11345
11346
11347
11348cat >>confdefs.h <<_ACEOF
11349#define LT_OBJDIR "$lt_cv_objdir/"
11350_ACEOF
11351
11352
11353
11354
11355case $host_os in
11356aix3*)
11357  # AIX sometimes has problems with the GCC collect2 program.  For some
11358  # reason, if we set the COLLECT_NAMES environment variable, the problems
11359  # vanish in a puff of smoke.
11360  if test set != "${COLLECT_NAMES+set}"; then
11361    COLLECT_NAMES=
11362    export COLLECT_NAMES
11363  fi
11364  ;;
11365esac
11366
11367# Global variables:
11368ofile=libtool
11369can_build_shared=yes
11370
11371# All known linkers require a '.a' archive for static linking (except MSVC and
11372# ICC, which need '.lib').
11373libext=a
11374
11375with_gnu_ld=$lt_cv_prog_gnu_ld
11376
11377old_CC=$CC
11378old_CFLAGS=$CFLAGS
11379
11380# Set sane defaults for various variables
11381test -z "$CC" && CC=cc
11382test -z "$LTCC" && LTCC=$CC
11383test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11384test -z "$LD" && LD=ld
11385test -z "$ac_objext" && ac_objext=o
11386
11387func_cc_basename $compiler
11388cc_basename=$func_cc_basename_result
11389
11390
11391# Only perform the check for file, if the check method requires it
11392test -z "$MAGIC_CMD" && MAGIC_CMD=file
11393case $deplibs_check_method in
11394file_magic*)
11395  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11397$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11398if ${lt_cv_path_MAGIC_CMD+:} false; then :
11399  $as_echo_n "(cached) " >&6
11400else
11401  case $MAGIC_CMD in
11402[\\/*] |  ?:[\\/]*)
11403  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11404  ;;
11405*)
11406  lt_save_MAGIC_CMD=$MAGIC_CMD
11407  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11408  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11409  for ac_dir in $ac_dummy; do
11410    IFS=$lt_save_ifs
11411    test -z "$ac_dir" && ac_dir=.
11412    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11413      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11414      if test -n "$file_magic_test_file"; then
11415	case $deplibs_check_method in
11416	"file_magic "*)
11417	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11418	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11419	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11420	    $EGREP "$file_magic_regex" > /dev/null; then
11421	    :
11422	  else
11423	    cat <<_LT_EOF 1>&2
11424
11425*** Warning: the command libtool uses to detect shared libraries,
11426*** $file_magic_cmd, produces output that libtool cannot recognize.
11427*** The result is that libtool may fail to recognize shared libraries
11428*** as such.  This will affect the creation of libtool libraries that
11429*** depend on shared libraries, but programs linked with such libtool
11430*** libraries will work regardless of this problem.  Nevertheless, you
11431*** may want to report the problem to your system manager and/or to
11432*** bug-libtool@gnu.org
11433
11434_LT_EOF
11435	  fi ;;
11436	esac
11437      fi
11438      break
11439    fi
11440  done
11441  IFS=$lt_save_ifs
11442  MAGIC_CMD=$lt_save_MAGIC_CMD
11443  ;;
11444esac
11445fi
11446
11447MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11448if test -n "$MAGIC_CMD"; then
11449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11450$as_echo "$MAGIC_CMD" >&6; }
11451else
11452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
11454fi
11455
11456
11457
11458
11459
11460if test -z "$lt_cv_path_MAGIC_CMD"; then
11461  if test -n "$ac_tool_prefix"; then
11462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11463$as_echo_n "checking for file... " >&6; }
11464if ${lt_cv_path_MAGIC_CMD+:} false; then :
11465  $as_echo_n "(cached) " >&6
11466else
11467  case $MAGIC_CMD in
11468[\\/*] |  ?:[\\/]*)
11469  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11470  ;;
11471*)
11472  lt_save_MAGIC_CMD=$MAGIC_CMD
11473  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11474  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11475  for ac_dir in $ac_dummy; do
11476    IFS=$lt_save_ifs
11477    test -z "$ac_dir" && ac_dir=.
11478    if test -f "$ac_dir/file"; then
11479      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11480      if test -n "$file_magic_test_file"; then
11481	case $deplibs_check_method in
11482	"file_magic "*)
11483	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11484	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11485	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11486	    $EGREP "$file_magic_regex" > /dev/null; then
11487	    :
11488	  else
11489	    cat <<_LT_EOF 1>&2
11490
11491*** Warning: the command libtool uses to detect shared libraries,
11492*** $file_magic_cmd, produces output that libtool cannot recognize.
11493*** The result is that libtool may fail to recognize shared libraries
11494*** as such.  This will affect the creation of libtool libraries that
11495*** depend on shared libraries, but programs linked with such libtool
11496*** libraries will work regardless of this problem.  Nevertheless, you
11497*** may want to report the problem to your system manager and/or to
11498*** bug-libtool@gnu.org
11499
11500_LT_EOF
11501	  fi ;;
11502	esac
11503      fi
11504      break
11505    fi
11506  done
11507  IFS=$lt_save_ifs
11508  MAGIC_CMD=$lt_save_MAGIC_CMD
11509  ;;
11510esac
11511fi
11512
11513MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11514if test -n "$MAGIC_CMD"; then
11515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11516$as_echo "$MAGIC_CMD" >&6; }
11517else
11518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519$as_echo "no" >&6; }
11520fi
11521
11522
11523  else
11524    MAGIC_CMD=:
11525  fi
11526fi
11527
11528  fi
11529  ;;
11530esac
11531
11532# Use C for the default configuration in the libtool script
11533
11534lt_save_CC=$CC
11535ac_ext=c
11536ac_cpp='$CPP $CPPFLAGS'
11537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11539ac_compiler_gnu=$ac_cv_c_compiler_gnu
11540
11541
11542# Source file extension for C test sources.
11543ac_ext=c
11544
11545# Object file extension for compiled C test sources.
11546objext=o
11547objext=$objext
11548
11549# Code to be used in simple compile tests
11550lt_simple_compile_test_code="int some_variable = 0;"
11551
11552# Code to be used in simple link tests
11553lt_simple_link_test_code='int main(){return(0);}'
11554
11555
11556
11557
11558
11559
11560
11561# If no C compiler was specified, use CC.
11562LTCC=${LTCC-"$CC"}
11563
11564# If no C compiler flags were specified, use CFLAGS.
11565LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11566
11567# Allow CC to be a program name with arguments.
11568compiler=$CC
11569
11570# Save the default compiler, since it gets overwritten when the other
11571# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11572compiler_DEFAULT=$CC
11573
11574# save warnings/boilerplate of simple test code
11575ac_outfile=conftest.$ac_objext
11576echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11577eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11578_lt_compiler_boilerplate=`cat conftest.err`
11579$RM conftest*
11580
11581ac_outfile=conftest.$ac_objext
11582echo "$lt_simple_link_test_code" >conftest.$ac_ext
11583eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11584_lt_linker_boilerplate=`cat conftest.err`
11585$RM -r conftest*
11586
11587
11588## CAVEAT EMPTOR:
11589## There is no encapsulation within the following macros, do not change
11590## the running order or otherwise move them around unless you know exactly
11591## what you are doing...
11592if test -n "$compiler"; then
11593
11594lt_prog_compiler_no_builtin_flag=
11595
11596if test yes = "$GCC"; then
11597  case $cc_basename in
11598  nvcc*)
11599    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11600  *)
11601    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11602  esac
11603
11604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11605$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11606if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11607  $as_echo_n "(cached) " >&6
11608else
11609  lt_cv_prog_compiler_rtti_exceptions=no
11610   ac_outfile=conftest.$ac_objext
11611   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11612   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11613   # Insert the option either (1) after the last *FLAGS variable, or
11614   # (2) before a word containing "conftest.", or (3) at the end.
11615   # Note that $ac_compile itself does not contain backslashes and begins
11616   # with a dollar sign (not a hyphen), so the echo should work correctly.
11617   # The option is referenced via a variable to avoid confusing sed.
11618   lt_compile=`echo "$ac_compile" | $SED \
11619   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11620   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11621   -e 's:$: $lt_compiler_flag:'`
11622   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11623   (eval "$lt_compile" 2>conftest.err)
11624   ac_status=$?
11625   cat conftest.err >&5
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   if (exit $ac_status) && test -s "$ac_outfile"; then
11628     # The compiler can only warn and ignore the option if not recognized
11629     # So say no if there are warnings other than the usual output.
11630     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11631     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11632     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11633       lt_cv_prog_compiler_rtti_exceptions=yes
11634     fi
11635   fi
11636   $RM conftest*
11637
11638fi
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11640$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11641
11642if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11643    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11644else
11645    :
11646fi
11647
11648fi
11649
11650
11651
11652
11653
11654
11655  lt_prog_compiler_wl=
11656lt_prog_compiler_pic=
11657lt_prog_compiler_static=
11658
11659
11660  if test yes = "$GCC"; then
11661    lt_prog_compiler_wl='-Wl,'
11662    lt_prog_compiler_static='-static'
11663
11664    case $host_os in
11665      aix*)
11666      # All AIX code is PIC.
11667      if test ia64 = "$host_cpu"; then
11668	# AIX 5 now supports IA64 processor
11669	lt_prog_compiler_static='-Bstatic'
11670      fi
11671      lt_prog_compiler_pic='-fPIC'
11672      ;;
11673
11674    amigaos*)
11675      case $host_cpu in
11676      powerpc)
11677            # see comment about AmigaOS4 .so support
11678            lt_prog_compiler_pic='-fPIC'
11679        ;;
11680      m68k)
11681            # FIXME: we need at least 68020 code to build shared libraries, but
11682            # adding the '-m68020' flag to GCC prevents building anything better,
11683            # like '-m68040'.
11684            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11685        ;;
11686      esac
11687      ;;
11688
11689    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11690      # PIC is the default for these OSes.
11691      ;;
11692
11693    mingw* | cygwin* | pw32* | os2* | cegcc*)
11694      # This hack is so that the source file can tell whether it is being
11695      # built for inclusion in a dll (and should export symbols for example).
11696      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11697      # (--disable-auto-import) libraries
11698      lt_prog_compiler_pic='-DDLL_EXPORT'
11699      case $host_os in
11700      os2*)
11701	lt_prog_compiler_static='$wl-static'
11702	;;
11703      esac
11704      ;;
11705
11706    darwin* | rhapsody*)
11707      # PIC is the default on this platform
11708      # Common symbols not allowed in MH_DYLIB files
11709      lt_prog_compiler_pic='-fno-common'
11710      ;;
11711
11712    haiku*)
11713      # PIC is the default for Haiku.
11714      # The "-static" flag exists, but is broken.
11715      lt_prog_compiler_static=
11716      ;;
11717
11718    hpux*)
11719      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11720      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11721      # sets the default TLS model and affects inlining.
11722      case $host_cpu in
11723      hppa*64*)
11724	# +Z the default
11725	;;
11726      *)
11727	lt_prog_compiler_pic='-fPIC'
11728	;;
11729      esac
11730      ;;
11731
11732    interix[3-9]*)
11733      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11734      # Instead, we relocate shared libraries at runtime.
11735      ;;
11736
11737    msdosdjgpp*)
11738      # Just because we use GCC doesn't mean we suddenly get shared libraries
11739      # on systems that don't support them.
11740      lt_prog_compiler_can_build_shared=no
11741      enable_shared=no
11742      ;;
11743
11744    *nto* | *qnx*)
11745      # QNX uses GNU C++, but need to define -shared option too, otherwise
11746      # it will coredump.
11747      lt_prog_compiler_pic='-fPIC -shared'
11748      ;;
11749
11750    sysv4*MP*)
11751      if test -d /usr/nec; then
11752	lt_prog_compiler_pic=-Kconform_pic
11753      fi
11754      ;;
11755
11756    *)
11757      lt_prog_compiler_pic='-fPIC'
11758      ;;
11759    esac
11760
11761    case $cc_basename in
11762    nvcc*) # Cuda Compiler Driver 2.2
11763      lt_prog_compiler_wl='-Xlinker '
11764      if test -n "$lt_prog_compiler_pic"; then
11765        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11766      fi
11767      ;;
11768    esac
11769  else
11770    # PORTME Check for flag to pass linker flags through the system compiler.
11771    case $host_os in
11772    aix*)
11773      lt_prog_compiler_wl='-Wl,'
11774      if test ia64 = "$host_cpu"; then
11775	# AIX 5 now supports IA64 processor
11776	lt_prog_compiler_static='-Bstatic'
11777      else
11778	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11779      fi
11780      ;;
11781
11782    darwin* | rhapsody*)
11783      # PIC is the default on this platform
11784      # Common symbols not allowed in MH_DYLIB files
11785      lt_prog_compiler_pic='-fno-common'
11786      case $cc_basename in
11787      nagfor*)
11788        # NAG Fortran compiler
11789        lt_prog_compiler_wl='-Wl,-Wl,,'
11790        lt_prog_compiler_pic='-PIC'
11791        lt_prog_compiler_static='-Bstatic'
11792        ;;
11793      esac
11794      ;;
11795
11796    mingw* | cygwin* | pw32* | os2* | cegcc*)
11797      # This hack is so that the source file can tell whether it is being
11798      # built for inclusion in a dll (and should export symbols for example).
11799      lt_prog_compiler_pic='-DDLL_EXPORT'
11800      case $host_os in
11801      os2*)
11802	lt_prog_compiler_static='$wl-static'
11803	;;
11804      esac
11805      ;;
11806
11807    hpux9* | hpux10* | hpux11*)
11808      lt_prog_compiler_wl='-Wl,'
11809      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11810      # not for PA HP-UX.
11811      case $host_cpu in
11812      hppa*64*|ia64*)
11813	# +Z the default
11814	;;
11815      *)
11816	lt_prog_compiler_pic='+Z'
11817	;;
11818      esac
11819      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11820      lt_prog_compiler_static='$wl-a ${wl}archive'
11821      ;;
11822
11823    irix5* | irix6* | nonstopux*)
11824      lt_prog_compiler_wl='-Wl,'
11825      # PIC (with -KPIC) is the default.
11826      lt_prog_compiler_static='-non_shared'
11827      ;;
11828
11829    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11830      case $cc_basename in
11831      # old Intel for x86_64, which still supported -KPIC.
11832      ecc*)
11833	lt_prog_compiler_wl='-Wl,'
11834	lt_prog_compiler_pic='-KPIC'
11835	lt_prog_compiler_static='-static'
11836        ;;
11837      # icc used to be incompatible with GCC.
11838      # ICC 10 doesn't accept -KPIC any more.
11839      icc* | ifort*)
11840	lt_prog_compiler_wl='-Wl,'
11841	lt_prog_compiler_pic='-fPIC'
11842	lt_prog_compiler_static='-static'
11843        ;;
11844      # Lahey Fortran 8.1.
11845      lf95*)
11846	lt_prog_compiler_wl='-Wl,'
11847	lt_prog_compiler_pic='--shared'
11848	lt_prog_compiler_static='--static'
11849	;;
11850      nagfor*)
11851	# NAG Fortran compiler
11852	lt_prog_compiler_wl='-Wl,-Wl,,'
11853	lt_prog_compiler_pic='-PIC'
11854	lt_prog_compiler_static='-Bstatic'
11855	;;
11856      tcc*)
11857	# Fabrice Bellard et al's Tiny C Compiler
11858	lt_prog_compiler_wl='-Wl,'
11859	lt_prog_compiler_pic='-fPIC'
11860	lt_prog_compiler_static='-static'
11861	;;
11862      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11863        # Portland Group compilers (*not* the Pentium gcc compiler,
11864	# which looks to be a dead project)
11865	lt_prog_compiler_wl='-Wl,'
11866	lt_prog_compiler_pic='-fpic'
11867	lt_prog_compiler_static='-Bstatic'
11868        ;;
11869      ccc*)
11870        lt_prog_compiler_wl='-Wl,'
11871        # All Alpha code is PIC.
11872        lt_prog_compiler_static='-non_shared'
11873        ;;
11874      xl* | bgxl* | bgf* | mpixl*)
11875	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11876	lt_prog_compiler_wl='-Wl,'
11877	lt_prog_compiler_pic='-qpic'
11878	lt_prog_compiler_static='-qstaticlink'
11879	;;
11880      *)
11881	case `$CC -V 2>&1 | sed 5q` in
11882	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11883	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11884	  lt_prog_compiler_pic='-KPIC'
11885	  lt_prog_compiler_static='-Bstatic'
11886	  lt_prog_compiler_wl=''
11887	  ;;
11888	*Sun\ F* | *Sun*Fortran*)
11889	  lt_prog_compiler_pic='-KPIC'
11890	  lt_prog_compiler_static='-Bstatic'
11891	  lt_prog_compiler_wl='-Qoption ld '
11892	  ;;
11893	*Sun\ C*)
11894	  # Sun C 5.9
11895	  lt_prog_compiler_pic='-KPIC'
11896	  lt_prog_compiler_static='-Bstatic'
11897	  lt_prog_compiler_wl='-Wl,'
11898	  ;;
11899        *Intel*\ [CF]*Compiler*)
11900	  lt_prog_compiler_wl='-Wl,'
11901	  lt_prog_compiler_pic='-fPIC'
11902	  lt_prog_compiler_static='-static'
11903	  ;;
11904	*Portland\ Group*)
11905	  lt_prog_compiler_wl='-Wl,'
11906	  lt_prog_compiler_pic='-fpic'
11907	  lt_prog_compiler_static='-Bstatic'
11908	  ;;
11909	esac
11910	;;
11911      esac
11912      ;;
11913
11914    newsos6)
11915      lt_prog_compiler_pic='-KPIC'
11916      lt_prog_compiler_static='-Bstatic'
11917      ;;
11918
11919    *nto* | *qnx*)
11920      # QNX uses GNU C++, but need to define -shared option too, otherwise
11921      # it will coredump.
11922      lt_prog_compiler_pic='-fPIC -shared'
11923      ;;
11924
11925    osf3* | osf4* | osf5*)
11926      lt_prog_compiler_wl='-Wl,'
11927      # All OSF/1 code is PIC.
11928      lt_prog_compiler_static='-non_shared'
11929      ;;
11930
11931    rdos*)
11932      lt_prog_compiler_static='-non_shared'
11933      ;;
11934
11935    solaris*)
11936      lt_prog_compiler_pic='-KPIC'
11937      lt_prog_compiler_static='-Bstatic'
11938      case $cc_basename in
11939      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11940	lt_prog_compiler_wl='-Qoption ld ';;
11941      *)
11942	lt_prog_compiler_wl='-Wl,';;
11943      esac
11944      ;;
11945
11946    sunos4*)
11947      lt_prog_compiler_wl='-Qoption ld '
11948      lt_prog_compiler_pic='-PIC'
11949      lt_prog_compiler_static='-Bstatic'
11950      ;;
11951
11952    sysv4 | sysv4.2uw2* | sysv4.3*)
11953      lt_prog_compiler_wl='-Wl,'
11954      lt_prog_compiler_pic='-KPIC'
11955      lt_prog_compiler_static='-Bstatic'
11956      ;;
11957
11958    sysv4*MP*)
11959      if test -d /usr/nec; then
11960	lt_prog_compiler_pic='-Kconform_pic'
11961	lt_prog_compiler_static='-Bstatic'
11962      fi
11963      ;;
11964
11965    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11966      lt_prog_compiler_wl='-Wl,'
11967      lt_prog_compiler_pic='-KPIC'
11968      lt_prog_compiler_static='-Bstatic'
11969      ;;
11970
11971    unicos*)
11972      lt_prog_compiler_wl='-Wl,'
11973      lt_prog_compiler_can_build_shared=no
11974      ;;
11975
11976    uts4*)
11977      lt_prog_compiler_pic='-pic'
11978      lt_prog_compiler_static='-Bstatic'
11979      ;;
11980
11981    *)
11982      lt_prog_compiler_can_build_shared=no
11983      ;;
11984    esac
11985  fi
11986
11987case $host_os in
11988  # For platforms that do not support PIC, -DPIC is meaningless:
11989  *djgpp*)
11990    lt_prog_compiler_pic=
11991    ;;
11992  *)
11993    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11994    ;;
11995esac
11996
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11998$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11999if ${lt_cv_prog_compiler_pic+:} false; then :
12000  $as_echo_n "(cached) " >&6
12001else
12002  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12003fi
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12005$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12006lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12007
12008#
12009# Check to make sure the PIC flag actually works.
12010#
12011if test -n "$lt_prog_compiler_pic"; then
12012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12013$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12014if ${lt_cv_prog_compiler_pic_works+:} false; then :
12015  $as_echo_n "(cached) " >&6
12016else
12017  lt_cv_prog_compiler_pic_works=no
12018   ac_outfile=conftest.$ac_objext
12019   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12020   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12021   # Insert the option either (1) after the last *FLAGS variable, or
12022   # (2) before a word containing "conftest.", or (3) at the end.
12023   # Note that $ac_compile itself does not contain backslashes and begins
12024   # with a dollar sign (not a hyphen), so the echo should work correctly.
12025   # The option is referenced via a variable to avoid confusing sed.
12026   lt_compile=`echo "$ac_compile" | $SED \
12027   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12028   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12029   -e 's:$: $lt_compiler_flag:'`
12030   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12031   (eval "$lt_compile" 2>conftest.err)
12032   ac_status=$?
12033   cat conftest.err >&5
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   if (exit $ac_status) && test -s "$ac_outfile"; then
12036     # The compiler can only warn and ignore the option if not recognized
12037     # So say no if there are warnings other than the usual output.
12038     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12039     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12040     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12041       lt_cv_prog_compiler_pic_works=yes
12042     fi
12043   fi
12044   $RM conftest*
12045
12046fi
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12048$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12049
12050if test yes = "$lt_cv_prog_compiler_pic_works"; then
12051    case $lt_prog_compiler_pic in
12052     "" | " "*) ;;
12053     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12054     esac
12055else
12056    lt_prog_compiler_pic=
12057     lt_prog_compiler_can_build_shared=no
12058fi
12059
12060fi
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072#
12073# Check to make sure the static flag actually works.
12074#
12075wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12077$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12078if ${lt_cv_prog_compiler_static_works+:} false; then :
12079  $as_echo_n "(cached) " >&6
12080else
12081  lt_cv_prog_compiler_static_works=no
12082   save_LDFLAGS=$LDFLAGS
12083   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12084   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12085   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12086     # The linker can only warn and ignore the option if not recognized
12087     # So say no if there are warnings
12088     if test -s conftest.err; then
12089       # Append any errors to the config.log.
12090       cat conftest.err 1>&5
12091       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12092       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12093       if diff conftest.exp conftest.er2 >/dev/null; then
12094         lt_cv_prog_compiler_static_works=yes
12095       fi
12096     else
12097       lt_cv_prog_compiler_static_works=yes
12098     fi
12099   fi
12100   $RM -r conftest*
12101   LDFLAGS=$save_LDFLAGS
12102
12103fi
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12105$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12106
12107if test yes = "$lt_cv_prog_compiler_static_works"; then
12108    :
12109else
12110    lt_prog_compiler_static=
12111fi
12112
12113
12114
12115
12116
12117
12118
12119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12120$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12121if ${lt_cv_prog_compiler_c_o+:} false; then :
12122  $as_echo_n "(cached) " >&6
12123else
12124  lt_cv_prog_compiler_c_o=no
12125   $RM -r conftest 2>/dev/null
12126   mkdir conftest
12127   cd conftest
12128   mkdir out
12129   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12130
12131   lt_compiler_flag="-o out/conftest2.$ac_objext"
12132   # Insert the option either (1) after the last *FLAGS variable, or
12133   # (2) before a word containing "conftest.", or (3) at the end.
12134   # Note that $ac_compile itself does not contain backslashes and begins
12135   # with a dollar sign (not a hyphen), so the echo should work correctly.
12136   lt_compile=`echo "$ac_compile" | $SED \
12137   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12138   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12139   -e 's:$: $lt_compiler_flag:'`
12140   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12141   (eval "$lt_compile" 2>out/conftest.err)
12142   ac_status=$?
12143   cat out/conftest.err >&5
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12146   then
12147     # The compiler can only warn and ignore the option if not recognized
12148     # So say no if there are warnings
12149     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12150     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12151     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12152       lt_cv_prog_compiler_c_o=yes
12153     fi
12154   fi
12155   chmod u+w . 2>&5
12156   $RM conftest*
12157   # SGI C++ compiler will create directory out/ii_files/ for
12158   # template instantiation
12159   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12160   $RM out/* && rmdir out
12161   cd ..
12162   $RM -r conftest
12163   $RM conftest*
12164
12165fi
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12167$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12168
12169
12170
12171
12172
12173
12174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12175$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12176if ${lt_cv_prog_compiler_c_o+:} false; then :
12177  $as_echo_n "(cached) " >&6
12178else
12179  lt_cv_prog_compiler_c_o=no
12180   $RM -r conftest 2>/dev/null
12181   mkdir conftest
12182   cd conftest
12183   mkdir out
12184   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12185
12186   lt_compiler_flag="-o out/conftest2.$ac_objext"
12187   # Insert the option either (1) after the last *FLAGS variable, or
12188   # (2) before a word containing "conftest.", or (3) at the end.
12189   # Note that $ac_compile itself does not contain backslashes and begins
12190   # with a dollar sign (not a hyphen), so the echo should work correctly.
12191   lt_compile=`echo "$ac_compile" | $SED \
12192   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12193   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12194   -e 's:$: $lt_compiler_flag:'`
12195   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12196   (eval "$lt_compile" 2>out/conftest.err)
12197   ac_status=$?
12198   cat out/conftest.err >&5
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12201   then
12202     # The compiler can only warn and ignore the option if not recognized
12203     # So say no if there are warnings
12204     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12205     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12206     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12207       lt_cv_prog_compiler_c_o=yes
12208     fi
12209   fi
12210   chmod u+w . 2>&5
12211   $RM conftest*
12212   # SGI C++ compiler will create directory out/ii_files/ for
12213   # template instantiation
12214   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12215   $RM out/* && rmdir out
12216   cd ..
12217   $RM -r conftest
12218   $RM conftest*
12219
12220fi
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12222$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12223
12224
12225
12226
12227hard_links=nottested
12228if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12229  # do not overwrite the value of need_locks provided by the user
12230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12231$as_echo_n "checking if we can lock with hard links... " >&6; }
12232  hard_links=yes
12233  $RM conftest*
12234  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12235  touch conftest.a
12236  ln conftest.a conftest.b 2>&5 || hard_links=no
12237  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12239$as_echo "$hard_links" >&6; }
12240  if test no = "$hard_links"; then
12241    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12242$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12243    need_locks=warn
12244  fi
12245else
12246  need_locks=no
12247fi
12248
12249
12250
12251
12252
12253
12254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12255$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12256
12257  runpath_var=
12258  allow_undefined_flag=
12259  always_export_symbols=no
12260  archive_cmds=
12261  archive_expsym_cmds=
12262  compiler_needs_object=no
12263  enable_shared_with_static_runtimes=no
12264  export_dynamic_flag_spec=
12265  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12266  hardcode_automatic=no
12267  hardcode_direct=no
12268  hardcode_direct_absolute=no
12269  hardcode_libdir_flag_spec=
12270  hardcode_libdir_separator=
12271  hardcode_minus_L=no
12272  hardcode_shlibpath_var=unsupported
12273  inherit_rpath=no
12274  link_all_deplibs=unknown
12275  module_cmds=
12276  module_expsym_cmds=
12277  old_archive_from_new_cmds=
12278  old_archive_from_expsyms_cmds=
12279  thread_safe_flag_spec=
12280  whole_archive_flag_spec=
12281  # include_expsyms should be a list of space-separated symbols to be *always*
12282  # included in the symbol list
12283  include_expsyms=
12284  # exclude_expsyms can be an extended regexp of symbols to exclude
12285  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12286  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12287  # as well as any symbol that contains 'd'.
12288  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12289  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12290  # platforms (ab)use it in PIC code, but their linkers get confused if
12291  # the symbol is explicitly referenced.  Since portable code cannot
12292  # rely on this symbol name, it's probably fine to never include it in
12293  # preloaded symbol tables.
12294  # Exclude shared library initialization/finalization symbols.
12295  extract_expsyms_cmds=
12296
12297  case $host_os in
12298  cygwin* | mingw* | pw32* | cegcc*)
12299    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12300    # When not using gcc, we currently assume that we are using
12301    # Microsoft Visual C++ or Intel C++ Compiler.
12302    if test yes != "$GCC"; then
12303      with_gnu_ld=no
12304    fi
12305    ;;
12306  interix*)
12307    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12308    with_gnu_ld=yes
12309    ;;
12310  openbsd* | bitrig*)
12311    with_gnu_ld=no
12312    ;;
12313  esac
12314
12315  ld_shlibs=yes
12316
12317  # On some targets, GNU ld is compatible enough with the native linker
12318  # that we're better off using the native interface for both.
12319  lt_use_gnu_ld_interface=no
12320  if test yes = "$with_gnu_ld"; then
12321    case $host_os in
12322      aix*)
12323	# The AIX port of GNU ld has always aspired to compatibility
12324	# with the native linker.  However, as the warning in the GNU ld
12325	# block says, versions before 2.19.5* couldn't really create working
12326	# shared libraries, regardless of the interface used.
12327	case `$LD -v 2>&1` in
12328	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12329	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12330	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12331	  *)
12332	    lt_use_gnu_ld_interface=yes
12333	    ;;
12334	esac
12335	;;
12336      *)
12337	lt_use_gnu_ld_interface=yes
12338	;;
12339    esac
12340  fi
12341
12342  if test yes = "$lt_use_gnu_ld_interface"; then
12343    # If archive_cmds runs LD, not CC, wlarc should be empty
12344    wlarc='$wl'
12345
12346    # Set some defaults for GNU ld with shared library support. These
12347    # are reset later if shared libraries are not supported. Putting them
12348    # here allows them to be overridden if necessary.
12349    runpath_var=LD_RUN_PATH
12350    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12351    export_dynamic_flag_spec='$wl--export-dynamic'
12352    # ancient GNU ld didn't support --whole-archive et. al.
12353    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12354      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12355    else
12356      whole_archive_flag_spec=
12357    fi
12358    supports_anon_versioning=no
12359    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12360      *GNU\ gold*) supports_anon_versioning=yes ;;
12361      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12362      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12363      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12364      *\ 2.11.*) ;; # other 2.11 versions
12365      *) supports_anon_versioning=yes ;;
12366    esac
12367
12368    # See if GNU ld supports shared libraries.
12369    case $host_os in
12370    aix[3-9]*)
12371      # On AIX/PPC, the GNU linker is very broken
12372      if test ia64 != "$host_cpu"; then
12373	ld_shlibs=no
12374	cat <<_LT_EOF 1>&2
12375
12376*** Warning: the GNU linker, at least up to release 2.19, is reported
12377*** to be unable to reliably create shared libraries on AIX.
12378*** Therefore, libtool is disabling shared libraries support.  If you
12379*** really care for shared libraries, you may want to install binutils
12380*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12381*** You will then need to restart the configuration process.
12382
12383_LT_EOF
12384      fi
12385      ;;
12386
12387    amigaos*)
12388      case $host_cpu in
12389      powerpc)
12390            # see comment about AmigaOS4 .so support
12391            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12392            archive_expsym_cmds=''
12393        ;;
12394      m68k)
12395            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)'
12396            hardcode_libdir_flag_spec='-L$libdir'
12397            hardcode_minus_L=yes
12398        ;;
12399      esac
12400      ;;
12401
12402    beos*)
12403      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12404	allow_undefined_flag=unsupported
12405	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12406	# support --undefined.  This deserves some investigation.  FIXME
12407	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12408      else
12409	ld_shlibs=no
12410      fi
12411      ;;
12412
12413    cygwin* | mingw* | pw32* | cegcc*)
12414      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12415      # as there is no search path for DLLs.
12416      hardcode_libdir_flag_spec='-L$libdir'
12417      export_dynamic_flag_spec='$wl--export-all-symbols'
12418      allow_undefined_flag=unsupported
12419      always_export_symbols=no
12420      enable_shared_with_static_runtimes=yes
12421      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'
12422      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12423
12424      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12425        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12426	# If the export-symbols file already is a .def file, use it as
12427	# is; otherwise, prepend EXPORTS...
12428	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12429          cp $export_symbols $output_objdir/$soname.def;
12430        else
12431          echo EXPORTS > $output_objdir/$soname.def;
12432          cat $export_symbols >> $output_objdir/$soname.def;
12433        fi~
12434        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12435      else
12436	ld_shlibs=no
12437      fi
12438      ;;
12439
12440    haiku*)
12441      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12442      link_all_deplibs=yes
12443      ;;
12444
12445    os2*)
12446      hardcode_libdir_flag_spec='-L$libdir'
12447      hardcode_minus_L=yes
12448      allow_undefined_flag=unsupported
12449      shrext_cmds=.dll
12450      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12451	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12452	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12453	$ECHO EXPORTS >> $output_objdir/$libname.def~
12454	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12455	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12456	emximp -o $lib $output_objdir/$libname.def'
12457      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12458	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12459	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12460	$ECHO EXPORTS >> $output_objdir/$libname.def~
12461	prefix_cmds="$SED"~
12462	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12463	  prefix_cmds="$prefix_cmds -e 1d";
12464	fi~
12465	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12466	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12467	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12468	emximp -o $lib $output_objdir/$libname.def'
12469      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12470      enable_shared_with_static_runtimes=yes
12471      file_list_spec='@'
12472      ;;
12473
12474    interix[3-9]*)
12475      hardcode_direct=no
12476      hardcode_shlibpath_var=no
12477      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12478      export_dynamic_flag_spec='$wl-E'
12479      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12480      # Instead, shared libraries are loaded at an image base (0x10000000 by
12481      # default) and relocated if they conflict, which is a slow very memory
12482      # consuming and fragmenting process.  To avoid this, we pick a random,
12483      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12484      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12485      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12486      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'
12487      ;;
12488
12489    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12490      tmp_diet=no
12491      if test linux-dietlibc = "$host_os"; then
12492	case $cc_basename in
12493	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12494	esac
12495      fi
12496      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12497	 && test no = "$tmp_diet"
12498      then
12499	tmp_addflag=' $pic_flag'
12500	tmp_sharedflag='-shared'
12501	case $cc_basename,$host_cpu in
12502        pgcc*)				# Portland Group C compiler
12503	  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'
12504	  tmp_addflag=' $pic_flag'
12505	  ;;
12506	pgf77* | pgf90* | pgf95* | pgfortran*)
12507					# Portland Group f77 and f90 compilers
12508	  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'
12509	  tmp_addflag=' $pic_flag -Mnomain' ;;
12510	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12511	  tmp_addflag=' -i_dynamic' ;;
12512	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12513	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12514	ifc* | ifort*)			# Intel Fortran compiler
12515	  tmp_addflag=' -nofor_main' ;;
12516	lf95*)				# Lahey Fortran 8.1
12517	  whole_archive_flag_spec=
12518	  tmp_sharedflag='--shared' ;;
12519        nagfor*)                        # NAGFOR 5.3
12520          tmp_sharedflag='-Wl,-shared' ;;
12521	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12522	  tmp_sharedflag='-qmkshrobj'
12523	  tmp_addflag= ;;
12524	nvcc*)	# Cuda Compiler Driver 2.2
12525	  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'
12526	  compiler_needs_object=yes
12527	  ;;
12528	esac
12529	case `$CC -V 2>&1 | sed 5q` in
12530	*Sun\ C*)			# Sun C 5.9
12531	  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'
12532	  compiler_needs_object=yes
12533	  tmp_sharedflag='-G' ;;
12534	*Sun\ F*)			# Sun Fortran 8.3
12535	  tmp_sharedflag='-G' ;;
12536	esac
12537	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12538
12539        if test yes = "$supports_anon_versioning"; then
12540          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12541            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12542            echo "local: *; };" >> $output_objdir/$libname.ver~
12543            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12544        fi
12545
12546	case $cc_basename in
12547	tcc*)
12548	  export_dynamic_flag_spec='-rdynamic'
12549	  ;;
12550	xlf* | bgf* | bgxlf* | mpixlf*)
12551	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12552	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12553	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12554	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12555	  if test yes = "$supports_anon_versioning"; then
12556	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12557              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12558              echo "local: *; };" >> $output_objdir/$libname.ver~
12559              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12560	  fi
12561	  ;;
12562	esac
12563      else
12564        ld_shlibs=no
12565      fi
12566      ;;
12567
12568    netbsd*)
12569      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12570	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12571	wlarc=
12572      else
12573	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12574	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12575      fi
12576      ;;
12577
12578    solaris*)
12579      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12580	ld_shlibs=no
12581	cat <<_LT_EOF 1>&2
12582
12583*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12584*** create shared libraries on Solaris systems.  Therefore, libtool
12585*** is disabling shared libraries support.  We urge you to upgrade GNU
12586*** binutils to release 2.9.1 or newer.  Another option is to modify
12587*** your PATH or compiler configuration so that the native linker is
12588*** used, and then restart.
12589
12590_LT_EOF
12591      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12592	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12593	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12594      else
12595	ld_shlibs=no
12596      fi
12597      ;;
12598
12599    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12600      case `$LD -v 2>&1` in
12601        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12602	ld_shlibs=no
12603	cat <<_LT_EOF 1>&2
12604
12605*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12606*** reliably create shared libraries on SCO systems.  Therefore, libtool
12607*** is disabling shared libraries support.  We urge you to upgrade GNU
12608*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12609*** your PATH or compiler configuration so that the native linker is
12610*** used, and then restart.
12611
12612_LT_EOF
12613	;;
12614	*)
12615	  # For security reasons, it is highly recommended that you always
12616	  # use absolute paths for naming shared libraries, and exclude the
12617	  # DT_RUNPATH tag from executables and libraries.  But doing so
12618	  # requires that you compile everything twice, which is a pain.
12619	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12620	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12621	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12622	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12623	  else
12624	    ld_shlibs=no
12625	  fi
12626	;;
12627      esac
12628      ;;
12629
12630    sunos4*)
12631      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12632      wlarc=
12633      hardcode_direct=yes
12634      hardcode_shlibpath_var=no
12635      ;;
12636
12637    *)
12638      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12639	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12640	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12641      else
12642	ld_shlibs=no
12643      fi
12644      ;;
12645    esac
12646
12647    if test no = "$ld_shlibs"; then
12648      runpath_var=
12649      hardcode_libdir_flag_spec=
12650      export_dynamic_flag_spec=
12651      whole_archive_flag_spec=
12652    fi
12653  else
12654    # PORTME fill in a description of your system's linker (not GNU ld)
12655    case $host_os in
12656    aix3*)
12657      allow_undefined_flag=unsupported
12658      always_export_symbols=yes
12659      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'
12660      # Note: this linker hardcodes the directories in LIBPATH if there
12661      # are no directories specified by -L.
12662      hardcode_minus_L=yes
12663      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12664	# Neither direct hardcoding nor static linking is supported with a
12665	# broken collect2.
12666	hardcode_direct=unsupported
12667      fi
12668      ;;
12669
12670    aix[4-9]*)
12671      if test ia64 = "$host_cpu"; then
12672	# On IA64, the linker does run time linking by default, so we don't
12673	# have to do anything special.
12674	aix_use_runtimelinking=no
12675	exp_sym_flag='-Bexport'
12676	no_entry_flag=
12677      else
12678	# If we're using GNU nm, then we don't want the "-C" option.
12679	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12680	# Without the "-l" option, or with the "-B" option, AIX nm treats
12681	# weak defined symbols like other global defined symbols, whereas
12682	# GNU nm marks them as "W".
12683	# While the 'weak' keyword is ignored in the Export File, we need
12684	# it in the Import File for the 'aix-soname' feature, so we have
12685	# to replace the "-B" option with "-P" for AIX nm.
12686	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12687	  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'
12688	else
12689	  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 == "L") || (\$ 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'
12690	fi
12691	aix_use_runtimelinking=no
12692
12693	# Test if we are trying to use run time linking or normal
12694	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12695	# have runtime linking enabled, and use it for executables.
12696	# For shared libraries, we enable/disable runtime linking
12697	# depending on the kind of the shared library created -
12698	# when "with_aix_soname,aix_use_runtimelinking" is:
12699	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12700	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12701	#            lib.a           static archive
12702	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12703	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12704	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12705	#            lib.a(lib.so.V) shared, rtl:no
12706	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12707	#            lib.a           static archive
12708	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12709	  for ld_flag in $LDFLAGS; do
12710	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12711	    aix_use_runtimelinking=yes
12712	    break
12713	  fi
12714	  done
12715	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12716	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12717	    # so we don't have lib.a shared libs to link our executables.
12718	    # We have to force runtime linking in this case.
12719	    aix_use_runtimelinking=yes
12720	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12721	  fi
12722	  ;;
12723	esac
12724
12725	exp_sym_flag='-bexport'
12726	no_entry_flag='-bnoentry'
12727      fi
12728
12729      # When large executables or shared objects are built, AIX ld can
12730      # have problems creating the table of contents.  If linking a library
12731      # or program results in "error TOC overflow" add -mminimal-toc to
12732      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12733      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12734
12735      archive_cmds=''
12736      hardcode_direct=yes
12737      hardcode_direct_absolute=yes
12738      hardcode_libdir_separator=':'
12739      link_all_deplibs=yes
12740      file_list_spec='$wl-f,'
12741      case $with_aix_soname,$aix_use_runtimelinking in
12742      aix,*) ;; # traditional, no import file
12743      svr4,* | *,yes) # use import file
12744	# The Import File defines what to hardcode.
12745	hardcode_direct=no
12746	hardcode_direct_absolute=no
12747	;;
12748      esac
12749
12750      if test yes = "$GCC"; then
12751	case $host_os in aix4.[012]|aix4.[012].*)
12752	# We only want to do this on AIX 4.2 and lower, the check
12753	# below for broken collect2 doesn't work under 4.3+
12754	  collect2name=`$CC -print-prog-name=collect2`
12755	  if test -f "$collect2name" &&
12756	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12757	  then
12758	  # We have reworked collect2
12759	  :
12760	  else
12761	  # We have old collect2
12762	  hardcode_direct=unsupported
12763	  # It fails to find uninstalled libraries when the uninstalled
12764	  # path is not listed in the libpath.  Setting hardcode_minus_L
12765	  # to unsupported forces relinking
12766	  hardcode_minus_L=yes
12767	  hardcode_libdir_flag_spec='-L$libdir'
12768	  hardcode_libdir_separator=
12769	  fi
12770	  ;;
12771	esac
12772	shared_flag='-shared'
12773	if test yes = "$aix_use_runtimelinking"; then
12774	  shared_flag="$shared_flag "'$wl-G'
12775	fi
12776	# Need to ensure runtime linking is disabled for the traditional
12777	# shared library, or the linker may eventually find shared libraries
12778	# /with/ Import File - we do not want to mix them.
12779	shared_flag_aix='-shared'
12780	shared_flag_svr4='-shared $wl-G'
12781      else
12782	# not using gcc
12783	if test ia64 = "$host_cpu"; then
12784	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12785	# chokes on -Wl,-G. The following line is correct:
12786	  shared_flag='-G'
12787	else
12788	  if test yes = "$aix_use_runtimelinking"; then
12789	    shared_flag='$wl-G'
12790	  else
12791	    shared_flag='$wl-bM:SRE'
12792	  fi
12793	  shared_flag_aix='$wl-bM:SRE'
12794	  shared_flag_svr4='$wl-G'
12795	fi
12796      fi
12797
12798      export_dynamic_flag_spec='$wl-bexpall'
12799      # It seems that -bexpall does not export symbols beginning with
12800      # underscore (_), so it is better to generate a list of symbols to export.
12801      always_export_symbols=yes
12802      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12803	# Warning - without using the other runtime loading flags (-brtl),
12804	# -berok will link without error, but may produce a broken library.
12805	allow_undefined_flag='-berok'
12806        # Determine the default libpath from the value encoded in an
12807        # empty executable.
12808        if test set = "${lt_cv_aix_libpath+set}"; then
12809  aix_libpath=$lt_cv_aix_libpath
12810else
12811  if ${lt_cv_aix_libpath_+:} false; then :
12812  $as_echo_n "(cached) " >&6
12813else
12814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815/* end confdefs.h.  */
12816
12817int
12818main ()
12819{
12820
12821  ;
12822  return 0;
12823}
12824_ACEOF
12825if ac_fn_c_try_link "$LINENO"; then :
12826
12827  lt_aix_libpath_sed='
12828      /Import File Strings/,/^$/ {
12829	  /^0/ {
12830	      s/^0  *\([^ ]*\) *$/\1/
12831	      p
12832	  }
12833      }'
12834  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12835  # Check for a 64-bit object if we didn't find anything.
12836  if test -z "$lt_cv_aix_libpath_"; then
12837    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12838  fi
12839fi
12840rm -f core conftest.err conftest.$ac_objext \
12841    conftest$ac_exeext conftest.$ac_ext
12842  if test -z "$lt_cv_aix_libpath_"; then
12843    lt_cv_aix_libpath_=/usr/lib:/lib
12844  fi
12845
12846fi
12847
12848  aix_libpath=$lt_cv_aix_libpath_
12849fi
12850
12851        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12852        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
12853      else
12854	if test ia64 = "$host_cpu"; then
12855	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12856	  allow_undefined_flag="-z nodefs"
12857	  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"
12858	else
12859	 # Determine the default libpath from the value encoded in an
12860	 # empty executable.
12861	 if test set = "${lt_cv_aix_libpath+set}"; then
12862  aix_libpath=$lt_cv_aix_libpath
12863else
12864  if ${lt_cv_aix_libpath_+:} false; then :
12865  $as_echo_n "(cached) " >&6
12866else
12867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868/* end confdefs.h.  */
12869
12870int
12871main ()
12872{
12873
12874  ;
12875  return 0;
12876}
12877_ACEOF
12878if ac_fn_c_try_link "$LINENO"; then :
12879
12880  lt_aix_libpath_sed='
12881      /Import File Strings/,/^$/ {
12882	  /^0/ {
12883	      s/^0  *\([^ ]*\) *$/\1/
12884	      p
12885	  }
12886      }'
12887  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12888  # Check for a 64-bit object if we didn't find anything.
12889  if test -z "$lt_cv_aix_libpath_"; then
12890    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12891  fi
12892fi
12893rm -f core conftest.err conftest.$ac_objext \
12894    conftest$ac_exeext conftest.$ac_ext
12895  if test -z "$lt_cv_aix_libpath_"; then
12896    lt_cv_aix_libpath_=/usr/lib:/lib
12897  fi
12898
12899fi
12900
12901  aix_libpath=$lt_cv_aix_libpath_
12902fi
12903
12904	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12905	  # Warning - without using the other run time loading flags,
12906	  # -berok will link without error, but may produce a broken library.
12907	  no_undefined_flag=' $wl-bernotok'
12908	  allow_undefined_flag=' $wl-berok'
12909	  if test yes = "$with_gnu_ld"; then
12910	    # We only use this code for GNU lds that support --whole-archive.
12911	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12912	  else
12913	    # Exported symbols can be pulled into shared objects from archives
12914	    whole_archive_flag_spec='$convenience'
12915	  fi
12916	  archive_cmds_need_lc=yes
12917	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12918	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12919	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12920	  if test svr4 != "$with_aix_soname"; then
12921	    # This is similar to how AIX traditionally builds its shared libraries.
12922	    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'
12923	  fi
12924	  if test aix != "$with_aix_soname"; then
12925	    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'
12926	  else
12927	    # used by -dlpreopen to get the symbols
12928	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12929	  fi
12930	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12931	fi
12932      fi
12933      ;;
12934
12935    amigaos*)
12936      case $host_cpu in
12937      powerpc)
12938            # see comment about AmigaOS4 .so support
12939            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12940            archive_expsym_cmds=''
12941        ;;
12942      m68k)
12943            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)'
12944            hardcode_libdir_flag_spec='-L$libdir'
12945            hardcode_minus_L=yes
12946        ;;
12947      esac
12948      ;;
12949
12950    bsdi[45]*)
12951      export_dynamic_flag_spec=-rdynamic
12952      ;;
12953
12954    cygwin* | mingw* | pw32* | cegcc*)
12955      # When not using gcc, we currently assume that we are using
12956      # Microsoft Visual C++ or Intel C++ Compiler.
12957      # hardcode_libdir_flag_spec is actually meaningless, as there is
12958      # no search path for DLLs.
12959      case $cc_basename in
12960      cl* | icl*)
12961	# Native MSVC or ICC
12962	hardcode_libdir_flag_spec=' '
12963	allow_undefined_flag=unsupported
12964	always_export_symbols=yes
12965	file_list_spec='@'
12966	# Tell ltmain to make .lib files, not .a files.
12967	libext=lib
12968	# Tell ltmain to make .dll files, not .so files.
12969	shrext_cmds=.dll
12970	# FIXME: Setting linknames here is a bad hack.
12971	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12972	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12973            cp "$export_symbols" "$output_objdir/$soname.def";
12974            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12975          else
12976            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12977          fi~
12978          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12979          linknames='
12980	# The linker will not automatically build a static lib if we build a DLL.
12981	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12982	enable_shared_with_static_runtimes=yes
12983	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12984	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12985	# Don't use ranlib
12986	old_postinstall_cmds='chmod 644 $oldlib'
12987	postlink_cmds='lt_outputfile="@OUTPUT@"~
12988          lt_tool_outputfile="@TOOL_OUTPUT@"~
12989          case $lt_outputfile in
12990            *.exe|*.EXE) ;;
12991            *)
12992              lt_outputfile=$lt_outputfile.exe
12993              lt_tool_outputfile=$lt_tool_outputfile.exe
12994              ;;
12995          esac~
12996          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12997            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12998            $RM "$lt_outputfile.manifest";
12999          fi'
13000	;;
13001      *)
13002	# Assume MSVC and ICC wrapper
13003	hardcode_libdir_flag_spec=' '
13004	allow_undefined_flag=unsupported
13005	# Tell ltmain to make .lib files, not .a files.
13006	libext=lib
13007	# Tell ltmain to make .dll files, not .so files.
13008	shrext_cmds=.dll
13009	# FIXME: Setting linknames here is a bad hack.
13010	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13011	# The linker will automatically build a .lib file if we build a DLL.
13012	old_archive_from_new_cmds='true'
13013	# FIXME: Should let the user specify the lib program.
13014	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13015	enable_shared_with_static_runtimes=yes
13016	;;
13017      esac
13018      ;;
13019
13020    darwin* | rhapsody*)
13021
13022
13023  archive_cmds_need_lc=no
13024  hardcode_direct=no
13025  hardcode_automatic=yes
13026  hardcode_shlibpath_var=unsupported
13027  if test yes = "$lt_cv_ld_force_load"; then
13028    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\"`'
13029
13030  else
13031    whole_archive_flag_spec=''
13032  fi
13033  link_all_deplibs=yes
13034  allow_undefined_flag=$_lt_dar_allow_undefined
13035  case $cc_basename in
13036     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13037     *) _lt_dar_can_shared=$GCC ;;
13038  esac
13039  if test yes = "$_lt_dar_can_shared"; then
13040    output_verbose_link_cmd=func_echo_all
13041    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13042    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13043    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"
13044    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"
13045
13046  else
13047  ld_shlibs=no
13048  fi
13049
13050      ;;
13051
13052    dgux*)
13053      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054      hardcode_libdir_flag_spec='-L$libdir'
13055      hardcode_shlibpath_var=no
13056      ;;
13057
13058    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13059    # support.  Future versions do this automatically, but an explicit c++rt0.o
13060    # does not break anything, and helps significantly (at the cost of a little
13061    # extra space).
13062    freebsd2.2*)
13063      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13064      hardcode_libdir_flag_spec='-R$libdir'
13065      hardcode_direct=yes
13066      hardcode_shlibpath_var=no
13067      ;;
13068
13069    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13070    freebsd2.*)
13071      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13072      hardcode_direct=yes
13073      hardcode_minus_L=yes
13074      hardcode_shlibpath_var=no
13075      ;;
13076
13077    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13078    freebsd* | dragonfly*)
13079      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13080      hardcode_libdir_flag_spec='-R$libdir'
13081      hardcode_direct=yes
13082      hardcode_shlibpath_var=no
13083      ;;
13084
13085    hpux9*)
13086      if test yes = "$GCC"; then
13087	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'
13088      else
13089	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'
13090      fi
13091      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13092      hardcode_libdir_separator=:
13093      hardcode_direct=yes
13094
13095      # hardcode_minus_L: Not really in the search PATH,
13096      # but as the default location of the library.
13097      hardcode_minus_L=yes
13098      export_dynamic_flag_spec='$wl-E'
13099      ;;
13100
13101    hpux10*)
13102      if test yes,no = "$GCC,$with_gnu_ld"; then
13103	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13104      else
13105	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13106      fi
13107      if test no = "$with_gnu_ld"; then
13108	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13109	hardcode_libdir_separator=:
13110	hardcode_direct=yes
13111	hardcode_direct_absolute=yes
13112	export_dynamic_flag_spec='$wl-E'
13113	# hardcode_minus_L: Not really in the search PATH,
13114	# but as the default location of the library.
13115	hardcode_minus_L=yes
13116      fi
13117      ;;
13118
13119    hpux11*)
13120      if test yes,no = "$GCC,$with_gnu_ld"; then
13121	case $host_cpu in
13122	hppa*64*)
13123	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13124	  ;;
13125	ia64*)
13126	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13127	  ;;
13128	*)
13129	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13130	  ;;
13131	esac
13132      else
13133	case $host_cpu in
13134	hppa*64*)
13135	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13136	  ;;
13137	ia64*)
13138	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13139	  ;;
13140	*)
13141
13142	  # Older versions of the 11.00 compiler do not understand -b yet
13143	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13144	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13145$as_echo_n "checking if $CC understands -b... " >&6; }
13146if ${lt_cv_prog_compiler__b+:} false; then :
13147  $as_echo_n "(cached) " >&6
13148else
13149  lt_cv_prog_compiler__b=no
13150   save_LDFLAGS=$LDFLAGS
13151   LDFLAGS="$LDFLAGS -b"
13152   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13153   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13154     # The linker can only warn and ignore the option if not recognized
13155     # So say no if there are warnings
13156     if test -s conftest.err; then
13157       # Append any errors to the config.log.
13158       cat conftest.err 1>&5
13159       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13160       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13161       if diff conftest.exp conftest.er2 >/dev/null; then
13162         lt_cv_prog_compiler__b=yes
13163       fi
13164     else
13165       lt_cv_prog_compiler__b=yes
13166     fi
13167   fi
13168   $RM -r conftest*
13169   LDFLAGS=$save_LDFLAGS
13170
13171fi
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13173$as_echo "$lt_cv_prog_compiler__b" >&6; }
13174
13175if test yes = "$lt_cv_prog_compiler__b"; then
13176    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13177else
13178    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13179fi
13180
13181	  ;;
13182	esac
13183      fi
13184      if test no = "$with_gnu_ld"; then
13185	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13186	hardcode_libdir_separator=:
13187
13188	case $host_cpu in
13189	hppa*64*|ia64*)
13190	  hardcode_direct=no
13191	  hardcode_shlibpath_var=no
13192	  ;;
13193	*)
13194	  hardcode_direct=yes
13195	  hardcode_direct_absolute=yes
13196	  export_dynamic_flag_spec='$wl-E'
13197
13198	  # hardcode_minus_L: Not really in the search PATH,
13199	  # but as the default location of the library.
13200	  hardcode_minus_L=yes
13201	  ;;
13202	esac
13203      fi
13204      ;;
13205
13206    irix5* | irix6* | nonstopux*)
13207      if test yes = "$GCC"; then
13208	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'
13209	# Try to use the -exported_symbol ld option, if it does not
13210	# work, assume that -exports_file does not work either and
13211	# implicitly export all symbols.
13212	# This should be the same for all languages, so no per-tag cache variable.
13213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13214$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13215if ${lt_cv_irix_exported_symbol+:} false; then :
13216  $as_echo_n "(cached) " >&6
13217else
13218  save_LDFLAGS=$LDFLAGS
13219	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13220	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221/* end confdefs.h.  */
13222int foo (void) { return 0; }
13223_ACEOF
13224if ac_fn_c_try_link "$LINENO"; then :
13225  lt_cv_irix_exported_symbol=yes
13226else
13227  lt_cv_irix_exported_symbol=no
13228fi
13229rm -f core conftest.err conftest.$ac_objext \
13230    conftest$ac_exeext conftest.$ac_ext
13231           LDFLAGS=$save_LDFLAGS
13232fi
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13234$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13235	if test yes = "$lt_cv_irix_exported_symbol"; then
13236          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'
13237	fi
13238      else
13239	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'
13240	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'
13241      fi
13242      archive_cmds_need_lc='no'
13243      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13244      hardcode_libdir_separator=:
13245      inherit_rpath=yes
13246      link_all_deplibs=yes
13247      ;;
13248
13249    linux*)
13250      case $cc_basename in
13251      tcc*)
13252	# Fabrice Bellard et al's Tiny C Compiler
13253	ld_shlibs=yes
13254	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13255	;;
13256      esac
13257      ;;
13258
13259    netbsd*)
13260      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13261	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13262      else
13263	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13264      fi
13265      hardcode_libdir_flag_spec='-R$libdir'
13266      hardcode_direct=yes
13267      hardcode_shlibpath_var=no
13268      ;;
13269
13270    newsos6)
13271      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13272      hardcode_direct=yes
13273      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13274      hardcode_libdir_separator=:
13275      hardcode_shlibpath_var=no
13276      ;;
13277
13278    *nto* | *qnx*)
13279      ;;
13280
13281    openbsd* | bitrig*)
13282      if test -f /usr/libexec/ld.so; then
13283	hardcode_direct=yes
13284	hardcode_shlibpath_var=no
13285	hardcode_direct_absolute=yes
13286	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13287	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13288	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13289	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13290	  export_dynamic_flag_spec='$wl-E'
13291	else
13292	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13293	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13294	fi
13295      else
13296	ld_shlibs=no
13297      fi
13298      ;;
13299
13300    os2*)
13301      hardcode_libdir_flag_spec='-L$libdir'
13302      hardcode_minus_L=yes
13303      allow_undefined_flag=unsupported
13304      shrext_cmds=.dll
13305      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13306	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13307	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13308	$ECHO EXPORTS >> $output_objdir/$libname.def~
13309	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13310	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13311	emximp -o $lib $output_objdir/$libname.def'
13312      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13313	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13314	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13315	$ECHO EXPORTS >> $output_objdir/$libname.def~
13316	prefix_cmds="$SED"~
13317	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13318	  prefix_cmds="$prefix_cmds -e 1d";
13319	fi~
13320	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13321	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13322	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13323	emximp -o $lib $output_objdir/$libname.def'
13324      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13325      enable_shared_with_static_runtimes=yes
13326      file_list_spec='@'
13327      ;;
13328
13329    osf3*)
13330      if test yes = "$GCC"; then
13331	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13332	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'
13333      else
13334	allow_undefined_flag=' -expect_unresolved \*'
13335	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'
13336      fi
13337      archive_cmds_need_lc='no'
13338      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13339      hardcode_libdir_separator=:
13340      ;;
13341
13342    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13343      if test yes = "$GCC"; then
13344	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13345	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'
13346	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13347      else
13348	allow_undefined_flag=' -expect_unresolved \*'
13349	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'
13350	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~
13351          $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'
13352
13353	# Both c and cxx compiler support -rpath directly
13354	hardcode_libdir_flag_spec='-rpath $libdir'
13355      fi
13356      archive_cmds_need_lc='no'
13357      hardcode_libdir_separator=:
13358      ;;
13359
13360    solaris*)
13361      no_undefined_flag=' -z defs'
13362      if test yes = "$GCC"; then
13363	wlarc='$wl'
13364	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13365	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13366          $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'
13367      else
13368	case `$CC -V 2>&1` in
13369	*"Compilers 5.0"*)
13370	  wlarc=''
13371	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13372	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13373            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13374	  ;;
13375	*)
13376	  wlarc='$wl'
13377	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13378	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13379            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13380	  ;;
13381	esac
13382      fi
13383      hardcode_libdir_flag_spec='-R$libdir'
13384      hardcode_shlibpath_var=no
13385      case $host_os in
13386      solaris2.[0-5] | solaris2.[0-5].*) ;;
13387      *)
13388	# The compiler driver will combine and reorder linker options,
13389	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13390	# but is careful enough not to reorder.
13391	# Supported since Solaris 2.6 (maybe 2.5.1?)
13392	if test yes = "$GCC"; then
13393	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13394	else
13395	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13396	fi
13397	;;
13398      esac
13399      link_all_deplibs=yes
13400      ;;
13401
13402    sunos4*)
13403      if test sequent = "$host_vendor"; then
13404	# Use $CC to link under sequent, because it throws in some extra .o
13405	# files that make .init and .fini sections work.
13406	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13407      else
13408	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13409      fi
13410      hardcode_libdir_flag_spec='-L$libdir'
13411      hardcode_direct=yes
13412      hardcode_minus_L=yes
13413      hardcode_shlibpath_var=no
13414      ;;
13415
13416    sysv4)
13417      case $host_vendor in
13418	sni)
13419	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13420	  hardcode_direct=yes # is this really true???
13421	;;
13422	siemens)
13423	  ## LD is ld it makes a PLAMLIB
13424	  ## CC just makes a GrossModule.
13425	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13426	  reload_cmds='$CC -r -o $output$reload_objs'
13427	  hardcode_direct=no
13428        ;;
13429	motorola)
13430	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13432	;;
13433      esac
13434      runpath_var='LD_RUN_PATH'
13435      hardcode_shlibpath_var=no
13436      ;;
13437
13438    sysv4.3*)
13439      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13440      hardcode_shlibpath_var=no
13441      export_dynamic_flag_spec='-Bexport'
13442      ;;
13443
13444    sysv4*MP*)
13445      if test -d /usr/nec; then
13446	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13447	hardcode_shlibpath_var=no
13448	runpath_var=LD_RUN_PATH
13449	hardcode_runpath_var=yes
13450	ld_shlibs=yes
13451      fi
13452      ;;
13453
13454    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13455      no_undefined_flag='$wl-z,text'
13456      archive_cmds_need_lc=no
13457      hardcode_shlibpath_var=no
13458      runpath_var='LD_RUN_PATH'
13459
13460      if test yes = "$GCC"; then
13461	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13462	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463      else
13464	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466      fi
13467      ;;
13468
13469    sysv5* | sco3.2v5* | sco5v6*)
13470      # Note: We CANNOT use -z defs as we might desire, because we do not
13471      # link with -lc, and that would cause any symbols used from libc to
13472      # always be unresolved, which means just about no library would
13473      # ever link correctly.  If we're not using GNU ld we use -z text
13474      # though, which does catch some bad symbols but isn't as heavy-handed
13475      # as -z defs.
13476      no_undefined_flag='$wl-z,text'
13477      allow_undefined_flag='$wl-z,nodefs'
13478      archive_cmds_need_lc=no
13479      hardcode_shlibpath_var=no
13480      hardcode_libdir_flag_spec='$wl-R,$libdir'
13481      hardcode_libdir_separator=':'
13482      link_all_deplibs=yes
13483      export_dynamic_flag_spec='$wl-Bexport'
13484      runpath_var='LD_RUN_PATH'
13485
13486      if test yes = "$GCC"; then
13487	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489      else
13490	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492      fi
13493      ;;
13494
13495    uts4*)
13496      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497      hardcode_libdir_flag_spec='-L$libdir'
13498      hardcode_shlibpath_var=no
13499      ;;
13500
13501    *)
13502      ld_shlibs=no
13503      ;;
13504    esac
13505
13506    if test sni = "$host_vendor"; then
13507      case $host in
13508      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13509	export_dynamic_flag_spec='$wl-Blargedynsym'
13510	;;
13511      esac
13512    fi
13513  fi
13514
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13516$as_echo "$ld_shlibs" >&6; }
13517test no = "$ld_shlibs" && can_build_shared=no
13518
13519with_gnu_ld=$with_gnu_ld
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535#
13536# Do we need to explicitly link libc?
13537#
13538case "x$archive_cmds_need_lc" in
13539x|xyes)
13540  # Assume -lc should be added
13541  archive_cmds_need_lc=yes
13542
13543  if test yes,yes = "$GCC,$enable_shared"; then
13544    case $archive_cmds in
13545    *'~'*)
13546      # FIXME: we may have to deal with multi-command sequences.
13547      ;;
13548    '$CC '*)
13549      # Test whether the compiler implicitly links with -lc since on some
13550      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13551      # to ld, don't add -lc before -lgcc.
13552      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13553$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13554if ${lt_cv_archive_cmds_need_lc+:} false; then :
13555  $as_echo_n "(cached) " >&6
13556else
13557  $RM conftest*
13558	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13559
13560	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13561  (eval $ac_compile) 2>&5
13562  ac_status=$?
13563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13564  test $ac_status = 0; } 2>conftest.err; then
13565	  soname=conftest
13566	  lib=conftest
13567	  libobjs=conftest.$ac_objext
13568	  deplibs=
13569	  wl=$lt_prog_compiler_wl
13570	  pic_flag=$lt_prog_compiler_pic
13571	  compiler_flags=-v
13572	  linker_flags=-v
13573	  verstring=
13574	  output_objdir=.
13575	  libname=conftest
13576	  lt_save_allow_undefined_flag=$allow_undefined_flag
13577	  allow_undefined_flag=
13578	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13579  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13580  ac_status=$?
13581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13582  test $ac_status = 0; }
13583	  then
13584	    lt_cv_archive_cmds_need_lc=no
13585	  else
13586	    lt_cv_archive_cmds_need_lc=yes
13587	  fi
13588	  allow_undefined_flag=$lt_save_allow_undefined_flag
13589	else
13590	  cat conftest.err 1>&5
13591	fi
13592	$RM conftest*
13593
13594fi
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13596$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13597      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13598      ;;
13599    esac
13600  fi
13601  ;;
13602esac
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13756$as_echo_n "checking dynamic linker characteristics... " >&6; }
13757
13758if test yes = "$GCC"; then
13759  case $host_os in
13760    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13761    *) lt_awk_arg='/^libraries:/' ;;
13762  esac
13763  case $host_os in
13764    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13765    *) lt_sed_strip_eq='s|=/|/|g' ;;
13766  esac
13767  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13768  case $lt_search_path_spec in
13769  *\;*)
13770    # if the path contains ";" then we assume it to be the separator
13771    # otherwise default to the standard path separator (i.e. ":") - it is
13772    # assumed that no part of a normal pathname contains ";" but that should
13773    # okay in the real world where ";" in dirpaths is itself problematic.
13774    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13775    ;;
13776  *)
13777    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13778    ;;
13779  esac
13780  # Ok, now we have the path, separated by spaces, we can step through it
13781  # and add multilib dir if necessary...
13782  lt_tmp_lt_search_path_spec=
13783  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13784  # ...but if some path component already ends with the multilib dir we assume
13785  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13786  case "$lt_multi_os_dir; $lt_search_path_spec " in
13787  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13788    lt_multi_os_dir=
13789    ;;
13790  esac
13791  for lt_sys_path in $lt_search_path_spec; do
13792    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13793      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13794    elif test -n "$lt_multi_os_dir"; then
13795      test -d "$lt_sys_path" && \
13796	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13797    fi
13798  done
13799  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13800BEGIN {RS = " "; FS = "/|\n";} {
13801  lt_foo = "";
13802  lt_count = 0;
13803  for (lt_i = NF; lt_i > 0; lt_i--) {
13804    if ($lt_i != "" && $lt_i != ".") {
13805      if ($lt_i == "..") {
13806        lt_count++;
13807      } else {
13808        if (lt_count == 0) {
13809          lt_foo = "/" $lt_i lt_foo;
13810        } else {
13811          lt_count--;
13812        }
13813      }
13814    }
13815  }
13816  if (lt_foo != "") { lt_freq[lt_foo]++; }
13817  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13818}'`
13819  # AWK program above erroneously prepends '/' to C:/dos/paths
13820  # for these hosts.
13821  case $host_os in
13822    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13823      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13824  esac
13825  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13826else
13827  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13828fi
13829library_names_spec=
13830libname_spec='lib$name'
13831soname_spec=
13832shrext_cmds=.so
13833postinstall_cmds=
13834postuninstall_cmds=
13835finish_cmds=
13836finish_eval=
13837shlibpath_var=
13838shlibpath_overrides_runpath=unknown
13839version_type=none
13840dynamic_linker="$host_os ld.so"
13841sys_lib_dlsearch_path_spec="/lib /usr/lib"
13842need_lib_prefix=unknown
13843hardcode_into_libs=no
13844
13845# when you set need_version to no, make sure it does not cause -set_version
13846# flags to be left without arguments
13847need_version=unknown
13848
13849
13850
13851case $host_os in
13852aix3*)
13853  version_type=linux # correct to gnu/linux during the next big refactor
13854  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13855  shlibpath_var=LIBPATH
13856
13857  # AIX 3 has no versioning support, so we append a major version to the name.
13858  soname_spec='$libname$release$shared_ext$major'
13859  ;;
13860
13861aix[4-9]*)
13862  version_type=linux # correct to gnu/linux during the next big refactor
13863  need_lib_prefix=no
13864  need_version=no
13865  hardcode_into_libs=yes
13866  if test ia64 = "$host_cpu"; then
13867    # AIX 5 supports IA64
13868    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13869    shlibpath_var=LD_LIBRARY_PATH
13870  else
13871    # With GCC up to 2.95.x, collect2 would create an import file
13872    # for dependence libraries.  The import file would start with
13873    # the line '#! .'.  This would cause the generated library to
13874    # depend on '.', always an invalid library.  This was fixed in
13875    # development snapshots of GCC prior to 3.0.
13876    case $host_os in
13877      aix4 | aix4.[01] | aix4.[01].*)
13878      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13879	   echo ' yes '
13880	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13881	:
13882      else
13883	can_build_shared=no
13884      fi
13885      ;;
13886    esac
13887    # Using Import Files as archive members, it is possible to support
13888    # filename-based versioning of shared library archives on AIX. While
13889    # this would work for both with and without runtime linking, it will
13890    # prevent static linking of such archives. So we do filename-based
13891    # shared library versioning with .so extension only, which is used
13892    # when both runtime linking and shared linking is enabled.
13893    # Unfortunately, runtime linking may impact performance, so we do
13894    # not want this to be the default eventually. Also, we use the
13895    # versioned .so libs for executables only if there is the -brtl
13896    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13897    # To allow for filename-based versioning support, we need to create
13898    # libNAME.so.V as an archive file, containing:
13899    # *) an Import File, referring to the versioned filename of the
13900    #    archive as well as the shared archive member, telling the
13901    #    bitwidth (32 or 64) of that shared object, and providing the
13902    #    list of exported symbols of that shared object, eventually
13903    #    decorated with the 'weak' keyword
13904    # *) the shared object with the F_LOADONLY flag set, to really avoid
13905    #    it being seen by the linker.
13906    # At run time we better use the real file rather than another symlink,
13907    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13908
13909    case $with_aix_soname,$aix_use_runtimelinking in
13910    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13911    # soname into executable. Probably we can add versioning support to
13912    # collect2, so additional links can be useful in future.
13913    aix,yes) # traditional libtool
13914      dynamic_linker='AIX unversionable lib.so'
13915      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13916      # instead of lib<name>.a to let people know that these are not
13917      # typical AIX shared libraries.
13918      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13919      ;;
13920    aix,no) # traditional AIX only
13921      dynamic_linker='AIX lib.a(lib.so.V)'
13922      # We preserve .a as extension for shared libraries through AIX4.2
13923      # and later when we are not doing run time linking.
13924      library_names_spec='$libname$release.a $libname.a'
13925      soname_spec='$libname$release$shared_ext$major'
13926      ;;
13927    svr4,*) # full svr4 only
13928      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13929      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13930      # We do not specify a path in Import Files, so LIBPATH fires.
13931      shlibpath_overrides_runpath=yes
13932      ;;
13933    *,yes) # both, prefer svr4
13934      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13935      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13936      # unpreferred sharedlib libNAME.a needs extra handling
13937      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"'
13938      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"'
13939      # We do not specify a path in Import Files, so LIBPATH fires.
13940      shlibpath_overrides_runpath=yes
13941      ;;
13942    *,no) # both, prefer aix
13943      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13944      library_names_spec='$libname$release.a $libname.a'
13945      soname_spec='$libname$release$shared_ext$major'
13946      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13947      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)'
13948      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"'
13949      ;;
13950    esac
13951    shlibpath_var=LIBPATH
13952  fi
13953  ;;
13954
13955amigaos*)
13956  case $host_cpu in
13957  powerpc)
13958    # Since July 2007 AmigaOS4 officially supports .so libraries.
13959    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13960    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13961    ;;
13962  m68k)
13963    library_names_spec='$libname.ixlibrary $libname.a'
13964    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13965    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'
13966    ;;
13967  esac
13968  ;;
13969
13970beos*)
13971  library_names_spec='$libname$shared_ext'
13972  dynamic_linker="$host_os ld.so"
13973  shlibpath_var=LIBRARY_PATH
13974  ;;
13975
13976bsdi[45]*)
13977  version_type=linux # correct to gnu/linux during the next big refactor
13978  need_version=no
13979  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13980  soname_spec='$libname$release$shared_ext$major'
13981  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13982  shlibpath_var=LD_LIBRARY_PATH
13983  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13984  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13985  # the default ld.so.conf also contains /usr/contrib/lib and
13986  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13987  # libtool to hard-code these into programs
13988  ;;
13989
13990cygwin* | mingw* | pw32* | cegcc*)
13991  version_type=windows
13992  shrext_cmds=.dll
13993  need_version=no
13994  need_lib_prefix=no
13995
13996  case $GCC,$cc_basename in
13997  yes,*)
13998    # gcc
13999    library_names_spec='$libname.dll.a'
14000    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14001    postinstall_cmds='base_file=`basename \$file`~
14002      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14003      dldir=$destdir/`dirname \$dlpath`~
14004      test -d \$dldir || mkdir -p \$dldir~
14005      $install_prog $dir/$dlname \$dldir/$dlname~
14006      chmod a+x \$dldir/$dlname~
14007      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14008        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14009      fi'
14010    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14011      dlpath=$dir/\$dldll~
14012       $RM \$dlpath'
14013    shlibpath_overrides_runpath=yes
14014
14015    case $host_os in
14016    cygwin*)
14017      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14018      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14019
14020      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14021      ;;
14022    mingw* | cegcc*)
14023      # MinGW DLLs use traditional 'lib' prefix
14024      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14025      ;;
14026    pw32*)
14027      # pw32 DLLs use 'pw' prefix rather than 'lib'
14028      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14029      ;;
14030    esac
14031    dynamic_linker='Win32 ld.exe'
14032    ;;
14033
14034  *,cl* | *,icl*)
14035    # Native MSVC or ICC
14036    libname_spec='$name'
14037    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14038    library_names_spec='$libname.dll.lib'
14039
14040    case $build_os in
14041    mingw*)
14042      sys_lib_search_path_spec=
14043      lt_save_ifs=$IFS
14044      IFS=';'
14045      for lt_path in $LIB
14046      do
14047        IFS=$lt_save_ifs
14048        # Let DOS variable expansion print the short 8.3 style file name.
14049        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14050        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14051      done
14052      IFS=$lt_save_ifs
14053      # Convert to MSYS style.
14054      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14055      ;;
14056    cygwin*)
14057      # Convert to unix form, then to dos form, then back to unix form
14058      # but this time dos style (no spaces!) so that the unix form looks
14059      # like /cygdrive/c/PROGRA~1:/cygdr...
14060      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14061      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14062      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14063      ;;
14064    *)
14065      sys_lib_search_path_spec=$LIB
14066      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14067        # It is most probably a Windows format PATH.
14068        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14069      else
14070        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14071      fi
14072      # FIXME: find the short name or the path components, as spaces are
14073      # common. (e.g. "Program Files" -> "PROGRA~1")
14074      ;;
14075    esac
14076
14077    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14078    postinstall_cmds='base_file=`basename \$file`~
14079      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14080      dldir=$destdir/`dirname \$dlpath`~
14081      test -d \$dldir || mkdir -p \$dldir~
14082      $install_prog $dir/$dlname \$dldir/$dlname'
14083    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14084      dlpath=$dir/\$dldll~
14085       $RM \$dlpath'
14086    shlibpath_overrides_runpath=yes
14087    dynamic_linker='Win32 link.exe'
14088    ;;
14089
14090  *)
14091    # Assume MSVC and ICC wrapper
14092    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14093    dynamic_linker='Win32 ld.exe'
14094    ;;
14095  esac
14096  # FIXME: first we should search . and the directory the executable is in
14097  shlibpath_var=PATH
14098  ;;
14099
14100darwin* | rhapsody*)
14101  dynamic_linker="$host_os dyld"
14102  version_type=darwin
14103  need_lib_prefix=no
14104  need_version=no
14105  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14106  soname_spec='$libname$release$major$shared_ext'
14107  shlibpath_overrides_runpath=yes
14108  shlibpath_var=DYLD_LIBRARY_PATH
14109  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14110
14111  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14112  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14113  ;;
14114
14115dgux*)
14116  version_type=linux # correct to gnu/linux during the next big refactor
14117  need_lib_prefix=no
14118  need_version=no
14119  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14120  soname_spec='$libname$release$shared_ext$major'
14121  shlibpath_var=LD_LIBRARY_PATH
14122  ;;
14123
14124freebsd* | dragonfly*)
14125  # DragonFly does not have aout.  When/if they implement a new
14126  # versioning mechanism, adjust this.
14127  if test -x /usr/bin/objformat; then
14128    objformat=`/usr/bin/objformat`
14129  else
14130    case $host_os in
14131    freebsd[23].*) objformat=aout ;;
14132    *) objformat=elf ;;
14133    esac
14134  fi
14135  version_type=freebsd-$objformat
14136  case $version_type in
14137    freebsd-elf*)
14138      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14139      soname_spec='$libname$release$shared_ext$major'
14140      need_version=no
14141      need_lib_prefix=no
14142      ;;
14143    freebsd-*)
14144      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14145      need_version=yes
14146      ;;
14147  esac
14148  shlibpath_var=LD_LIBRARY_PATH
14149  case $host_os in
14150  freebsd2.*)
14151    shlibpath_overrides_runpath=yes
14152    ;;
14153  freebsd3.[01]* | freebsdelf3.[01]*)
14154    shlibpath_overrides_runpath=yes
14155    hardcode_into_libs=yes
14156    ;;
14157  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14158  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14159    shlibpath_overrides_runpath=no
14160    hardcode_into_libs=yes
14161    ;;
14162  *) # from 4.6 on, and DragonFly
14163    shlibpath_overrides_runpath=yes
14164    hardcode_into_libs=yes
14165    ;;
14166  esac
14167  ;;
14168
14169haiku*)
14170  version_type=linux # correct to gnu/linux during the next big refactor
14171  need_lib_prefix=no
14172  need_version=no
14173  dynamic_linker="$host_os runtime_loader"
14174  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14175  soname_spec='$libname$release$shared_ext$major'
14176  shlibpath_var=LIBRARY_PATH
14177  shlibpath_overrides_runpath=no
14178  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14179  hardcode_into_libs=yes
14180  ;;
14181
14182hpux9* | hpux10* | hpux11*)
14183  # Give a soname corresponding to the major version so that dld.sl refuses to
14184  # link against other versions.
14185  version_type=sunos
14186  need_lib_prefix=no
14187  need_version=no
14188  case $host_cpu in
14189  ia64*)
14190    shrext_cmds='.so'
14191    hardcode_into_libs=yes
14192    dynamic_linker="$host_os dld.so"
14193    shlibpath_var=LD_LIBRARY_PATH
14194    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14195    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14196    soname_spec='$libname$release$shared_ext$major'
14197    if test 32 = "$HPUX_IA64_MODE"; then
14198      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14199      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14200    else
14201      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14202      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14203    fi
14204    ;;
14205  hppa*64*)
14206    shrext_cmds='.sl'
14207    hardcode_into_libs=yes
14208    dynamic_linker="$host_os dld.sl"
14209    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14210    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14211    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14212    soname_spec='$libname$release$shared_ext$major'
14213    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14214    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14215    ;;
14216  *)
14217    shrext_cmds='.sl'
14218    dynamic_linker="$host_os dld.sl"
14219    shlibpath_var=SHLIB_PATH
14220    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14221    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14222    soname_spec='$libname$release$shared_ext$major'
14223    ;;
14224  esac
14225  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14226  postinstall_cmds='chmod 555 $lib'
14227  # or fails outright, so override atomically:
14228  install_override_mode=555
14229  ;;
14230
14231interix[3-9]*)
14232  version_type=linux # correct to gnu/linux during the next big refactor
14233  need_lib_prefix=no
14234  need_version=no
14235  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14236  soname_spec='$libname$release$shared_ext$major'
14237  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14238  shlibpath_var=LD_LIBRARY_PATH
14239  shlibpath_overrides_runpath=no
14240  hardcode_into_libs=yes
14241  ;;
14242
14243irix5* | irix6* | nonstopux*)
14244  case $host_os in
14245    nonstopux*) version_type=nonstopux ;;
14246    *)
14247	if test yes = "$lt_cv_prog_gnu_ld"; then
14248		version_type=linux # correct to gnu/linux during the next big refactor
14249	else
14250		version_type=irix
14251	fi ;;
14252  esac
14253  need_lib_prefix=no
14254  need_version=no
14255  soname_spec='$libname$release$shared_ext$major'
14256  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14257  case $host_os in
14258  irix5* | nonstopux*)
14259    libsuff= shlibsuff=
14260    ;;
14261  *)
14262    case $LD in # libtool.m4 will add one of these switches to LD
14263    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14264      libsuff= shlibsuff= libmagic=32-bit;;
14265    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14266      libsuff=32 shlibsuff=N32 libmagic=N32;;
14267    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14268      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14269    *) libsuff= shlibsuff= libmagic=never-match;;
14270    esac
14271    ;;
14272  esac
14273  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14274  shlibpath_overrides_runpath=no
14275  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14276  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14277  hardcode_into_libs=yes
14278  ;;
14279
14280# No shared lib support for Linux oldld, aout, or coff.
14281linux*oldld* | linux*aout* | linux*coff*)
14282  dynamic_linker=no
14283  ;;
14284
14285linux*android*)
14286  version_type=none # Android doesn't support versioned libraries.
14287  need_lib_prefix=no
14288  need_version=no
14289  library_names_spec='$libname$release$shared_ext'
14290  soname_spec='$libname$release$shared_ext'
14291  finish_cmds=
14292  shlibpath_var=LD_LIBRARY_PATH
14293  shlibpath_overrides_runpath=yes
14294
14295  # This implies no fast_install, which is unacceptable.
14296  # Some rework will be needed to allow for fast_install
14297  # before this can be enabled.
14298  hardcode_into_libs=yes
14299
14300  dynamic_linker='Android linker'
14301  # Don't embed -rpath directories since the linker doesn't support them.
14302  hardcode_libdir_flag_spec='-L$libdir'
14303  ;;
14304
14305# This must be glibc/ELF.
14306linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14307  version_type=linux # correct to gnu/linux during the next big refactor
14308  need_lib_prefix=no
14309  need_version=no
14310  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14311  soname_spec='$libname$release$shared_ext$major'
14312  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14313  shlibpath_var=LD_LIBRARY_PATH
14314  shlibpath_overrides_runpath=no
14315
14316  # Some binutils ld are patched to set DT_RUNPATH
14317  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14318  $as_echo_n "(cached) " >&6
14319else
14320  lt_cv_shlibpath_overrides_runpath=no
14321    save_LDFLAGS=$LDFLAGS
14322    save_libdir=$libdir
14323    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14324	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14325    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326/* end confdefs.h.  */
14327
14328int
14329main ()
14330{
14331
14332  ;
14333  return 0;
14334}
14335_ACEOF
14336if ac_fn_c_try_link "$LINENO"; then :
14337  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14338  lt_cv_shlibpath_overrides_runpath=yes
14339fi
14340fi
14341rm -f core conftest.err conftest.$ac_objext \
14342    conftest$ac_exeext conftest.$ac_ext
14343    LDFLAGS=$save_LDFLAGS
14344    libdir=$save_libdir
14345
14346fi
14347
14348  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14349
14350  # This implies no fast_install, which is unacceptable.
14351  # Some rework will be needed to allow for fast_install
14352  # before this can be enabled.
14353  hardcode_into_libs=yes
14354
14355  # Ideally, we could use ldconfig to report *all* directores which are
14356  # searched for libraries, however this is still not possible.  Aside from not
14357  # being certain /sbin/ldconfig is available, command
14358  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14359  # even though it is searched at run-time.  Try to do the best guess by
14360  # appending ld.so.conf contents (and includes) to the search path.
14361  if test -f /etc/ld.so.conf; then
14362    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' ' '`
14363    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14364  fi
14365
14366  # We used to test for /lib/ld.so.1 and disable shared libraries on
14367  # powerpc, because MkLinux only supported shared libraries with the
14368  # GNU dynamic linker.  Since this was broken with cross compilers,
14369  # most powerpc-linux boxes support dynamic linking these days and
14370  # people can always --disable-shared, the test was removed, and we
14371  # assume the GNU/Linux dynamic linker is in use.
14372  dynamic_linker='GNU/Linux ld.so'
14373  ;;
14374
14375netbsd*)
14376  version_type=sunos
14377  need_lib_prefix=no
14378  need_version=no
14379  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14380    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14381    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14382    dynamic_linker='NetBSD (a.out) ld.so'
14383  else
14384    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14385    soname_spec='$libname$release$shared_ext$major'
14386    dynamic_linker='NetBSD ld.elf_so'
14387  fi
14388  shlibpath_var=LD_LIBRARY_PATH
14389  shlibpath_overrides_runpath=yes
14390  hardcode_into_libs=yes
14391  ;;
14392
14393newsos6)
14394  version_type=linux # correct to gnu/linux during the next big refactor
14395  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14396  shlibpath_var=LD_LIBRARY_PATH
14397  shlibpath_overrides_runpath=yes
14398  ;;
14399
14400*nto* | *qnx*)
14401  version_type=qnx
14402  need_lib_prefix=no
14403  need_version=no
14404  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14405  soname_spec='$libname$release$shared_ext$major'
14406  shlibpath_var=LD_LIBRARY_PATH
14407  shlibpath_overrides_runpath=no
14408  hardcode_into_libs=yes
14409  dynamic_linker='ldqnx.so'
14410  ;;
14411
14412openbsd* | bitrig*)
14413  version_type=sunos
14414  sys_lib_dlsearch_path_spec=/usr/lib
14415  need_lib_prefix=no
14416  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14417    need_version=no
14418  else
14419    need_version=yes
14420  fi
14421  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14422  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14423  shlibpath_var=LD_LIBRARY_PATH
14424  shlibpath_overrides_runpath=yes
14425  ;;
14426
14427os2*)
14428  libname_spec='$name'
14429  version_type=windows
14430  shrext_cmds=.dll
14431  need_version=no
14432  need_lib_prefix=no
14433  # OS/2 can only load a DLL with a base name of 8 characters or less.
14434  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14435    v=$($ECHO $release$versuffix | tr -d .-);
14436    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14437    $ECHO $n$v`$shared_ext'
14438  library_names_spec='${libname}_dll.$libext'
14439  dynamic_linker='OS/2 ld.exe'
14440  shlibpath_var=BEGINLIBPATH
14441  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14442  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14443  postinstall_cmds='base_file=`basename \$file`~
14444    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14445    dldir=$destdir/`dirname \$dlpath`~
14446    test -d \$dldir || mkdir -p \$dldir~
14447    $install_prog $dir/$dlname \$dldir/$dlname~
14448    chmod a+x \$dldir/$dlname~
14449    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14450      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14451    fi'
14452  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14453    dlpath=$dir/\$dldll~
14454    $RM \$dlpath'
14455  ;;
14456
14457osf3* | osf4* | osf5*)
14458  version_type=osf
14459  need_lib_prefix=no
14460  need_version=no
14461  soname_spec='$libname$release$shared_ext$major'
14462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14463  shlibpath_var=LD_LIBRARY_PATH
14464  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14465  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14466  ;;
14467
14468rdos*)
14469  dynamic_linker=no
14470  ;;
14471
14472solaris*)
14473  version_type=linux # correct to gnu/linux during the next big refactor
14474  need_lib_prefix=no
14475  need_version=no
14476  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14477  soname_spec='$libname$release$shared_ext$major'
14478  shlibpath_var=LD_LIBRARY_PATH
14479  shlibpath_overrides_runpath=yes
14480  hardcode_into_libs=yes
14481  # ldd complains unless libraries are executable
14482  postinstall_cmds='chmod +x $lib'
14483  ;;
14484
14485sunos4*)
14486  version_type=sunos
14487  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14488  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14489  shlibpath_var=LD_LIBRARY_PATH
14490  shlibpath_overrides_runpath=yes
14491  if test yes = "$with_gnu_ld"; then
14492    need_lib_prefix=no
14493  fi
14494  need_version=yes
14495  ;;
14496
14497sysv4 | sysv4.3*)
14498  version_type=linux # correct to gnu/linux during the next big refactor
14499  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14500  soname_spec='$libname$release$shared_ext$major'
14501  shlibpath_var=LD_LIBRARY_PATH
14502  case $host_vendor in
14503    sni)
14504      shlibpath_overrides_runpath=no
14505      need_lib_prefix=no
14506      runpath_var=LD_RUN_PATH
14507      ;;
14508    siemens)
14509      need_lib_prefix=no
14510      ;;
14511    motorola)
14512      need_lib_prefix=no
14513      need_version=no
14514      shlibpath_overrides_runpath=no
14515      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14516      ;;
14517  esac
14518  ;;
14519
14520sysv4*MP*)
14521  if test -d /usr/nec; then
14522    version_type=linux # correct to gnu/linux during the next big refactor
14523    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14524    soname_spec='$libname$shared_ext.$major'
14525    shlibpath_var=LD_LIBRARY_PATH
14526  fi
14527  ;;
14528
14529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14530  version_type=sco
14531  need_lib_prefix=no
14532  need_version=no
14533  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14534  soname_spec='$libname$release$shared_ext$major'
14535  shlibpath_var=LD_LIBRARY_PATH
14536  shlibpath_overrides_runpath=yes
14537  hardcode_into_libs=yes
14538  if test yes = "$with_gnu_ld"; then
14539    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14540  else
14541    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14542    case $host_os in
14543      sco3.2v5*)
14544        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14545	;;
14546    esac
14547  fi
14548  sys_lib_dlsearch_path_spec='/usr/lib'
14549  ;;
14550
14551tpf*)
14552  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14553  version_type=linux # correct to gnu/linux during the next big refactor
14554  need_lib_prefix=no
14555  need_version=no
14556  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14557  shlibpath_var=LD_LIBRARY_PATH
14558  shlibpath_overrides_runpath=no
14559  hardcode_into_libs=yes
14560  ;;
14561
14562uts4*)
14563  version_type=linux # correct to gnu/linux during the next big refactor
14564  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14565  soname_spec='$libname$release$shared_ext$major'
14566  shlibpath_var=LD_LIBRARY_PATH
14567  ;;
14568
14569*)
14570  dynamic_linker=no
14571  ;;
14572esac
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14574$as_echo "$dynamic_linker" >&6; }
14575test no = "$dynamic_linker" && can_build_shared=no
14576
14577variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14578if test yes = "$GCC"; then
14579  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14580fi
14581
14582if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14583  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14584fi
14585
14586if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14587  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14588fi
14589
14590# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14591configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14592
14593# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14594func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14595
14596# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14597configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14696$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14697hardcode_action=
14698if test -n "$hardcode_libdir_flag_spec" ||
14699   test -n "$runpath_var" ||
14700   test yes = "$hardcode_automatic"; then
14701
14702  # We can hardcode non-existent directories.
14703  if test no != "$hardcode_direct" &&
14704     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14705     # have to relink, otherwise we might link with an installed library
14706     # when we should be linking with a yet-to-be-installed one
14707     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14708     test no != "$hardcode_minus_L"; then
14709    # Linking always hardcodes the temporary library directory.
14710    hardcode_action=relink
14711  else
14712    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14713    hardcode_action=immediate
14714  fi
14715else
14716  # We cannot hardcode anything, or else we can only hardcode existing
14717  # directories.
14718  hardcode_action=unsupported
14719fi
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14721$as_echo "$hardcode_action" >&6; }
14722
14723if test relink = "$hardcode_action" ||
14724   test yes = "$inherit_rpath"; then
14725  # Fast installation is not supported
14726  enable_fast_install=no
14727elif test yes = "$shlibpath_overrides_runpath" ||
14728     test no = "$enable_shared"; then
14729  # Fast installation is not necessary
14730  enable_fast_install=needless
14731fi
14732
14733
14734
14735
14736
14737
14738  if test yes != "$enable_dlopen"; then
14739  enable_dlopen=unknown
14740  enable_dlopen_self=unknown
14741  enable_dlopen_self_static=unknown
14742else
14743  lt_cv_dlopen=no
14744  lt_cv_dlopen_libs=
14745
14746  case $host_os in
14747  beos*)
14748    lt_cv_dlopen=load_add_on
14749    lt_cv_dlopen_libs=
14750    lt_cv_dlopen_self=yes
14751    ;;
14752
14753  mingw* | pw32* | cegcc*)
14754    lt_cv_dlopen=LoadLibrary
14755    lt_cv_dlopen_libs=
14756    ;;
14757
14758  cygwin*)
14759    lt_cv_dlopen=dlopen
14760    lt_cv_dlopen_libs=
14761    ;;
14762
14763  darwin*)
14764    # if libdl is installed we need to link against it
14765    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14766$as_echo_n "checking for dlopen in -ldl... " >&6; }
14767if ${ac_cv_lib_dl_dlopen+:} false; then :
14768  $as_echo_n "(cached) " >&6
14769else
14770  ac_check_lib_save_LIBS=$LIBS
14771LIBS="-ldl  $LIBS"
14772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773/* end confdefs.h.  */
14774
14775/* Override any GCC internal prototype to avoid an error.
14776   Use char because int might match the return type of a GCC
14777   builtin and then its argument prototype would still apply.  */
14778#ifdef __cplusplus
14779extern "C"
14780#endif
14781char dlopen ();
14782int
14783main ()
14784{
14785return dlopen ();
14786  ;
14787  return 0;
14788}
14789_ACEOF
14790if ac_fn_c_try_link "$LINENO"; then :
14791  ac_cv_lib_dl_dlopen=yes
14792else
14793  ac_cv_lib_dl_dlopen=no
14794fi
14795rm -f core conftest.err conftest.$ac_objext \
14796    conftest$ac_exeext conftest.$ac_ext
14797LIBS=$ac_check_lib_save_LIBS
14798fi
14799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14800$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14801if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14802  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14803else
14804
14805    lt_cv_dlopen=dyld
14806    lt_cv_dlopen_libs=
14807    lt_cv_dlopen_self=yes
14808
14809fi
14810
14811    ;;
14812
14813  tpf*)
14814    # Don't try to run any link tests for TPF.  We know it's impossible
14815    # because TPF is a cross-compiler, and we know how we open DSOs.
14816    lt_cv_dlopen=dlopen
14817    lt_cv_dlopen_libs=
14818    lt_cv_dlopen_self=no
14819    ;;
14820
14821  *)
14822    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14823if test "x$ac_cv_func_shl_load" = xyes; then :
14824  lt_cv_dlopen=shl_load
14825else
14826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14827$as_echo_n "checking for shl_load in -ldld... " >&6; }
14828if ${ac_cv_lib_dld_shl_load+:} false; then :
14829  $as_echo_n "(cached) " >&6
14830else
14831  ac_check_lib_save_LIBS=$LIBS
14832LIBS="-ldld  $LIBS"
14833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834/* end confdefs.h.  */
14835
14836/* Override any GCC internal prototype to avoid an error.
14837   Use char because int might match the return type of a GCC
14838   builtin and then its argument prototype would still apply.  */
14839#ifdef __cplusplus
14840extern "C"
14841#endif
14842char shl_load ();
14843int
14844main ()
14845{
14846return shl_load ();
14847  ;
14848  return 0;
14849}
14850_ACEOF
14851if ac_fn_c_try_link "$LINENO"; then :
14852  ac_cv_lib_dld_shl_load=yes
14853else
14854  ac_cv_lib_dld_shl_load=no
14855fi
14856rm -f core conftest.err conftest.$ac_objext \
14857    conftest$ac_exeext conftest.$ac_ext
14858LIBS=$ac_check_lib_save_LIBS
14859fi
14860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14861$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14862if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14863  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14864else
14865  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14866if test "x$ac_cv_func_dlopen" = xyes; then :
14867  lt_cv_dlopen=dlopen
14868else
14869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14870$as_echo_n "checking for dlopen in -ldl... " >&6; }
14871if ${ac_cv_lib_dl_dlopen+:} false; then :
14872  $as_echo_n "(cached) " >&6
14873else
14874  ac_check_lib_save_LIBS=$LIBS
14875LIBS="-ldl  $LIBS"
14876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877/* end confdefs.h.  */
14878
14879/* Override any GCC internal prototype to avoid an error.
14880   Use char because int might match the return type of a GCC
14881   builtin and then its argument prototype would still apply.  */
14882#ifdef __cplusplus
14883extern "C"
14884#endif
14885char dlopen ();
14886int
14887main ()
14888{
14889return dlopen ();
14890  ;
14891  return 0;
14892}
14893_ACEOF
14894if ac_fn_c_try_link "$LINENO"; then :
14895  ac_cv_lib_dl_dlopen=yes
14896else
14897  ac_cv_lib_dl_dlopen=no
14898fi
14899rm -f core conftest.err conftest.$ac_objext \
14900    conftest$ac_exeext conftest.$ac_ext
14901LIBS=$ac_check_lib_save_LIBS
14902fi
14903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14904$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14905if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14906  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14907else
14908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14909$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14910if ${ac_cv_lib_svld_dlopen+:} false; then :
14911  $as_echo_n "(cached) " >&6
14912else
14913  ac_check_lib_save_LIBS=$LIBS
14914LIBS="-lsvld  $LIBS"
14915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916/* end confdefs.h.  */
14917
14918/* Override any GCC internal prototype to avoid an error.
14919   Use char because int might match the return type of a GCC
14920   builtin and then its argument prototype would still apply.  */
14921#ifdef __cplusplus
14922extern "C"
14923#endif
14924char dlopen ();
14925int
14926main ()
14927{
14928return dlopen ();
14929  ;
14930  return 0;
14931}
14932_ACEOF
14933if ac_fn_c_try_link "$LINENO"; then :
14934  ac_cv_lib_svld_dlopen=yes
14935else
14936  ac_cv_lib_svld_dlopen=no
14937fi
14938rm -f core conftest.err conftest.$ac_objext \
14939    conftest$ac_exeext conftest.$ac_ext
14940LIBS=$ac_check_lib_save_LIBS
14941fi
14942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14943$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14944if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14945  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14946else
14947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14948$as_echo_n "checking for dld_link in -ldld... " >&6; }
14949if ${ac_cv_lib_dld_dld_link+:} false; then :
14950  $as_echo_n "(cached) " >&6
14951else
14952  ac_check_lib_save_LIBS=$LIBS
14953LIBS="-ldld  $LIBS"
14954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955/* end confdefs.h.  */
14956
14957/* Override any GCC internal prototype to avoid an error.
14958   Use char because int might match the return type of a GCC
14959   builtin and then its argument prototype would still apply.  */
14960#ifdef __cplusplus
14961extern "C"
14962#endif
14963char dld_link ();
14964int
14965main ()
14966{
14967return dld_link ();
14968  ;
14969  return 0;
14970}
14971_ACEOF
14972if ac_fn_c_try_link "$LINENO"; then :
14973  ac_cv_lib_dld_dld_link=yes
14974else
14975  ac_cv_lib_dld_dld_link=no
14976fi
14977rm -f core conftest.err conftest.$ac_objext \
14978    conftest$ac_exeext conftest.$ac_ext
14979LIBS=$ac_check_lib_save_LIBS
14980fi
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14982$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14983if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14984  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14985fi
14986
14987
14988fi
14989
14990
14991fi
14992
14993
14994fi
14995
14996
14997fi
14998
14999
15000fi
15001
15002    ;;
15003  esac
15004
15005  if test no = "$lt_cv_dlopen"; then
15006    enable_dlopen=no
15007  else
15008    enable_dlopen=yes
15009  fi
15010
15011  case $lt_cv_dlopen in
15012  dlopen)
15013    save_CPPFLAGS=$CPPFLAGS
15014    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15015
15016    save_LDFLAGS=$LDFLAGS
15017    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15018
15019    save_LIBS=$LIBS
15020    LIBS="$lt_cv_dlopen_libs $LIBS"
15021
15022    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15023$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15024if ${lt_cv_dlopen_self+:} false; then :
15025  $as_echo_n "(cached) " >&6
15026else
15027  	  if test yes = "$cross_compiling"; then :
15028  lt_cv_dlopen_self=cross
15029else
15030  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15031  lt_status=$lt_dlunknown
15032  cat > conftest.$ac_ext <<_LT_EOF
15033#line $LINENO "configure"
15034#include "confdefs.h"
15035
15036#if HAVE_DLFCN_H
15037#include <dlfcn.h>
15038#endif
15039
15040#include <stdio.h>
15041
15042#ifdef RTLD_GLOBAL
15043#  define LT_DLGLOBAL		RTLD_GLOBAL
15044#else
15045#  ifdef DL_GLOBAL
15046#    define LT_DLGLOBAL		DL_GLOBAL
15047#  else
15048#    define LT_DLGLOBAL		0
15049#  endif
15050#endif
15051
15052/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15053   find out it does not work in some platform. */
15054#ifndef LT_DLLAZY_OR_NOW
15055#  ifdef RTLD_LAZY
15056#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15057#  else
15058#    ifdef DL_LAZY
15059#      define LT_DLLAZY_OR_NOW		DL_LAZY
15060#    else
15061#      ifdef RTLD_NOW
15062#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15063#      else
15064#        ifdef DL_NOW
15065#          define LT_DLLAZY_OR_NOW	DL_NOW
15066#        else
15067#          define LT_DLLAZY_OR_NOW	0
15068#        endif
15069#      endif
15070#    endif
15071#  endif
15072#endif
15073
15074/* When -fvisibility=hidden is used, assume the code has been annotated
15075   correspondingly for the symbols needed.  */
15076#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15077int fnord () __attribute__((visibility("default")));
15078#endif
15079
15080int fnord () { return 42; }
15081int main ()
15082{
15083  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15084  int status = $lt_dlunknown;
15085
15086  if (self)
15087    {
15088      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15089      else
15090        {
15091	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15092          else puts (dlerror ());
15093	}
15094      /* dlclose (self); */
15095    }
15096  else
15097    puts (dlerror ());
15098
15099  return status;
15100}
15101_LT_EOF
15102  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15103  (eval $ac_link) 2>&5
15104  ac_status=$?
15105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15106  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15107    (./conftest; exit; ) >&5 2>/dev/null
15108    lt_status=$?
15109    case x$lt_status in
15110      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15111      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15112      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15113    esac
15114  else :
15115    # compilation failed
15116    lt_cv_dlopen_self=no
15117  fi
15118fi
15119rm -fr conftest*
15120
15121
15122fi
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15124$as_echo "$lt_cv_dlopen_self" >&6; }
15125
15126    if test yes = "$lt_cv_dlopen_self"; then
15127      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15128      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15129$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15130if ${lt_cv_dlopen_self_static+:} false; then :
15131  $as_echo_n "(cached) " >&6
15132else
15133  	  if test yes = "$cross_compiling"; then :
15134  lt_cv_dlopen_self_static=cross
15135else
15136  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15137  lt_status=$lt_dlunknown
15138  cat > conftest.$ac_ext <<_LT_EOF
15139#line $LINENO "configure"
15140#include "confdefs.h"
15141
15142#if HAVE_DLFCN_H
15143#include <dlfcn.h>
15144#endif
15145
15146#include <stdio.h>
15147
15148#ifdef RTLD_GLOBAL
15149#  define LT_DLGLOBAL		RTLD_GLOBAL
15150#else
15151#  ifdef DL_GLOBAL
15152#    define LT_DLGLOBAL		DL_GLOBAL
15153#  else
15154#    define LT_DLGLOBAL		0
15155#  endif
15156#endif
15157
15158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15159   find out it does not work in some platform. */
15160#ifndef LT_DLLAZY_OR_NOW
15161#  ifdef RTLD_LAZY
15162#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15163#  else
15164#    ifdef DL_LAZY
15165#      define LT_DLLAZY_OR_NOW		DL_LAZY
15166#    else
15167#      ifdef RTLD_NOW
15168#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15169#      else
15170#        ifdef DL_NOW
15171#          define LT_DLLAZY_OR_NOW	DL_NOW
15172#        else
15173#          define LT_DLLAZY_OR_NOW	0
15174#        endif
15175#      endif
15176#    endif
15177#  endif
15178#endif
15179
15180/* When -fvisibility=hidden is used, assume the code has been annotated
15181   correspondingly for the symbols needed.  */
15182#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15183int fnord () __attribute__((visibility("default")));
15184#endif
15185
15186int fnord () { return 42; }
15187int main ()
15188{
15189  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15190  int status = $lt_dlunknown;
15191
15192  if (self)
15193    {
15194      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15195      else
15196        {
15197	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15198          else puts (dlerror ());
15199	}
15200      /* dlclose (self); */
15201    }
15202  else
15203    puts (dlerror ());
15204
15205  return status;
15206}
15207_LT_EOF
15208  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15209  (eval $ac_link) 2>&5
15210  ac_status=$?
15211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15212  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15213    (./conftest; exit; ) >&5 2>/dev/null
15214    lt_status=$?
15215    case x$lt_status in
15216      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15217      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15218      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15219    esac
15220  else :
15221    # compilation failed
15222    lt_cv_dlopen_self_static=no
15223  fi
15224fi
15225rm -fr conftest*
15226
15227
15228fi
15229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15230$as_echo "$lt_cv_dlopen_self_static" >&6; }
15231    fi
15232
15233    CPPFLAGS=$save_CPPFLAGS
15234    LDFLAGS=$save_LDFLAGS
15235    LIBS=$save_LIBS
15236    ;;
15237  esac
15238
15239  case $lt_cv_dlopen_self in
15240  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15241  *) enable_dlopen_self=unknown ;;
15242  esac
15243
15244  case $lt_cv_dlopen_self_static in
15245  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15246  *) enable_dlopen_self_static=unknown ;;
15247  esac
15248fi
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266striplib=
15267old_striplib=
15268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15269$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15270if test -z "$STRIP"; then
15271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15272$as_echo "no" >&6; }
15273else
15274  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15275    old_striplib="$STRIP --strip-debug"
15276    striplib="$STRIP --strip-unneeded"
15277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15278$as_echo "yes" >&6; }
15279  else
15280    case $host_os in
15281    darwin*)
15282      # FIXME - insert some real tests, host_os isn't really good enough
15283      striplib="$STRIP -x"
15284      old_striplib="$STRIP -S"
15285      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15286$as_echo "yes" >&6; }
15287      ;;
15288    freebsd*)
15289      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15290        old_striplib="$STRIP --strip-debug"
15291        striplib="$STRIP --strip-unneeded"
15292        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15293$as_echo "yes" >&6; }
15294      else
15295        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15296$as_echo "no" >&6; }
15297      fi
15298      ;;
15299    *)
15300      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15301$as_echo "no" >&6; }
15302      ;;
15303    esac
15304  fi
15305fi
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318  # Report what library types will actually be built
15319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15320$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15322$as_echo "$can_build_shared" >&6; }
15323
15324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15325$as_echo_n "checking whether to build shared libraries... " >&6; }
15326  test no = "$can_build_shared" && enable_shared=no
15327
15328  # On AIX, shared libraries and static libraries use the same namespace, and
15329  # are all built from PIC.
15330  case $host_os in
15331  aix3*)
15332    test yes = "$enable_shared" && enable_static=no
15333    if test -n "$RANLIB"; then
15334      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15335      postinstall_cmds='$RANLIB $lib'
15336    fi
15337    ;;
15338
15339  aix[4-9]*)
15340    if test ia64 != "$host_cpu"; then
15341      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15342      yes,aix,yes) ;;			# shared object as lib.so file only
15343      yes,svr4,*) ;;			# shared object as lib.so archive member only
15344      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15345      esac
15346    fi
15347    ;;
15348  esac
15349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15350$as_echo "$enable_shared" >&6; }
15351
15352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15353$as_echo_n "checking whether to build static libraries... " >&6; }
15354  # Make sure either enable_shared or enable_static is yes.
15355  test yes = "$enable_shared" || enable_static=yes
15356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15357$as_echo "$enable_static" >&6; }
15358
15359
15360
15361
15362fi
15363ac_ext=c
15364ac_cpp='$CPP $CPPFLAGS'
15365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15367ac_compiler_gnu=$ac_cv_c_compiler_gnu
15368
15369CC=$lt_save_CC
15370
15371      if test -n "$CXX" && ( test no != "$CXX" &&
15372    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15373    (test g++ != "$CXX"))); then
15374  ac_ext=cpp
15375ac_cpp='$CXXCPP $CPPFLAGS'
15376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15380$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15381if test -z "$CXXCPP"; then
15382  if ${ac_cv_prog_CXXCPP+:} false; then :
15383  $as_echo_n "(cached) " >&6
15384else
15385      # Double quotes because CXXCPP needs to be expanded
15386    for CXXCPP in "$CXX -E" "/lib/cpp"
15387    do
15388      ac_preproc_ok=false
15389for ac_cxx_preproc_warn_flag in '' yes
15390do
15391  # Use a header file that comes with gcc, so configuring glibc
15392  # with a fresh cross-compiler works.
15393  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15394  # <limits.h> exists even on freestanding compilers.
15395  # On the NeXT, cc -E runs the code through the compiler's parser,
15396  # not just through cpp. "Syntax error" is here to catch this case.
15397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398/* end confdefs.h.  */
15399#ifdef __STDC__
15400# include <limits.h>
15401#else
15402# include <assert.h>
15403#endif
15404		     Syntax error
15405_ACEOF
15406if ac_fn_cxx_try_cpp "$LINENO"; then :
15407
15408else
15409  # Broken: fails on valid input.
15410continue
15411fi
15412rm -f conftest.err conftest.i conftest.$ac_ext
15413
15414  # OK, works on sane cases.  Now check whether nonexistent headers
15415  # can be detected and how.
15416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417/* end confdefs.h.  */
15418#include <ac_nonexistent.h>
15419_ACEOF
15420if ac_fn_cxx_try_cpp "$LINENO"; then :
15421  # Broken: success on invalid input.
15422continue
15423else
15424  # Passes both tests.
15425ac_preproc_ok=:
15426break
15427fi
15428rm -f conftest.err conftest.i conftest.$ac_ext
15429
15430done
15431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15432rm -f conftest.i conftest.err conftest.$ac_ext
15433if $ac_preproc_ok; then :
15434  break
15435fi
15436
15437    done
15438    ac_cv_prog_CXXCPP=$CXXCPP
15439
15440fi
15441  CXXCPP=$ac_cv_prog_CXXCPP
15442else
15443  ac_cv_prog_CXXCPP=$CXXCPP
15444fi
15445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15446$as_echo "$CXXCPP" >&6; }
15447ac_preproc_ok=false
15448for ac_cxx_preproc_warn_flag in '' yes
15449do
15450  # Use a header file that comes with gcc, so configuring glibc
15451  # with a fresh cross-compiler works.
15452  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15453  # <limits.h> exists even on freestanding compilers.
15454  # On the NeXT, cc -E runs the code through the compiler's parser,
15455  # not just through cpp. "Syntax error" is here to catch this case.
15456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457/* end confdefs.h.  */
15458#ifdef __STDC__
15459# include <limits.h>
15460#else
15461# include <assert.h>
15462#endif
15463		     Syntax error
15464_ACEOF
15465if ac_fn_cxx_try_cpp "$LINENO"; then :
15466
15467else
15468  # Broken: fails on valid input.
15469continue
15470fi
15471rm -f conftest.err conftest.i conftest.$ac_ext
15472
15473  # OK, works on sane cases.  Now check whether nonexistent headers
15474  # can be detected and how.
15475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476/* end confdefs.h.  */
15477#include <ac_nonexistent.h>
15478_ACEOF
15479if ac_fn_cxx_try_cpp "$LINENO"; then :
15480  # Broken: success on invalid input.
15481continue
15482else
15483  # Passes both tests.
15484ac_preproc_ok=:
15485break
15486fi
15487rm -f conftest.err conftest.i conftest.$ac_ext
15488
15489done
15490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15491rm -f conftest.i conftest.err conftest.$ac_ext
15492if $ac_preproc_ok; then :
15493
15494else
15495  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15497as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15498See \`config.log' for more details" "$LINENO" 5; }
15499fi
15500
15501ac_ext=c
15502ac_cpp='$CPP $CPPFLAGS'
15503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15505ac_compiler_gnu=$ac_cv_c_compiler_gnu
15506
15507else
15508  _lt_caught_CXX_error=yes
15509fi
15510
15511ac_ext=cpp
15512ac_cpp='$CXXCPP $CPPFLAGS'
15513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15516
15517archive_cmds_need_lc_CXX=no
15518allow_undefined_flag_CXX=
15519always_export_symbols_CXX=no
15520archive_expsym_cmds_CXX=
15521compiler_needs_object_CXX=no
15522export_dynamic_flag_spec_CXX=
15523hardcode_direct_CXX=no
15524hardcode_direct_absolute_CXX=no
15525hardcode_libdir_flag_spec_CXX=
15526hardcode_libdir_separator_CXX=
15527hardcode_minus_L_CXX=no
15528hardcode_shlibpath_var_CXX=unsupported
15529hardcode_automatic_CXX=no
15530inherit_rpath_CXX=no
15531module_cmds_CXX=
15532module_expsym_cmds_CXX=
15533link_all_deplibs_CXX=unknown
15534old_archive_cmds_CXX=$old_archive_cmds
15535reload_flag_CXX=$reload_flag
15536reload_cmds_CXX=$reload_cmds
15537no_undefined_flag_CXX=
15538whole_archive_flag_spec_CXX=
15539enable_shared_with_static_runtimes_CXX=no
15540
15541# Source file extension for C++ test sources.
15542ac_ext=cpp
15543
15544# Object file extension for compiled C++ test sources.
15545objext=o
15546objext_CXX=$objext
15547
15548# No sense in running all these tests if we already determined that
15549# the CXX compiler isn't working.  Some variables (like enable_shared)
15550# are currently assumed to apply to all compilers on this platform,
15551# and will be corrupted by setting them based on a non-working compiler.
15552if test yes != "$_lt_caught_CXX_error"; then
15553  # Code to be used in simple compile tests
15554  lt_simple_compile_test_code="int some_variable = 0;"
15555
15556  # Code to be used in simple link tests
15557  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15558
15559  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15560
15561
15562
15563
15564
15565
15566# If no C compiler was specified, use CC.
15567LTCC=${LTCC-"$CC"}
15568
15569# If no C compiler flags were specified, use CFLAGS.
15570LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15571
15572# Allow CC to be a program name with arguments.
15573compiler=$CC
15574
15575
15576  # save warnings/boilerplate of simple test code
15577  ac_outfile=conftest.$ac_objext
15578echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15579eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15580_lt_compiler_boilerplate=`cat conftest.err`
15581$RM conftest*
15582
15583  ac_outfile=conftest.$ac_objext
15584echo "$lt_simple_link_test_code" >conftest.$ac_ext
15585eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15586_lt_linker_boilerplate=`cat conftest.err`
15587$RM -r conftest*
15588
15589
15590  # Allow CC to be a program name with arguments.
15591  lt_save_CC=$CC
15592  lt_save_CFLAGS=$CFLAGS
15593  lt_save_LD=$LD
15594  lt_save_GCC=$GCC
15595  GCC=$GXX
15596  lt_save_with_gnu_ld=$with_gnu_ld
15597  lt_save_path_LD=$lt_cv_path_LD
15598  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15599    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15600  else
15601    $as_unset lt_cv_prog_gnu_ld
15602  fi
15603  if test -n "${lt_cv_path_LDCXX+set}"; then
15604    lt_cv_path_LD=$lt_cv_path_LDCXX
15605  else
15606    $as_unset lt_cv_path_LD
15607  fi
15608  test -z "${LDCXX+set}" || LD=$LDCXX
15609  CC=${CXX-"c++"}
15610  CFLAGS=$CXXFLAGS
15611  compiler=$CC
15612  compiler_CXX=$CC
15613  func_cc_basename $compiler
15614cc_basename=$func_cc_basename_result
15615
15616
15617  if test -n "$compiler"; then
15618    # We don't want -fno-exception when compiling C++ code, so set the
15619    # no_builtin_flag separately
15620    if test yes = "$GXX"; then
15621      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15622    else
15623      lt_prog_compiler_no_builtin_flag_CXX=
15624    fi
15625
15626    if test yes = "$GXX"; then
15627      # Set up default GNU C++ configuration
15628
15629
15630
15631# Check whether --with-gnu-ld was given.
15632if test "${with_gnu_ld+set}" = set; then :
15633  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15634else
15635  with_gnu_ld=no
15636fi
15637
15638ac_prog=ld
15639if test yes = "$GCC"; then
15640  # Check if gcc -print-prog-name=ld gives a path.
15641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15642$as_echo_n "checking for ld used by $CC... " >&6; }
15643  case $host in
15644  *-*-mingw*)
15645    # gcc leaves a trailing carriage return, which upsets mingw
15646    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15647  *)
15648    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15649  esac
15650  case $ac_prog in
15651    # Accept absolute paths.
15652    [\\/]* | ?:[\\/]*)
15653      re_direlt='/[^/][^/]*/\.\./'
15654      # Canonicalize the pathname of ld
15655      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15656      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15657	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15658      done
15659      test -z "$LD" && LD=$ac_prog
15660      ;;
15661  "")
15662    # If it fails, then pretend we aren't using GCC.
15663    ac_prog=ld
15664    ;;
15665  *)
15666    # If it is relative, then search for the first ld in PATH.
15667    with_gnu_ld=unknown
15668    ;;
15669  esac
15670elif test yes = "$with_gnu_ld"; then
15671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15672$as_echo_n "checking for GNU ld... " >&6; }
15673else
15674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15675$as_echo_n "checking for non-GNU ld... " >&6; }
15676fi
15677if ${lt_cv_path_LD+:} false; then :
15678  $as_echo_n "(cached) " >&6
15679else
15680  if test -z "$LD"; then
15681  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15682  for ac_dir in $PATH; do
15683    IFS=$lt_save_ifs
15684    test -z "$ac_dir" && ac_dir=.
15685    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15686      lt_cv_path_LD=$ac_dir/$ac_prog
15687      # Check to see if the program is GNU ld.  I'd rather use --version,
15688      # but apparently some variants of GNU ld only accept -v.
15689      # Break only if it was the GNU/non-GNU ld that we prefer.
15690      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15691      *GNU* | *'with BFD'*)
15692	test no != "$with_gnu_ld" && break
15693	;;
15694      *)
15695	test yes != "$with_gnu_ld" && break
15696	;;
15697      esac
15698    fi
15699  done
15700  IFS=$lt_save_ifs
15701else
15702  lt_cv_path_LD=$LD # Let the user override the test with a path.
15703fi
15704fi
15705
15706LD=$lt_cv_path_LD
15707if test -n "$LD"; then
15708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15709$as_echo "$LD" >&6; }
15710else
15711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15712$as_echo "no" >&6; }
15713fi
15714test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15716$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15717if ${lt_cv_prog_gnu_ld+:} false; then :
15718  $as_echo_n "(cached) " >&6
15719else
15720  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15721case `$LD -v 2>&1 </dev/null` in
15722*GNU* | *'with BFD'*)
15723  lt_cv_prog_gnu_ld=yes
15724  ;;
15725*)
15726  lt_cv_prog_gnu_ld=no
15727  ;;
15728esac
15729fi
15730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15731$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15732with_gnu_ld=$lt_cv_prog_gnu_ld
15733
15734
15735
15736
15737
15738
15739
15740      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15741      # archiving commands below assume that GNU ld is being used.
15742      if test yes = "$with_gnu_ld"; then
15743        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15744        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'
15745
15746        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15747        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15748
15749        # If archive_cmds runs LD, not CC, wlarc should be empty
15750        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15751        #     investigate it a little bit more. (MM)
15752        wlarc='$wl'
15753
15754        # ancient GNU ld didn't support --whole-archive et. al.
15755        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15756	  $GREP 'no-whole-archive' > /dev/null; then
15757          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15758        else
15759          whole_archive_flag_spec_CXX=
15760        fi
15761      else
15762        with_gnu_ld=no
15763        wlarc=
15764
15765        # A generic and very simple default shared library creation
15766        # command for GNU C++ for the case where it uses the native
15767        # linker, instead of GNU ld.  If possible, this setting should
15768        # overridden to take advantage of the native linker features on
15769        # the platform it is being used on.
15770        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15771      fi
15772
15773      # Commands to make compiler produce verbose output that lists
15774      # what "hidden" libraries, object files and flags are used when
15775      # linking a shared library.
15776      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15777
15778    else
15779      GXX=no
15780      with_gnu_ld=no
15781      wlarc=
15782    fi
15783
15784    # PORTME: fill in a description of your system's C++ link characteristics
15785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15786$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15787    ld_shlibs_CXX=yes
15788    case $host_os in
15789      aix3*)
15790        # FIXME: insert proper C++ library support
15791        ld_shlibs_CXX=no
15792        ;;
15793      aix[4-9]*)
15794        if test ia64 = "$host_cpu"; then
15795          # On IA64, the linker does run time linking by default, so we don't
15796          # have to do anything special.
15797          aix_use_runtimelinking=no
15798          exp_sym_flag='-Bexport'
15799          no_entry_flag=
15800        else
15801          aix_use_runtimelinking=no
15802
15803          # Test if we are trying to use run time linking or normal
15804          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15805          # have runtime linking enabled, and use it for executables.
15806          # For shared libraries, we enable/disable runtime linking
15807          # depending on the kind of the shared library created -
15808          # when "with_aix_soname,aix_use_runtimelinking" is:
15809          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15810          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15811          #            lib.a           static archive
15812          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15813          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15814          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15815          #            lib.a(lib.so.V) shared, rtl:no
15816          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15817          #            lib.a           static archive
15818          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15819	    for ld_flag in $LDFLAGS; do
15820	      case $ld_flag in
15821	      *-brtl*)
15822	        aix_use_runtimelinking=yes
15823	        break
15824	        ;;
15825	      esac
15826	    done
15827	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15828	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15829	      # so we don't have lib.a shared libs to link our executables.
15830	      # We have to force runtime linking in this case.
15831	      aix_use_runtimelinking=yes
15832	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15833	    fi
15834	    ;;
15835          esac
15836
15837          exp_sym_flag='-bexport'
15838          no_entry_flag='-bnoentry'
15839        fi
15840
15841        # When large executables or shared objects are built, AIX ld can
15842        # have problems creating the table of contents.  If linking a library
15843        # or program results in "error TOC overflow" add -mminimal-toc to
15844        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15845        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15846
15847        archive_cmds_CXX=''
15848        hardcode_direct_CXX=yes
15849        hardcode_direct_absolute_CXX=yes
15850        hardcode_libdir_separator_CXX=':'
15851        link_all_deplibs_CXX=yes
15852        file_list_spec_CXX='$wl-f,'
15853        case $with_aix_soname,$aix_use_runtimelinking in
15854        aix,*) ;;	# no import file
15855        svr4,* | *,yes) # use import file
15856          # The Import File defines what to hardcode.
15857          hardcode_direct_CXX=no
15858          hardcode_direct_absolute_CXX=no
15859          ;;
15860        esac
15861
15862        if test yes = "$GXX"; then
15863          case $host_os in aix4.[012]|aix4.[012].*)
15864          # We only want to do this on AIX 4.2 and lower, the check
15865          # below for broken collect2 doesn't work under 4.3+
15866	  collect2name=`$CC -print-prog-name=collect2`
15867	  if test -f "$collect2name" &&
15868	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15869	  then
15870	    # We have reworked collect2
15871	    :
15872	  else
15873	    # We have old collect2
15874	    hardcode_direct_CXX=unsupported
15875	    # It fails to find uninstalled libraries when the uninstalled
15876	    # path is not listed in the libpath.  Setting hardcode_minus_L
15877	    # to unsupported forces relinking
15878	    hardcode_minus_L_CXX=yes
15879	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15880	    hardcode_libdir_separator_CXX=
15881	  fi
15882          esac
15883          shared_flag='-shared'
15884	  if test yes = "$aix_use_runtimelinking"; then
15885	    shared_flag=$shared_flag' $wl-G'
15886	  fi
15887	  # Need to ensure runtime linking is disabled for the traditional
15888	  # shared library, or the linker may eventually find shared libraries
15889	  # /with/ Import File - we do not want to mix them.
15890	  shared_flag_aix='-shared'
15891	  shared_flag_svr4='-shared $wl-G'
15892        else
15893          # not using gcc
15894          if test ia64 = "$host_cpu"; then
15895	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15896	  # chokes on -Wl,-G. The following line is correct:
15897	  shared_flag='-G'
15898          else
15899	    if test yes = "$aix_use_runtimelinking"; then
15900	      shared_flag='$wl-G'
15901	    else
15902	      shared_flag='$wl-bM:SRE'
15903	    fi
15904	    shared_flag_aix='$wl-bM:SRE'
15905	    shared_flag_svr4='$wl-G'
15906          fi
15907        fi
15908
15909        export_dynamic_flag_spec_CXX='$wl-bexpall'
15910        # It seems that -bexpall does not export symbols beginning with
15911        # underscore (_), so it is better to generate a list of symbols to
15912	# export.
15913        always_export_symbols_CXX=yes
15914	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15915          # Warning - without using the other runtime loading flags (-brtl),
15916          # -berok will link without error, but may produce a broken library.
15917          # The "-G" linker flag allows undefined symbols.
15918          no_undefined_flag_CXX='-bernotok'
15919          # Determine the default libpath from the value encoded in an empty
15920          # executable.
15921          if test set = "${lt_cv_aix_libpath+set}"; then
15922  aix_libpath=$lt_cv_aix_libpath
15923else
15924  if ${lt_cv_aix_libpath__CXX+:} false; then :
15925  $as_echo_n "(cached) " >&6
15926else
15927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928/* end confdefs.h.  */
15929
15930int
15931main ()
15932{
15933
15934  ;
15935  return 0;
15936}
15937_ACEOF
15938if ac_fn_cxx_try_link "$LINENO"; then :
15939
15940  lt_aix_libpath_sed='
15941      /Import File Strings/,/^$/ {
15942	  /^0/ {
15943	      s/^0  *\([^ ]*\) *$/\1/
15944	      p
15945	  }
15946      }'
15947  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15948  # Check for a 64-bit object if we didn't find anything.
15949  if test -z "$lt_cv_aix_libpath__CXX"; then
15950    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15951  fi
15952fi
15953rm -f core conftest.err conftest.$ac_objext \
15954    conftest$ac_exeext conftest.$ac_ext
15955  if test -z "$lt_cv_aix_libpath__CXX"; then
15956    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15957  fi
15958
15959fi
15960
15961  aix_libpath=$lt_cv_aix_libpath__CXX
15962fi
15963
15964          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15965
15966          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
15967        else
15968          if test ia64 = "$host_cpu"; then
15969	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15970	    allow_undefined_flag_CXX="-z nodefs"
15971	    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"
15972          else
15973	    # Determine the default libpath from the value encoded in an
15974	    # empty executable.
15975	    if test set = "${lt_cv_aix_libpath+set}"; then
15976  aix_libpath=$lt_cv_aix_libpath
15977else
15978  if ${lt_cv_aix_libpath__CXX+:} false; then :
15979  $as_echo_n "(cached) " >&6
15980else
15981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982/* end confdefs.h.  */
15983
15984int
15985main ()
15986{
15987
15988  ;
15989  return 0;
15990}
15991_ACEOF
15992if ac_fn_cxx_try_link "$LINENO"; then :
15993
15994  lt_aix_libpath_sed='
15995      /Import File Strings/,/^$/ {
15996	  /^0/ {
15997	      s/^0  *\([^ ]*\) *$/\1/
15998	      p
15999	  }
16000      }'
16001  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16002  # Check for a 64-bit object if we didn't find anything.
16003  if test -z "$lt_cv_aix_libpath__CXX"; then
16004    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16005  fi
16006fi
16007rm -f core conftest.err conftest.$ac_objext \
16008    conftest$ac_exeext conftest.$ac_ext
16009  if test -z "$lt_cv_aix_libpath__CXX"; then
16010    lt_cv_aix_libpath__CXX=/usr/lib:/lib
16011  fi
16012
16013fi
16014
16015  aix_libpath=$lt_cv_aix_libpath__CXX
16016fi
16017
16018	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16019	    # Warning - without using the other run time loading flags,
16020	    # -berok will link without error, but may produce a broken library.
16021	    no_undefined_flag_CXX=' $wl-bernotok'
16022	    allow_undefined_flag_CXX=' $wl-berok'
16023	    if test yes = "$with_gnu_ld"; then
16024	      # We only use this code for GNU lds that support --whole-archive.
16025	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16026	    else
16027	      # Exported symbols can be pulled into shared objects from archives
16028	      whole_archive_flag_spec_CXX='$convenience'
16029	    fi
16030	    archive_cmds_need_lc_CXX=yes
16031	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16032	    # -brtl affects multiple linker settings, -berok does not and is overridden later
16033	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16034	    if test svr4 != "$with_aix_soname"; then
16035	      # This is similar to how AIX traditionally builds its shared
16036	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16037	      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'
16038	    fi
16039	    if test aix != "$with_aix_soname"; then
16040	      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'
16041	    else
16042	      # used by -dlpreopen to get the symbols
16043	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16044	    fi
16045	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16046          fi
16047        fi
16048        ;;
16049
16050      beos*)
16051	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16052	  allow_undefined_flag_CXX=unsupported
16053	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16054	  # support --undefined.  This deserves some investigation.  FIXME
16055	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16056	else
16057	  ld_shlibs_CXX=no
16058	fi
16059	;;
16060
16061      chorus*)
16062        case $cc_basename in
16063          *)
16064	  # FIXME: insert proper C++ library support
16065	  ld_shlibs_CXX=no
16066	  ;;
16067        esac
16068        ;;
16069
16070      cygwin* | mingw* | pw32* | cegcc*)
16071	case $GXX,$cc_basename in
16072	,cl* | no,cl* | ,icl* | no,icl*)
16073	  # Native MSVC or ICC
16074	  # hardcode_libdir_flag_spec is actually meaningless, as there is
16075	  # no search path for DLLs.
16076	  hardcode_libdir_flag_spec_CXX=' '
16077	  allow_undefined_flag_CXX=unsupported
16078	  always_export_symbols_CXX=yes
16079	  file_list_spec_CXX='@'
16080	  # Tell ltmain to make .lib files, not .a files.
16081	  libext=lib
16082	  # Tell ltmain to make .dll files, not .so files.
16083	  shrext_cmds=.dll
16084	  # FIXME: Setting linknames here is a bad hack.
16085	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16086	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16087              cp "$export_symbols" "$output_objdir/$soname.def";
16088              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16089            else
16090              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16091            fi~
16092            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16093            linknames='
16094	  # The linker will not automatically build a static lib if we build a DLL.
16095	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16096	  enable_shared_with_static_runtimes_CXX=yes
16097	  # Don't use ranlib
16098	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
16099	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16100            lt_tool_outputfile="@TOOL_OUTPUT@"~
16101            case $lt_outputfile in
16102              *.exe|*.EXE) ;;
16103              *)
16104                lt_outputfile=$lt_outputfile.exe
16105                lt_tool_outputfile=$lt_tool_outputfile.exe
16106                ;;
16107            esac~
16108            func_to_tool_file "$lt_outputfile"~
16109            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16110              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16111              $RM "$lt_outputfile.manifest";
16112            fi'
16113	  ;;
16114	*)
16115	  # g++
16116	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16117	  # as there is no search path for DLLs.
16118	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16119	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16120	  allow_undefined_flag_CXX=unsupported
16121	  always_export_symbols_CXX=no
16122	  enable_shared_with_static_runtimes_CXX=yes
16123
16124	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16125	    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'
16126	    # If the export-symbols file already is a .def file, use it as
16127	    # is; otherwise, prepend EXPORTS...
16128	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16129              cp $export_symbols $output_objdir/$soname.def;
16130            else
16131              echo EXPORTS > $output_objdir/$soname.def;
16132              cat $export_symbols >> $output_objdir/$soname.def;
16133            fi~
16134            $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'
16135	  else
16136	    ld_shlibs_CXX=no
16137	  fi
16138	  ;;
16139	esac
16140	;;
16141      darwin* | rhapsody*)
16142
16143
16144  archive_cmds_need_lc_CXX=no
16145  hardcode_direct_CXX=no
16146  hardcode_automatic_CXX=yes
16147  hardcode_shlibpath_var_CXX=unsupported
16148  if test yes = "$lt_cv_ld_force_load"; then
16149    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\"`'
16150
16151  else
16152    whole_archive_flag_spec_CXX=''
16153  fi
16154  link_all_deplibs_CXX=yes
16155  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16156  case $cc_basename in
16157     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16158     *) _lt_dar_can_shared=$GCC ;;
16159  esac
16160  if test yes = "$_lt_dar_can_shared"; then
16161    output_verbose_link_cmd=func_echo_all
16162    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"
16163    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16164    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"
16165    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"
16166       if test yes != "$lt_cv_apple_cc_single_mod"; then
16167      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"
16168      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"
16169    fi
16170
16171  else
16172  ld_shlibs_CXX=no
16173  fi
16174
16175	;;
16176
16177      os2*)
16178	hardcode_libdir_flag_spec_CXX='-L$libdir'
16179	hardcode_minus_L_CXX=yes
16180	allow_undefined_flag_CXX=unsupported
16181	shrext_cmds=.dll
16182	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16183	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16184	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16185	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16186	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16187	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16188	  emximp -o $lib $output_objdir/$libname.def'
16189	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16190	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16191	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16192	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16193	  prefix_cmds="$SED"~
16194	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
16195	    prefix_cmds="$prefix_cmds -e 1d";
16196	  fi~
16197	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16198	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16199	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16200	  emximp -o $lib $output_objdir/$libname.def'
16201	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16202	enable_shared_with_static_runtimes_CXX=yes
16203	file_list_spec_CXX='@'
16204	;;
16205
16206      dgux*)
16207        case $cc_basename in
16208          ec++*)
16209	    # FIXME: insert proper C++ library support
16210	    ld_shlibs_CXX=no
16211	    ;;
16212          ghcx*)
16213	    # Green Hills C++ Compiler
16214	    # FIXME: insert proper C++ library support
16215	    ld_shlibs_CXX=no
16216	    ;;
16217          *)
16218	    # FIXME: insert proper C++ library support
16219	    ld_shlibs_CXX=no
16220	    ;;
16221        esac
16222        ;;
16223
16224      freebsd2.*)
16225        # C++ shared libraries reported to be fairly broken before
16226	# switch to ELF
16227        ld_shlibs_CXX=no
16228        ;;
16229
16230      freebsd-elf*)
16231        archive_cmds_need_lc_CXX=no
16232        ;;
16233
16234      freebsd* | dragonfly*)
16235        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16236        # conventions
16237        ld_shlibs_CXX=yes
16238        ;;
16239
16240      haiku*)
16241        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16242        link_all_deplibs_CXX=yes
16243        ;;
16244
16245      hpux9*)
16246        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16247        hardcode_libdir_separator_CXX=:
16248        export_dynamic_flag_spec_CXX='$wl-E'
16249        hardcode_direct_CXX=yes
16250        hardcode_minus_L_CXX=yes # Not in the search PATH,
16251				             # but as the default
16252				             # location of the library.
16253
16254        case $cc_basename in
16255          CC*)
16256            # FIXME: insert proper C++ library support
16257            ld_shlibs_CXX=no
16258            ;;
16259          aCC*)
16260            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'
16261            # Commands to make compiler produce verbose output that lists
16262            # what "hidden" libraries, object files and flags are used when
16263            # linking a shared library.
16264            #
16265            # There doesn't appear to be a way to prevent this compiler from
16266            # explicitly linking system object files so we need to strip them
16267            # from the output so that they don't get included in the library
16268            # dependencies.
16269            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"'
16270            ;;
16271          *)
16272            if test yes = "$GXX"; then
16273              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'
16274            else
16275              # FIXME: insert proper C++ library support
16276              ld_shlibs_CXX=no
16277            fi
16278            ;;
16279        esac
16280        ;;
16281
16282      hpux10*|hpux11*)
16283        if test no = "$with_gnu_ld"; then
16284	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16285	  hardcode_libdir_separator_CXX=:
16286
16287          case $host_cpu in
16288            hppa*64*|ia64*)
16289              ;;
16290            *)
16291	      export_dynamic_flag_spec_CXX='$wl-E'
16292              ;;
16293          esac
16294        fi
16295        case $host_cpu in
16296          hppa*64*|ia64*)
16297            hardcode_direct_CXX=no
16298            hardcode_shlibpath_var_CXX=no
16299            ;;
16300          *)
16301            hardcode_direct_CXX=yes
16302            hardcode_direct_absolute_CXX=yes
16303            hardcode_minus_L_CXX=yes # Not in the search PATH,
16304					         # but as the default
16305					         # location of the library.
16306            ;;
16307        esac
16308
16309        case $cc_basename in
16310          CC*)
16311	    # FIXME: insert proper C++ library support
16312	    ld_shlibs_CXX=no
16313	    ;;
16314          aCC*)
16315	    case $host_cpu in
16316	      hppa*64*)
16317	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16318	        ;;
16319	      ia64*)
16320	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16321	        ;;
16322	      *)
16323	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16324	        ;;
16325	    esac
16326	    # Commands to make compiler produce verbose output that lists
16327	    # what "hidden" libraries, object files and flags are used when
16328	    # linking a shared library.
16329	    #
16330	    # There doesn't appear to be a way to prevent this compiler from
16331	    # explicitly linking system object files so we need to strip them
16332	    # from the output so that they don't get included in the library
16333	    # dependencies.
16334	    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"'
16335	    ;;
16336          *)
16337	    if test yes = "$GXX"; then
16338	      if test no = "$with_gnu_ld"; then
16339	        case $host_cpu in
16340	          hppa*64*)
16341	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16342	            ;;
16343	          ia64*)
16344	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16345	            ;;
16346	          *)
16347	            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'
16348	            ;;
16349	        esac
16350	      fi
16351	    else
16352	      # FIXME: insert proper C++ library support
16353	      ld_shlibs_CXX=no
16354	    fi
16355	    ;;
16356        esac
16357        ;;
16358
16359      interix[3-9]*)
16360	hardcode_direct_CXX=no
16361	hardcode_shlibpath_var_CXX=no
16362	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16363	export_dynamic_flag_spec_CXX='$wl-E'
16364	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16365	# Instead, shared libraries are loaded at an image base (0x10000000 by
16366	# default) and relocated if they conflict, which is a slow very memory
16367	# consuming and fragmenting process.  To avoid this, we pick a random,
16368	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16369	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16370	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'
16371	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'
16372	;;
16373      irix5* | irix6*)
16374        case $cc_basename in
16375          CC*)
16376	    # SGI C++
16377	    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'
16378
16379	    # Archives containing C++ object files must be created using
16380	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16381	    # necessary to make sure instantiated templates are included
16382	    # in the archive.
16383	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16384	    ;;
16385          *)
16386	    if test yes = "$GXX"; then
16387	      if test no = "$with_gnu_ld"; then
16388	        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'
16389	      else
16390	        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'
16391	      fi
16392	    fi
16393	    link_all_deplibs_CXX=yes
16394	    ;;
16395        esac
16396        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16397        hardcode_libdir_separator_CXX=:
16398        inherit_rpath_CXX=yes
16399        ;;
16400
16401      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16402        case $cc_basename in
16403          KCC*)
16404	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16405
16406	    # KCC will only create a shared library if the output file
16407	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16408	    # to its proper name (with version) after linking.
16409	    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'
16410	    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'
16411	    # Commands to make compiler produce verbose output that lists
16412	    # what "hidden" libraries, object files and flags are used when
16413	    # linking a shared library.
16414	    #
16415	    # There doesn't appear to be a way to prevent this compiler from
16416	    # explicitly linking system object files so we need to strip them
16417	    # from the output so that they don't get included in the library
16418	    # dependencies.
16419	    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"'
16420
16421	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16422	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16423
16424	    # Archives containing C++ object files must be created using
16425	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16426	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16427	    ;;
16428	  icpc* | ecpc* )
16429	    # Intel C++
16430	    with_gnu_ld=yes
16431	    # version 8.0 and above of icpc choke on multiply defined symbols
16432	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16433	    # earlier do not add the objects themselves.
16434	    case `$CC -V 2>&1` in
16435	      *"Version 7."*)
16436	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16437		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'
16438		;;
16439	      *)  # Version 8.0 or newer
16440	        tmp_idyn=
16441	        case $host_cpu in
16442		  ia64*) tmp_idyn=' -i_dynamic';;
16443		esac
16444	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16445		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'
16446		;;
16447	    esac
16448	    archive_cmds_need_lc_CXX=no
16449	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16450	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16451	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16452	    ;;
16453          pgCC* | pgcpp*)
16454            # Portland Group C++ compiler
16455	    case `$CC -V` in
16456	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16457	      prelink_cmds_CXX='tpldir=Template.dir~
16458               rm -rf $tpldir~
16459               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16460               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16461	      old_archive_cmds_CXX='tpldir=Template.dir~
16462                rm -rf $tpldir~
16463                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16464                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16465                $RANLIB $oldlib'
16466	      archive_cmds_CXX='tpldir=Template.dir~
16467                rm -rf $tpldir~
16468                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16469                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16470	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16471                rm -rf $tpldir~
16472                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16473                $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'
16474	      ;;
16475	    *) # Version 6 and above use weak symbols
16476	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16477	      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'
16478	      ;;
16479	    esac
16480
16481	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16482	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16483	    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'
16484            ;;
16485	  cxx*)
16486	    # Compaq C++
16487	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16488	    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'
16489
16490	    runpath_var=LD_RUN_PATH
16491	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16492	    hardcode_libdir_separator_CXX=:
16493
16494	    # Commands to make compiler produce verbose output that lists
16495	    # what "hidden" libraries, object files and flags are used when
16496	    # linking a shared library.
16497	    #
16498	    # There doesn't appear to be a way to prevent this compiler from
16499	    # explicitly linking system object files so we need to strip them
16500	    # from the output so that they don't get included in the library
16501	    # dependencies.
16502	    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'
16503	    ;;
16504	  xl* | mpixl* | bgxl*)
16505	    # IBM XL 8.0 on PPC, with GNU ld
16506	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16507	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16508	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16509	    if test yes = "$supports_anon_versioning"; then
16510	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16511                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16512                echo "local: *; };" >> $output_objdir/$libname.ver~
16513                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16514	    fi
16515	    ;;
16516	  *)
16517	    case `$CC -V 2>&1 | sed 5q` in
16518	    *Sun\ C*)
16519	      # Sun C++ 5.9
16520	      no_undefined_flag_CXX=' -zdefs'
16521	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16522	      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'
16523	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16524	      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'
16525	      compiler_needs_object_CXX=yes
16526
16527	      # Not sure whether something based on
16528	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16529	      # would be better.
16530	      output_verbose_link_cmd='func_echo_all'
16531
16532	      # Archives containing C++ object files must be created using
16533	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16534	      # necessary to make sure instantiated templates are included
16535	      # in the archive.
16536	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16537	      ;;
16538	    esac
16539	    ;;
16540	esac
16541	;;
16542
16543      lynxos*)
16544        # FIXME: insert proper C++ library support
16545	ld_shlibs_CXX=no
16546	;;
16547
16548      m88k*)
16549        # FIXME: insert proper C++ library support
16550        ld_shlibs_CXX=no
16551	;;
16552
16553      mvs*)
16554        case $cc_basename in
16555          cxx*)
16556	    # FIXME: insert proper C++ library support
16557	    ld_shlibs_CXX=no
16558	    ;;
16559	  *)
16560	    # FIXME: insert proper C++ library support
16561	    ld_shlibs_CXX=no
16562	    ;;
16563	esac
16564	;;
16565
16566      netbsd*)
16567        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16568	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16569	  wlarc=
16570	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16571	  hardcode_direct_CXX=yes
16572	  hardcode_shlibpath_var_CXX=no
16573	fi
16574	# Workaround some broken pre-1.5 toolchains
16575	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16576	;;
16577
16578      *nto* | *qnx*)
16579        ld_shlibs_CXX=yes
16580	;;
16581
16582      openbsd* | bitrig*)
16583	if test -f /usr/libexec/ld.so; then
16584	  hardcode_direct_CXX=yes
16585	  hardcode_shlibpath_var_CXX=no
16586	  hardcode_direct_absolute_CXX=yes
16587	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16588	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16589	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16590	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16591	    export_dynamic_flag_spec_CXX='$wl-E'
16592	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16593	  fi
16594	  output_verbose_link_cmd=func_echo_all
16595	else
16596	  ld_shlibs_CXX=no
16597	fi
16598	;;
16599
16600      osf3* | osf4* | osf5*)
16601        case $cc_basename in
16602          KCC*)
16603	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16604
16605	    # KCC will only create a shared library if the output file
16606	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16607	    # to its proper name (with version) after linking.
16608	    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'
16609
16610	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16611	    hardcode_libdir_separator_CXX=:
16612
16613	    # Archives containing C++ object files must be created using
16614	    # the KAI C++ compiler.
16615	    case $host in
16616	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16617	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16618	    esac
16619	    ;;
16620          RCC*)
16621	    # Rational C++ 2.4.1
16622	    # FIXME: insert proper C++ library support
16623	    ld_shlibs_CXX=no
16624	    ;;
16625          cxx*)
16626	    case $host in
16627	      osf3*)
16628	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16629	        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'
16630	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16631		;;
16632	      *)
16633	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16634	        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'
16635	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16636                  echo "-hidden">> $lib.exp~
16637                  $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~
16638                  $RM $lib.exp'
16639	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16640		;;
16641	    esac
16642
16643	    hardcode_libdir_separator_CXX=:
16644
16645	    # Commands to make compiler produce verbose output that lists
16646	    # what "hidden" libraries, object files and flags are used when
16647	    # linking a shared library.
16648	    #
16649	    # There doesn't appear to be a way to prevent this compiler from
16650	    # explicitly linking system object files so we need to strip them
16651	    # from the output so that they don't get included in the library
16652	    # dependencies.
16653	    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"'
16654	    ;;
16655	  *)
16656	    if test yes,no = "$GXX,$with_gnu_ld"; then
16657	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16658	      case $host in
16659	        osf3*)
16660	          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'
16661		  ;;
16662	        *)
16663	          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'
16664		  ;;
16665	      esac
16666
16667	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16668	      hardcode_libdir_separator_CXX=:
16669
16670	      # Commands to make compiler produce verbose output that lists
16671	      # what "hidden" libraries, object files and flags are used when
16672	      # linking a shared library.
16673	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16674
16675	    else
16676	      # FIXME: insert proper C++ library support
16677	      ld_shlibs_CXX=no
16678	    fi
16679	    ;;
16680        esac
16681        ;;
16682
16683      psos*)
16684        # FIXME: insert proper C++ library support
16685        ld_shlibs_CXX=no
16686        ;;
16687
16688      sunos4*)
16689        case $cc_basename in
16690          CC*)
16691	    # Sun C++ 4.x
16692	    # FIXME: insert proper C++ library support
16693	    ld_shlibs_CXX=no
16694	    ;;
16695          lcc*)
16696	    # Lucid
16697	    # FIXME: insert proper C++ library support
16698	    ld_shlibs_CXX=no
16699	    ;;
16700          *)
16701	    # FIXME: insert proper C++ library support
16702	    ld_shlibs_CXX=no
16703	    ;;
16704        esac
16705        ;;
16706
16707      solaris*)
16708        case $cc_basename in
16709          CC* | sunCC*)
16710	    # Sun C++ 4.2, 5.x and Centerline C++
16711            archive_cmds_need_lc_CXX=yes
16712	    no_undefined_flag_CXX=' -zdefs'
16713	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16714	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16715              $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'
16716
16717	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16718	    hardcode_shlibpath_var_CXX=no
16719	    case $host_os in
16720	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16721	      *)
16722		# The compiler driver will combine and reorder linker options,
16723		# but understands '-z linker_flag'.
16724	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16725		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16726	        ;;
16727	    esac
16728	    link_all_deplibs_CXX=yes
16729
16730	    output_verbose_link_cmd='func_echo_all'
16731
16732	    # Archives containing C++ object files must be created using
16733	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16734	    # necessary to make sure instantiated templates are included
16735	    # in the archive.
16736	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16737	    ;;
16738          gcx*)
16739	    # Green Hills C++ Compiler
16740	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16741
16742	    # The C++ compiler must be used to create the archive.
16743	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16744	    ;;
16745          *)
16746	    # GNU C++ compiler with Solaris linker
16747	    if test yes,no = "$GXX,$with_gnu_ld"; then
16748	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16749	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16750	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16751	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16752                  $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'
16753
16754	        # Commands to make compiler produce verbose output that lists
16755	        # what "hidden" libraries, object files and flags are used when
16756	        # linking a shared library.
16757	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16758	      else
16759	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16760	        # platform.
16761	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16762	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16763                  $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'
16764
16765	        # Commands to make compiler produce verbose output that lists
16766	        # what "hidden" libraries, object files and flags are used when
16767	        # linking a shared library.
16768	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16769	      fi
16770
16771	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16772	      case $host_os in
16773		solaris2.[0-5] | solaris2.[0-5].*) ;;
16774		*)
16775		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16776		  ;;
16777	      esac
16778	    fi
16779	    ;;
16780        esac
16781        ;;
16782
16783    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16784      no_undefined_flag_CXX='$wl-z,text'
16785      archive_cmds_need_lc_CXX=no
16786      hardcode_shlibpath_var_CXX=no
16787      runpath_var='LD_RUN_PATH'
16788
16789      case $cc_basename in
16790        CC*)
16791	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16792	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16793	  ;;
16794	*)
16795	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16796	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16797	  ;;
16798      esac
16799      ;;
16800
16801      sysv5* | sco3.2v5* | sco5v6*)
16802	# Note: We CANNOT use -z defs as we might desire, because we do not
16803	# link with -lc, and that would cause any symbols used from libc to
16804	# always be unresolved, which means just about no library would
16805	# ever link correctly.  If we're not using GNU ld we use -z text
16806	# though, which does catch some bad symbols but isn't as heavy-handed
16807	# as -z defs.
16808	no_undefined_flag_CXX='$wl-z,text'
16809	allow_undefined_flag_CXX='$wl-z,nodefs'
16810	archive_cmds_need_lc_CXX=no
16811	hardcode_shlibpath_var_CXX=no
16812	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16813	hardcode_libdir_separator_CXX=':'
16814	link_all_deplibs_CXX=yes
16815	export_dynamic_flag_spec_CXX='$wl-Bexport'
16816	runpath_var='LD_RUN_PATH'
16817
16818	case $cc_basename in
16819          CC*)
16820	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16821	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16822	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16823              '"$old_archive_cmds_CXX"
16824	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16825              '"$reload_cmds_CXX"
16826	    ;;
16827	  *)
16828	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16829	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16830	    ;;
16831	esac
16832      ;;
16833
16834      tandem*)
16835        case $cc_basename in
16836          NCC*)
16837	    # NonStop-UX NCC 3.20
16838	    # FIXME: insert proper C++ library support
16839	    ld_shlibs_CXX=no
16840	    ;;
16841          *)
16842	    # FIXME: insert proper C++ library support
16843	    ld_shlibs_CXX=no
16844	    ;;
16845        esac
16846        ;;
16847
16848      vxworks*)
16849        # FIXME: insert proper C++ library support
16850        ld_shlibs_CXX=no
16851        ;;
16852
16853      *)
16854        # FIXME: insert proper C++ library support
16855        ld_shlibs_CXX=no
16856        ;;
16857    esac
16858
16859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16860$as_echo "$ld_shlibs_CXX" >&6; }
16861    test no = "$ld_shlibs_CXX" && can_build_shared=no
16862
16863    GCC_CXX=$GXX
16864    LD_CXX=$LD
16865
16866    ## CAVEAT EMPTOR:
16867    ## There is no encapsulation within the following macros, do not change
16868    ## the running order or otherwise move them around unless you know exactly
16869    ## what you are doing...
16870    # Dependencies to place before and after the object being linked:
16871predep_objects_CXX=
16872postdep_objects_CXX=
16873predeps_CXX=
16874postdeps_CXX=
16875compiler_lib_search_path_CXX=
16876
16877cat > conftest.$ac_ext <<_LT_EOF
16878class Foo
16879{
16880public:
16881  Foo (void) { a = 0; }
16882private:
16883  int a;
16884};
16885_LT_EOF
16886
16887
16888_lt_libdeps_save_CFLAGS=$CFLAGS
16889case "$CC $CFLAGS " in #(
16890*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16891*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16892*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16893esac
16894
16895if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16896  (eval $ac_compile) 2>&5
16897  ac_status=$?
16898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16899  test $ac_status = 0; }; then
16900  # Parse the compiler output and extract the necessary
16901  # objects, libraries and library flags.
16902
16903  # Sentinel used to keep track of whether or not we are before
16904  # the conftest object file.
16905  pre_test_object_deps_done=no
16906
16907  for p in `eval "$output_verbose_link_cmd"`; do
16908    case $prev$p in
16909
16910    -L* | -R* | -l*)
16911       # Some compilers place space between "-{L,R}" and the path.
16912       # Remove the space.
16913       if test x-L = "$p" ||
16914          test x-R = "$p"; then
16915	 prev=$p
16916	 continue
16917       fi
16918
16919       # Expand the sysroot to ease extracting the directories later.
16920       if test -z "$prev"; then
16921         case $p in
16922         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16923         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16924         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16925         esac
16926       fi
16927       case $p in
16928       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16929       esac
16930       if test no = "$pre_test_object_deps_done"; then
16931	 case $prev in
16932	 -L | -R)
16933	   # Internal compiler library paths should come after those
16934	   # provided the user.  The postdeps already come after the
16935	   # user supplied libs so there is no need to process them.
16936	   if test -z "$compiler_lib_search_path_CXX"; then
16937	     compiler_lib_search_path_CXX=$prev$p
16938	   else
16939	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16940	   fi
16941	   ;;
16942	 # The "-l" case would never come before the object being
16943	 # linked, so don't bother handling this case.
16944	 esac
16945       else
16946	 if test -z "$postdeps_CXX"; then
16947	   postdeps_CXX=$prev$p
16948	 else
16949	   postdeps_CXX="${postdeps_CXX} $prev$p"
16950	 fi
16951       fi
16952       prev=
16953       ;;
16954
16955    *.lto.$objext) ;; # Ignore GCC LTO objects
16956    *.$objext)
16957       # This assumes that the test object file only shows up
16958       # once in the compiler output.
16959       if test "$p" = "conftest.$objext"; then
16960	 pre_test_object_deps_done=yes
16961	 continue
16962       fi
16963
16964       if test no = "$pre_test_object_deps_done"; then
16965	 if test -z "$predep_objects_CXX"; then
16966	   predep_objects_CXX=$p
16967	 else
16968	   predep_objects_CXX="$predep_objects_CXX $p"
16969	 fi
16970       else
16971	 if test -z "$postdep_objects_CXX"; then
16972	   postdep_objects_CXX=$p
16973	 else
16974	   postdep_objects_CXX="$postdep_objects_CXX $p"
16975	 fi
16976       fi
16977       ;;
16978
16979    *) ;; # Ignore the rest.
16980
16981    esac
16982  done
16983
16984  # Clean up.
16985  rm -f a.out a.exe
16986else
16987  echo "libtool.m4: error: problem compiling CXX test program"
16988fi
16989
16990$RM -f confest.$objext
16991CFLAGS=$_lt_libdeps_save_CFLAGS
16992
16993# PORTME: override above test on systems where it is broken
16994case $host_os in
16995interix[3-9]*)
16996  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16997  # hack all around it, let's just trust "g++" to DTRT.
16998  predep_objects_CXX=
16999  postdep_objects_CXX=
17000  postdeps_CXX=
17001  ;;
17002esac
17003
17004
17005case " $postdeps_CXX " in
17006*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17007esac
17008 compiler_lib_search_dirs_CXX=
17009if test -n "${compiler_lib_search_path_CXX}"; then
17010 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17011fi
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043    lt_prog_compiler_wl_CXX=
17044lt_prog_compiler_pic_CXX=
17045lt_prog_compiler_static_CXX=
17046
17047
17048  # C++ specific cases for pic, static, wl, etc.
17049  if test yes = "$GXX"; then
17050    lt_prog_compiler_wl_CXX='-Wl,'
17051    lt_prog_compiler_static_CXX='-static'
17052
17053    case $host_os in
17054    aix*)
17055      # All AIX code is PIC.
17056      if test ia64 = "$host_cpu"; then
17057	# AIX 5 now supports IA64 processor
17058	lt_prog_compiler_static_CXX='-Bstatic'
17059      fi
17060      lt_prog_compiler_pic_CXX='-fPIC'
17061      ;;
17062
17063    amigaos*)
17064      case $host_cpu in
17065      powerpc)
17066            # see comment about AmigaOS4 .so support
17067            lt_prog_compiler_pic_CXX='-fPIC'
17068        ;;
17069      m68k)
17070            # FIXME: we need at least 68020 code to build shared libraries, but
17071            # adding the '-m68020' flag to GCC prevents building anything better,
17072            # like '-m68040'.
17073            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17074        ;;
17075      esac
17076      ;;
17077
17078    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17079      # PIC is the default for these OSes.
17080      ;;
17081    mingw* | cygwin* | os2* | pw32* | cegcc*)
17082      # This hack is so that the source file can tell whether it is being
17083      # built for inclusion in a dll (and should export symbols for example).
17084      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17085      # (--disable-auto-import) libraries
17086      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17087      case $host_os in
17088      os2*)
17089	lt_prog_compiler_static_CXX='$wl-static'
17090	;;
17091      esac
17092      ;;
17093    darwin* | rhapsody*)
17094      # PIC is the default on this platform
17095      # Common symbols not allowed in MH_DYLIB files
17096      lt_prog_compiler_pic_CXX='-fno-common'
17097      ;;
17098    *djgpp*)
17099      # DJGPP does not support shared libraries at all
17100      lt_prog_compiler_pic_CXX=
17101      ;;
17102    haiku*)
17103      # PIC is the default for Haiku.
17104      # The "-static" flag exists, but is broken.
17105      lt_prog_compiler_static_CXX=
17106      ;;
17107    interix[3-9]*)
17108      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17109      # Instead, we relocate shared libraries at runtime.
17110      ;;
17111    sysv4*MP*)
17112      if test -d /usr/nec; then
17113	lt_prog_compiler_pic_CXX=-Kconform_pic
17114      fi
17115      ;;
17116    hpux*)
17117      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17118      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17119      # sets the default TLS model and affects inlining.
17120      case $host_cpu in
17121      hppa*64*)
17122	;;
17123      *)
17124	lt_prog_compiler_pic_CXX='-fPIC'
17125	;;
17126      esac
17127      ;;
17128    *qnx* | *nto*)
17129      # QNX uses GNU C++, but need to define -shared option too, otherwise
17130      # it will coredump.
17131      lt_prog_compiler_pic_CXX='-fPIC -shared'
17132      ;;
17133    *)
17134      lt_prog_compiler_pic_CXX='-fPIC'
17135      ;;
17136    esac
17137  else
17138    case $host_os in
17139      aix[4-9]*)
17140	# All AIX code is PIC.
17141	if test ia64 = "$host_cpu"; then
17142	  # AIX 5 now supports IA64 processor
17143	  lt_prog_compiler_static_CXX='-Bstatic'
17144	else
17145	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17146	fi
17147	;;
17148      chorus*)
17149	case $cc_basename in
17150	cxch68*)
17151	  # Green Hills C++ Compiler
17152	  # _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"
17153	  ;;
17154	esac
17155	;;
17156      mingw* | cygwin* | os2* | pw32* | cegcc*)
17157	# This hack is so that the source file can tell whether it is being
17158	# built for inclusion in a dll (and should export symbols for example).
17159	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17160	;;
17161      dgux*)
17162	case $cc_basename in
17163	  ec++*)
17164	    lt_prog_compiler_pic_CXX='-KPIC'
17165	    ;;
17166	  ghcx*)
17167	    # Green Hills C++ Compiler
17168	    lt_prog_compiler_pic_CXX='-pic'
17169	    ;;
17170	  *)
17171	    ;;
17172	esac
17173	;;
17174      freebsd* | dragonfly*)
17175	# FreeBSD uses GNU C++
17176	;;
17177      hpux9* | hpux10* | hpux11*)
17178	case $cc_basename in
17179	  CC*)
17180	    lt_prog_compiler_wl_CXX='-Wl,'
17181	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17182	    if test ia64 != "$host_cpu"; then
17183	      lt_prog_compiler_pic_CXX='+Z'
17184	    fi
17185	    ;;
17186	  aCC*)
17187	    lt_prog_compiler_wl_CXX='-Wl,'
17188	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17189	    case $host_cpu in
17190	    hppa*64*|ia64*)
17191	      # +Z the default
17192	      ;;
17193	    *)
17194	      lt_prog_compiler_pic_CXX='+Z'
17195	      ;;
17196	    esac
17197	    ;;
17198	  *)
17199	    ;;
17200	esac
17201	;;
17202      interix*)
17203	# This is c89, which is MS Visual C++ (no shared libs)
17204	# Anyone wants to do a port?
17205	;;
17206      irix5* | irix6* | nonstopux*)
17207	case $cc_basename in
17208	  CC*)
17209	    lt_prog_compiler_wl_CXX='-Wl,'
17210	    lt_prog_compiler_static_CXX='-non_shared'
17211	    # CC pic flag -KPIC is the default.
17212	    ;;
17213	  *)
17214	    ;;
17215	esac
17216	;;
17217      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17218	case $cc_basename in
17219	  KCC*)
17220	    # KAI C++ Compiler
17221	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17222	    lt_prog_compiler_pic_CXX='-fPIC'
17223	    ;;
17224	  ecpc* )
17225	    # old Intel C++ for x86_64, which still supported -KPIC.
17226	    lt_prog_compiler_wl_CXX='-Wl,'
17227	    lt_prog_compiler_pic_CXX='-KPIC'
17228	    lt_prog_compiler_static_CXX='-static'
17229	    ;;
17230	  icpc* )
17231	    # Intel C++, used to be incompatible with GCC.
17232	    # ICC 10 doesn't accept -KPIC any more.
17233	    lt_prog_compiler_wl_CXX='-Wl,'
17234	    lt_prog_compiler_pic_CXX='-fPIC'
17235	    lt_prog_compiler_static_CXX='-static'
17236	    ;;
17237	  pgCC* | pgcpp*)
17238	    # Portland Group C++ compiler
17239	    lt_prog_compiler_wl_CXX='-Wl,'
17240	    lt_prog_compiler_pic_CXX='-fpic'
17241	    lt_prog_compiler_static_CXX='-Bstatic'
17242	    ;;
17243	  cxx*)
17244	    # Compaq C++
17245	    # Make sure the PIC flag is empty.  It appears that all Alpha
17246	    # Linux and Compaq Tru64 Unix objects are PIC.
17247	    lt_prog_compiler_pic_CXX=
17248	    lt_prog_compiler_static_CXX='-non_shared'
17249	    ;;
17250	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17251	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17252	    lt_prog_compiler_wl_CXX='-Wl,'
17253	    lt_prog_compiler_pic_CXX='-qpic'
17254	    lt_prog_compiler_static_CXX='-qstaticlink'
17255	    ;;
17256	  *)
17257	    case `$CC -V 2>&1 | sed 5q` in
17258	    *Sun\ C*)
17259	      # Sun C++ 5.9
17260	      lt_prog_compiler_pic_CXX='-KPIC'
17261	      lt_prog_compiler_static_CXX='-Bstatic'
17262	      lt_prog_compiler_wl_CXX='-Qoption ld '
17263	      ;;
17264	    esac
17265	    ;;
17266	esac
17267	;;
17268      lynxos*)
17269	;;
17270      m88k*)
17271	;;
17272      mvs*)
17273	case $cc_basename in
17274	  cxx*)
17275	    lt_prog_compiler_pic_CXX='-W c,exportall'
17276	    ;;
17277	  *)
17278	    ;;
17279	esac
17280	;;
17281      netbsd*)
17282	;;
17283      *qnx* | *nto*)
17284        # QNX uses GNU C++, but need to define -shared option too, otherwise
17285        # it will coredump.
17286        lt_prog_compiler_pic_CXX='-fPIC -shared'
17287        ;;
17288      osf3* | osf4* | osf5*)
17289	case $cc_basename in
17290	  KCC*)
17291	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17292	    ;;
17293	  RCC*)
17294	    # Rational C++ 2.4.1
17295	    lt_prog_compiler_pic_CXX='-pic'
17296	    ;;
17297	  cxx*)
17298	    # Digital/Compaq C++
17299	    lt_prog_compiler_wl_CXX='-Wl,'
17300	    # Make sure the PIC flag is empty.  It appears that all Alpha
17301	    # Linux and Compaq Tru64 Unix objects are PIC.
17302	    lt_prog_compiler_pic_CXX=
17303	    lt_prog_compiler_static_CXX='-non_shared'
17304	    ;;
17305	  *)
17306	    ;;
17307	esac
17308	;;
17309      psos*)
17310	;;
17311      solaris*)
17312	case $cc_basename in
17313	  CC* | sunCC*)
17314	    # Sun C++ 4.2, 5.x and Centerline C++
17315	    lt_prog_compiler_pic_CXX='-KPIC'
17316	    lt_prog_compiler_static_CXX='-Bstatic'
17317	    lt_prog_compiler_wl_CXX='-Qoption ld '
17318	    ;;
17319	  gcx*)
17320	    # Green Hills C++ Compiler
17321	    lt_prog_compiler_pic_CXX='-PIC'
17322	    ;;
17323	  *)
17324	    ;;
17325	esac
17326	;;
17327      sunos4*)
17328	case $cc_basename in
17329	  CC*)
17330	    # Sun C++ 4.x
17331	    lt_prog_compiler_pic_CXX='-pic'
17332	    lt_prog_compiler_static_CXX='-Bstatic'
17333	    ;;
17334	  lcc*)
17335	    # Lucid
17336	    lt_prog_compiler_pic_CXX='-pic'
17337	    ;;
17338	  *)
17339	    ;;
17340	esac
17341	;;
17342      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17343	case $cc_basename in
17344	  CC*)
17345	    lt_prog_compiler_wl_CXX='-Wl,'
17346	    lt_prog_compiler_pic_CXX='-KPIC'
17347	    lt_prog_compiler_static_CXX='-Bstatic'
17348	    ;;
17349	esac
17350	;;
17351      tandem*)
17352	case $cc_basename in
17353	  NCC*)
17354	    # NonStop-UX NCC 3.20
17355	    lt_prog_compiler_pic_CXX='-KPIC'
17356	    ;;
17357	  *)
17358	    ;;
17359	esac
17360	;;
17361      vxworks*)
17362	;;
17363      *)
17364	lt_prog_compiler_can_build_shared_CXX=no
17365	;;
17366    esac
17367  fi
17368
17369case $host_os in
17370  # For platforms that do not support PIC, -DPIC is meaningless:
17371  *djgpp*)
17372    lt_prog_compiler_pic_CXX=
17373    ;;
17374  *)
17375    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17376    ;;
17377esac
17378
17379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17380$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17381if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17382  $as_echo_n "(cached) " >&6
17383else
17384  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17385fi
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17387$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17388lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17389
17390#
17391# Check to make sure the PIC flag actually works.
17392#
17393if test -n "$lt_prog_compiler_pic_CXX"; then
17394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17395$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17396if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17397  $as_echo_n "(cached) " >&6
17398else
17399  lt_cv_prog_compiler_pic_works_CXX=no
17400   ac_outfile=conftest.$ac_objext
17401   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17402   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17403   # Insert the option either (1) after the last *FLAGS variable, or
17404   # (2) before a word containing "conftest.", or (3) at the end.
17405   # Note that $ac_compile itself does not contain backslashes and begins
17406   # with a dollar sign (not a hyphen), so the echo should work correctly.
17407   # The option is referenced via a variable to avoid confusing sed.
17408   lt_compile=`echo "$ac_compile" | $SED \
17409   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17410   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17411   -e 's:$: $lt_compiler_flag:'`
17412   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17413   (eval "$lt_compile" 2>conftest.err)
17414   ac_status=$?
17415   cat conftest.err >&5
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   if (exit $ac_status) && test -s "$ac_outfile"; then
17418     # The compiler can only warn and ignore the option if not recognized
17419     # So say no if there are warnings other than the usual output.
17420     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17421     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17422     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17423       lt_cv_prog_compiler_pic_works_CXX=yes
17424     fi
17425   fi
17426   $RM conftest*
17427
17428fi
17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17430$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17431
17432if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17433    case $lt_prog_compiler_pic_CXX in
17434     "" | " "*) ;;
17435     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17436     esac
17437else
17438    lt_prog_compiler_pic_CXX=
17439     lt_prog_compiler_can_build_shared_CXX=no
17440fi
17441
17442fi
17443
17444
17445
17446
17447
17448#
17449# Check to make sure the static flag actually works.
17450#
17451wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17453$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17454if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17455  $as_echo_n "(cached) " >&6
17456else
17457  lt_cv_prog_compiler_static_works_CXX=no
17458   save_LDFLAGS=$LDFLAGS
17459   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17460   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17461   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17462     # The linker can only warn and ignore the option if not recognized
17463     # So say no if there are warnings
17464     if test -s conftest.err; then
17465       # Append any errors to the config.log.
17466       cat conftest.err 1>&5
17467       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17468       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17469       if diff conftest.exp conftest.er2 >/dev/null; then
17470         lt_cv_prog_compiler_static_works_CXX=yes
17471       fi
17472     else
17473       lt_cv_prog_compiler_static_works_CXX=yes
17474     fi
17475   fi
17476   $RM -r conftest*
17477   LDFLAGS=$save_LDFLAGS
17478
17479fi
17480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17481$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17482
17483if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17484    :
17485else
17486    lt_prog_compiler_static_CXX=
17487fi
17488
17489
17490
17491
17492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17493$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17494if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17495  $as_echo_n "(cached) " >&6
17496else
17497  lt_cv_prog_compiler_c_o_CXX=no
17498   $RM -r conftest 2>/dev/null
17499   mkdir conftest
17500   cd conftest
17501   mkdir out
17502   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17503
17504   lt_compiler_flag="-o out/conftest2.$ac_objext"
17505   # Insert the option either (1) after the last *FLAGS variable, or
17506   # (2) before a word containing "conftest.", or (3) at the end.
17507   # Note that $ac_compile itself does not contain backslashes and begins
17508   # with a dollar sign (not a hyphen), so the echo should work correctly.
17509   lt_compile=`echo "$ac_compile" | $SED \
17510   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17511   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17512   -e 's:$: $lt_compiler_flag:'`
17513   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17514   (eval "$lt_compile" 2>out/conftest.err)
17515   ac_status=$?
17516   cat out/conftest.err >&5
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17519   then
17520     # The compiler can only warn and ignore the option if not recognized
17521     # So say no if there are warnings
17522     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17523     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17524     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17525       lt_cv_prog_compiler_c_o_CXX=yes
17526     fi
17527   fi
17528   chmod u+w . 2>&5
17529   $RM conftest*
17530   # SGI C++ compiler will create directory out/ii_files/ for
17531   # template instantiation
17532   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17533   $RM out/* && rmdir out
17534   cd ..
17535   $RM -r conftest
17536   $RM conftest*
17537
17538fi
17539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17540$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17541
17542
17543
17544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17545$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17546if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17547  $as_echo_n "(cached) " >&6
17548else
17549  lt_cv_prog_compiler_c_o_CXX=no
17550   $RM -r conftest 2>/dev/null
17551   mkdir conftest
17552   cd conftest
17553   mkdir out
17554   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17555
17556   lt_compiler_flag="-o out/conftest2.$ac_objext"
17557   # Insert the option either (1) after the last *FLAGS variable, or
17558   # (2) before a word containing "conftest.", or (3) at the end.
17559   # Note that $ac_compile itself does not contain backslashes and begins
17560   # with a dollar sign (not a hyphen), so the echo should work correctly.
17561   lt_compile=`echo "$ac_compile" | $SED \
17562   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17563   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17564   -e 's:$: $lt_compiler_flag:'`
17565   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17566   (eval "$lt_compile" 2>out/conftest.err)
17567   ac_status=$?
17568   cat out/conftest.err >&5
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17571   then
17572     # The compiler can only warn and ignore the option if not recognized
17573     # So say no if there are warnings
17574     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17575     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17576     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17577       lt_cv_prog_compiler_c_o_CXX=yes
17578     fi
17579   fi
17580   chmod u+w . 2>&5
17581   $RM conftest*
17582   # SGI C++ compiler will create directory out/ii_files/ for
17583   # template instantiation
17584   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17585   $RM out/* && rmdir out
17586   cd ..
17587   $RM -r conftest
17588   $RM conftest*
17589
17590fi
17591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17592$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17593
17594
17595
17596
17597hard_links=nottested
17598if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17599  # do not overwrite the value of need_locks provided by the user
17600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17601$as_echo_n "checking if we can lock with hard links... " >&6; }
17602  hard_links=yes
17603  $RM conftest*
17604  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17605  touch conftest.a
17606  ln conftest.a conftest.b 2>&5 || hard_links=no
17607  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17609$as_echo "$hard_links" >&6; }
17610  if test no = "$hard_links"; then
17611    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17612$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17613    need_locks=warn
17614  fi
17615else
17616  need_locks=no
17617fi
17618
17619
17620
17621    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17622$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17623
17624  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17625  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17626  case $host_os in
17627  aix[4-9]*)
17628    # If we're using GNU nm, then we don't want the "-C" option.
17629    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17630    # Without the "-l" option, or with the "-B" option, AIX nm treats
17631    # weak defined symbols like other global defined symbols, whereas
17632    # GNU nm marks them as "W".
17633    # While the 'weak' keyword is ignored in the Export File, we need
17634    # it in the Import File for the 'aix-soname' feature, so we have
17635    # to replace the "-B" option with "-P" for AIX nm.
17636    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17637      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'
17638    else
17639      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 == "L") || (\$ 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'
17640    fi
17641    ;;
17642  pw32*)
17643    export_symbols_cmds_CXX=$ltdll_cmds
17644    ;;
17645  cygwin* | mingw* | cegcc*)
17646    case $cc_basename in
17647    cl* | icl*)
17648      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17649      ;;
17650    *)
17651      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'
17652      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17653      ;;
17654    esac
17655    ;;
17656  *)
17657    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17658    ;;
17659  esac
17660
17661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17662$as_echo "$ld_shlibs_CXX" >&6; }
17663test no = "$ld_shlibs_CXX" && can_build_shared=no
17664
17665with_gnu_ld_CXX=$with_gnu_ld
17666
17667
17668
17669
17670
17671
17672#
17673# Do we need to explicitly link libc?
17674#
17675case "x$archive_cmds_need_lc_CXX" in
17676x|xyes)
17677  # Assume -lc should be added
17678  archive_cmds_need_lc_CXX=yes
17679
17680  if test yes,yes = "$GCC,$enable_shared"; then
17681    case $archive_cmds_CXX in
17682    *'~'*)
17683      # FIXME: we may have to deal with multi-command sequences.
17684      ;;
17685    '$CC '*)
17686      # Test whether the compiler implicitly links with -lc since on some
17687      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17688      # to ld, don't add -lc before -lgcc.
17689      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17690$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17691if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17692  $as_echo_n "(cached) " >&6
17693else
17694  $RM conftest*
17695	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17696
17697	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17698  (eval $ac_compile) 2>&5
17699  ac_status=$?
17700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17701  test $ac_status = 0; } 2>conftest.err; then
17702	  soname=conftest
17703	  lib=conftest
17704	  libobjs=conftest.$ac_objext
17705	  deplibs=
17706	  wl=$lt_prog_compiler_wl_CXX
17707	  pic_flag=$lt_prog_compiler_pic_CXX
17708	  compiler_flags=-v
17709	  linker_flags=-v
17710	  verstring=
17711	  output_objdir=.
17712	  libname=conftest
17713	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17714	  allow_undefined_flag_CXX=
17715	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17716  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17717  ac_status=$?
17718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17719  test $ac_status = 0; }
17720	  then
17721	    lt_cv_archive_cmds_need_lc_CXX=no
17722	  else
17723	    lt_cv_archive_cmds_need_lc_CXX=yes
17724	  fi
17725	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17726	else
17727	  cat conftest.err 1>&5
17728	fi
17729	$RM conftest*
17730
17731fi
17732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17733$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17734      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17735      ;;
17736    esac
17737  fi
17738  ;;
17739esac
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17803$as_echo_n "checking dynamic linker characteristics... " >&6; }
17804
17805library_names_spec=
17806libname_spec='lib$name'
17807soname_spec=
17808shrext_cmds=.so
17809postinstall_cmds=
17810postuninstall_cmds=
17811finish_cmds=
17812finish_eval=
17813shlibpath_var=
17814shlibpath_overrides_runpath=unknown
17815version_type=none
17816dynamic_linker="$host_os ld.so"
17817sys_lib_dlsearch_path_spec="/lib /usr/lib"
17818need_lib_prefix=unknown
17819hardcode_into_libs=no
17820
17821# when you set need_version to no, make sure it does not cause -set_version
17822# flags to be left without arguments
17823need_version=unknown
17824
17825
17826
17827case $host_os in
17828aix3*)
17829  version_type=linux # correct to gnu/linux during the next big refactor
17830  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17831  shlibpath_var=LIBPATH
17832
17833  # AIX 3 has no versioning support, so we append a major version to the name.
17834  soname_spec='$libname$release$shared_ext$major'
17835  ;;
17836
17837aix[4-9]*)
17838  version_type=linux # correct to gnu/linux during the next big refactor
17839  need_lib_prefix=no
17840  need_version=no
17841  hardcode_into_libs=yes
17842  if test ia64 = "$host_cpu"; then
17843    # AIX 5 supports IA64
17844    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17845    shlibpath_var=LD_LIBRARY_PATH
17846  else
17847    # With GCC up to 2.95.x, collect2 would create an import file
17848    # for dependence libraries.  The import file would start with
17849    # the line '#! .'.  This would cause the generated library to
17850    # depend on '.', always an invalid library.  This was fixed in
17851    # development snapshots of GCC prior to 3.0.
17852    case $host_os in
17853      aix4 | aix4.[01] | aix4.[01].*)
17854      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17855	   echo ' yes '
17856	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17857	:
17858      else
17859	can_build_shared=no
17860      fi
17861      ;;
17862    esac
17863    # Using Import Files as archive members, it is possible to support
17864    # filename-based versioning of shared library archives on AIX. While
17865    # this would work for both with and without runtime linking, it will
17866    # prevent static linking of such archives. So we do filename-based
17867    # shared library versioning with .so extension only, which is used
17868    # when both runtime linking and shared linking is enabled.
17869    # Unfortunately, runtime linking may impact performance, so we do
17870    # not want this to be the default eventually. Also, we use the
17871    # versioned .so libs for executables only if there is the -brtl
17872    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17873    # To allow for filename-based versioning support, we need to create
17874    # libNAME.so.V as an archive file, containing:
17875    # *) an Import File, referring to the versioned filename of the
17876    #    archive as well as the shared archive member, telling the
17877    #    bitwidth (32 or 64) of that shared object, and providing the
17878    #    list of exported symbols of that shared object, eventually
17879    #    decorated with the 'weak' keyword
17880    # *) the shared object with the F_LOADONLY flag set, to really avoid
17881    #    it being seen by the linker.
17882    # At run time we better use the real file rather than another symlink,
17883    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17884
17885    case $with_aix_soname,$aix_use_runtimelinking in
17886    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17887    # soname into executable. Probably we can add versioning support to
17888    # collect2, so additional links can be useful in future.
17889    aix,yes) # traditional libtool
17890      dynamic_linker='AIX unversionable lib.so'
17891      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17892      # instead of lib<name>.a to let people know that these are not
17893      # typical AIX shared libraries.
17894      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17895      ;;
17896    aix,no) # traditional AIX only
17897      dynamic_linker='AIX lib.a(lib.so.V)'
17898      # We preserve .a as extension for shared libraries through AIX4.2
17899      # and later when we are not doing run time linking.
17900      library_names_spec='$libname$release.a $libname.a'
17901      soname_spec='$libname$release$shared_ext$major'
17902      ;;
17903    svr4,*) # full svr4 only
17904      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17905      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17906      # We do not specify a path in Import Files, so LIBPATH fires.
17907      shlibpath_overrides_runpath=yes
17908      ;;
17909    *,yes) # both, prefer svr4
17910      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17911      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17912      # unpreferred sharedlib libNAME.a needs extra handling
17913      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"'
17914      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"'
17915      # We do not specify a path in Import Files, so LIBPATH fires.
17916      shlibpath_overrides_runpath=yes
17917      ;;
17918    *,no) # both, prefer aix
17919      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17920      library_names_spec='$libname$release.a $libname.a'
17921      soname_spec='$libname$release$shared_ext$major'
17922      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17923      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)'
17924      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"'
17925      ;;
17926    esac
17927    shlibpath_var=LIBPATH
17928  fi
17929  ;;
17930
17931amigaos*)
17932  case $host_cpu in
17933  powerpc)
17934    # Since July 2007 AmigaOS4 officially supports .so libraries.
17935    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17936    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17937    ;;
17938  m68k)
17939    library_names_spec='$libname.ixlibrary $libname.a'
17940    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17941    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'
17942    ;;
17943  esac
17944  ;;
17945
17946beos*)
17947  library_names_spec='$libname$shared_ext'
17948  dynamic_linker="$host_os ld.so"
17949  shlibpath_var=LIBRARY_PATH
17950  ;;
17951
17952bsdi[45]*)
17953  version_type=linux # correct to gnu/linux during the next big refactor
17954  need_version=no
17955  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17956  soname_spec='$libname$release$shared_ext$major'
17957  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17958  shlibpath_var=LD_LIBRARY_PATH
17959  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17960  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17961  # the default ld.so.conf also contains /usr/contrib/lib and
17962  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17963  # libtool to hard-code these into programs
17964  ;;
17965
17966cygwin* | mingw* | pw32* | cegcc*)
17967  version_type=windows
17968  shrext_cmds=.dll
17969  need_version=no
17970  need_lib_prefix=no
17971
17972  case $GCC,$cc_basename in
17973  yes,*)
17974    # gcc
17975    library_names_spec='$libname.dll.a'
17976    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17977    postinstall_cmds='base_file=`basename \$file`~
17978      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17979      dldir=$destdir/`dirname \$dlpath`~
17980      test -d \$dldir || mkdir -p \$dldir~
17981      $install_prog $dir/$dlname \$dldir/$dlname~
17982      chmod a+x \$dldir/$dlname~
17983      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17984        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17985      fi'
17986    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17987      dlpath=$dir/\$dldll~
17988       $RM \$dlpath'
17989    shlibpath_overrides_runpath=yes
17990
17991    case $host_os in
17992    cygwin*)
17993      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17994      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17995
17996      ;;
17997    mingw* | cegcc*)
17998      # MinGW DLLs use traditional 'lib' prefix
17999      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18000      ;;
18001    pw32*)
18002      # pw32 DLLs use 'pw' prefix rather than 'lib'
18003      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18004      ;;
18005    esac
18006    dynamic_linker='Win32 ld.exe'
18007    ;;
18008
18009  *,cl* | *,icl*)
18010    # Native MSVC or ICC
18011    libname_spec='$name'
18012    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18013    library_names_spec='$libname.dll.lib'
18014
18015    case $build_os in
18016    mingw*)
18017      sys_lib_search_path_spec=
18018      lt_save_ifs=$IFS
18019      IFS=';'
18020      for lt_path in $LIB
18021      do
18022        IFS=$lt_save_ifs
18023        # Let DOS variable expansion print the short 8.3 style file name.
18024        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18025        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18026      done
18027      IFS=$lt_save_ifs
18028      # Convert to MSYS style.
18029      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18030      ;;
18031    cygwin*)
18032      # Convert to unix form, then to dos form, then back to unix form
18033      # but this time dos style (no spaces!) so that the unix form looks
18034      # like /cygdrive/c/PROGRA~1:/cygdr...
18035      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18036      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18037      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18038      ;;
18039    *)
18040      sys_lib_search_path_spec=$LIB
18041      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18042        # It is most probably a Windows format PATH.
18043        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18044      else
18045        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18046      fi
18047      # FIXME: find the short name or the path components, as spaces are
18048      # common. (e.g. "Program Files" -> "PROGRA~1")
18049      ;;
18050    esac
18051
18052    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18053    postinstall_cmds='base_file=`basename \$file`~
18054      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18055      dldir=$destdir/`dirname \$dlpath`~
18056      test -d \$dldir || mkdir -p \$dldir~
18057      $install_prog $dir/$dlname \$dldir/$dlname'
18058    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18059      dlpath=$dir/\$dldll~
18060       $RM \$dlpath'
18061    shlibpath_overrides_runpath=yes
18062    dynamic_linker='Win32 link.exe'
18063    ;;
18064
18065  *)
18066    # Assume MSVC and ICC wrapper
18067    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18068    dynamic_linker='Win32 ld.exe'
18069    ;;
18070  esac
18071  # FIXME: first we should search . and the directory the executable is in
18072  shlibpath_var=PATH
18073  ;;
18074
18075darwin* | rhapsody*)
18076  dynamic_linker="$host_os dyld"
18077  version_type=darwin
18078  need_lib_prefix=no
18079  need_version=no
18080  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18081  soname_spec='$libname$release$major$shared_ext'
18082  shlibpath_overrides_runpath=yes
18083  shlibpath_var=DYLD_LIBRARY_PATH
18084  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18085
18086  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18087  ;;
18088
18089dgux*)
18090  version_type=linux # correct to gnu/linux during the next big refactor
18091  need_lib_prefix=no
18092  need_version=no
18093  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18094  soname_spec='$libname$release$shared_ext$major'
18095  shlibpath_var=LD_LIBRARY_PATH
18096  ;;
18097
18098freebsd* | dragonfly*)
18099  # DragonFly does not have aout.  When/if they implement a new
18100  # versioning mechanism, adjust this.
18101  if test -x /usr/bin/objformat; then
18102    objformat=`/usr/bin/objformat`
18103  else
18104    case $host_os in
18105    freebsd[23].*) objformat=aout ;;
18106    *) objformat=elf ;;
18107    esac
18108  fi
18109  version_type=freebsd-$objformat
18110  case $version_type in
18111    freebsd-elf*)
18112      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18113      soname_spec='$libname$release$shared_ext$major'
18114      need_version=no
18115      need_lib_prefix=no
18116      ;;
18117    freebsd-*)
18118      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18119      need_version=yes
18120      ;;
18121  esac
18122  shlibpath_var=LD_LIBRARY_PATH
18123  case $host_os in
18124  freebsd2.*)
18125    shlibpath_overrides_runpath=yes
18126    ;;
18127  freebsd3.[01]* | freebsdelf3.[01]*)
18128    shlibpath_overrides_runpath=yes
18129    hardcode_into_libs=yes
18130    ;;
18131  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18132  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18133    shlibpath_overrides_runpath=no
18134    hardcode_into_libs=yes
18135    ;;
18136  *) # from 4.6 on, and DragonFly
18137    shlibpath_overrides_runpath=yes
18138    hardcode_into_libs=yes
18139    ;;
18140  esac
18141  ;;
18142
18143haiku*)
18144  version_type=linux # correct to gnu/linux during the next big refactor
18145  need_lib_prefix=no
18146  need_version=no
18147  dynamic_linker="$host_os runtime_loader"
18148  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18149  soname_spec='$libname$release$shared_ext$major'
18150  shlibpath_var=LIBRARY_PATH
18151  shlibpath_overrides_runpath=no
18152  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18153  hardcode_into_libs=yes
18154  ;;
18155
18156hpux9* | hpux10* | hpux11*)
18157  # Give a soname corresponding to the major version so that dld.sl refuses to
18158  # link against other versions.
18159  version_type=sunos
18160  need_lib_prefix=no
18161  need_version=no
18162  case $host_cpu in
18163  ia64*)
18164    shrext_cmds='.so'
18165    hardcode_into_libs=yes
18166    dynamic_linker="$host_os dld.so"
18167    shlibpath_var=LD_LIBRARY_PATH
18168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18169    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18170    soname_spec='$libname$release$shared_ext$major'
18171    if test 32 = "$HPUX_IA64_MODE"; then
18172      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18173      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18174    else
18175      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18176      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18177    fi
18178    ;;
18179  hppa*64*)
18180    shrext_cmds='.sl'
18181    hardcode_into_libs=yes
18182    dynamic_linker="$host_os dld.sl"
18183    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18184    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18185    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18186    soname_spec='$libname$release$shared_ext$major'
18187    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18188    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18189    ;;
18190  *)
18191    shrext_cmds='.sl'
18192    dynamic_linker="$host_os dld.sl"
18193    shlibpath_var=SHLIB_PATH
18194    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18195    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18196    soname_spec='$libname$release$shared_ext$major'
18197    ;;
18198  esac
18199  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18200  postinstall_cmds='chmod 555 $lib'
18201  # or fails outright, so override atomically:
18202  install_override_mode=555
18203  ;;
18204
18205interix[3-9]*)
18206  version_type=linux # correct to gnu/linux during the next big refactor
18207  need_lib_prefix=no
18208  need_version=no
18209  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18210  soname_spec='$libname$release$shared_ext$major'
18211  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18212  shlibpath_var=LD_LIBRARY_PATH
18213  shlibpath_overrides_runpath=no
18214  hardcode_into_libs=yes
18215  ;;
18216
18217irix5* | irix6* | nonstopux*)
18218  case $host_os in
18219    nonstopux*) version_type=nonstopux ;;
18220    *)
18221	if test yes = "$lt_cv_prog_gnu_ld"; then
18222		version_type=linux # correct to gnu/linux during the next big refactor
18223	else
18224		version_type=irix
18225	fi ;;
18226  esac
18227  need_lib_prefix=no
18228  need_version=no
18229  soname_spec='$libname$release$shared_ext$major'
18230  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18231  case $host_os in
18232  irix5* | nonstopux*)
18233    libsuff= shlibsuff=
18234    ;;
18235  *)
18236    case $LD in # libtool.m4 will add one of these switches to LD
18237    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18238      libsuff= shlibsuff= libmagic=32-bit;;
18239    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18240      libsuff=32 shlibsuff=N32 libmagic=N32;;
18241    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18242      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18243    *) libsuff= shlibsuff= libmagic=never-match;;
18244    esac
18245    ;;
18246  esac
18247  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18248  shlibpath_overrides_runpath=no
18249  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18250  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18251  hardcode_into_libs=yes
18252  ;;
18253
18254# No shared lib support for Linux oldld, aout, or coff.
18255linux*oldld* | linux*aout* | linux*coff*)
18256  dynamic_linker=no
18257  ;;
18258
18259linux*android*)
18260  version_type=none # Android doesn't support versioned libraries.
18261  need_lib_prefix=no
18262  need_version=no
18263  library_names_spec='$libname$release$shared_ext'
18264  soname_spec='$libname$release$shared_ext'
18265  finish_cmds=
18266  shlibpath_var=LD_LIBRARY_PATH
18267  shlibpath_overrides_runpath=yes
18268
18269  # This implies no fast_install, which is unacceptable.
18270  # Some rework will be needed to allow for fast_install
18271  # before this can be enabled.
18272  hardcode_into_libs=yes
18273
18274  dynamic_linker='Android linker'
18275  # Don't embed -rpath directories since the linker doesn't support them.
18276  hardcode_libdir_flag_spec_CXX='-L$libdir'
18277  ;;
18278
18279# This must be glibc/ELF.
18280linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18281  version_type=linux # correct to gnu/linux during the next big refactor
18282  need_lib_prefix=no
18283  need_version=no
18284  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18285  soname_spec='$libname$release$shared_ext$major'
18286  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18287  shlibpath_var=LD_LIBRARY_PATH
18288  shlibpath_overrides_runpath=no
18289
18290  # Some binutils ld are patched to set DT_RUNPATH
18291  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18292  $as_echo_n "(cached) " >&6
18293else
18294  lt_cv_shlibpath_overrides_runpath=no
18295    save_LDFLAGS=$LDFLAGS
18296    save_libdir=$libdir
18297    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18298	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18299    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300/* end confdefs.h.  */
18301
18302int
18303main ()
18304{
18305
18306  ;
18307  return 0;
18308}
18309_ACEOF
18310if ac_fn_cxx_try_link "$LINENO"; then :
18311  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18312  lt_cv_shlibpath_overrides_runpath=yes
18313fi
18314fi
18315rm -f core conftest.err conftest.$ac_objext \
18316    conftest$ac_exeext conftest.$ac_ext
18317    LDFLAGS=$save_LDFLAGS
18318    libdir=$save_libdir
18319
18320fi
18321
18322  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18323
18324  # This implies no fast_install, which is unacceptable.
18325  # Some rework will be needed to allow for fast_install
18326  # before this can be enabled.
18327  hardcode_into_libs=yes
18328
18329  # Ideally, we could use ldconfig to report *all* directores which are
18330  # searched for libraries, however this is still not possible.  Aside from not
18331  # being certain /sbin/ldconfig is available, command
18332  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18333  # even though it is searched at run-time.  Try to do the best guess by
18334  # appending ld.so.conf contents (and includes) to the search path.
18335  if test -f /etc/ld.so.conf; then
18336    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' ' '`
18337    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18338  fi
18339
18340  # We used to test for /lib/ld.so.1 and disable shared libraries on
18341  # powerpc, because MkLinux only supported shared libraries with the
18342  # GNU dynamic linker.  Since this was broken with cross compilers,
18343  # most powerpc-linux boxes support dynamic linking these days and
18344  # people can always --disable-shared, the test was removed, and we
18345  # assume the GNU/Linux dynamic linker is in use.
18346  dynamic_linker='GNU/Linux ld.so'
18347  ;;
18348
18349netbsd*)
18350  version_type=sunos
18351  need_lib_prefix=no
18352  need_version=no
18353  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18354    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18355    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18356    dynamic_linker='NetBSD (a.out) ld.so'
18357  else
18358    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18359    soname_spec='$libname$release$shared_ext$major'
18360    dynamic_linker='NetBSD ld.elf_so'
18361  fi
18362  shlibpath_var=LD_LIBRARY_PATH
18363  shlibpath_overrides_runpath=yes
18364  hardcode_into_libs=yes
18365  ;;
18366
18367newsos6)
18368  version_type=linux # correct to gnu/linux during the next big refactor
18369  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18370  shlibpath_var=LD_LIBRARY_PATH
18371  shlibpath_overrides_runpath=yes
18372  ;;
18373
18374*nto* | *qnx*)
18375  version_type=qnx
18376  need_lib_prefix=no
18377  need_version=no
18378  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18379  soname_spec='$libname$release$shared_ext$major'
18380  shlibpath_var=LD_LIBRARY_PATH
18381  shlibpath_overrides_runpath=no
18382  hardcode_into_libs=yes
18383  dynamic_linker='ldqnx.so'
18384  ;;
18385
18386openbsd* | bitrig*)
18387  version_type=sunos
18388  sys_lib_dlsearch_path_spec=/usr/lib
18389  need_lib_prefix=no
18390  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18391    need_version=no
18392  else
18393    need_version=yes
18394  fi
18395  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18396  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18397  shlibpath_var=LD_LIBRARY_PATH
18398  shlibpath_overrides_runpath=yes
18399  ;;
18400
18401os2*)
18402  libname_spec='$name'
18403  version_type=windows
18404  shrext_cmds=.dll
18405  need_version=no
18406  need_lib_prefix=no
18407  # OS/2 can only load a DLL with a base name of 8 characters or less.
18408  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18409    v=$($ECHO $release$versuffix | tr -d .-);
18410    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18411    $ECHO $n$v`$shared_ext'
18412  library_names_spec='${libname}_dll.$libext'
18413  dynamic_linker='OS/2 ld.exe'
18414  shlibpath_var=BEGINLIBPATH
18415  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18416  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18417  postinstall_cmds='base_file=`basename \$file`~
18418    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18419    dldir=$destdir/`dirname \$dlpath`~
18420    test -d \$dldir || mkdir -p \$dldir~
18421    $install_prog $dir/$dlname \$dldir/$dlname~
18422    chmod a+x \$dldir/$dlname~
18423    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18424      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18425    fi'
18426  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18427    dlpath=$dir/\$dldll~
18428    $RM \$dlpath'
18429  ;;
18430
18431osf3* | osf4* | osf5*)
18432  version_type=osf
18433  need_lib_prefix=no
18434  need_version=no
18435  soname_spec='$libname$release$shared_ext$major'
18436  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18437  shlibpath_var=LD_LIBRARY_PATH
18438  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18439  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18440  ;;
18441
18442rdos*)
18443  dynamic_linker=no
18444  ;;
18445
18446solaris*)
18447  version_type=linux # correct to gnu/linux during the next big refactor
18448  need_lib_prefix=no
18449  need_version=no
18450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18451  soname_spec='$libname$release$shared_ext$major'
18452  shlibpath_var=LD_LIBRARY_PATH
18453  shlibpath_overrides_runpath=yes
18454  hardcode_into_libs=yes
18455  # ldd complains unless libraries are executable
18456  postinstall_cmds='chmod +x $lib'
18457  ;;
18458
18459sunos4*)
18460  version_type=sunos
18461  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18462  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18463  shlibpath_var=LD_LIBRARY_PATH
18464  shlibpath_overrides_runpath=yes
18465  if test yes = "$with_gnu_ld"; then
18466    need_lib_prefix=no
18467  fi
18468  need_version=yes
18469  ;;
18470
18471sysv4 | sysv4.3*)
18472  version_type=linux # correct to gnu/linux during the next big refactor
18473  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18474  soname_spec='$libname$release$shared_ext$major'
18475  shlibpath_var=LD_LIBRARY_PATH
18476  case $host_vendor in
18477    sni)
18478      shlibpath_overrides_runpath=no
18479      need_lib_prefix=no
18480      runpath_var=LD_RUN_PATH
18481      ;;
18482    siemens)
18483      need_lib_prefix=no
18484      ;;
18485    motorola)
18486      need_lib_prefix=no
18487      need_version=no
18488      shlibpath_overrides_runpath=no
18489      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18490      ;;
18491  esac
18492  ;;
18493
18494sysv4*MP*)
18495  if test -d /usr/nec; then
18496    version_type=linux # correct to gnu/linux during the next big refactor
18497    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18498    soname_spec='$libname$shared_ext.$major'
18499    shlibpath_var=LD_LIBRARY_PATH
18500  fi
18501  ;;
18502
18503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18504  version_type=sco
18505  need_lib_prefix=no
18506  need_version=no
18507  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18508  soname_spec='$libname$release$shared_ext$major'
18509  shlibpath_var=LD_LIBRARY_PATH
18510  shlibpath_overrides_runpath=yes
18511  hardcode_into_libs=yes
18512  if test yes = "$with_gnu_ld"; then
18513    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18514  else
18515    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18516    case $host_os in
18517      sco3.2v5*)
18518        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18519	;;
18520    esac
18521  fi
18522  sys_lib_dlsearch_path_spec='/usr/lib'
18523  ;;
18524
18525tpf*)
18526  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18527  version_type=linux # correct to gnu/linux during the next big refactor
18528  need_lib_prefix=no
18529  need_version=no
18530  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18531  shlibpath_var=LD_LIBRARY_PATH
18532  shlibpath_overrides_runpath=no
18533  hardcode_into_libs=yes
18534  ;;
18535
18536uts4*)
18537  version_type=linux # correct to gnu/linux during the next big refactor
18538  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18539  soname_spec='$libname$release$shared_ext$major'
18540  shlibpath_var=LD_LIBRARY_PATH
18541  ;;
18542
18543*)
18544  dynamic_linker=no
18545  ;;
18546esac
18547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18548$as_echo "$dynamic_linker" >&6; }
18549test no = "$dynamic_linker" && can_build_shared=no
18550
18551variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18552if test yes = "$GCC"; then
18553  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18554fi
18555
18556if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18557  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18558fi
18559
18560if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18561  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18562fi
18563
18564# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18565configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18566
18567# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18568func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18569
18570# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18571configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18613$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18614hardcode_action_CXX=
18615if test -n "$hardcode_libdir_flag_spec_CXX" ||
18616   test -n "$runpath_var_CXX" ||
18617   test yes = "$hardcode_automatic_CXX"; then
18618
18619  # We can hardcode non-existent directories.
18620  if test no != "$hardcode_direct_CXX" &&
18621     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18622     # have to relink, otherwise we might link with an installed library
18623     # when we should be linking with a yet-to-be-installed one
18624     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18625     test no != "$hardcode_minus_L_CXX"; then
18626    # Linking always hardcodes the temporary library directory.
18627    hardcode_action_CXX=relink
18628  else
18629    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18630    hardcode_action_CXX=immediate
18631  fi
18632else
18633  # We cannot hardcode anything, or else we can only hardcode existing
18634  # directories.
18635  hardcode_action_CXX=unsupported
18636fi
18637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18638$as_echo "$hardcode_action_CXX" >&6; }
18639
18640if test relink = "$hardcode_action_CXX" ||
18641   test yes = "$inherit_rpath_CXX"; then
18642  # Fast installation is not supported
18643  enable_fast_install=no
18644elif test yes = "$shlibpath_overrides_runpath" ||
18645     test no = "$enable_shared"; then
18646  # Fast installation is not necessary
18647  enable_fast_install=needless
18648fi
18649
18650
18651
18652
18653
18654
18655
18656  fi # test -n "$compiler"
18657
18658  CC=$lt_save_CC
18659  CFLAGS=$lt_save_CFLAGS
18660  LDCXX=$LD
18661  LD=$lt_save_LD
18662  GCC=$lt_save_GCC
18663  with_gnu_ld=$lt_save_with_gnu_ld
18664  lt_cv_path_LDCXX=$lt_cv_path_LD
18665  lt_cv_path_LD=$lt_save_path_LD
18666  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18667  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18668fi # test yes != "$_lt_caught_CXX_error"
18669
18670ac_ext=c
18671ac_cpp='$CPP $CPPFLAGS'
18672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674ac_compiler_gnu=$ac_cv_c_compiler_gnu
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690        ac_config_commands="$ac_config_commands libtool"
18691
18692
18693
18694
18695# Only expand once:
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
18706$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
18707if ${ac_cv_path_GREP+:} false; then :
18708  $as_echo_n "(cached) " >&6
18709else
18710  if test -z "$GREP"; then
18711  ac_path_GREP_found=false
18712  # Loop through the user's path and test for each of PROGNAME-LIST
18713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18714for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18715do
18716  IFS=$as_save_IFS
18717  test -z "$as_dir" && as_dir=.
18718    for ac_prog in grep ggrep; do
18719    for ac_exec_ext in '' $ac_executable_extensions; do
18720      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
18721      as_fn_executable_p "$ac_path_GREP" || continue
18722# Check for GNU ac_path_GREP and select it if it is found.
18723  # Check for GNU $ac_path_GREP
18724case `"$ac_path_GREP" --version 2>&1` in
18725*GNU*)
18726  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
18727*)
18728  ac_count=0
18729  $as_echo_n 0123456789 >"conftest.in"
18730  while :
18731  do
18732    cat "conftest.in" "conftest.in" >"conftest.tmp"
18733    mv "conftest.tmp" "conftest.in"
18734    cp "conftest.in" "conftest.nl"
18735    $as_echo 'GREP' >> "conftest.nl"
18736    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18737    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18738    as_fn_arith $ac_count + 1 && ac_count=$as_val
18739    if test $ac_count -gt ${ac_path_GREP_max-0}; then
18740      # Best one so far, save it but keep looking for a better one
18741      ac_cv_path_GREP="$ac_path_GREP"
18742      ac_path_GREP_max=$ac_count
18743    fi
18744    # 10*(2^10) chars as input seems more than enough
18745    test $ac_count -gt 10 && break
18746  done
18747  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18748esac
18749
18750      $ac_path_GREP_found && break 3
18751    done
18752  done
18753  done
18754IFS=$as_save_IFS
18755  if test -z "$ac_cv_path_GREP"; then
18756    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
18757  fi
18758else
18759  ac_cv_path_GREP=$GREP
18760fi
18761
18762fi
18763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
18764$as_echo "$ac_cv_path_GREP" >&6; }
18765 GREP="$ac_cv_path_GREP"
18766
18767
18768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
18769$as_echo_n "checking for a sed that does not truncate output... " >&6; }
18770if ${ac_cv_path_SED+:} false; then :
18771  $as_echo_n "(cached) " >&6
18772else
18773            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
18774     for ac_i in 1 2 3 4 5 6 7; do
18775       ac_script="$ac_script$as_nl$ac_script"
18776     done
18777     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
18778     { ac_script=; unset ac_script;}
18779     if test -z "$SED"; then
18780  ac_path_SED_found=false
18781  # Loop through the user's path and test for each of PROGNAME-LIST
18782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18783for as_dir in $PATH
18784do
18785  IFS=$as_save_IFS
18786  test -z "$as_dir" && as_dir=.
18787    for ac_prog in sed gsed; do
18788    for ac_exec_ext in '' $ac_executable_extensions; do
18789      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
18790      as_fn_executable_p "$ac_path_SED" || continue
18791# Check for GNU ac_path_SED and select it if it is found.
18792  # Check for GNU $ac_path_SED
18793case `"$ac_path_SED" --version 2>&1` in
18794*GNU*)
18795  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
18796*)
18797  ac_count=0
18798  $as_echo_n 0123456789 >"conftest.in"
18799  while :
18800  do
18801    cat "conftest.in" "conftest.in" >"conftest.tmp"
18802    mv "conftest.tmp" "conftest.in"
18803    cp "conftest.in" "conftest.nl"
18804    $as_echo '' >> "conftest.nl"
18805    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
18806    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18807    as_fn_arith $ac_count + 1 && ac_count=$as_val
18808    if test $ac_count -gt ${ac_path_SED_max-0}; then
18809      # Best one so far, save it but keep looking for a better one
18810      ac_cv_path_SED="$ac_path_SED"
18811      ac_path_SED_max=$ac_count
18812    fi
18813    # 10*(2^10) chars as input seems more than enough
18814    test $ac_count -gt 10 && break
18815  done
18816  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18817esac
18818
18819      $ac_path_SED_found && break 3
18820    done
18821  done
18822  done
18823IFS=$as_save_IFS
18824  if test -z "$ac_cv_path_SED"; then
18825    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
18826  fi
18827else
18828  ac_cv_path_SED=$SED
18829fi
18830
18831fi
18832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
18833$as_echo "$ac_cv_path_SED" >&6; }
18834 SED="$ac_cv_path_SED"
18835  rm -f conftest.sed
18836
18837if test "x$with_clang_prefix" != "x"; then
18838	LLVM_CONFIG="$with_clang_prefix/bin/llvm-config"
18839fi
18840# Extract the first word of ""llvm-config"", so it can be a program name with args.
18841set dummy "llvm-config"; ac_word=$2
18842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18843$as_echo_n "checking for $ac_word... " >&6; }
18844if ${ac_cv_path_LLVM_CONFIG+:} false; then :
18845  $as_echo_n "(cached) " >&6
18846else
18847  case $LLVM_CONFIG in
18848  [\\/]* | ?:[\\/]*)
18849  ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
18850  ;;
18851  *)
18852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18853for as_dir in $PATH
18854do
18855  IFS=$as_save_IFS
18856  test -z "$as_dir" && as_dir=.
18857    for ac_exec_ext in '' $ac_executable_extensions; do
18858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18859    ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18861    break 2
18862  fi
18863done
18864  done
18865IFS=$as_save_IFS
18866
18867  ;;
18868esac
18869fi
18870LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
18871if test -n "$LLVM_CONFIG"; then
18872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
18873$as_echo "$LLVM_CONFIG" >&6; }
18874else
18875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18876$as_echo "no" >&6; }
18877fi
18878
18879
18880if test -z "$LLVM_CONFIG" || test ! -x "$LLVM_CONFIG"; then
18881	as_fn_error $? "llvm-config not found" "$LINENO" 5
18882fi
18883CLANG_CXXFLAGS=`$LLVM_CONFIG --cxxflags | \
18884	$SED -e 's/-Wcovered-switch-default//;s/-gsplit-dwarf//'`
18885CLANG_LDFLAGS=`$LLVM_CONFIG --ldflags`
18886# Construct a -R argument for libtool.
18887# This is needed in case some of the clang libraries are shared libraries.
18888CLANG_RFLAG=`echo "$CLANG_LDFLAGS" | $SED -e 's/-L/-R/g'`
18889targets=`$LLVM_CONFIG --targets-built`
18890components="$targets asmparser bitreader support mc"
18891# Link in option and frontendopenmp components when available
18892# since they may be used by the clang libraries.
18893for c in option frontendopenmp; do
18894	$LLVM_CONFIG --components | $GREP $c > /dev/null 2> /dev/null
18895	if test $? -eq 0; then
18896		components="$components $c"
18897	fi
18898done
18899CLANG_LIBS=`$LLVM_CONFIG --libs $components`
18900systemlibs=`$LLVM_CONFIG --system-libs 2> /dev/null | tail -1`
18901if test $? -eq 0; then
18902	CLANG_LIBS="$CLANG_LIBS $systemlibs"
18903fi
18904CLANG_PREFIX=`$LLVM_CONFIG --prefix`
18905
18906cat >>confdefs.h <<_ACEOF
18907#define CLANG_PREFIX "$CLANG_PREFIX"
18908_ACEOF
18909
18910
18911# If $CLANG_PREFIX/bin/clang cannot find the standard include files,
18912# then see if setting sysroot to `xcode-select -p`/SDKs/MacOSX.sdk helps.
18913# This may be required on some versions of OS X since they lack /usr/include.
18914# If so, set CLANG_SYSROOT accordingly.
18915SAVE_CC="$CC"
18916CC="$CLANG_PREFIX/bin/clang"
18917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CLANG_PREFIX/bin/clang can find standard include files" >&5
18918$as_echo_n "checking whether $CLANG_PREFIX/bin/clang can find standard include files... " >&6; }
18919found_header=no
18920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921/* end confdefs.h.  */
18922#include <stdio.h>
18923int
18924main ()
18925{
18926
18927  ;
18928  return 0;
18929}
18930_ACEOF
18931if ac_fn_c_try_compile "$LINENO"; then :
18932  found_header=yes
18933fi
18934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_header" >&5
18936$as_echo "$found_header" >&6; }
18937if test "x$found_header" != "xyes"; then
18938	# Extract the first word of "xcode-select", so it can be a program name with args.
18939set dummy xcode-select; ac_word=$2
18940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18941$as_echo_n "checking for $ac_word... " >&6; }
18942if ${ac_cv_prog_XCODE_SELECT+:} false; then :
18943  $as_echo_n "(cached) " >&6
18944else
18945  if test -n "$XCODE_SELECT"; then
18946  ac_cv_prog_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test.
18947else
18948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18949for as_dir in $PATH
18950do
18951  IFS=$as_save_IFS
18952  test -z "$as_dir" && as_dir=.
18953    for ac_exec_ext in '' $ac_executable_extensions; do
18954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18955    ac_cv_prog_XCODE_SELECT="xcode-select"
18956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18957    break 2
18958  fi
18959done
18960  done
18961IFS=$as_save_IFS
18962
18963fi
18964fi
18965XCODE_SELECT=$ac_cv_prog_XCODE_SELECT
18966if test -n "$XCODE_SELECT"; then
18967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
18968$as_echo "$XCODE_SELECT" >&6; }
18969else
18970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18971$as_echo "no" >&6; }
18972fi
18973
18974
18975	if test -z "$XCODE_SELECT"; then
18976		as_fn_error $? "Cannot find xcode-select" "$LINENO" 5
18977	fi
18978	sysroot=`$XCODE_SELECT -p`/SDKs/MacOSX.sdk
18979	SAVE_CPPFLAGS="$CPPFLAGS"
18980	CPPFLAGS="$CPPFLAGS -isysroot $sysroot"
18981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether standard include files can be found with sysroot set" >&5
18982$as_echo_n "checking whether standard include files can be found with sysroot set... " >&6; }
18983	found_header=no
18984	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985/* end confdefs.h.  */
18986#include <stdio.h>
18987int
18988main ()
18989{
18990
18991  ;
18992  return 0;
18993}
18994_ACEOF
18995if ac_fn_c_try_compile "$LINENO"; then :
18996  found_header=yes
18997fi
18998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_header" >&5
19000$as_echo "$found_header" >&6; }
19001	CPPFLAGS="$SAVE_CPPFLAGS"
19002	if test "x$found_header" != "xyes"; then
19003		as_fn_error $? "Cannot find standard include files" "$LINENO" 5
19004	else
19005
19006cat >>confdefs.h <<_ACEOF
19007#define CLANG_SYSROOT "$sysroot"
19008_ACEOF
19009
19010	fi
19011fi
19012CC="$SAVE_CC"
19013
19014ac_ext=cpp
19015ac_cpp='$CXXCPP $CPPFLAGS'
19016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19019
19020
19021SAVE_CPPFLAGS="$CPPFLAGS"
19022CPPFLAGS="$CLANG_CXXFLAGS -I$srcdir $CPPFLAGS"
19023ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/SourceLocation.h" "ac_cv_header_clang_Basic_SourceLocation_h" "$ac_includes_default"
19024if test "x$ac_cv_header_clang_Basic_SourceLocation_h" = xyes; then :
19025
19026else
19027  as_fn_error $? "clang header file not found" "$LINENO" 5
19028fi
19029
19030
19031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19032/* end confdefs.h.  */
19033#include <llvm/Support/Host.h>
19034
19035_ACEOF
19036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19037  $EGREP "getDefaultTargetTriple" >/dev/null 2>&1; then :
19038
19039else
19040
19041$as_echo "#define getDefaultTargetTriple getHostTriple" >>confdefs.h
19042
19043fi
19044rm -f conftest*
19045
19046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047/* end confdefs.h.  */
19048#include <clang/Basic/SourceLocation.h>
19049
19050_ACEOF
19051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19052  $EGREP "getExpansionLineNumber" >/dev/null 2>&1; then :
19053
19054else
19055
19056$as_echo "#define getExpansionLineNumber getInstantiationLineNumber" >>confdefs.h
19057
19058fi
19059rm -f conftest*
19060
19061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062/* end confdefs.h.  */
19063#include <clang/Basic/SourceManager.h>
19064
19065_ACEOF
19066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19067  $EGREP "getImmediateExpansionRange" >/dev/null 2>&1; then :
19068
19069else
19070
19071$as_echo "#define getImmediateExpansionRange getImmediateInstantiationRange" >>confdefs.h
19072
19073
19074fi
19075rm -f conftest*
19076
19077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19078/* end confdefs.h.  */
19079#include <clang/Basic/Diagnostic.h>
19080
19081_ACEOF
19082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19083  $EGREP "DiagnosticsEngine" >/dev/null 2>&1; then :
19084
19085else
19086
19087$as_echo "#define DiagnosticsEngine Diagnostic" >>confdefs.h
19088
19089fi
19090rm -f conftest*
19091
19092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19093/* end confdefs.h.  */
19094#include <clang/Driver/Driver.h>
19095
19096_ACEOF
19097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19098  $EGREP "ArrayRef" >/dev/null 2>&1; then :
19099
19100$as_echo "#define USE_ARRAYREF /**/" >>confdefs.h
19101
19102	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19103/* end confdefs.h.  */
19104#include <clang/Frontend/CompilerInvocation.h>
19105
19106_ACEOF
19107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19108  $EGREP "ArrayRef.*CommandLineArgs" >/dev/null 2>&1; then :
19109
19110$as_echo "#define CREATE_FROM_ARGS_TAKES_ARRAYREF /**/" >>confdefs.h
19111
19112
19113fi
19114rm -f conftest*
19115
19116
19117fi
19118rm -f conftest*
19119
19120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19121/* end confdefs.h.  */
19122#include <clang/Driver/Driver.h>
19123
19124_ACEOF
19125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19126  $EGREP "CXXIsProduction" >/dev/null 2>&1; then :
19127
19128$as_echo "#define HAVE_CXXISPRODUCTION /**/" >>confdefs.h
19129
19130fi
19131rm -f conftest*
19132
19133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134/* end confdefs.h.  */
19135#include <clang/Driver/Driver.h>
19136
19137_ACEOF
19138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19139  $EGREP " IsProduction" >/dev/null 2>&1; then :
19140
19141$as_echo "#define HAVE_ISPRODUCTION /**/" >>confdefs.h
19142
19143fi
19144rm -f conftest*
19145
19146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19147/* end confdefs.h.  */
19148#include <clang/Driver/Driver.h>
19149int
19150main ()
19151{
19152
19153	using namespace clang;
19154	DiagnosticsEngine *Diags;
19155	new driver::Driver("", "", "", *Diags);
19156
19157  ;
19158  return 0;
19159}
19160_ACEOF
19161if ac_fn_cxx_try_compile "$LINENO"; then :
19162
19163$as_echo "#define DRIVER_CTOR_TAKES_DEFAULTIMAGENAME /**/" >>confdefs.h
19164
19165fi
19166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168/* end confdefs.h.  */
19169#include <clang/AST/ASTConsumer.h>
19170
19171_ACEOF
19172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19173  $EGREP "void HandleTopLevelDecl\(" >/dev/null 2>&1; then :
19174
19175$as_echo "#define HandleTopLevelDeclReturn void" >>confdefs.h
19176
19177
19178$as_echo "#define HandleTopLevelDeclContinue /**/" >>confdefs.h
19179
19180else
19181
19182$as_echo "#define HandleTopLevelDeclReturn bool" >>confdefs.h
19183
19184
19185$as_echo "#define HandleTopLevelDeclContinue true" >>confdefs.h
19186
19187fi
19188rm -f conftest*
19189
19190ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/DiagnosticOptions.h" "ac_cv_header_clang_Basic_DiagnosticOptions_h" "$ac_includes_default"
19191if test "x$ac_cv_header_clang_Basic_DiagnosticOptions_h" = xyes; then :
19192
19193$as_echo "#define HAVE_BASIC_DIAGNOSTICOPTIONS_H /**/" >>confdefs.h
19194
19195fi
19196
19197
19198ac_fn_cxx_check_header_compile "$LINENO" "clang/Lex/PreprocessorOptions.h" "ac_cv_header_clang_Lex_PreprocessorOptions_h" "#include <clang/Basic/LLVM.h>
19199"
19200if test "x$ac_cv_header_clang_Lex_PreprocessorOptions_h" = xyes; then :
19201
19202$as_echo "#define HAVE_LEX_PREPROCESSOROPTIONS_H /**/" >>confdefs.h
19203
19204fi
19205
19206
19207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19208/* end confdefs.h.  */
19209#include <clang/Basic/TargetInfo.h>
19210int
19211main ()
19212{
19213
19214	using namespace clang;
19215	std::shared_ptr<TargetOptions> TO;
19216	DiagnosticsEngine *Diags;
19217	TargetInfo::CreateTargetInfo(*Diags, TO);
19218
19219  ;
19220  return 0;
19221}
19222_ACEOF
19223if ac_fn_cxx_try_compile "$LINENO"; then :
19224
19225$as_echo "#define CREATETARGETINFO_TAKES_SHARED_PTR /**/" >>confdefs.h
19226
19227fi
19228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19230/* end confdefs.h.  */
19231#include <clang/Basic/TargetInfo.h>
19232int
19233main ()
19234{
19235
19236	using namespace clang;
19237	TargetOptions *TO;
19238	DiagnosticsEngine *Diags;
19239	TargetInfo::CreateTargetInfo(*Diags, TO);
19240
19241  ;
19242  return 0;
19243}
19244_ACEOF
19245if ac_fn_cxx_try_compile "$LINENO"; then :
19246
19247$as_echo "#define CREATETARGETINFO_TAKES_POINTER /**/" >>confdefs.h
19248
19249fi
19250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19252/* end confdefs.h.  */
19253#include <clang/Frontend/CompilerInstance.h>
19254int
19255main ()
19256{
19257
19258	using namespace clang;
19259	DiagnosticConsumer *client;
19260	CompilerInstance *Clang;
19261	Clang->createDiagnostics(client);
19262
19263  ;
19264  return 0;
19265}
19266_ACEOF
19267if ac_fn_cxx_try_compile "$LINENO"; then :
19268
19269else
19270
19271$as_echo "#define CREATEDIAGNOSTICS_TAKES_ARG /**/" >>confdefs.h
19272
19273fi
19274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276/* end confdefs.h.  */
19277#include <clang/Lex/HeaderSearchOptions.h>
19278int
19279main ()
19280{
19281
19282	using namespace clang;
19283	HeaderSearchOptions HSO;
19284	HSO.AddPath("", frontend::Angled, false, false);
19285
19286  ;
19287  return 0;
19288}
19289_ACEOF
19290if ac_fn_cxx_try_compile "$LINENO"; then :
19291
19292$as_echo "#define ADDPATH_TAKES_4_ARGUMENTS /**/" >>confdefs.h
19293
19294fi
19295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297/* end confdefs.h.  */
19298#include <clang/AST/CanonicalType.h>
19299
19300_ACEOF
19301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19302  $EGREP "getNumParams" >/dev/null 2>&1; then :
19303
19304$as_echo "#define getNumArgs getNumParams" >>confdefs.h
19305
19306
19307$as_echo "#define getArgType getParamType" >>confdefs.h
19308
19309fi
19310rm -f conftest*
19311
19312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313/* end confdefs.h.  */
19314#include <clang/AST/CanonicalType.h>
19315
19316_ACEOF
19317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19318  $EGREP "getReturnType" >/dev/null 2>&1; then :
19319
19320else
19321
19322$as_echo "#define getReturnType getResultType" >>confdefs.h
19323
19324fi
19325rm -f conftest*
19326
19327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19328/* end confdefs.h.  */
19329#include <clang/Frontend/CompilerInstance.h>
19330int
19331main ()
19332{
19333
19334	using namespace clang;
19335	CompilerInstance *Clang;
19336	Clang->createPreprocessor(TU_Complete);
19337
19338  ;
19339  return 0;
19340}
19341_ACEOF
19342if ac_fn_cxx_try_compile "$LINENO"; then :
19343
19344$as_echo "#define CREATEPREPROCESSOR_TAKES_TUKIND /**/" >>confdefs.h
19345
19346fi
19347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349/* end confdefs.h.  */
19350#include <clang/Basic/SourceManager.h>
19351
19352_ACEOF
19353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19354  $EGREP "setMainFileID" >/dev/null 2>&1; then :
19355
19356$as_echo "#define HAVE_SETMAINFILEID /**/" >>confdefs.h
19357
19358fi
19359rm -f conftest*
19360
19361ac_fn_cxx_check_header_mongrel "$LINENO" "llvm/ADT/OwningPtr.h" "ac_cv_header_llvm_ADT_OwningPtr_h" "$ac_includes_default"
19362if test "x$ac_cv_header_llvm_ADT_OwningPtr_h" = xyes; then :
19363
19364$as_echo "#define HAVE_ADT_OWNINGPTR_H /**/" >>confdefs.h
19365
19366fi
19367
19368
19369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370/* end confdefs.h.  */
19371#include <clang/Basic/Builtins.h>
19372
19373_ACEOF
19374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19375  $EGREP "initializeBuiltins" >/dev/null 2>&1; then :
19376
19377else
19378
19379$as_echo "#define initializeBuiltins InitializeBuiltins" >>confdefs.h
19380
19381fi
19382rm -f conftest*
19383
19384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19385/* end confdefs.h.  */
19386#include <clang/Frontend/FrontendOptions.h>
19387
19388_ACEOF
19389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19390  $EGREP "IK_C" >/dev/null 2>&1; then :
19391
19392else
19393  ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/LangStandard.h" "ac_cv_header_clang_Basic_LangStandard_h" "$ac_includes_default"
19394if test "x$ac_cv_header_clang_Basic_LangStandard_h" = xyes; then :
19395  IK_C=Language::C
19396else
19397  IK_C=InputKind::C
19398fi
19399
19400
19401
19402cat >>confdefs.h <<_ACEOF
19403#define IK_C $IK_C
19404_ACEOF
19405
19406
19407fi
19408rm -f conftest*
19409
19410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411/* end confdefs.h.  */
19412
19413	#include <clang/Basic/TargetOptions.h>
19414	#include <clang/Lex/PreprocessorOptions.h>
19415	#include <clang/Frontend/CompilerInstance.h>
19416
19417	#include "set_lang_defaults_arg4.h"
19418
19419int
19420main ()
19421{
19422
19423	using namespace clang;
19424	CompilerInstance *Clang;
19425	TargetOptions TO;
19426	llvm::Triple T(TO.Triple);
19427	PreprocessorOptions PO;
19428	CompilerInvocation::setLangDefaults(Clang->getLangOpts(), IK_C,
19429			T, setLangDefaultsArg4(PO),
19430			LangStandard::lang_unspecified);
19431
19432  ;
19433  return 0;
19434}
19435_ACEOF
19436if ac_fn_cxx_try_compile "$LINENO"; then :
19437
19438$as_echo "#define SETLANGDEFAULTS_TAKES_5_ARGUMENTS /**/" >>confdefs.h
19439
19440fi
19441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443/* end confdefs.h.  */
19444
19445	#include <clang/Frontend/CompilerInstance.h>
19446	#include <clang/Frontend/CompilerInvocation.h>
19447
19448int
19449main ()
19450{
19451
19452	using namespace clang;
19453	CompilerInvocation *invocation;
19454	CompilerInstance *Clang;
19455	Clang->setInvocation(std::make_shared<CompilerInvocation>(*invocation));
19456
19457  ;
19458  return 0;
19459}
19460_ACEOF
19461if ac_fn_cxx_try_compile "$LINENO"; then :
19462
19463$as_echo "#define SETINVOCATION_TAKES_SHARED_PTR /**/" >>confdefs.h
19464
19465fi
19466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19467ac_fn_cxx_check_header_mongrel "$LINENO" "llvm/Option/Arg.h" "ac_cv_header_llvm_Option_Arg_h" "$ac_includes_default"
19468if test "x$ac_cv_header_llvm_Option_Arg_h" = xyes; then :
19469
19470$as_echo "#define HAVE_LLVM_OPTION_ARG_H /**/" >>confdefs.h
19471
19472fi
19473
19474
19475CPPFLAGS="$SAVE_CPPFLAGS"
19476
19477SAVE_LDFLAGS="$LDFLAGS"
19478LDFLAGS="$CLANG_LDFLAGS $LDFLAGS"
19479
19480# Use single libclang-cpp shared library when available.
19481# Otherwise, use a selection of clang libraries that appears to work.
19482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lclang-cpp" >&5
19483$as_echo_n "checking for main in -lclang-cpp... " >&6; }
19484if ${ac_cv_lib_clang_cpp_main+:} false; then :
19485  $as_echo_n "(cached) " >&6
19486else
19487  ac_check_lib_save_LIBS=$LIBS
19488LIBS="-lclang-cpp  $LIBS"
19489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490/* end confdefs.h.  */
19491
19492
19493int
19494main ()
19495{
19496return main ();
19497  ;
19498  return 0;
19499}
19500_ACEOF
19501if ac_fn_cxx_try_link "$LINENO"; then :
19502  ac_cv_lib_clang_cpp_main=yes
19503else
19504  ac_cv_lib_clang_cpp_main=no
19505fi
19506rm -f core conftest.err conftest.$ac_objext \
19507    conftest$ac_exeext conftest.$ac_ext
19508LIBS=$ac_check_lib_save_LIBS
19509fi
19510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_cpp_main" >&5
19511$as_echo "$ac_cv_lib_clang_cpp_main" >&6; }
19512if test "x$ac_cv_lib_clang_cpp_main" = xyes; then :
19513  have_lib_clang=yes
19514else
19515  have_lib_clang=no
19516fi
19517
19518if test "$have_lib_clang" = yes; then
19519	CLANG_LIBS="-lclang-cpp $CLANG_LIBS"
19520else
19521	CLANG_LIBS="-lclangBasic -lclangDriver $CLANG_LIBS"
19522	CLANG_LIBS="-lclangAnalysis -lclangAST -lclangLex $CLANG_LIBS"
19523	LDFLAGS="$CLANG_LDFLAGS $CLANG_LIBS $SAVE_LDFLAGS"
19524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lclangEdit" >&5
19525$as_echo_n "checking for main in -lclangEdit... " >&6; }
19526if ${ac_cv_lib_clangEdit_main+:} false; then :
19527  $as_echo_n "(cached) " >&6
19528else
19529  ac_check_lib_save_LIBS=$LIBS
19530LIBS="-lclangEdit  $LIBS"
19531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532/* end confdefs.h.  */
19533
19534
19535int
19536main ()
19537{
19538return main ();
19539  ;
19540  return 0;
19541}
19542_ACEOF
19543if ac_fn_cxx_try_link "$LINENO"; then :
19544  ac_cv_lib_clangEdit_main=yes
19545else
19546  ac_cv_lib_clangEdit_main=no
19547fi
19548rm -f core conftest.err conftest.$ac_objext \
19549    conftest$ac_exeext conftest.$ac_ext
19550LIBS=$ac_check_lib_save_LIBS
19551fi
19552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangEdit_main" >&5
19553$as_echo "$ac_cv_lib_clangEdit_main" >&6; }
19554if test "x$ac_cv_lib_clangEdit_main" = xyes; then :
19555  LIB_CLANG_EDIT=-lclangEdit
19556fi
19557
19558	CLANG_LIBS="$LIB_CLANG_EDIT $CLANG_LIBS"
19559	CLANG_LIBS="-lclangParse -lclangSema $CLANG_LIBS"
19560	CLANG_LIBS="-lclangFrontend -lclangSerialization $CLANG_LIBS"
19561fi
19562
19563LDFLAGS="$SAVE_LDFLAGS"
19564
19565ac_ext=c
19566ac_cpp='$CPP $CPPFLAGS'
19567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19569ac_compiler_gnu=$ac_cv_c_compiler_gnu
19570
19571
19572
19573CONFIG_STATUS_DEPENDENCIES=$LLVM_CONFIG
19574
19575ac_config_headers="$ac_config_headers isl_config.h"
19576
19577ac_config_files="$ac_config_files Makefile"
19578
19579
19580cat >confcache <<\_ACEOF
19581# This file is a shell script that caches the results of configure
19582# tests run on this system so they can be shared between configure
19583# scripts and configure runs, see configure's option --config-cache.
19584# It is not useful on other systems.  If it contains results you don't
19585# want to keep, you may remove or edit it.
19586#
19587# config.status only pays attention to the cache file if you give it
19588# the --recheck option to rerun configure.
19589#
19590# `ac_cv_env_foo' variables (set or unset) will be overridden when
19591# loading this file, other *unset* `ac_cv_foo' will be assigned the
19592# following values.
19593
19594_ACEOF
19595
19596# The following way of writing the cache mishandles newlines in values,
19597# but we know of no workaround that is simple, portable, and efficient.
19598# So, we kill variables containing newlines.
19599# Ultrix sh set writes to stderr and can't be redirected directly,
19600# and sets the high bit in the cache file unless we assign to the vars.
19601(
19602  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19603    eval ac_val=\$$ac_var
19604    case $ac_val in #(
19605    *${as_nl}*)
19606      case $ac_var in #(
19607      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19608$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19609      esac
19610      case $ac_var in #(
19611      _ | IFS | as_nl) ;; #(
19612      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19613      *) { eval $ac_var=; unset $ac_var;} ;;
19614      esac ;;
19615    esac
19616  done
19617
19618  (set) 2>&1 |
19619    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19620    *${as_nl}ac_space=\ *)
19621      # `set' does not quote correctly, so add quotes: double-quote
19622      # substitution turns \\\\ into \\, and sed turns \\ into \.
19623      sed -n \
19624	"s/'/'\\\\''/g;
19625	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19626      ;; #(
19627    *)
19628      # `set' quotes correctly as required by POSIX, so do not add quotes.
19629      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19630      ;;
19631    esac |
19632    sort
19633) |
19634  sed '
19635     /^ac_cv_env_/b end
19636     t clear
19637     :clear
19638     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19639     t end
19640     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19641     :end' >>confcache
19642if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19643  if test -w "$cache_file"; then
19644    if test "x$cache_file" != "x/dev/null"; then
19645      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19646$as_echo "$as_me: updating cache $cache_file" >&6;}
19647      if test ! -f "$cache_file" || test -h "$cache_file"; then
19648	cat confcache >"$cache_file"
19649      else
19650        case $cache_file in #(
19651        */* | ?:*)
19652	  mv -f confcache "$cache_file"$$ &&
19653	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19654        *)
19655	  mv -f confcache "$cache_file" ;;
19656	esac
19657      fi
19658    fi
19659  else
19660    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19661$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19662  fi
19663fi
19664rm -f confcache
19665
19666test "x$prefix" = xNONE && prefix=$ac_default_prefix
19667# Let make expand exec_prefix.
19668test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19669
19670DEFS=-DHAVE_CONFIG_H
19671
19672ac_libobjs=
19673ac_ltlibobjs=
19674U=
19675for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19676  # 1. Remove the extension, and $U if already installed.
19677  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19678  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19679  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19680  #    will be set to the directory where LIBOBJS objects are built.
19681  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19682  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19683done
19684LIBOBJS=$ac_libobjs
19685
19686LTLIBOBJS=$ac_ltlibobjs
19687
19688
19689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19690$as_echo_n "checking that generated files are newer than configure... " >&6; }
19691   if test -n "$am_sleep_pid"; then
19692     # Hide warnings about reused PIDs.
19693     wait $am_sleep_pid 2>/dev/null
19694   fi
19695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19696$as_echo "done" >&6; }
19697 if test -n "$EXEEXT"; then
19698  am__EXEEXT_TRUE=
19699  am__EXEEXT_FALSE='#'
19700else
19701  am__EXEEXT_TRUE='#'
19702  am__EXEEXT_FALSE=
19703fi
19704
19705if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19706  as_fn_error $? "conditional \"AMDEP\" was never defined.
19707Usually this means the macro was only invoked conditionally." "$LINENO" 5
19708fi
19709if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19710  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19711Usually this means the macro was only invoked conditionally." "$LINENO" 5
19712fi
19713if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19714  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19715Usually this means the macro was only invoked conditionally." "$LINENO" 5
19716fi
19717if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19718  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19719Usually this means the macro was only invoked conditionally." "$LINENO" 5
19720fi
19721if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19722  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19723Usually this means the macro was only invoked conditionally." "$LINENO" 5
19724fi
19725
19726: "${CONFIG_STATUS=./config.status}"
19727ac_write_fail=0
19728ac_clean_files_save=$ac_clean_files
19729ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19730{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19731$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19732as_write_fail=0
19733cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19734#! $SHELL
19735# Generated by $as_me.
19736# Run this file to recreate the current configuration.
19737# Compiler output produced by configure, useful for debugging
19738# configure, is in config.log if it exists.
19739
19740debug=false
19741ac_cs_recheck=false
19742ac_cs_silent=false
19743
19744SHELL=\${CONFIG_SHELL-$SHELL}
19745export SHELL
19746_ASEOF
19747cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19748## -------------------- ##
19749## M4sh Initialization. ##
19750## -------------------- ##
19751
19752# Be more Bourne compatible
19753DUALCASE=1; export DUALCASE # for MKS sh
19754if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19755  emulate sh
19756  NULLCMD=:
19757  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19758  # is contrary to our usage.  Disable this feature.
19759  alias -g '${1+"$@"}'='"$@"'
19760  setopt NO_GLOB_SUBST
19761else
19762  case `(set -o) 2>/dev/null` in #(
19763  *posix*) :
19764    set -o posix ;; #(
19765  *) :
19766     ;;
19767esac
19768fi
19769
19770
19771as_nl='
19772'
19773export as_nl
19774# Printing a long string crashes Solaris 7 /usr/bin/printf.
19775as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19776as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19777as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19778# Prefer a ksh shell builtin over an external printf program on Solaris,
19779# but without wasting forks for bash or zsh.
19780if test -z "$BASH_VERSION$ZSH_VERSION" \
19781    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19782  as_echo='print -r --'
19783  as_echo_n='print -rn --'
19784elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19785  as_echo='printf %s\n'
19786  as_echo_n='printf %s'
19787else
19788  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19789    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19790    as_echo_n='/usr/ucb/echo -n'
19791  else
19792    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19793    as_echo_n_body='eval
19794      arg=$1;
19795      case $arg in #(
19796      *"$as_nl"*)
19797	expr "X$arg" : "X\\(.*\\)$as_nl";
19798	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19799      esac;
19800      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19801    '
19802    export as_echo_n_body
19803    as_echo_n='sh -c $as_echo_n_body as_echo'
19804  fi
19805  export as_echo_body
19806  as_echo='sh -c $as_echo_body as_echo'
19807fi
19808
19809# The user is always right.
19810if test "${PATH_SEPARATOR+set}" != set; then
19811  PATH_SEPARATOR=:
19812  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19813    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19814      PATH_SEPARATOR=';'
19815  }
19816fi
19817
19818
19819# IFS
19820# We need space, tab and new line, in precisely that order.  Quoting is
19821# there to prevent editors from complaining about space-tab.
19822# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19823# splitting by setting IFS to empty value.)
19824IFS=" ""	$as_nl"
19825
19826# Find who we are.  Look in the path if we contain no directory separator.
19827as_myself=
19828case $0 in #((
19829  *[\\/]* ) as_myself=$0 ;;
19830  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19831for as_dir in $PATH
19832do
19833  IFS=$as_save_IFS
19834  test -z "$as_dir" && as_dir=.
19835    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19836  done
19837IFS=$as_save_IFS
19838
19839     ;;
19840esac
19841# We did not find ourselves, most probably we were run as `sh COMMAND'
19842# in which case we are not to be found in the path.
19843if test "x$as_myself" = x; then
19844  as_myself=$0
19845fi
19846if test ! -f "$as_myself"; then
19847  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19848  exit 1
19849fi
19850
19851# Unset variables that we do not need and which cause bugs (e.g. in
19852# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19853# suppresses any "Segmentation fault" message there.  '((' could
19854# trigger a bug in pdksh 5.2.14.
19855for as_var in BASH_ENV ENV MAIL MAILPATH
19856do eval test x\${$as_var+set} = xset \
19857  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19858done
19859PS1='$ '
19860PS2='> '
19861PS4='+ '
19862
19863# NLS nuisances.
19864LC_ALL=C
19865export LC_ALL
19866LANGUAGE=C
19867export LANGUAGE
19868
19869# CDPATH.
19870(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19871
19872
19873# as_fn_error STATUS ERROR [LINENO LOG_FD]
19874# ----------------------------------------
19875# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19876# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19877# script with STATUS, using 1 if that was 0.
19878as_fn_error ()
19879{
19880  as_status=$1; test $as_status -eq 0 && as_status=1
19881  if test "$4"; then
19882    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19883    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19884  fi
19885  $as_echo "$as_me: error: $2" >&2
19886  as_fn_exit $as_status
19887} # as_fn_error
19888
19889
19890# as_fn_set_status STATUS
19891# -----------------------
19892# Set $? to STATUS, without forking.
19893as_fn_set_status ()
19894{
19895  return $1
19896} # as_fn_set_status
19897
19898# as_fn_exit STATUS
19899# -----------------
19900# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19901as_fn_exit ()
19902{
19903  set +e
19904  as_fn_set_status $1
19905  exit $1
19906} # as_fn_exit
19907
19908# as_fn_unset VAR
19909# ---------------
19910# Portably unset VAR.
19911as_fn_unset ()
19912{
19913  { eval $1=; unset $1;}
19914}
19915as_unset=as_fn_unset
19916# as_fn_append VAR VALUE
19917# ----------------------
19918# Append the text in VALUE to the end of the definition contained in VAR. Take
19919# advantage of any shell optimizations that allow amortized linear growth over
19920# repeated appends, instead of the typical quadratic growth present in naive
19921# implementations.
19922if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19923  eval 'as_fn_append ()
19924  {
19925    eval $1+=\$2
19926  }'
19927else
19928  as_fn_append ()
19929  {
19930    eval $1=\$$1\$2
19931  }
19932fi # as_fn_append
19933
19934# as_fn_arith ARG...
19935# ------------------
19936# Perform arithmetic evaluation on the ARGs, and store the result in the
19937# global $as_val. Take advantage of shells that can avoid forks. The arguments
19938# must be portable across $(()) and expr.
19939if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19940  eval 'as_fn_arith ()
19941  {
19942    as_val=$(( $* ))
19943  }'
19944else
19945  as_fn_arith ()
19946  {
19947    as_val=`expr "$@" || test $? -eq 1`
19948  }
19949fi # as_fn_arith
19950
19951
19952if expr a : '\(a\)' >/dev/null 2>&1 &&
19953   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19954  as_expr=expr
19955else
19956  as_expr=false
19957fi
19958
19959if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19960  as_basename=basename
19961else
19962  as_basename=false
19963fi
19964
19965if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19966  as_dirname=dirname
19967else
19968  as_dirname=false
19969fi
19970
19971as_me=`$as_basename -- "$0" ||
19972$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19973	 X"$0" : 'X\(//\)$' \| \
19974	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19975$as_echo X/"$0" |
19976    sed '/^.*\/\([^/][^/]*\)\/*$/{
19977	    s//\1/
19978	    q
19979	  }
19980	  /^X\/\(\/\/\)$/{
19981	    s//\1/
19982	    q
19983	  }
19984	  /^X\/\(\/\).*/{
19985	    s//\1/
19986	    q
19987	  }
19988	  s/.*/./; q'`
19989
19990# Avoid depending upon Character Ranges.
19991as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19992as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19993as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19994as_cr_digits='0123456789'
19995as_cr_alnum=$as_cr_Letters$as_cr_digits
19996
19997ECHO_C= ECHO_N= ECHO_T=
19998case `echo -n x` in #(((((
19999-n*)
20000  case `echo 'xy\c'` in
20001  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20002  xy)  ECHO_C='\c';;
20003  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20004       ECHO_T='	';;
20005  esac;;
20006*)
20007  ECHO_N='-n';;
20008esac
20009
20010rm -f conf$$ conf$$.exe conf$$.file
20011if test -d conf$$.dir; then
20012  rm -f conf$$.dir/conf$$.file
20013else
20014  rm -f conf$$.dir
20015  mkdir conf$$.dir 2>/dev/null
20016fi
20017if (echo >conf$$.file) 2>/dev/null; then
20018  if ln -s conf$$.file conf$$ 2>/dev/null; then
20019    as_ln_s='ln -s'
20020    # ... but there are two gotchas:
20021    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20022    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20023    # In both cases, we have to default to `cp -pR'.
20024    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20025      as_ln_s='cp -pR'
20026  elif ln conf$$.file conf$$ 2>/dev/null; then
20027    as_ln_s=ln
20028  else
20029    as_ln_s='cp -pR'
20030  fi
20031else
20032  as_ln_s='cp -pR'
20033fi
20034rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20035rmdir conf$$.dir 2>/dev/null
20036
20037
20038# as_fn_mkdir_p
20039# -------------
20040# Create "$as_dir" as a directory, including parents if necessary.
20041as_fn_mkdir_p ()
20042{
20043
20044  case $as_dir in #(
20045  -*) as_dir=./$as_dir;;
20046  esac
20047  test -d "$as_dir" || eval $as_mkdir_p || {
20048    as_dirs=
20049    while :; do
20050      case $as_dir in #(
20051      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20052      *) as_qdir=$as_dir;;
20053      esac
20054      as_dirs="'$as_qdir' $as_dirs"
20055      as_dir=`$as_dirname -- "$as_dir" ||
20056$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20057	 X"$as_dir" : 'X\(//\)[^/]' \| \
20058	 X"$as_dir" : 'X\(//\)$' \| \
20059	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20060$as_echo X"$as_dir" |
20061    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20062	    s//\1/
20063	    q
20064	  }
20065	  /^X\(\/\/\)[^/].*/{
20066	    s//\1/
20067	    q
20068	  }
20069	  /^X\(\/\/\)$/{
20070	    s//\1/
20071	    q
20072	  }
20073	  /^X\(\/\).*/{
20074	    s//\1/
20075	    q
20076	  }
20077	  s/.*/./; q'`
20078      test -d "$as_dir" && break
20079    done
20080    test -z "$as_dirs" || eval "mkdir $as_dirs"
20081  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20082
20083
20084} # as_fn_mkdir_p
20085if mkdir -p . 2>/dev/null; then
20086  as_mkdir_p='mkdir -p "$as_dir"'
20087else
20088  test -d ./-p && rmdir ./-p
20089  as_mkdir_p=false
20090fi
20091
20092
20093# as_fn_executable_p FILE
20094# -----------------------
20095# Test if FILE is an executable regular file.
20096as_fn_executable_p ()
20097{
20098  test -f "$1" && test -x "$1"
20099} # as_fn_executable_p
20100as_test_x='test -x'
20101as_executable_p=as_fn_executable_p
20102
20103# Sed expression to map a string onto a valid CPP name.
20104as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20105
20106# Sed expression to map a string onto a valid variable name.
20107as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20108
20109
20110exec 6>&1
20111## ----------------------------------- ##
20112## Main body of $CONFIG_STATUS script. ##
20113## ----------------------------------- ##
20114_ASEOF
20115test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20116
20117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20118# Save the log message, to keep $0 and so on meaningful, and to
20119# report actual input values of CONFIG_FILES etc. instead of their
20120# values after options handling.
20121ac_log="
20122This file was extended by isl-interface $as_me 0, which was
20123generated by GNU Autoconf 2.69.  Invocation command line was
20124
20125  CONFIG_FILES    = $CONFIG_FILES
20126  CONFIG_HEADERS  = $CONFIG_HEADERS
20127  CONFIG_LINKS    = $CONFIG_LINKS
20128  CONFIG_COMMANDS = $CONFIG_COMMANDS
20129  $ $0 $@
20130
20131on `(hostname || uname -n) 2>/dev/null | sed 1q`
20132"
20133
20134_ACEOF
20135
20136case $ac_config_files in *"
20137"*) set x $ac_config_files; shift; ac_config_files=$*;;
20138esac
20139
20140case $ac_config_headers in *"
20141"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20142esac
20143
20144
20145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20146# Files that config.status was made for.
20147config_files="$ac_config_files"
20148config_headers="$ac_config_headers"
20149config_commands="$ac_config_commands"
20150
20151_ACEOF
20152
20153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20154ac_cs_usage="\
20155\`$as_me' instantiates files and other configuration actions
20156from templates according to the current configuration.  Unless the files
20157and actions are specified as TAGs, all are instantiated by default.
20158
20159Usage: $0 [OPTION]... [TAG]...
20160
20161  -h, --help       print this help, then exit
20162  -V, --version    print version number and configuration settings, then exit
20163      --config     print configuration, then exit
20164  -q, --quiet, --silent
20165                   do not print progress messages
20166  -d, --debug      don't remove temporary files
20167      --recheck    update $as_me by reconfiguring in the same conditions
20168      --file=FILE[:TEMPLATE]
20169                   instantiate the configuration file FILE
20170      --header=FILE[:TEMPLATE]
20171                   instantiate the configuration header FILE
20172
20173Configuration files:
20174$config_files
20175
20176Configuration headers:
20177$config_headers
20178
20179Configuration commands:
20180$config_commands
20181
20182Report bugs to <isl-development@googlegroups.com>."
20183
20184_ACEOF
20185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20186ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20187ac_cs_version="\\
20188isl-interface config.status 0
20189configured by $0, generated by GNU Autoconf 2.69,
20190  with options \\"\$ac_cs_config\\"
20191
20192Copyright (C) 2012 Free Software Foundation, Inc.
20193This config.status script is free software; the Free Software Foundation
20194gives unlimited permission to copy, distribute and modify it."
20195
20196ac_pwd='$ac_pwd'
20197srcdir='$srcdir'
20198INSTALL='$INSTALL'
20199MKDIR_P='$MKDIR_P'
20200AWK='$AWK'
20201test -n "\$AWK" || AWK=awk
20202_ACEOF
20203
20204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20205# The default lists apply if the user does not specify any file.
20206ac_need_defaults=:
20207while test $# != 0
20208do
20209  case $1 in
20210  --*=?*)
20211    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20212    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20213    ac_shift=:
20214    ;;
20215  --*=)
20216    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20217    ac_optarg=
20218    ac_shift=:
20219    ;;
20220  *)
20221    ac_option=$1
20222    ac_optarg=$2
20223    ac_shift=shift
20224    ;;
20225  esac
20226
20227  case $ac_option in
20228  # Handling of the options.
20229  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20230    ac_cs_recheck=: ;;
20231  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20232    $as_echo "$ac_cs_version"; exit ;;
20233  --config | --confi | --conf | --con | --co | --c )
20234    $as_echo "$ac_cs_config"; exit ;;
20235  --debug | --debu | --deb | --de | --d | -d )
20236    debug=: ;;
20237  --file | --fil | --fi | --f )
20238    $ac_shift
20239    case $ac_optarg in
20240    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20241    '') as_fn_error $? "missing file argument" ;;
20242    esac
20243    as_fn_append CONFIG_FILES " '$ac_optarg'"
20244    ac_need_defaults=false;;
20245  --header | --heade | --head | --hea )
20246    $ac_shift
20247    case $ac_optarg in
20248    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20249    esac
20250    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20251    ac_need_defaults=false;;
20252  --he | --h)
20253    # Conflict between --help and --header
20254    as_fn_error $? "ambiguous option: \`$1'
20255Try \`$0 --help' for more information.";;
20256  --help | --hel | -h )
20257    $as_echo "$ac_cs_usage"; exit ;;
20258  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20259  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20260    ac_cs_silent=: ;;
20261
20262  # This is an error.
20263  -*) as_fn_error $? "unrecognized option: \`$1'
20264Try \`$0 --help' for more information." ;;
20265
20266  *) as_fn_append ac_config_targets " $1"
20267     ac_need_defaults=false ;;
20268
20269  esac
20270  shift
20271done
20272
20273ac_configure_extra_args=
20274
20275if $ac_cs_silent; then
20276  exec 6>/dev/null
20277  ac_configure_extra_args="$ac_configure_extra_args --silent"
20278fi
20279
20280_ACEOF
20281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20282if \$ac_cs_recheck; then
20283  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20284  shift
20285  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20286  CONFIG_SHELL='$SHELL'
20287  export CONFIG_SHELL
20288  exec "\$@"
20289fi
20290
20291_ACEOF
20292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20293exec 5>>config.log
20294{
20295  echo
20296  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20297## Running $as_me. ##
20298_ASBOX
20299  $as_echo "$ac_log"
20300} >&5
20301
20302_ACEOF
20303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20304#
20305# INIT-COMMANDS
20306#
20307AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20308
20309
20310# The HP-UX ksh and POSIX shell print the target directory to stdout
20311# if CDPATH is set.
20312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20313
20314sed_quote_subst='$sed_quote_subst'
20315double_quote_subst='$double_quote_subst'
20316delay_variable_subst='$delay_variable_subst'
20317enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20318macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20319macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20320enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20321pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20322enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20323shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20324SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20325ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20326PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20327host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20328host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20329host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20330build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20331build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20332build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20333SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20334Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20335GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20336EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20337FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20338LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20339NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20340LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20341max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20342ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20343exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20344lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20345lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20346lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20347lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20348lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20349reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20350reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20351OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20352deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20353file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20354file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20355want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20356DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20357sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20358AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20359lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20360AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20361archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20362STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20363RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20364old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20365old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20366old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20367lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20368CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20369CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20370compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20371GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20372lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20373lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20374lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20375lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20376lt_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"`'
20377lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20378nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20379lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20380lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20381objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20382MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20383lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20384lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20385lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20386lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20387lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20388need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20389MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20390DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20391NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20392LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20393OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20394OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20395libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20396shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20397extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20398archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20399enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20400export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20401whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20402compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20403old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20404old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20405archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20406archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20407module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20408module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20409with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20410allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20411no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20412hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20413hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20414hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20415hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20416hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20417hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20418hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20419inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20420link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20421always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20422export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20423exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20424include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20425prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20426postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20427file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20428variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20429need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20430need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20431version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20432runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20433shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20434shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20435libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20436library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20437soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20438install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20439postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20440postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20441finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20442finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20443hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20444sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20445configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20446configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20447hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20448enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20449enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20450enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20451old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20452striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20453compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20454predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20455postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20456predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20457postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20458compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20459LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20460reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20461reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20462old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20463compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20464GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20465lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20466lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20467lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20468lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20469lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20470archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20471enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20472export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20473whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20474compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20475old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20476old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20477archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20478archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20479module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20480module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20481with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20482allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20483no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20484hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20485hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20486hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20487hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20488hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20489hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20490hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20491inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20492link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20493always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20494export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20495exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20496include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20497prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20498postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20499file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20500hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20501compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20502predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20503postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20504predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20505postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20506compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20507
20508LTCC='$LTCC'
20509LTCFLAGS='$LTCFLAGS'
20510compiler='$compiler_DEFAULT'
20511
20512# A function that is used when there is no print builtin or printf.
20513func_fallback_echo ()
20514{
20515  eval 'cat <<_LTECHO_EOF
20516\$1
20517_LTECHO_EOF'
20518}
20519
20520# Quote evaled strings.
20521for var in SHELL \
20522ECHO \
20523PATH_SEPARATOR \
20524SED \
20525GREP \
20526EGREP \
20527FGREP \
20528LD \
20529NM \
20530LN_S \
20531lt_SP2NL \
20532lt_NL2SP \
20533reload_flag \
20534OBJDUMP \
20535deplibs_check_method \
20536file_magic_cmd \
20537file_magic_glob \
20538want_nocaseglob \
20539DLLTOOL \
20540sharedlib_from_linklib_cmd \
20541AR \
20542archiver_list_spec \
20543STRIP \
20544RANLIB \
20545CC \
20546CFLAGS \
20547compiler \
20548lt_cv_sys_global_symbol_pipe \
20549lt_cv_sys_global_symbol_to_cdecl \
20550lt_cv_sys_global_symbol_to_import \
20551lt_cv_sys_global_symbol_to_c_name_address \
20552lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20553lt_cv_nm_interface \
20554nm_file_list_spec \
20555lt_cv_truncate_bin \
20556lt_prog_compiler_no_builtin_flag \
20557lt_prog_compiler_pic \
20558lt_prog_compiler_wl \
20559lt_prog_compiler_static \
20560lt_cv_prog_compiler_c_o \
20561need_locks \
20562MANIFEST_TOOL \
20563DSYMUTIL \
20564NMEDIT \
20565LIPO \
20566OTOOL \
20567OTOOL64 \
20568shrext_cmds \
20569export_dynamic_flag_spec \
20570whole_archive_flag_spec \
20571compiler_needs_object \
20572with_gnu_ld \
20573allow_undefined_flag \
20574no_undefined_flag \
20575hardcode_libdir_flag_spec \
20576hardcode_libdir_separator \
20577exclude_expsyms \
20578include_expsyms \
20579file_list_spec \
20580variables_saved_for_relink \
20581libname_spec \
20582library_names_spec \
20583soname_spec \
20584install_override_mode \
20585finish_eval \
20586old_striplib \
20587striplib \
20588compiler_lib_search_dirs \
20589predep_objects \
20590postdep_objects \
20591predeps \
20592postdeps \
20593compiler_lib_search_path \
20594LD_CXX \
20595reload_flag_CXX \
20596compiler_CXX \
20597lt_prog_compiler_no_builtin_flag_CXX \
20598lt_prog_compiler_pic_CXX \
20599lt_prog_compiler_wl_CXX \
20600lt_prog_compiler_static_CXX \
20601lt_cv_prog_compiler_c_o_CXX \
20602export_dynamic_flag_spec_CXX \
20603whole_archive_flag_spec_CXX \
20604compiler_needs_object_CXX \
20605with_gnu_ld_CXX \
20606allow_undefined_flag_CXX \
20607no_undefined_flag_CXX \
20608hardcode_libdir_flag_spec_CXX \
20609hardcode_libdir_separator_CXX \
20610exclude_expsyms_CXX \
20611include_expsyms_CXX \
20612file_list_spec_CXX \
20613compiler_lib_search_dirs_CXX \
20614predep_objects_CXX \
20615postdep_objects_CXX \
20616predeps_CXX \
20617postdeps_CXX \
20618compiler_lib_search_path_CXX; do
20619    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20620    *[\\\\\\\`\\"\\\$]*)
20621      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20622      ;;
20623    *)
20624      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20625      ;;
20626    esac
20627done
20628
20629# Double-quote double-evaled strings.
20630for var in reload_cmds \
20631old_postinstall_cmds \
20632old_postuninstall_cmds \
20633old_archive_cmds \
20634extract_expsyms_cmds \
20635old_archive_from_new_cmds \
20636old_archive_from_expsyms_cmds \
20637archive_cmds \
20638archive_expsym_cmds \
20639module_cmds \
20640module_expsym_cmds \
20641export_symbols_cmds \
20642prelink_cmds \
20643postlink_cmds \
20644postinstall_cmds \
20645postuninstall_cmds \
20646finish_cmds \
20647sys_lib_search_path_spec \
20648configure_time_dlsearch_path \
20649configure_time_lt_sys_library_path \
20650reload_cmds_CXX \
20651old_archive_cmds_CXX \
20652old_archive_from_new_cmds_CXX \
20653old_archive_from_expsyms_cmds_CXX \
20654archive_cmds_CXX \
20655archive_expsym_cmds_CXX \
20656module_cmds_CXX \
20657module_expsym_cmds_CXX \
20658export_symbols_cmds_CXX \
20659prelink_cmds_CXX \
20660postlink_cmds_CXX; do
20661    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20662    *[\\\\\\\`\\"\\\$]*)
20663      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20664      ;;
20665    *)
20666      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20667      ;;
20668    esac
20669done
20670
20671ac_aux_dir='$ac_aux_dir'
20672
20673# See if we are running on zsh, and set the options that allow our
20674# commands through without removal of \ escapes INIT.
20675if test -n "\${ZSH_VERSION+set}"; then
20676   setopt NO_GLOB_SUBST
20677fi
20678
20679
20680    PACKAGE='$PACKAGE'
20681    VERSION='$VERSION'
20682    RM='$RM'
20683    ofile='$ofile'
20684
20685
20686
20687
20688
20689
20690_ACEOF
20691
20692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20693
20694# Handling of arguments.
20695for ac_config_target in $ac_config_targets
20696do
20697  case $ac_config_target in
20698    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20699    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20700    "isl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS isl_config.h" ;;
20701    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20702
20703  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20704  esac
20705done
20706
20707
20708# If the user did not use the arguments to specify the items to instantiate,
20709# then the envvar interface is used.  Set only those that are not.
20710# We use the long form for the default assignment because of an extremely
20711# bizarre bug on SunOS 4.1.3.
20712if $ac_need_defaults; then
20713  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20714  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20715  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20716fi
20717
20718# Have a temporary directory for convenience.  Make it in the build tree
20719# simply because there is no reason against having it here, and in addition,
20720# creating and moving files from /tmp can sometimes cause problems.
20721# Hook for its removal unless debugging.
20722# Note that there is a small window in which the directory will not be cleaned:
20723# after its creation but before its name has been assigned to `$tmp'.
20724$debug ||
20725{
20726  tmp= ac_tmp=
20727  trap 'exit_status=$?
20728  : "${ac_tmp:=$tmp}"
20729  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20730' 0
20731  trap 'as_fn_exit 1' 1 2 13 15
20732}
20733# Create a (secure) tmp directory for tmp files.
20734
20735{
20736  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20737  test -d "$tmp"
20738}  ||
20739{
20740  tmp=./conf$$-$RANDOM
20741  (umask 077 && mkdir "$tmp")
20742} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20743ac_tmp=$tmp
20744
20745# Set up the scripts for CONFIG_FILES section.
20746# No need to generate them if there are no CONFIG_FILES.
20747# This happens for instance with `./config.status config.h'.
20748if test -n "$CONFIG_FILES"; then
20749
20750
20751ac_cr=`echo X | tr X '\015'`
20752# On cygwin, bash can eat \r inside `` if the user requested igncr.
20753# But we know of no other shell where ac_cr would be empty at this
20754# point, so we can use a bashism as a fallback.
20755if test "x$ac_cr" = x; then
20756  eval ac_cr=\$\'\\r\'
20757fi
20758ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20759if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20760  ac_cs_awk_cr='\\r'
20761else
20762  ac_cs_awk_cr=$ac_cr
20763fi
20764
20765echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20766_ACEOF
20767
20768
20769{
20770  echo "cat >conf$$subs.awk <<_ACEOF" &&
20771  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20772  echo "_ACEOF"
20773} >conf$$subs.sh ||
20774  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20775ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20776ac_delim='%!_!# '
20777for ac_last_try in false false false false false :; do
20778  . ./conf$$subs.sh ||
20779    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20780
20781  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20782  if test $ac_delim_n = $ac_delim_num; then
20783    break
20784  elif $ac_last_try; then
20785    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20786  else
20787    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20788  fi
20789done
20790rm -f conf$$subs.sh
20791
20792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20793cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20794_ACEOF
20795sed -n '
20796h
20797s/^/S["/; s/!.*/"]=/
20798p
20799g
20800s/^[^!]*!//
20801:repl
20802t repl
20803s/'"$ac_delim"'$//
20804t delim
20805:nl
20806h
20807s/\(.\{148\}\)..*/\1/
20808t more1
20809s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20810p
20811n
20812b repl
20813:more1
20814s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20815p
20816g
20817s/.\{148\}//
20818t nl
20819:delim
20820h
20821s/\(.\{148\}\)..*/\1/
20822t more2
20823s/["\\]/\\&/g; s/^/"/; s/$/"/
20824p
20825b
20826:more2
20827s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20828p
20829g
20830s/.\{148\}//
20831t delim
20832' <conf$$subs.awk | sed '
20833/^[^""]/{
20834  N
20835  s/\n//
20836}
20837' >>$CONFIG_STATUS || ac_write_fail=1
20838rm -f conf$$subs.awk
20839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20840_ACAWK
20841cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20842  for (key in S) S_is_set[key] = 1
20843  FS = ""
20844
20845}
20846{
20847  line = $ 0
20848  nfields = split(line, field, "@")
20849  substed = 0
20850  len = length(field[1])
20851  for (i = 2; i < nfields; i++) {
20852    key = field[i]
20853    keylen = length(key)
20854    if (S_is_set[key]) {
20855      value = S[key]
20856      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20857      len += length(value) + length(field[++i])
20858      substed = 1
20859    } else
20860      len += 1 + keylen
20861  }
20862
20863  print line
20864}
20865
20866_ACAWK
20867_ACEOF
20868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20869if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20870  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20871else
20872  cat
20873fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20874  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20875_ACEOF
20876
20877# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20878# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20879# trailing colons and then remove the whole line if VPATH becomes empty
20880# (actually we leave an empty line to preserve line numbers).
20881if test "x$srcdir" = x.; then
20882  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20883h
20884s///
20885s/^/:/
20886s/[	 ]*$/:/
20887s/:\$(srcdir):/:/g
20888s/:\${srcdir}:/:/g
20889s/:@srcdir@:/:/g
20890s/^:*//
20891s/:*$//
20892x
20893s/\(=[	 ]*\).*/\1/
20894G
20895s/\n//
20896s/^[^=]*=[	 ]*$//
20897}'
20898fi
20899
20900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20901fi # test -n "$CONFIG_FILES"
20902
20903# Set up the scripts for CONFIG_HEADERS section.
20904# No need to generate them if there are no CONFIG_HEADERS.
20905# This happens for instance with `./config.status Makefile'.
20906if test -n "$CONFIG_HEADERS"; then
20907cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20908BEGIN {
20909_ACEOF
20910
20911# Transform confdefs.h into an awk script `defines.awk', embedded as
20912# here-document in config.status, that substitutes the proper values into
20913# config.h.in to produce config.h.
20914
20915# Create a delimiter string that does not exist in confdefs.h, to ease
20916# handling of long lines.
20917ac_delim='%!_!# '
20918for ac_last_try in false false :; do
20919  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20920  if test -z "$ac_tt"; then
20921    break
20922  elif $ac_last_try; then
20923    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20924  else
20925    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20926  fi
20927done
20928
20929# For the awk script, D is an array of macro values keyed by name,
20930# likewise P contains macro parameters if any.  Preserve backslash
20931# newline sequences.
20932
20933ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20934sed -n '
20935s/.\{148\}/&'"$ac_delim"'/g
20936t rset
20937:rset
20938s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20939t def
20940d
20941:def
20942s/\\$//
20943t bsnl
20944s/["\\]/\\&/g
20945s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20946D["\1"]=" \3"/p
20947s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20948d
20949:bsnl
20950s/["\\]/\\&/g
20951s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20952D["\1"]=" \3\\\\\\n"\\/p
20953t cont
20954s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20955t cont
20956d
20957:cont
20958n
20959s/.\{148\}/&'"$ac_delim"'/g
20960t clear
20961:clear
20962s/\\$//
20963t bsnlc
20964s/["\\]/\\&/g; s/^/"/; s/$/"/p
20965d
20966:bsnlc
20967s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20968b cont
20969' <confdefs.h | sed '
20970s/'"$ac_delim"'/"\\\
20971"/g' >>$CONFIG_STATUS || ac_write_fail=1
20972
20973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20974  for (key in D) D_is_set[key] = 1
20975  FS = ""
20976}
20977/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20978  line = \$ 0
20979  split(line, arg, " ")
20980  if (arg[1] == "#") {
20981    defundef = arg[2]
20982    mac1 = arg[3]
20983  } else {
20984    defundef = substr(arg[1], 2)
20985    mac1 = arg[2]
20986  }
20987  split(mac1, mac2, "(") #)
20988  macro = mac2[1]
20989  prefix = substr(line, 1, index(line, defundef) - 1)
20990  if (D_is_set[macro]) {
20991    # Preserve the white space surrounding the "#".
20992    print prefix "define", macro P[macro] D[macro]
20993    next
20994  } else {
20995    # Replace #undef with comments.  This is necessary, for example,
20996    # in the case of _POSIX_SOURCE, which is predefined and required
20997    # on some systems where configure will not decide to define it.
20998    if (defundef == "undef") {
20999      print "/*", prefix defundef, macro, "*/"
21000      next
21001    }
21002  }
21003}
21004{ print }
21005_ACAWK
21006_ACEOF
21007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21008  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21009fi # test -n "$CONFIG_HEADERS"
21010
21011
21012eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21013shift
21014for ac_tag
21015do
21016  case $ac_tag in
21017  :[FHLC]) ac_mode=$ac_tag; continue;;
21018  esac
21019  case $ac_mode$ac_tag in
21020  :[FHL]*:*);;
21021  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21022  :[FH]-) ac_tag=-:-;;
21023  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21024  esac
21025  ac_save_IFS=$IFS
21026  IFS=:
21027  set x $ac_tag
21028  IFS=$ac_save_IFS
21029  shift
21030  ac_file=$1
21031  shift
21032
21033  case $ac_mode in
21034  :L) ac_source=$1;;
21035  :[FH])
21036    ac_file_inputs=
21037    for ac_f
21038    do
21039      case $ac_f in
21040      -) ac_f="$ac_tmp/stdin";;
21041      *) # Look for the file first in the build tree, then in the source tree
21042	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21043	 # because $ac_f cannot contain `:'.
21044	 test -f "$ac_f" ||
21045	   case $ac_f in
21046	   [\\/$]*) false;;
21047	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21048	   esac ||
21049	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21050      esac
21051      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21052      as_fn_append ac_file_inputs " '$ac_f'"
21053    done
21054
21055    # Let's still pretend it is `configure' which instantiates (i.e., don't
21056    # use $as_me), people would be surprised to read:
21057    #    /* config.h.  Generated by config.status.  */
21058    configure_input='Generated from '`
21059	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21060	`' by configure.'
21061    if test x"$ac_file" != x-; then
21062      configure_input="$ac_file.  $configure_input"
21063      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21064$as_echo "$as_me: creating $ac_file" >&6;}
21065    fi
21066    # Neutralize special characters interpreted by sed in replacement strings.
21067    case $configure_input in #(
21068    *\&* | *\|* | *\\* )
21069       ac_sed_conf_input=`$as_echo "$configure_input" |
21070       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21071    *) ac_sed_conf_input=$configure_input;;
21072    esac
21073
21074    case $ac_tag in
21075    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21076      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21077    esac
21078    ;;
21079  esac
21080
21081  ac_dir=`$as_dirname -- "$ac_file" ||
21082$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21083	 X"$ac_file" : 'X\(//\)[^/]' \| \
21084	 X"$ac_file" : 'X\(//\)$' \| \
21085	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21086$as_echo X"$ac_file" |
21087    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21088	    s//\1/
21089	    q
21090	  }
21091	  /^X\(\/\/\)[^/].*/{
21092	    s//\1/
21093	    q
21094	  }
21095	  /^X\(\/\/\)$/{
21096	    s//\1/
21097	    q
21098	  }
21099	  /^X\(\/\).*/{
21100	    s//\1/
21101	    q
21102	  }
21103	  s/.*/./; q'`
21104  as_dir="$ac_dir"; as_fn_mkdir_p
21105  ac_builddir=.
21106
21107case "$ac_dir" in
21108.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21109*)
21110  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21111  # A ".." for each directory in $ac_dir_suffix.
21112  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21113  case $ac_top_builddir_sub in
21114  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21115  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21116  esac ;;
21117esac
21118ac_abs_top_builddir=$ac_pwd
21119ac_abs_builddir=$ac_pwd$ac_dir_suffix
21120# for backward compatibility:
21121ac_top_builddir=$ac_top_build_prefix
21122
21123case $srcdir in
21124  .)  # We are building in place.
21125    ac_srcdir=.
21126    ac_top_srcdir=$ac_top_builddir_sub
21127    ac_abs_top_srcdir=$ac_pwd ;;
21128  [\\/]* | ?:[\\/]* )  # Absolute name.
21129    ac_srcdir=$srcdir$ac_dir_suffix;
21130    ac_top_srcdir=$srcdir
21131    ac_abs_top_srcdir=$srcdir ;;
21132  *) # Relative name.
21133    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21134    ac_top_srcdir=$ac_top_build_prefix$srcdir
21135    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21136esac
21137ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21138
21139
21140  case $ac_mode in
21141  :F)
21142  #
21143  # CONFIG_FILE
21144  #
21145
21146  case $INSTALL in
21147  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21148  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21149  esac
21150  ac_MKDIR_P=$MKDIR_P
21151  case $MKDIR_P in
21152  [\\/$]* | ?:[\\/]* ) ;;
21153  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21154  esac
21155_ACEOF
21156
21157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21158# If the template does not know about datarootdir, expand it.
21159# FIXME: This hack should be removed a few years after 2.60.
21160ac_datarootdir_hack=; ac_datarootdir_seen=
21161ac_sed_dataroot='
21162/datarootdir/ {
21163  p
21164  q
21165}
21166/@datadir@/p
21167/@docdir@/p
21168/@infodir@/p
21169/@localedir@/p
21170/@mandir@/p'
21171case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21172*datarootdir*) ac_datarootdir_seen=yes;;
21173*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21174  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21175$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21176_ACEOF
21177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21178  ac_datarootdir_hack='
21179  s&@datadir@&$datadir&g
21180  s&@docdir@&$docdir&g
21181  s&@infodir@&$infodir&g
21182  s&@localedir@&$localedir&g
21183  s&@mandir@&$mandir&g
21184  s&\\\${datarootdir}&$datarootdir&g' ;;
21185esac
21186_ACEOF
21187
21188# Neutralize VPATH when `$srcdir' = `.'.
21189# Shell code in configure.ac might set extrasub.
21190# FIXME: do we really want to maintain this feature?
21191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21192ac_sed_extra="$ac_vpsub
21193$extrasub
21194_ACEOF
21195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21196:t
21197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21198s|@configure_input@|$ac_sed_conf_input|;t t
21199s&@top_builddir@&$ac_top_builddir_sub&;t t
21200s&@top_build_prefix@&$ac_top_build_prefix&;t t
21201s&@srcdir@&$ac_srcdir&;t t
21202s&@abs_srcdir@&$ac_abs_srcdir&;t t
21203s&@top_srcdir@&$ac_top_srcdir&;t t
21204s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21205s&@builddir@&$ac_builddir&;t t
21206s&@abs_builddir@&$ac_abs_builddir&;t t
21207s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21208s&@INSTALL@&$ac_INSTALL&;t t
21209s&@MKDIR_P@&$ac_MKDIR_P&;t t
21210$ac_datarootdir_hack
21211"
21212eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21213  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21214
21215test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21216  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21217  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21218      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21219  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21220which seems to be undefined.  Please make sure it is defined" >&5
21221$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21222which seems to be undefined.  Please make sure it is defined" >&2;}
21223
21224  rm -f "$ac_tmp/stdin"
21225  case $ac_file in
21226  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21227  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21228  esac \
21229  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21230 ;;
21231  :H)
21232  #
21233  # CONFIG_HEADER
21234  #
21235  if test x"$ac_file" != x-; then
21236    {
21237      $as_echo "/* $configure_input  */" \
21238      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21239    } >"$ac_tmp/config.h" \
21240      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21241    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21242      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21243$as_echo "$as_me: $ac_file is unchanged" >&6;}
21244    else
21245      rm -f "$ac_file"
21246      mv "$ac_tmp/config.h" "$ac_file" \
21247	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21248    fi
21249  else
21250    $as_echo "/* $configure_input  */" \
21251      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21252      || as_fn_error $? "could not create -" "$LINENO" 5
21253  fi
21254# Compute "$ac_file"'s index in $config_headers.
21255_am_arg="$ac_file"
21256_am_stamp_count=1
21257for _am_header in $config_headers :; do
21258  case $_am_header in
21259    $_am_arg | $_am_arg:* )
21260      break ;;
21261    * )
21262      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21263  esac
21264done
21265echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21266$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21267	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21268	 X"$_am_arg" : 'X\(//\)$' \| \
21269	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21270$as_echo X"$_am_arg" |
21271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21272	    s//\1/
21273	    q
21274	  }
21275	  /^X\(\/\/\)[^/].*/{
21276	    s//\1/
21277	    q
21278	  }
21279	  /^X\(\/\/\)$/{
21280	    s//\1/
21281	    q
21282	  }
21283	  /^X\(\/\).*/{
21284	    s//\1/
21285	    q
21286	  }
21287	  s/.*/./; q'`/stamp-h$_am_stamp_count
21288 ;;
21289
21290  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21291$as_echo "$as_me: executing $ac_file commands" >&6;}
21292 ;;
21293  esac
21294
21295
21296  case $ac_file$ac_mode in
21297    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21298  # Older Autoconf quotes --file arguments for eval, but not when files
21299  # are listed without --file.  Let's play safe and only enable the eval
21300  # if we detect the quoting.
21301  # TODO: see whether this extra hack can be removed once we start
21302  # requiring Autoconf 2.70 or later.
21303  case $CONFIG_FILES in #(
21304  *\'*) :
21305    eval set x "$CONFIG_FILES" ;; #(
21306  *) :
21307    set x $CONFIG_FILES ;; #(
21308  *) :
21309     ;;
21310esac
21311  shift
21312  # Used to flag and report bootstrapping failures.
21313  am_rc=0
21314  for am_mf
21315  do
21316    # Strip MF so we end up with the name of the file.
21317    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21318    # Check whether this is an Automake generated Makefile which includes
21319    # dependency-tracking related rules and includes.
21320    # Grep'ing the whole file directly is not great: AIX grep has a line
21321    # limit of 2048, but all sed's we know have understand at least 4000.
21322    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21323      || continue
21324    am_dirpart=`$as_dirname -- "$am_mf" ||
21325$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21326	 X"$am_mf" : 'X\(//\)[^/]' \| \
21327	 X"$am_mf" : 'X\(//\)$' \| \
21328	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21329$as_echo X"$am_mf" |
21330    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21331	    s//\1/
21332	    q
21333	  }
21334	  /^X\(\/\/\)[^/].*/{
21335	    s//\1/
21336	    q
21337	  }
21338	  /^X\(\/\/\)$/{
21339	    s//\1/
21340	    q
21341	  }
21342	  /^X\(\/\).*/{
21343	    s//\1/
21344	    q
21345	  }
21346	  s/.*/./; q'`
21347    am_filepart=`$as_basename -- "$am_mf" ||
21348$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21349	 X"$am_mf" : 'X\(//\)$' \| \
21350	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21351$as_echo X/"$am_mf" |
21352    sed '/^.*\/\([^/][^/]*\)\/*$/{
21353	    s//\1/
21354	    q
21355	  }
21356	  /^X\/\(\/\/\)$/{
21357	    s//\1/
21358	    q
21359	  }
21360	  /^X\/\(\/\).*/{
21361	    s//\1/
21362	    q
21363	  }
21364	  s/.*/./; q'`
21365    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21366      && sed -e '/# am--include-marker/d' "$am_filepart" \
21367        | $MAKE -f - am--depfiles" >&5
21368   (cd "$am_dirpart" \
21369      && sed -e '/# am--include-marker/d' "$am_filepart" \
21370        | $MAKE -f - am--depfiles) >&5 2>&5
21371   ac_status=$?
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); } || am_rc=$?
21374  done
21375  if test $am_rc -ne 0; then
21376    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21378as_fn_error $? "Something went wrong bootstrapping makefile fragments
21379    for automatic dependency tracking.  If GNU make was not used, consider
21380    re-running the configure script with MAKE=\"gmake\" (or whatever is
21381    necessary).  You can also try re-running configure with the
21382    '--disable-dependency-tracking' option to at least be able to build
21383    the package (albeit without support for automatic dependency tracking).
21384See \`config.log' for more details" "$LINENO" 5; }
21385  fi
21386  { am_dirpart=; unset am_dirpart;}
21387  { am_filepart=; unset am_filepart;}
21388  { am_mf=; unset am_mf;}
21389  { am_rc=; unset am_rc;}
21390  rm -f conftest-deps.mk
21391}
21392 ;;
21393    "libtool":C)
21394
21395    # See if we are running on zsh, and set the options that allow our
21396    # commands through without removal of \ escapes.
21397    if test -n "${ZSH_VERSION+set}"; then
21398      setopt NO_GLOB_SUBST
21399    fi
21400
21401    cfgfile=${ofile}T
21402    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21403    $RM "$cfgfile"
21404
21405    cat <<_LT_EOF >> "$cfgfile"
21406#! $SHELL
21407# Generated automatically by $as_me ($PACKAGE) $VERSION
21408# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21409
21410# Provide generalized library-building support services.
21411# Written by Gordon Matzigkeit, 1996
21412
21413# Copyright (C) 2014 Free Software Foundation, Inc.
21414# This is free software; see the source for copying conditions.  There is NO
21415# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21416
21417# GNU Libtool is free software; you can redistribute it and/or modify
21418# it under the terms of the GNU General Public License as published by
21419# the Free Software Foundation; either version 2 of of the License, or
21420# (at your option) any later version.
21421#
21422# As a special exception to the GNU General Public License, if you
21423# distribute this file as part of a program or library that is built
21424# using GNU Libtool, you may include this file under the  same
21425# distribution terms that you use for the rest of that program.
21426#
21427# GNU Libtool is distributed in the hope that it will be useful, but
21428# WITHOUT ANY WARRANTY; without even the implied warranty of
21429# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21430# GNU General Public License for more details.
21431#
21432# You should have received a copy of the GNU General Public License
21433# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21434
21435
21436# The names of the tagged configurations supported by this script.
21437available_tags='CXX '
21438
21439# Configured defaults for sys_lib_dlsearch_path munging.
21440: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21441
21442# ### BEGIN LIBTOOL CONFIG
21443
21444# Whether or not to build shared libraries.
21445build_libtool_libs=$enable_shared
21446
21447# Which release of libtool.m4 was used?
21448macro_version=$macro_version
21449macro_revision=$macro_revision
21450
21451# Whether or not to build static libraries.
21452build_old_libs=$enable_static
21453
21454# What type of objects to build.
21455pic_mode=$pic_mode
21456
21457# Whether or not to optimize for fast installation.
21458fast_install=$enable_fast_install
21459
21460# Shared archive member basename,for filename based shared library versioning on AIX.
21461shared_archive_member_spec=$shared_archive_member_spec
21462
21463# Shell to use when invoking shell scripts.
21464SHELL=$lt_SHELL
21465
21466# An echo program that protects backslashes.
21467ECHO=$lt_ECHO
21468
21469# The PATH separator for the build system.
21470PATH_SEPARATOR=$lt_PATH_SEPARATOR
21471
21472# The host system.
21473host_alias=$host_alias
21474host=$host
21475host_os=$host_os
21476
21477# The build system.
21478build_alias=$build_alias
21479build=$build
21480build_os=$build_os
21481
21482# A sed program that does not truncate output.
21483SED=$lt_SED
21484
21485# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21486Xsed="\$SED -e 1s/^X//"
21487
21488# A grep program that handles long lines.
21489GREP=$lt_GREP
21490
21491# An ERE matcher.
21492EGREP=$lt_EGREP
21493
21494# A literal string matcher.
21495FGREP=$lt_FGREP
21496
21497# A BSD- or MS-compatible name lister.
21498NM=$lt_NM
21499
21500# Whether we need soft or hard links.
21501LN_S=$lt_LN_S
21502
21503# What is the maximum length of a command?
21504max_cmd_len=$max_cmd_len
21505
21506# Object file suffix (normally "o").
21507objext=$ac_objext
21508
21509# Executable file suffix (normally "").
21510exeext=$exeext
21511
21512# whether the shell understands "unset".
21513lt_unset=$lt_unset
21514
21515# turn spaces into newlines.
21516SP2NL=$lt_lt_SP2NL
21517
21518# turn newlines into spaces.
21519NL2SP=$lt_lt_NL2SP
21520
21521# convert \$build file names to \$host format.
21522to_host_file_cmd=$lt_cv_to_host_file_cmd
21523
21524# convert \$build files to toolchain format.
21525to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21526
21527# An object symbol dumper.
21528OBJDUMP=$lt_OBJDUMP
21529
21530# Method to check whether dependent libraries are shared objects.
21531deplibs_check_method=$lt_deplibs_check_method
21532
21533# Command to use when deplibs_check_method = "file_magic".
21534file_magic_cmd=$lt_file_magic_cmd
21535
21536# How to find potential files when deplibs_check_method = "file_magic".
21537file_magic_glob=$lt_file_magic_glob
21538
21539# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21540want_nocaseglob=$lt_want_nocaseglob
21541
21542# DLL creation program.
21543DLLTOOL=$lt_DLLTOOL
21544
21545# Command to associate shared and link libraries.
21546sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21547
21548# The archiver.
21549AR=$lt_AR
21550
21551# Flags to create an archive (by configure).
21552lt_ar_flags=$lt_ar_flags
21553
21554# Flags to create an archive.
21555AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21556
21557# How to feed a file listing to the archiver.
21558archiver_list_spec=$lt_archiver_list_spec
21559
21560# A symbol stripping program.
21561STRIP=$lt_STRIP
21562
21563# Commands used to install an old-style archive.
21564RANLIB=$lt_RANLIB
21565old_postinstall_cmds=$lt_old_postinstall_cmds
21566old_postuninstall_cmds=$lt_old_postuninstall_cmds
21567
21568# Whether to use a lock for old archive extraction.
21569lock_old_archive_extraction=$lock_old_archive_extraction
21570
21571# A C compiler.
21572LTCC=$lt_CC
21573
21574# LTCC compiler flags.
21575LTCFLAGS=$lt_CFLAGS
21576
21577# Take the output of nm and produce a listing of raw symbols and C names.
21578global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21579
21580# Transform the output of nm in a proper C declaration.
21581global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21582
21583# Transform the output of nm into a list of symbols to manually relocate.
21584global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21585
21586# Transform the output of nm in a C name address pair.
21587global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21588
21589# Transform the output of nm in a C name address pair when lib prefix is needed.
21590global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21591
21592# The name lister interface.
21593nm_interface=$lt_lt_cv_nm_interface
21594
21595# Specify filename containing input files for \$NM.
21596nm_file_list_spec=$lt_nm_file_list_spec
21597
21598# The root where to search for dependent libraries,and where our libraries should be installed.
21599lt_sysroot=$lt_sysroot
21600
21601# Command to truncate a binary pipe.
21602lt_truncate_bin=$lt_lt_cv_truncate_bin
21603
21604# The name of the directory that contains temporary libtool files.
21605objdir=$objdir
21606
21607# Used to examine libraries when file_magic_cmd begins with "file".
21608MAGIC_CMD=$MAGIC_CMD
21609
21610# Must we lock files when doing compilation?
21611need_locks=$lt_need_locks
21612
21613# Manifest tool.
21614MANIFEST_TOOL=$lt_MANIFEST_TOOL
21615
21616# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21617DSYMUTIL=$lt_DSYMUTIL
21618
21619# Tool to change global to local symbols on Mac OS X.
21620NMEDIT=$lt_NMEDIT
21621
21622# Tool to manipulate fat objects and archives on Mac OS X.
21623LIPO=$lt_LIPO
21624
21625# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21626OTOOL=$lt_OTOOL
21627
21628# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21629OTOOL64=$lt_OTOOL64
21630
21631# Old archive suffix (normally "a").
21632libext=$libext
21633
21634# Shared library suffix (normally ".so").
21635shrext_cmds=$lt_shrext_cmds
21636
21637# The commands to extract the exported symbol list from a shared archive.
21638extract_expsyms_cmds=$lt_extract_expsyms_cmds
21639
21640# Variables whose values should be saved in libtool wrapper scripts and
21641# restored at link time.
21642variables_saved_for_relink=$lt_variables_saved_for_relink
21643
21644# Do we need the "lib" prefix for modules?
21645need_lib_prefix=$need_lib_prefix
21646
21647# Do we need a version for libraries?
21648need_version=$need_version
21649
21650# Library versioning type.
21651version_type=$version_type
21652
21653# Shared library runtime path variable.
21654runpath_var=$runpath_var
21655
21656# Shared library path variable.
21657shlibpath_var=$shlibpath_var
21658
21659# Is shlibpath searched before the hard-coded library search path?
21660shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21661
21662# Format of library name prefix.
21663libname_spec=$lt_libname_spec
21664
21665# List of archive names.  First name is the real one, the rest are links.
21666# The last name is the one that the linker finds with -lNAME
21667library_names_spec=$lt_library_names_spec
21668
21669# The coded name of the library, if different from the real name.
21670soname_spec=$lt_soname_spec
21671
21672# Permission mode override for installation of shared libraries.
21673install_override_mode=$lt_install_override_mode
21674
21675# Command to use after installation of a shared archive.
21676postinstall_cmds=$lt_postinstall_cmds
21677
21678# Command to use after uninstallation of a shared archive.
21679postuninstall_cmds=$lt_postuninstall_cmds
21680
21681# Commands used to finish a libtool library installation in a directory.
21682finish_cmds=$lt_finish_cmds
21683
21684# As "finish_cmds", except a single script fragment to be evaled but
21685# not shown.
21686finish_eval=$lt_finish_eval
21687
21688# Whether we should hardcode library paths into libraries.
21689hardcode_into_libs=$hardcode_into_libs
21690
21691# Compile-time system search path for libraries.
21692sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21693
21694# Detected run-time system search path for libraries.
21695sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21696
21697# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21698configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21699
21700# Whether dlopen is supported.
21701dlopen_support=$enable_dlopen
21702
21703# Whether dlopen of programs is supported.
21704dlopen_self=$enable_dlopen_self
21705
21706# Whether dlopen of statically linked programs is supported.
21707dlopen_self_static=$enable_dlopen_self_static
21708
21709# Commands to strip libraries.
21710old_striplib=$lt_old_striplib
21711striplib=$lt_striplib
21712
21713
21714# The linker used to build libraries.
21715LD=$lt_LD
21716
21717# How to create reloadable object files.
21718reload_flag=$lt_reload_flag
21719reload_cmds=$lt_reload_cmds
21720
21721# Commands used to build an old-style archive.
21722old_archive_cmds=$lt_old_archive_cmds
21723
21724# A language specific compiler.
21725CC=$lt_compiler
21726
21727# Is the compiler the GNU compiler?
21728with_gcc=$GCC
21729
21730# Compiler flag to turn off builtin functions.
21731no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21732
21733# Additional compiler flags for building library objects.
21734pic_flag=$lt_lt_prog_compiler_pic
21735
21736# How to pass a linker flag through the compiler.
21737wl=$lt_lt_prog_compiler_wl
21738
21739# Compiler flag to prevent dynamic linking.
21740link_static_flag=$lt_lt_prog_compiler_static
21741
21742# Does compiler simultaneously support -c and -o options?
21743compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21744
21745# Whether or not to add -lc for building shared libraries.
21746build_libtool_need_lc=$archive_cmds_need_lc
21747
21748# Whether or not to disallow shared libs when runtime libs are static.
21749allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21750
21751# Compiler flag to allow reflexive dlopens.
21752export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21753
21754# Compiler flag to generate shared objects directly from archives.
21755whole_archive_flag_spec=$lt_whole_archive_flag_spec
21756
21757# Whether the compiler copes with passing no objects directly.
21758compiler_needs_object=$lt_compiler_needs_object
21759
21760# Create an old-style archive from a shared archive.
21761old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21762
21763# Create a temporary old-style archive to link instead of a shared archive.
21764old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21765
21766# Commands used to build a shared archive.
21767archive_cmds=$lt_archive_cmds
21768archive_expsym_cmds=$lt_archive_expsym_cmds
21769
21770# Commands used to build a loadable module if different from building
21771# a shared archive.
21772module_cmds=$lt_module_cmds
21773module_expsym_cmds=$lt_module_expsym_cmds
21774
21775# Whether we are building with GNU ld or not.
21776with_gnu_ld=$lt_with_gnu_ld
21777
21778# Flag that allows shared libraries with undefined symbols to be built.
21779allow_undefined_flag=$lt_allow_undefined_flag
21780
21781# Flag that enforces no undefined symbols.
21782no_undefined_flag=$lt_no_undefined_flag
21783
21784# Flag to hardcode \$libdir into a binary during linking.
21785# This must work even if \$libdir does not exist
21786hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21787
21788# Whether we need a single "-rpath" flag with a separated argument.
21789hardcode_libdir_separator=$lt_hardcode_libdir_separator
21790
21791# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21792# DIR into the resulting binary.
21793hardcode_direct=$hardcode_direct
21794
21795# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21796# DIR into the resulting binary and the resulting library dependency is
21797# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21798# library is relocated.
21799hardcode_direct_absolute=$hardcode_direct_absolute
21800
21801# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21802# into the resulting binary.
21803hardcode_minus_L=$hardcode_minus_L
21804
21805# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21806# into the resulting binary.
21807hardcode_shlibpath_var=$hardcode_shlibpath_var
21808
21809# Set to "yes" if building a shared library automatically hardcodes DIR
21810# into the library and all subsequent libraries and executables linked
21811# against it.
21812hardcode_automatic=$hardcode_automatic
21813
21814# Set to yes if linker adds runtime paths of dependent libraries
21815# to runtime path list.
21816inherit_rpath=$inherit_rpath
21817
21818# Whether libtool must link a program against all its dependency libraries.
21819link_all_deplibs=$link_all_deplibs
21820
21821# Set to "yes" if exported symbols are required.
21822always_export_symbols=$always_export_symbols
21823
21824# The commands to list exported symbols.
21825export_symbols_cmds=$lt_export_symbols_cmds
21826
21827# Symbols that should not be listed in the preloaded symbols.
21828exclude_expsyms=$lt_exclude_expsyms
21829
21830# Symbols that must always be exported.
21831include_expsyms=$lt_include_expsyms
21832
21833# Commands necessary for linking programs (against libraries) with templates.
21834prelink_cmds=$lt_prelink_cmds
21835
21836# Commands necessary for finishing linking programs.
21837postlink_cmds=$lt_postlink_cmds
21838
21839# Specify filename containing input files.
21840file_list_spec=$lt_file_list_spec
21841
21842# How to hardcode a shared library path into an executable.
21843hardcode_action=$hardcode_action
21844
21845# The directories searched by this compiler when creating a shared library.
21846compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21847
21848# Dependencies to place before and after the objects being linked to
21849# create a shared library.
21850predep_objects=$lt_predep_objects
21851postdep_objects=$lt_postdep_objects
21852predeps=$lt_predeps
21853postdeps=$lt_postdeps
21854
21855# The library search path used internally by the compiler when linking
21856# a shared library.
21857compiler_lib_search_path=$lt_compiler_lib_search_path
21858
21859# ### END LIBTOOL CONFIG
21860
21861_LT_EOF
21862
21863    cat <<'_LT_EOF' >> "$cfgfile"
21864
21865# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21866
21867# func_munge_path_list VARIABLE PATH
21868# -----------------------------------
21869# VARIABLE is name of variable containing _space_ separated list of
21870# directories to be munged by the contents of PATH, which is string
21871# having a format:
21872# "DIR[:DIR]:"
21873#       string "DIR[ DIR]" will be prepended to VARIABLE
21874# ":DIR[:DIR]"
21875#       string "DIR[ DIR]" will be appended to VARIABLE
21876# "DIRP[:DIRP]::[DIRA:]DIRA"
21877#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21878#       "DIRA[ DIRA]" will be appended to VARIABLE
21879# "DIR[:DIR]"
21880#       VARIABLE will be replaced by "DIR[ DIR]"
21881func_munge_path_list ()
21882{
21883    case x$2 in
21884    x)
21885        ;;
21886    *:)
21887        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21888        ;;
21889    x:*)
21890        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21891        ;;
21892    *::*)
21893        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21894        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21895        ;;
21896    *)
21897        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21898        ;;
21899    esac
21900}
21901
21902
21903# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21904func_cc_basename ()
21905{
21906    for cc_temp in $*""; do
21907      case $cc_temp in
21908        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21909        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21910        \-*) ;;
21911        *) break;;
21912      esac
21913    done
21914    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21915}
21916
21917
21918# ### END FUNCTIONS SHARED WITH CONFIGURE
21919
21920_LT_EOF
21921
21922  case $host_os in
21923  aix3*)
21924    cat <<\_LT_EOF >> "$cfgfile"
21925# AIX sometimes has problems with the GCC collect2 program.  For some
21926# reason, if we set the COLLECT_NAMES environment variable, the problems
21927# vanish in a puff of smoke.
21928if test set != "${COLLECT_NAMES+set}"; then
21929  COLLECT_NAMES=
21930  export COLLECT_NAMES
21931fi
21932_LT_EOF
21933    ;;
21934  esac
21935
21936
21937ltmain=$ac_aux_dir/ltmain.sh
21938
21939
21940  # We use sed instead of cat because bash on DJGPP gets confused if
21941  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21942  # text mode, it properly converts lines to CR/LF.  This bash problem
21943  # is reportedly fixed, but why not run on old versions too?
21944  sed '$q' "$ltmain" >> "$cfgfile" \
21945     || (rm -f "$cfgfile"; exit 1)
21946
21947   mv -f "$cfgfile" "$ofile" ||
21948    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21949  chmod +x "$ofile"
21950
21951
21952    cat <<_LT_EOF >> "$ofile"
21953
21954# ### BEGIN LIBTOOL TAG CONFIG: CXX
21955
21956# The linker used to build libraries.
21957LD=$lt_LD_CXX
21958
21959# How to create reloadable object files.
21960reload_flag=$lt_reload_flag_CXX
21961reload_cmds=$lt_reload_cmds_CXX
21962
21963# Commands used to build an old-style archive.
21964old_archive_cmds=$lt_old_archive_cmds_CXX
21965
21966# A language specific compiler.
21967CC=$lt_compiler_CXX
21968
21969# Is the compiler the GNU compiler?
21970with_gcc=$GCC_CXX
21971
21972# Compiler flag to turn off builtin functions.
21973no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21974
21975# Additional compiler flags for building library objects.
21976pic_flag=$lt_lt_prog_compiler_pic_CXX
21977
21978# How to pass a linker flag through the compiler.
21979wl=$lt_lt_prog_compiler_wl_CXX
21980
21981# Compiler flag to prevent dynamic linking.
21982link_static_flag=$lt_lt_prog_compiler_static_CXX
21983
21984# Does compiler simultaneously support -c and -o options?
21985compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21986
21987# Whether or not to add -lc for building shared libraries.
21988build_libtool_need_lc=$archive_cmds_need_lc_CXX
21989
21990# Whether or not to disallow shared libs when runtime libs are static.
21991allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21992
21993# Compiler flag to allow reflexive dlopens.
21994export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21995
21996# Compiler flag to generate shared objects directly from archives.
21997whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21998
21999# Whether the compiler copes with passing no objects directly.
22000compiler_needs_object=$lt_compiler_needs_object_CXX
22001
22002# Create an old-style archive from a shared archive.
22003old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22004
22005# Create a temporary old-style archive to link instead of a shared archive.
22006old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22007
22008# Commands used to build a shared archive.
22009archive_cmds=$lt_archive_cmds_CXX
22010archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22011
22012# Commands used to build a loadable module if different from building
22013# a shared archive.
22014module_cmds=$lt_module_cmds_CXX
22015module_expsym_cmds=$lt_module_expsym_cmds_CXX
22016
22017# Whether we are building with GNU ld or not.
22018with_gnu_ld=$lt_with_gnu_ld_CXX
22019
22020# Flag that allows shared libraries with undefined symbols to be built.
22021allow_undefined_flag=$lt_allow_undefined_flag_CXX
22022
22023# Flag that enforces no undefined symbols.
22024no_undefined_flag=$lt_no_undefined_flag_CXX
22025
22026# Flag to hardcode \$libdir into a binary during linking.
22027# This must work even if \$libdir does not exist
22028hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22029
22030# Whether we need a single "-rpath" flag with a separated argument.
22031hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22032
22033# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22034# DIR into the resulting binary.
22035hardcode_direct=$hardcode_direct_CXX
22036
22037# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22038# DIR into the resulting binary and the resulting library dependency is
22039# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22040# library is relocated.
22041hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22042
22043# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22044# into the resulting binary.
22045hardcode_minus_L=$hardcode_minus_L_CXX
22046
22047# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22048# into the resulting binary.
22049hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22050
22051# Set to "yes" if building a shared library automatically hardcodes DIR
22052# into the library and all subsequent libraries and executables linked
22053# against it.
22054hardcode_automatic=$hardcode_automatic_CXX
22055
22056# Set to yes if linker adds runtime paths of dependent libraries
22057# to runtime path list.
22058inherit_rpath=$inherit_rpath_CXX
22059
22060# Whether libtool must link a program against all its dependency libraries.
22061link_all_deplibs=$link_all_deplibs_CXX
22062
22063# Set to "yes" if exported symbols are required.
22064always_export_symbols=$always_export_symbols_CXX
22065
22066# The commands to list exported symbols.
22067export_symbols_cmds=$lt_export_symbols_cmds_CXX
22068
22069# Symbols that should not be listed in the preloaded symbols.
22070exclude_expsyms=$lt_exclude_expsyms_CXX
22071
22072# Symbols that must always be exported.
22073include_expsyms=$lt_include_expsyms_CXX
22074
22075# Commands necessary for linking programs (against libraries) with templates.
22076prelink_cmds=$lt_prelink_cmds_CXX
22077
22078# Commands necessary for finishing linking programs.
22079postlink_cmds=$lt_postlink_cmds_CXX
22080
22081# Specify filename containing input files.
22082file_list_spec=$lt_file_list_spec_CXX
22083
22084# How to hardcode a shared library path into an executable.
22085hardcode_action=$hardcode_action_CXX
22086
22087# The directories searched by this compiler when creating a shared library.
22088compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22089
22090# Dependencies to place before and after the objects being linked to
22091# create a shared library.
22092predep_objects=$lt_predep_objects_CXX
22093postdep_objects=$lt_postdep_objects_CXX
22094predeps=$lt_predeps_CXX
22095postdeps=$lt_postdeps_CXX
22096
22097# The library search path used internally by the compiler when linking
22098# a shared library.
22099compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22100
22101# ### END LIBTOOL TAG CONFIG: CXX
22102_LT_EOF
22103
22104 ;;
22105
22106  esac
22107done # for ac_tag
22108
22109
22110as_fn_exit 0
22111_ACEOF
22112ac_clean_files=$ac_clean_files_save
22113
22114test $ac_write_fail = 0 ||
22115  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22116
22117
22118# configure is writing to config.log, and then calls config.status.
22119# config.status does its own redirection, appending to config.log.
22120# Unfortunately, on DOS this fails, as config.log is still kept open
22121# by configure, so config.status won't be able to write to it; its
22122# output is simply discarded.  So we exec the FD to /dev/null,
22123# effectively closing config.log, so it can be properly (re)opened and
22124# appended to by config.status.  When coming back to configure, we
22125# need to make the FD available again.
22126if test "$no_create" != yes; then
22127  ac_cs_success=:
22128  ac_config_status_args=
22129  test "$silent" = yes &&
22130    ac_config_status_args="$ac_config_status_args --quiet"
22131  exec 5>/dev/null
22132  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22133  exec 5>>config.log
22134  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22135  # would make configure fail if this is the last instruction.
22136  $ac_cs_success || as_fn_exit 1
22137fi
22138if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22139  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22140$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22141fi
22142
22143