xref: /netbsd-src/external/mit/isl/dist/interface/configure (revision 5971e316fdea024efff6be8f03536623db06833e)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for isl-interface 0.
4#
5# Report bugs to <isl-development@googlegroups.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: isl-development@googlegroups.com about your system,
280$0: including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='isl-interface'
623PACKAGE_TARNAME='isl-interface'
624PACKAGE_VERSION='0'
625PACKAGE_STRING='isl-interface 0'
626PACKAGE_BUGREPORT='isl-development@googlegroups.com'
627PACKAGE_URL=''
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
634#endif
635#ifdef HAVE_STDLIB_H
636# include <stdlib.h>
637#endif
638#ifdef HAVE_STRING_H
639# include <string.h>
640#endif
641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
660ac_header_c_list=
661ac_subst_vars='am__EXEEXT_FALSE
662am__EXEEXT_TRUE
663LTLIBOBJS
664LIBOBJS
665CONFIG_STATUS_DEPENDENCIES
666XCODE_SELECT
667LLVM_CONFIG
668CLANG_LIBS
669CLANG_RFLAG
670CLANG_LDFLAGS
671CLANG_CXXFLAGS
672LT_SYS_LIBRARY_PATH
673OTOOL64
674OTOOL
675LIPO
676NMEDIT
677DSYMUTIL
678MANIFEST_TOOL
679RANLIB
680ac_ct_AR
681AR
682DLLTOOL
683OBJDUMP
684LN_S
685NM
686ac_ct_DUMPBIN
687DUMPBIN
688LD
689FGREP
690EGREP
691SED
692LIBTOOL
693HAVE_CXX11
694GREP
695CXXCPPFLAGS_FOR_BUILD
696CXXFLAGS_FOR_BUILD
697CXXCPP_FOR_BUILD
698ac_ct_CXX_FOR_BUILD
699CXX_FOR_BUILD
700host_os
701host_vendor
702host_cpu
703host
704CXXCPP
705LDFLAGS_FOR_BUILD
706CPPFLAGS_FOR_BUILD
707CFLAGS_FOR_BUILD
708CCDEPMODE_FOR_BUILD
709BUILD_OBJEXT
710BUILD_EXEEXT
711CPP_FOR_BUILD
712ac_ct_CC_FOR_BUILD
713CC_FOR_BUILD
714build_os
715build_vendor
716build_cpu
717build
718CPP
719am__fastdepCC_FALSE
720am__fastdepCC_TRUE
721CCDEPMODE
722ac_ct_CC
723CFLAGS
724CC
725am__fastdepCXX_FALSE
726am__fastdepCXX_TRUE
727CXXDEPMODE
728am__nodep
729AMDEPBACKSLASH
730AMDEP_FALSE
731AMDEP_TRUE
732am__include
733DEPDIR
734OBJEXT
735EXEEXT
736ac_ct_CXX
737CPPFLAGS
738LDFLAGS
739CXXFLAGS
740CXX
741AM_BACKSLASH
742AM_DEFAULT_VERBOSITY
743AM_DEFAULT_V
744AM_V
745CSCOPE
746ETAGS
747CTAGS
748am__untar
749am__tar
750AMTAR
751am__leading_dot
752SET_MAKE
753AWK
754mkdir_p
755MKDIR_P
756INSTALL_STRIP_PROGRAM
757STRIP
758install_sh
759MAKEINFO
760AUTOHEADER
761AUTOMAKE
762AUTOCONF
763ACLOCAL
764VERSION
765PACKAGE
766CYGPATH_W
767am__isrc
768INSTALL_DATA
769INSTALL_SCRIPT
770INSTALL_PROGRAM
771target_alias
772host_alias
773build_alias
774LIBS
775ECHO_T
776ECHO_N
777ECHO_C
778DEFS
779mandir
780localedir
781libdir
782psdir
783pdfdir
784dvidir
785htmldir
786infodir
787docdir
788oldincludedir
789includedir
790runstatedir
791localstatedir
792sharedstatedir
793sysconfdir
794datadir
795datarootdir
796libexecdir
797sbindir
798bindir
799program_transform_name
800prefix
801exec_prefix
802PACKAGE_URL
803PACKAGE_BUGREPORT
804PACKAGE_STRING
805PACKAGE_VERSION
806PACKAGE_TARNAME
807PACKAGE_NAME
808PATH_SEPARATOR
809SHELL
810am__quote'
811ac_subst_files=''
812ac_user_opts='
813enable_option_checking
814enable_silent_rules
815enable_dependency_tracking
816enable_shared
817enable_static
818with_pic
819enable_fast_install
820with_aix_soname
821with_gnu_ld
822with_sysroot
823enable_libtool_lock
824'
825      ac_precious_vars='build_alias
826host_alias
827target_alias
828CXX
829CXXFLAGS
830LDFLAGS
831LIBS
832CPPFLAGS
833CCC
834CC
835CFLAGS
836CPP
837CXXCPP
838LT_SYS_LIBRARY_PATH'
839
840
841# Initialize some variables set by options.
842ac_init_help=
843ac_init_version=false
844ac_unrecognized_opts=
845ac_unrecognized_sep=
846# The variables have the same names as the options, with
847# dashes changed to underlines.
848cache_file=/dev/null
849exec_prefix=NONE
850no_create=
851no_recursion=
852prefix=NONE
853program_prefix=NONE
854program_suffix=NONE
855program_transform_name=s,x,x,
856silent=
857site=
858srcdir=
859verbose=
860x_includes=NONE
861x_libraries=NONE
862
863# Installation directory options.
864# These are left unexpanded so users can "make install exec_prefix=/foo"
865# and all the variables that are supposed to be based on exec_prefix
866# by default will actually change.
867# Use braces instead of parens because sh, perl, etc. also accept them.
868# (The list follows the same order as the GNU Coding Standards.)
869bindir='${exec_prefix}/bin'
870sbindir='${exec_prefix}/sbin'
871libexecdir='${exec_prefix}/libexec'
872datarootdir='${prefix}/share'
873datadir='${datarootdir}'
874sysconfdir='${prefix}/etc'
875sharedstatedir='${prefix}/com'
876localstatedir='${prefix}/var'
877runstatedir='${localstatedir}/run'
878includedir='${prefix}/include'
879oldincludedir='/usr/include'
880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881infodir='${datarootdir}/info'
882htmldir='${docdir}'
883dvidir='${docdir}'
884pdfdir='${docdir}'
885psdir='${docdir}'
886libdir='${exec_prefix}/lib'
887localedir='${datarootdir}/locale'
888mandir='${datarootdir}/man'
889
890ac_prev=
891ac_dashdash=
892for ac_option
893do
894  # If the previous option needs an argument, assign it.
895  if test -n "$ac_prev"; then
896    eval $ac_prev=\$ac_option
897    ac_prev=
898    continue
899  fi
900
901  case $ac_option in
902  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903  *=)   ac_optarg= ;;
904  *)    ac_optarg=yes ;;
905  esac
906
907  case $ac_dashdash$ac_option in
908  --)
909    ac_dashdash=yes ;;
910
911  -bindir | --bindir | --bindi | --bind | --bin | --bi)
912    ac_prev=bindir ;;
913  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914    bindir=$ac_optarg ;;
915
916  -build | --build | --buil | --bui | --bu)
917    ac_prev=build_alias ;;
918  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919    build_alias=$ac_optarg ;;
920
921  -cache-file | --cache-file | --cache-fil | --cache-fi \
922  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923    ac_prev=cache_file ;;
924  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926    cache_file=$ac_optarg ;;
927
928  --config-cache | -C)
929    cache_file=config.cache ;;
930
931  -datadir | --datadir | --datadi | --datad)
932    ac_prev=datadir ;;
933  -datadir=* | --datadir=* | --datadi=* | --datad=*)
934    datadir=$ac_optarg ;;
935
936  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937  | --dataroo | --dataro | --datar)
938    ac_prev=datarootdir ;;
939  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941    datarootdir=$ac_optarg ;;
942
943  -disable-* | --disable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: \`$ac_useropt'"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=no ;;
958
959  -docdir | --docdir | --docdi | --doc | --do)
960    ac_prev=docdir ;;
961  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962    docdir=$ac_optarg ;;
963
964  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965    ac_prev=dvidir ;;
966  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967    dvidir=$ac_optarg ;;
968
969  -enable-* | --enable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: \`$ac_useropt'"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=\$ac_optarg ;;
984
985  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987  | --exec | --exe | --ex)
988    ac_prev=exec_prefix ;;
989  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991  | --exec=* | --exe=* | --ex=*)
992    exec_prefix=$ac_optarg ;;
993
994  -gas | --gas | --ga | --g)
995    # Obsolete; use --with-gas.
996    with_gas=yes ;;
997
998  -help | --help | --hel | --he | -h)
999    ac_init_help=long ;;
1000  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001    ac_init_help=recursive ;;
1002  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003    ac_init_help=short ;;
1004
1005  -host | --host | --hos | --ho)
1006    ac_prev=host_alias ;;
1007  -host=* | --host=* | --hos=* | --ho=*)
1008    host_alias=$ac_optarg ;;
1009
1010  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011    ac_prev=htmldir ;;
1012  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013  | --ht=*)
1014    htmldir=$ac_optarg ;;
1015
1016  -includedir | --includedir | --includedi | --included | --include \
1017  | --includ | --inclu | --incl | --inc)
1018    ac_prev=includedir ;;
1019  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020  | --includ=* | --inclu=* | --incl=* | --inc=*)
1021    includedir=$ac_optarg ;;
1022
1023  -infodir | --infodir | --infodi | --infod | --info | --inf)
1024    ac_prev=infodir ;;
1025  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026    infodir=$ac_optarg ;;
1027
1028  -libdir | --libdir | --libdi | --libd)
1029    ac_prev=libdir ;;
1030  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031    libdir=$ac_optarg ;;
1032
1033  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034  | --libexe | --libex | --libe)
1035    ac_prev=libexecdir ;;
1036  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037  | --libexe=* | --libex=* | --libe=*)
1038    libexecdir=$ac_optarg ;;
1039
1040  -localedir | --localedir | --localedi | --localed | --locale)
1041    ac_prev=localedir ;;
1042  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043    localedir=$ac_optarg ;;
1044
1045  -localstatedir | --localstatedir | --localstatedi | --localstated \
1046  | --localstate | --localstat | --localsta | --localst | --locals)
1047    ac_prev=localstatedir ;;
1048  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050    localstatedir=$ac_optarg ;;
1051
1052  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053    ac_prev=mandir ;;
1054  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055    mandir=$ac_optarg ;;
1056
1057  -nfp | --nfp | --nf)
1058    # Obsolete; use --without-fp.
1059    with_fp=no ;;
1060
1061  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062  | --no-cr | --no-c | -n)
1063    no_create=yes ;;
1064
1065  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067    no_recursion=yes ;;
1068
1069  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071  | --oldin | --oldi | --old | --ol | --o)
1072    ac_prev=oldincludedir ;;
1073  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076    oldincludedir=$ac_optarg ;;
1077
1078  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079    ac_prev=prefix ;;
1080  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081    prefix=$ac_optarg ;;
1082
1083  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084  | --program-pre | --program-pr | --program-p)
1085    ac_prev=program_prefix ;;
1086  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088    program_prefix=$ac_optarg ;;
1089
1090  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091  | --program-suf | --program-su | --program-s)
1092    ac_prev=program_suffix ;;
1093  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095    program_suffix=$ac_optarg ;;
1096
1097  -program-transform-name | --program-transform-name \
1098  | --program-transform-nam | --program-transform-na \
1099  | --program-transform-n | --program-transform- \
1100  | --program-transform | --program-transfor \
1101  | --program-transfo | --program-transf \
1102  | --program-trans | --program-tran \
1103  | --progr-tra | --program-tr | --program-t)
1104    ac_prev=program_transform_name ;;
1105  -program-transform-name=* | --program-transform-name=* \
1106  | --program-transform-nam=* | --program-transform-na=* \
1107  | --program-transform-n=* | --program-transform-=* \
1108  | --program-transform=* | --program-transfor=* \
1109  | --program-transfo=* | --program-transf=* \
1110  | --program-trans=* | --program-tran=* \
1111  | --progr-tra=* | --program-tr=* | --program-t=*)
1112    program_transform_name=$ac_optarg ;;
1113
1114  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115    ac_prev=pdfdir ;;
1116  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117    pdfdir=$ac_optarg ;;
1118
1119  -psdir | --psdir | --psdi | --psd | --ps)
1120    ac_prev=psdir ;;
1121  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122    psdir=$ac_optarg ;;
1123
1124  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125  | -silent | --silent | --silen | --sile | --sil)
1126    silent=yes ;;
1127
1128  -runstatedir | --runstatedir | --runstatedi | --runstated \
1129  | --runstate | --runstat | --runsta | --runst | --runs \
1130  | --run | --ru | --r)
1131    ac_prev=runstatedir ;;
1132  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134  | --run=* | --ru=* | --r=*)
1135    runstatedir=$ac_optarg ;;
1136
1137  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138    ac_prev=sbindir ;;
1139  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140  | --sbi=* | --sb=*)
1141    sbindir=$ac_optarg ;;
1142
1143  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145  | --sharedst | --shareds | --shared | --share | --shar \
1146  | --sha | --sh)
1147    ac_prev=sharedstatedir ;;
1148  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151  | --sha=* | --sh=*)
1152    sharedstatedir=$ac_optarg ;;
1153
1154  -site | --site | --sit)
1155    ac_prev=site ;;
1156  -site=* | --site=* | --sit=*)
1157    site=$ac_optarg ;;
1158
1159  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160    ac_prev=srcdir ;;
1161  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162    srcdir=$ac_optarg ;;
1163
1164  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165  | --syscon | --sysco | --sysc | --sys | --sy)
1166    ac_prev=sysconfdir ;;
1167  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169    sysconfdir=$ac_optarg ;;
1170
1171  -target | --target | --targe | --targ | --tar | --ta | --t)
1172    ac_prev=target_alias ;;
1173  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174    target_alias=$ac_optarg ;;
1175
1176  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177    verbose=yes ;;
1178
1179  -version | --version | --versio | --versi | --vers | -V)
1180    ac_init_version=: ;;
1181
1182  -with-* | --with-*)
1183    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184    # Reject names that are not valid shell variable names.
1185    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186      as_fn_error $? "invalid package name: \`$ac_useropt'"
1187    ac_useropt_orig=$ac_useropt
1188    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189    case $ac_user_opts in
1190      *"
1191"with_$ac_useropt"
1192"*) ;;
1193      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194	 ac_unrecognized_sep=', ';;
1195    esac
1196    eval with_$ac_useropt=\$ac_optarg ;;
1197
1198  -without-* | --without-*)
1199    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200    # Reject names that are not valid shell variable names.
1201    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202      as_fn_error $? "invalid package name: \`$ac_useropt'"
1203    ac_useropt_orig=$ac_useropt
1204    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205    case $ac_user_opts in
1206      *"
1207"with_$ac_useropt"
1208"*) ;;
1209      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210	 ac_unrecognized_sep=', ';;
1211    esac
1212    eval with_$ac_useropt=no ;;
1213
1214  --x)
1215    # Obsolete; use --with-x.
1216    with_x=yes ;;
1217
1218  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219  | --x-incl | --x-inc | --x-in | --x-i)
1220    ac_prev=x_includes ;;
1221  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223    x_includes=$ac_optarg ;;
1224
1225  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227    ac_prev=x_libraries ;;
1228  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230    x_libraries=$ac_optarg ;;
1231
1232  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233Try \`$0 --help' for more information"
1234    ;;
1235
1236  *=*)
1237    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238    # Reject names that are not valid shell variable names.
1239    case $ac_envvar in #(
1240      '' | [0-9]* | *[!_$as_cr_alnum]* )
1241      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242    esac
1243    eval $ac_envvar=\$ac_optarg
1244    export $ac_envvar ;;
1245
1246  *)
1247    # FIXME: should be removed in autoconf 3.0.
1248    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1249    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1251    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252    ;;
1253
1254  esac
1255done
1256
1257if test -n "$ac_prev"; then
1258  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259  as_fn_error $? "missing argument to $ac_option"
1260fi
1261
1262if test -n "$ac_unrecognized_opts"; then
1263  case $enable_option_checking in
1264    no) ;;
1265    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267  esac
1268fi
1269
1270# Check all directory arguments for consistency.
1271for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272		datadir sysconfdir sharedstatedir localstatedir includedir \
1273		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274		libdir localedir mandir runstatedir
1275do
1276  eval ac_val=\$$ac_var
1277  # Remove trailing slashes.
1278  case $ac_val in
1279    */ )
1280      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281      eval $ac_var=\$ac_val;;
1282  esac
1283  # Be sure to have absolute directory names.
1284  case $ac_val in
1285    [\\/$]* | ?:[\\/]* )  continue;;
1286    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287  esac
1288  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289done
1290
1291# There might be people who depend on the old broken behavior: `$host'
1292# used to hold the argument of --host etc.
1293# FIXME: To remove some day.
1294build=$build_alias
1295host=$host_alias
1296target=$target_alias
1297
1298# FIXME: To remove some day.
1299if test "x$host_alias" != x; then
1300  if test "x$build_alias" = x; then
1301    cross_compiling=maybe
1302  elif test "x$build_alias" != "x$host_alias"; then
1303    cross_compiling=yes
1304  fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
1311
1312
1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316  as_fn_error $? "working directory cannot be determined"
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318  as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323  ac_srcdir_defaulted=yes
1324  # Try the directory containing this script, then the parent directory.
1325  ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327	 X"$as_myself" : 'X\(//\)[^/]' \| \
1328	 X"$as_myself" : 'X\(//\)$' \| \
1329	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330printf "%s\n" X"$as_myself" |
1331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332	    s//\1/
1333	    q
1334	  }
1335	  /^X\(\/\/\)[^/].*/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\/\)$/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\).*/{
1344	    s//\1/
1345	    q
1346	  }
1347	  s/.*/./; q'`
1348  srcdir=$ac_confdir
1349  if test ! -r "$srcdir/$ac_unique_file"; then
1350    srcdir=..
1351  fi
1352else
1353  ac_srcdir_defaulted=no
1354fi
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362	pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365  srcdir=.
1366fi
1367# Remove unnecessary trailing slashes from srcdir.
1368# Double slashes in file names in object file debugging info
1369# mess up M-x gdb in Emacs.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
1373for ac_var in $ac_precious_vars; do
1374  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375  eval ac_env_${ac_var}_value=\$${ac_var}
1376  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378done
1379
1380#
1381# Report the --help message.
1382#
1383if test "$ac_init_help" = "long"; then
1384  # Omit some internal or obsolete options to make the list less imposing.
1385  # This message is too long to be a string in the A/UX 3.1 sh.
1386  cat <<_ACEOF
1387\`configure' configures isl-interface 0 to adapt to many kinds of systems.
1388
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
1397  -h, --help              display this help and exit
1398      --help=short        display options specific to this package
1399      --help=recursive    display the short help of all the included packages
1400  -V, --version           display version information and exit
1401  -q, --quiet, --silent   do not print \`checking ...' messages
1402      --cache-file=FILE   cache test results in FILE [disabled]
1403  -C, --config-cache      alias for \`--cache-file=config.cache'
1404  -n, --no-create         do not create output files
1405      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406
1407Installation directories:
1408  --prefix=PREFIX         install architecture-independent files in PREFIX
1409                          [$ac_default_prefix]
1410  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1411                          [PREFIX]
1412
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine tuning of the installation directories:
1421  --bindir=DIR            user executables [EPREFIX/bin]
1422  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1423  --libexecdir=DIR        program executables [EPREFIX/libexec]
1424  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1425  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1426  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1427  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1428  --libdir=DIR            object code libraries [EPREFIX/lib]
1429  --includedir=DIR        C header files [PREFIX/include]
1430  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1431  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1432  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1433  --infodir=DIR           info documentation [DATAROOTDIR/info]
1434  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1435  --mandir=DIR            man documentation [DATAROOTDIR/man]
1436  --docdir=DIR            documentation root [DATAROOTDIR/doc/isl-interface]
1437  --htmldir=DIR           html documentation [DOCDIR]
1438  --dvidir=DIR            dvi documentation [DOCDIR]
1439  --pdfdir=DIR            pdf documentation [DOCDIR]
1440  --psdir=DIR             ps documentation [DOCDIR]
1441_ACEOF
1442
1443  cat <<\_ACEOF
1444
1445Program names:
1446  --program-prefix=PREFIX            prepend PREFIX to installed program names
1447  --program-suffix=SUFFIX            append SUFFIX to installed program names
1448  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1449
1450System types:
1451  --build=BUILD     configure for building on BUILD [guessed]
1452  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453_ACEOF
1454fi
1455
1456if test -n "$ac_init_help"; then
1457  case $ac_init_help in
1458     short | recursive ) echo "Configuration of isl-interface 0:";;
1459   esac
1460  cat <<\_ACEOF
1461
1462Optional Features:
1463  --disable-option-checking  ignore unrecognized --enable/--with options
1464  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1466  --enable-silent-rules   less verbose build output (undo: "make V=1")
1467  --disable-silent-rules  verbose build output (undo: "make V=0")
1468  --enable-dependency-tracking
1469                          do not reject slow dependency extractors
1470  --disable-dependency-tracking
1471                          speeds up one-time build
1472  --enable-shared[=PKGS]  build shared libraries [default=no]
1473  --enable-static[=PKGS]  build static libraries [default=yes]
1474  --enable-fast-install[=PKGS]
1475                          optimize for fast installation [default=yes]
1476  --disable-libtool-lock  avoid locking (might break parallel builds)
1477
1478Optional Packages:
1479  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1482                          both]
1483  --with-aix-soname=aix|svr4|both
1484                          shared library versioning (aka "SONAME") variant to
1485                          provide on AIX, [default=aix].
1486  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1487  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1488                          compiler's sysroot if not specified).
1489
1490Some influential environment variables:
1491  CXX         C++ compiler command
1492  CXXFLAGS    C++ compiler flags
1493  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494              nonstandard directory <lib dir>
1495  LIBS        libraries to pass to the linker, e.g. -l<library>
1496  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497              you have headers in a nonstandard directory <include dir>
1498  CC          C compiler command
1499  CFLAGS      C compiler flags
1500  CPP         C preprocessor
1501  CXXCPP      C++ preprocessor
1502  LT_SYS_LIBRARY_PATH
1503              User-defined run-time library search path.
1504
1505Use these variables to override the choices made by `configure' or to help
1506it to find libraries and programs with nonstandard names/locations.
1507
1508Report bugs to <isl-development@googlegroups.com>.
1509_ACEOF
1510ac_status=$?
1511fi
1512
1513if test "$ac_init_help" = "recursive"; then
1514  # If there are subdirs, report their specific --help.
1515  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516    test -d "$ac_dir" ||
1517      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518      continue
1519    ac_builddir=.
1520
1521case "$ac_dir" in
1522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523*)
1524  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1525  # A ".." for each directory in $ac_dir_suffix.
1526  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527  case $ac_top_builddir_sub in
1528  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530  esac ;;
1531esac
1532ac_abs_top_builddir=$ac_pwd
1533ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534# for backward compatibility:
1535ac_top_builddir=$ac_top_build_prefix
1536
1537case $srcdir in
1538  .)  # We are building in place.
1539    ac_srcdir=.
1540    ac_top_srcdir=$ac_top_builddir_sub
1541    ac_abs_top_srcdir=$ac_pwd ;;
1542  [\\/]* | ?:[\\/]* )  # Absolute name.
1543    ac_srcdir=$srcdir$ac_dir_suffix;
1544    ac_top_srcdir=$srcdir
1545    ac_abs_top_srcdir=$srcdir ;;
1546  *) # Relative name.
1547    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548    ac_top_srcdir=$ac_top_build_prefix$srcdir
1549    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550esac
1551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553    cd "$ac_dir" || { ac_status=$?; continue; }
1554    # Check for configure.gnu first; this name is used for a wrapper for
1555    # Metaconfig's "Configure" on case-insensitive file systems.
1556    if test -f "$ac_srcdir/configure.gnu"; then
1557      echo &&
1558      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559    elif test -f "$ac_srcdir/configure"; then
1560      echo &&
1561      $SHELL "$ac_srcdir/configure" --help=recursive
1562    else
1563      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564    fi || ac_status=$?
1565    cd "$ac_pwd" || { ac_status=$?; break; }
1566  done
1567fi
1568
1569test -n "$ac_init_help" && exit $ac_status
1570if $ac_init_version; then
1571  cat <<\_ACEOF
1572isl-interface configure 0
1573generated by GNU Autoconf 2.71
1574
1575Copyright (C) 2021 Free Software Foundation, Inc.
1576This configure script is free software; the Free Software Foundation
1577gives unlimited permission to copy, distribute and modify it.
1578_ACEOF
1579  exit
1580fi
1581
1582## ------------------------ ##
1583## Autoconf initialization. ##
1584## ------------------------ ##
1585
1586# ac_fn_cxx_try_compile LINENO
1587# ----------------------------
1588# Try to compile conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_cxx_try_compile ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  rm -f conftest.$ac_objext conftest.beam
1593  if { { ac_try="$ac_compile"
1594case "(($ac_try" in
1595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596  *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599printf "%s\n" "$ac_try_echo"; } >&5
1600  (eval "$ac_compile") 2>conftest.err
1601  ac_status=$?
1602  if test -s conftest.err; then
1603    grep -v '^ *+' conftest.err >conftest.er1
1604    cat conftest.er1 >&5
1605    mv -f conftest.er1 conftest.err
1606  fi
1607  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608  test $ac_status = 0; } && {
1609	 test -z "$ac_cxx_werror_flag" ||
1610	 test ! -s conftest.err
1611       } && test -s conftest.$ac_objext
1612then :
1613  ac_retval=0
1614else $as_nop
1615  printf "%s\n" "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618	ac_retval=1
1619fi
1620  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621  as_fn_set_status $ac_retval
1622
1623} # ac_fn_cxx_try_compile
1624
1625# ac_fn_c_try_compile LINENO
1626# --------------------------
1627# Try to compile conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_compile ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  rm -f conftest.$ac_objext conftest.beam
1632  if { { ac_try="$ac_compile"
1633case "(($ac_try" in
1634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635  *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638printf "%s\n" "$ac_try_echo"; } >&5
1639  (eval "$ac_compile") 2>conftest.err
1640  ac_status=$?
1641  if test -s conftest.err; then
1642    grep -v '^ *+' conftest.err >conftest.er1
1643    cat conftest.er1 >&5
1644    mv -f conftest.er1 conftest.err
1645  fi
1646  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647  test $ac_status = 0; } && {
1648	 test -z "$ac_c_werror_flag" ||
1649	 test ! -s conftest.err
1650       } && test -s conftest.$ac_objext
1651then :
1652  ac_retval=0
1653else $as_nop
1654  printf "%s\n" "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657	ac_retval=1
1658fi
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_compile
1663
1664# ac_fn_c_try_cpp LINENO
1665# ----------------------
1666# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_cpp ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  if { { ac_try="$ac_cpp conftest.$ac_ext"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676printf "%s\n" "$ac_try_echo"; } >&5
1677  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678  ac_status=$?
1679  if test -s conftest.err; then
1680    grep -v '^ *+' conftest.err >conftest.er1
1681    cat conftest.er1 >&5
1682    mv -f conftest.er1 conftest.err
1683  fi
1684  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; } > conftest.i && {
1686	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687	 test ! -s conftest.err
1688       }
1689then :
1690  ac_retval=0
1691else $as_nop
1692  printf "%s\n" "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695    ac_retval=1
1696fi
1697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698  as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_cpp
1701
1702# ac_fn_cxx_try_cpp LINENO
1703# ------------------------
1704# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_cxx_try_cpp ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  if { { ac_try="$ac_cpp conftest.$ac_ext"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714printf "%s\n" "$ac_try_echo"; } >&5
1715  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716  ac_status=$?
1717  if test -s conftest.err; then
1718    grep -v '^ *+' conftest.err >conftest.er1
1719    cat conftest.er1 >&5
1720    mv -f conftest.er1 conftest.err
1721  fi
1722  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; } > conftest.i && {
1724	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1725	 test ! -s conftest.err
1726       }
1727then :
1728  ac_retval=0
1729else $as_nop
1730  printf "%s\n" "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733    ac_retval=1
1734fi
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_cxx_try_cpp
1739
1740# ac_fn_c_try_link LINENO
1741# -----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_link ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1747  if { { ac_try="$ac_link"
1748case "(($ac_try" in
1749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750  *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753printf "%s\n" "$ac_try_echo"; } >&5
1754  (eval "$ac_link") 2>conftest.err
1755  ac_status=$?
1756  if test -s conftest.err; then
1757    grep -v '^ *+' conftest.err >conftest.er1
1758    cat conftest.er1 >&5
1759    mv -f conftest.er1 conftest.err
1760  fi
1761  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762  test $ac_status = 0; } && {
1763	 test -z "$ac_c_werror_flag" ||
1764	 test ! -s conftest.err
1765       } && test -s conftest$ac_exeext && {
1766	 test "$cross_compiling" = yes ||
1767	 test -x conftest$ac_exeext
1768       }
1769then :
1770  ac_retval=0
1771else $as_nop
1772  printf "%s\n" "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775	ac_retval=1
1776fi
1777  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779  # interfere with the next link command; also delete a directory that is
1780  # left behind by Apple's compiler.  We do this before executing the actions.
1781  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783  as_fn_set_status $ac_retval
1784
1785} # ac_fn_c_try_link
1786
1787# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788# -------------------------------------------------------
1789# Tests whether HEADER exists and can be compiled using the include files in
1790# INCLUDES, setting the cache variable VAR accordingly.
1791ac_fn_c_check_header_compile ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795printf %s "checking for $2... " >&6; }
1796if eval test \${$3+y}
1797then :
1798  printf %s "(cached) " >&6
1799else $as_nop
1800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h.  */
1802$4
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"
1806then :
1807  eval "$3=yes"
1808else $as_nop
1809  eval "$3=no"
1810fi
1811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1812fi
1813eval ac_res=\$$3
1814	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815printf "%s\n" "$ac_res" >&6; }
1816  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818} # ac_fn_c_check_header_compile
1819
1820# ac_fn_c_check_func LINENO FUNC VAR
1821# ----------------------------------
1822# Tests whether FUNC exists, setting the cache variable VAR accordingly
1823ac_fn_c_check_func ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827printf %s "checking for $2... " >&6; }
1828if eval test \${$3+y}
1829then :
1830  printf %s "(cached) " >&6
1831else $as_nop
1832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h.  */
1834/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1835   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1836#define $2 innocuous_$2
1837
1838/* System header to define __stub macros and hopefully few prototypes,
1839   which can conflict with char $2 (); below.  */
1840
1841#include <limits.h>
1842#undef $2
1843
1844/* Override any GCC internal prototype to avoid an error.
1845   Use char because int might match the return type of a GCC
1846   builtin and then its argument prototype would still apply.  */
1847#ifdef __cplusplus
1848extern "C"
1849#endif
1850char $2 ();
1851/* The GNU C library defines this for functions which it implements
1852    to always fail with ENOSYS.  Some functions are actually named
1853    something starting with __ and the normal name is an alias.  */
1854#if defined __stub_$2 || defined __stub___$2
1855choke me
1856#endif
1857
1858int
1859main (void)
1860{
1861return $2 ();
1862  ;
1863  return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_link "$LINENO"
1867then :
1868  eval "$3=yes"
1869else $as_nop
1870  eval "$3=no"
1871fi
1872rm -f core conftest.err conftest.$ac_objext conftest.beam \
1873    conftest$ac_exeext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877printf "%s\n" "$ac_res" >&6; }
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880} # ac_fn_c_check_func
1881
1882# ac_fn_cxx_try_link LINENO
1883# -------------------------
1884# Try to link conftest.$ac_ext, and return whether this succeeded.
1885ac_fn_cxx_try_link ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1889  if { { ac_try="$ac_link"
1890case "(($ac_try" in
1891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892  *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895printf "%s\n" "$ac_try_echo"; } >&5
1896  (eval "$ac_link") 2>conftest.err
1897  ac_status=$?
1898  if test -s conftest.err; then
1899    grep -v '^ *+' conftest.err >conftest.er1
1900    cat conftest.er1 >&5
1901    mv -f conftest.er1 conftest.err
1902  fi
1903  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904  test $ac_status = 0; } && {
1905	 test -z "$ac_cxx_werror_flag" ||
1906	 test ! -s conftest.err
1907       } && test -s conftest$ac_exeext && {
1908	 test "$cross_compiling" = yes ||
1909	 test -x conftest$ac_exeext
1910       }
1911then :
1912  ac_retval=0
1913else $as_nop
1914  printf "%s\n" "$as_me: failed program was:" >&5
1915sed 's/^/| /' conftest.$ac_ext >&5
1916
1917	ac_retval=1
1918fi
1919  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921  # interfere with the next link command; also delete a directory that is
1922  # left behind by Apple's compiler.  We do this before executing the actions.
1923  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925  as_fn_set_status $ac_retval
1926
1927} # ac_fn_cxx_try_link
1928
1929# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1930# ---------------------------------------------------------
1931# Tests whether HEADER exists and can be compiled using the include files in
1932# INCLUDES, setting the cache variable VAR accordingly.
1933ac_fn_cxx_check_header_compile ()
1934{
1935  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937printf %s "checking for $2... " >&6; }
1938if eval test \${$3+y}
1939then :
1940  printf %s "(cached) " >&6
1941else $as_nop
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$4
1945#include <$2>
1946_ACEOF
1947if ac_fn_cxx_try_compile "$LINENO"
1948then :
1949  eval "$3=yes"
1950else $as_nop
1951  eval "$3=no"
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1954fi
1955eval ac_res=\$$3
1956	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957printf "%s\n" "$ac_res" >&6; }
1958  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960} # ac_fn_cxx_check_header_compile
1961ac_configure_args_raw=
1962for ac_arg
1963do
1964  case $ac_arg in
1965  *\'*)
1966    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967  esac
1968  as_fn_append ac_configure_args_raw " '$ac_arg'"
1969done
1970
1971case $ac_configure_args_raw in
1972  *$as_nl*)
1973    ac_safe_unquote= ;;
1974  *)
1975    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1976    ac_unsafe_a="$ac_unsafe_z#~"
1977    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1978    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1979esac
1980
1981cat >config.log <<_ACEOF
1982This file contains any messages produced by compilers while
1983running configure, to aid debugging if configure makes a mistake.
1984
1985It was created by isl-interface $as_me 0, which was
1986generated by GNU Autoconf 2.71.  Invocation command line was
1987
1988  $ $0$ac_configure_args_raw
1989
1990_ACEOF
1991exec 5>>config.log
1992{
1993cat <<_ASUNAME
1994## --------- ##
1995## Platform. ##
1996## --------- ##
1997
1998hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1999uname -m = `(uname -m) 2>/dev/null || echo unknown`
2000uname -r = `(uname -r) 2>/dev/null || echo unknown`
2001uname -s = `(uname -s) 2>/dev/null || echo unknown`
2002uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003
2004/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2005/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2006
2007/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2008/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2009/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2010/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2011/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2012/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2013/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2014
2015_ASUNAME
2016
2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018for as_dir in $PATH
2019do
2020  IFS=$as_save_IFS
2021  case $as_dir in #(((
2022    '') as_dir=./ ;;
2023    */) ;;
2024    *) as_dir=$as_dir/ ;;
2025  esac
2026    printf "%s\n" "PATH: $as_dir"
2027  done
2028IFS=$as_save_IFS
2029
2030} >&5
2031
2032cat >&5 <<_ACEOF
2033
2034
2035## ----------- ##
2036## Core tests. ##
2037## ----------- ##
2038
2039_ACEOF
2040
2041
2042# Keep a trace of the command line.
2043# Strip out --no-create and --no-recursion so they do not pile up.
2044# Strip out --silent because we don't want to record it for future runs.
2045# Also quote any args containing shell meta-characters.
2046# Make two passes to allow for proper duplicate-argument suppression.
2047ac_configure_args=
2048ac_configure_args0=
2049ac_configure_args1=
2050ac_must_keep_next=false
2051for ac_pass in 1 2
2052do
2053  for ac_arg
2054  do
2055    case $ac_arg in
2056    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2057    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2058    | -silent | --silent | --silen | --sile | --sil)
2059      continue ;;
2060    *\'*)
2061      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2062    esac
2063    case $ac_pass in
2064    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2065    2)
2066      as_fn_append ac_configure_args1 " '$ac_arg'"
2067      if test $ac_must_keep_next = true; then
2068	ac_must_keep_next=false # Got value, back to normal.
2069      else
2070	case $ac_arg in
2071	  *=* | --config-cache | -C | -disable-* | --disable-* \
2072	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2073	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2074	  | -with-* | --with-* | -without-* | --without-* | --x)
2075	    case "$ac_configure_args0 " in
2076	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2077	    esac
2078	    ;;
2079	  -* ) ac_must_keep_next=true ;;
2080	esac
2081      fi
2082      as_fn_append ac_configure_args " '$ac_arg'"
2083      ;;
2084    esac
2085  done
2086done
2087{ ac_configure_args0=; unset ac_configure_args0;}
2088{ ac_configure_args1=; unset ac_configure_args1;}
2089
2090# When interrupted or exit'd, cleanup temporary files, and complete
2091# config.log.  We remove comments because anyway the quotes in there
2092# would cause problems or look ugly.
2093# WARNING: Use '\'' to represent an apostrophe within the trap.
2094# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2095trap 'exit_status=$?
2096  # Sanitize IFS.
2097  IFS=" ""	$as_nl"
2098  # Save into config.log some information that might help in debugging.
2099  {
2100    echo
2101
2102    printf "%s\n" "## ---------------- ##
2103## Cache variables. ##
2104## ---------------- ##"
2105    echo
2106    # The following way of writing the cache mishandles newlines in values,
2107(
2108  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2109    eval ac_val=\$$ac_var
2110    case $ac_val in #(
2111    *${as_nl}*)
2112      case $ac_var in #(
2113      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2114printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2115      esac
2116      case $ac_var in #(
2117      _ | IFS | as_nl) ;; #(
2118      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2119      *) { eval $ac_var=; unset $ac_var;} ;;
2120      esac ;;
2121    esac
2122  done
2123  (set) 2>&1 |
2124    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2125    *${as_nl}ac_space=\ *)
2126      sed -n \
2127	"s/'\''/'\''\\\\'\'''\''/g;
2128	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2129      ;; #(
2130    *)
2131      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2132      ;;
2133    esac |
2134    sort
2135)
2136    echo
2137
2138    printf "%s\n" "## ----------------- ##
2139## Output variables. ##
2140## ----------------- ##"
2141    echo
2142    for ac_var in $ac_subst_vars
2143    do
2144      eval ac_val=\$$ac_var
2145      case $ac_val in
2146      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147      esac
2148      printf "%s\n" "$ac_var='\''$ac_val'\''"
2149    done | sort
2150    echo
2151
2152    if test -n "$ac_subst_files"; then
2153      printf "%s\n" "## ------------------- ##
2154## File substitutions. ##
2155## ------------------- ##"
2156      echo
2157      for ac_var in $ac_subst_files
2158      do
2159	eval ac_val=\$$ac_var
2160	case $ac_val in
2161	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2162	esac
2163	printf "%s\n" "$ac_var='\''$ac_val'\''"
2164      done | sort
2165      echo
2166    fi
2167
2168    if test -s confdefs.h; then
2169      printf "%s\n" "## ----------- ##
2170## confdefs.h. ##
2171## ----------- ##"
2172      echo
2173      cat confdefs.h
2174      echo
2175    fi
2176    test "$ac_signal" != 0 &&
2177      printf "%s\n" "$as_me: caught signal $ac_signal"
2178    printf "%s\n" "$as_me: exit $exit_status"
2179  } >&5
2180  rm -f core *.core core.conftest.* &&
2181    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2182    exit $exit_status
2183' 0
2184for ac_signal in 1 2 13 15; do
2185  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2186done
2187ac_signal=0
2188
2189# confdefs.h avoids OS command line length limits that DEFS can exceed.
2190rm -f -r conftest* confdefs.h
2191
2192printf "%s\n" "/* confdefs.h */" > confdefs.h
2193
2194# Predefined preprocessor variables.
2195
2196printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2197
2198printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2199
2200printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2201
2202printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2203
2204printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2205
2206printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2207
2208
2209# Let the site file select an alternate cache file if it wants to.
2210# Prefer an explicitly selected file to automatically selected ones.
2211if test -n "$CONFIG_SITE"; then
2212  ac_site_files="$CONFIG_SITE"
2213elif test "x$prefix" != xNONE; then
2214  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2215else
2216  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2217fi
2218
2219for ac_site_file in $ac_site_files
2220do
2221  case $ac_site_file in #(
2222  */*) :
2223     ;; #(
2224  *) :
2225    ac_site_file=./$ac_site_file ;;
2226esac
2227  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2228    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2230    sed 's/^/| /' "$ac_site_file" >&5
2231    . "$ac_site_file" \
2232      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2234as_fn_error $? "failed to load site script $ac_site_file
2235See \`config.log' for more details" "$LINENO" 5; }
2236  fi
2237done
2238
2239if test -r "$cache_file"; then
2240  # Some versions of bash will fail to source /dev/null (special files
2241  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2242  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2245    case $cache_file in
2246      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247      *)                      . "./$cache_file";;
2248    esac
2249  fi
2250else
2251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2253  >$cache_file
2254fi
2255
2256# Test code for whether the C++ compiler supports C++98 (global declarations)
2257ac_cxx_conftest_cxx98_globals='
2258// Does the compiler advertise C++98 conformance?
2259#if !defined __cplusplus || __cplusplus < 199711L
2260# error "Compiler does not advertise C++98 conformance"
2261#endif
2262
2263// These inclusions are to reject old compilers that
2264// lack the unsuffixed header files.
2265#include <cstdlib>
2266#include <exception>
2267
2268// <cassert> and <cstring> are *not* freestanding headers in C++98.
2269extern void assert (int);
2270namespace std {
2271  extern int strcmp (const char *, const char *);
2272}
2273
2274// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2275using std::exception;
2276using std::strcmp;
2277
2278namespace {
2279
2280void test_exception_syntax()
2281{
2282  try {
2283    throw "test";
2284  } catch (const char *s) {
2285    // Extra parentheses suppress a warning when building autoconf itself,
2286    // due to lint rules shared with more typical C programs.
2287    assert (!(strcmp) (s, "test"));
2288  }
2289}
2290
2291template <typename T> struct test_template
2292{
2293  T const val;
2294  explicit test_template(T t) : val(t) {}
2295  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2296};
2297
2298} // anonymous namespace
2299'
2300
2301# Test code for whether the C++ compiler supports C++98 (body of main)
2302ac_cxx_conftest_cxx98_main='
2303  assert (argc);
2304  assert (! argv[0]);
2305{
2306  test_exception_syntax ();
2307  test_template<double> tt (2.0);
2308  assert (tt.add (4) == 6.0);
2309  assert (true && !false);
2310}
2311'
2312
2313# Test code for whether the C++ compiler supports C++11 (global declarations)
2314ac_cxx_conftest_cxx11_globals='
2315// Does the compiler advertise C++ 2011 conformance?
2316#if !defined __cplusplus || __cplusplus < 201103L
2317# error "Compiler does not advertise C++11 conformance"
2318#endif
2319
2320namespace cxx11test
2321{
2322  constexpr int get_val() { return 20; }
2323
2324  struct testinit
2325  {
2326    int i;
2327    double d;
2328  };
2329
2330  class delegate
2331  {
2332  public:
2333    delegate(int n) : n(n) {}
2334    delegate(): delegate(2354) {}
2335
2336    virtual int getval() { return this->n; };
2337  protected:
2338    int n;
2339  };
2340
2341  class overridden : public delegate
2342  {
2343  public:
2344    overridden(int n): delegate(n) {}
2345    virtual int getval() override final { return this->n * 2; }
2346  };
2347
2348  class nocopy
2349  {
2350  public:
2351    nocopy(int i): i(i) {}
2352    nocopy() = default;
2353    nocopy(const nocopy&) = delete;
2354    nocopy & operator=(const nocopy&) = delete;
2355  private:
2356    int i;
2357  };
2358
2359  // for testing lambda expressions
2360  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2361  {
2362    return f(v);
2363  }
2364
2365  // for testing variadic templates and trailing return types
2366  template <typename V> auto sum(V first) -> V
2367  {
2368    return first;
2369  }
2370  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2371  {
2372    return first + sum(rest...);
2373  }
2374}
2375'
2376
2377# Test code for whether the C++ compiler supports C++11 (body of main)
2378ac_cxx_conftest_cxx11_main='
2379{
2380  // Test auto and decltype
2381  auto a1 = 6538;
2382  auto a2 = 48573953.4;
2383  auto a3 = "String literal";
2384
2385  int total = 0;
2386  for (auto i = a3; *i; ++i) { total += *i; }
2387
2388  decltype(a2) a4 = 34895.034;
2389}
2390{
2391  // Test constexpr
2392  short sa[cxx11test::get_val()] = { 0 };
2393}
2394{
2395  // Test initializer lists
2396  cxx11test::testinit il = { 4323, 435234.23544 };
2397}
2398{
2399  // Test range-based for
2400  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2401                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2402  for (auto &x : array) { x += 23; }
2403}
2404{
2405  // Test lambda expressions
2406  using cxx11test::eval;
2407  assert (eval ([](int x) { return x*2; }, 21) == 42);
2408  double d = 2.0;
2409  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2410  assert (d == 5.0);
2411  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2412  assert (d == 5.0);
2413}
2414{
2415  // Test use of variadic templates
2416  using cxx11test::sum;
2417  auto a = sum(1);
2418  auto b = sum(1, 2);
2419  auto c = sum(1.0, 2.0, 3.0);
2420}
2421{
2422  // Test constructor delegation
2423  cxx11test::delegate d1;
2424  cxx11test::delegate d2();
2425  cxx11test::delegate d3(45);
2426}
2427{
2428  // Test override and final
2429  cxx11test::overridden o1(55464);
2430}
2431{
2432  // Test nullptr
2433  char *c = nullptr;
2434}
2435{
2436  // Test template brackets
2437  test_template<::test_template<int>> v(test_template<int>(12));
2438}
2439{
2440  // Unicode literals
2441  char const *utf8 = u8"UTF-8 string \u2500";
2442  char16_t const *utf16 = u"UTF-8 string \u2500";
2443  char32_t const *utf32 = U"UTF-32 string \u2500";
2444}
2445'
2446
2447# Test code for whether the C compiler supports C++11 (complete).
2448ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2449${ac_cxx_conftest_cxx11_globals}
2450
2451int
2452main (int argc, char **argv)
2453{
2454  int ok = 0;
2455  ${ac_cxx_conftest_cxx98_main}
2456  ${ac_cxx_conftest_cxx11_main}
2457  return ok;
2458}
2459"
2460
2461# Test code for whether the C compiler supports C++98 (complete).
2462ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2463int
2464main (int argc, char **argv)
2465{
2466  int ok = 0;
2467  ${ac_cxx_conftest_cxx98_main}
2468  return ok;
2469}
2470"
2471
2472# Test code for whether the C compiler supports C89 (global declarations)
2473ac_c_conftest_c89_globals='
2474/* Does the compiler advertise C89 conformance?
2475   Do not test the value of __STDC__, because some compilers set it to 0
2476   while being otherwise adequately conformant. */
2477#if !defined __STDC__
2478# error "Compiler does not advertise C89 conformance"
2479#endif
2480
2481#include <stddef.h>
2482#include <stdarg.h>
2483struct stat;
2484/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2485struct buf { int x; };
2486struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2487static char *e (p, i)
2488     char **p;
2489     int i;
2490{
2491  return p[i];
2492}
2493static char *f (char * (*g) (char **, int), char **p, ...)
2494{
2495  char *s;
2496  va_list v;
2497  va_start (v,p);
2498  s = g (p, va_arg (v,int));
2499  va_end (v);
2500  return s;
2501}
2502
2503/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2504   function prototypes and stuff, but not \xHH hex character constants.
2505   These do not provoke an error unfortunately, instead are silently treated
2506   as an "x".  The following induces an error, until -std is added to get
2507   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2508   array size at least.  It is necessary to write \x00 == 0 to get something
2509   that is true only with -std.  */
2510int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2511
2512/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2513   inside strings and character constants.  */
2514#define FOO(x) '\''x'\''
2515int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2516
2517int test (int i, double x);
2518struct s1 {int (*f) (int a);};
2519struct s2 {int (*f) (double a);};
2520int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2521               int, int);'
2522
2523# Test code for whether the C compiler supports C89 (body of main).
2524ac_c_conftest_c89_main='
2525ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2526'
2527
2528# Test code for whether the C compiler supports C99 (global declarations)
2529ac_c_conftest_c99_globals='
2530// Does the compiler advertise C99 conformance?
2531#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2532# error "Compiler does not advertise C99 conformance"
2533#endif
2534
2535#include <stdbool.h>
2536extern int puts (const char *);
2537extern int printf (const char *, ...);
2538extern int dprintf (int, const char *, ...);
2539extern void *malloc (size_t);
2540
2541// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2542// dprintf is used instead of fprintf to avoid needing to declare
2543// FILE and stderr.
2544#define debug(...) dprintf (2, __VA_ARGS__)
2545#define showlist(...) puts (#__VA_ARGS__)
2546#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2547static void
2548test_varargs_macros (void)
2549{
2550  int x = 1234;
2551  int y = 5678;
2552  debug ("Flag");
2553  debug ("X = %d\n", x);
2554  showlist (The first, second, and third items.);
2555  report (x>y, "x is %d but y is %d", x, y);
2556}
2557
2558// Check long long types.
2559#define BIG64 18446744073709551615ull
2560#define BIG32 4294967295ul
2561#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2562#if !BIG_OK
2563  #error "your preprocessor is broken"
2564#endif
2565#if BIG_OK
2566#else
2567  #error "your preprocessor is broken"
2568#endif
2569static long long int bignum = -9223372036854775807LL;
2570static unsigned long long int ubignum = BIG64;
2571
2572struct incomplete_array
2573{
2574  int datasize;
2575  double data[];
2576};
2577
2578struct named_init {
2579  int number;
2580  const wchar_t *name;
2581  double average;
2582};
2583
2584typedef const char *ccp;
2585
2586static inline int
2587test_restrict (ccp restrict text)
2588{
2589  // See if C++-style comments work.
2590  // Iterate through items via the restricted pointer.
2591  // Also check for declarations in for loops.
2592  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2593    continue;
2594  return 0;
2595}
2596
2597// Check varargs and va_copy.
2598static bool
2599test_varargs (const char *format, ...)
2600{
2601  va_list args;
2602  va_start (args, format);
2603  va_list args_copy;
2604  va_copy (args_copy, args);
2605
2606  const char *str = "";
2607  int number = 0;
2608  float fnumber = 0;
2609
2610  while (*format)
2611    {
2612      switch (*format++)
2613	{
2614	case '\''s'\'': // string
2615	  str = va_arg (args_copy, const char *);
2616	  break;
2617	case '\''d'\'': // int
2618	  number = va_arg (args_copy, int);
2619	  break;
2620	case '\''f'\'': // float
2621	  fnumber = va_arg (args_copy, double);
2622	  break;
2623	default:
2624	  break;
2625	}
2626    }
2627  va_end (args_copy);
2628  va_end (args);
2629
2630  return *str && number && fnumber;
2631}
2632'
2633
2634# Test code for whether the C compiler supports C99 (body of main).
2635ac_c_conftest_c99_main='
2636  // Check bool.
2637  _Bool success = false;
2638  success |= (argc != 0);
2639
2640  // Check restrict.
2641  if (test_restrict ("String literal") == 0)
2642    success = true;
2643  char *restrict newvar = "Another string";
2644
2645  // Check varargs.
2646  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2647  test_varargs_macros ();
2648
2649  // Check flexible array members.
2650  struct incomplete_array *ia =
2651    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2652  ia->datasize = 10;
2653  for (int i = 0; i < ia->datasize; ++i)
2654    ia->data[i] = i * 1.234;
2655
2656  // Check named initializers.
2657  struct named_init ni = {
2658    .number = 34,
2659    .name = L"Test wide string",
2660    .average = 543.34343,
2661  };
2662
2663  ni.number = 58;
2664
2665  int dynamic_array[ni.number];
2666  dynamic_array[0] = argv[0][0];
2667  dynamic_array[ni.number - 1] = 543;
2668
2669  // work around unused variable warnings
2670  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2671	 || dynamic_array[ni.number - 1] != 543);
2672'
2673
2674# Test code for whether the C compiler supports C11 (global declarations)
2675ac_c_conftest_c11_globals='
2676// Does the compiler advertise C11 conformance?
2677#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2678# error "Compiler does not advertise C11 conformance"
2679#endif
2680
2681// Check _Alignas.
2682char _Alignas (double) aligned_as_double;
2683char _Alignas (0) no_special_alignment;
2684extern char aligned_as_int;
2685char _Alignas (0) _Alignas (int) aligned_as_int;
2686
2687// Check _Alignof.
2688enum
2689{
2690  int_alignment = _Alignof (int),
2691  int_array_alignment = _Alignof (int[100]),
2692  char_alignment = _Alignof (char)
2693};
2694_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2695
2696// Check _Noreturn.
2697int _Noreturn does_not_return (void) { for (;;) continue; }
2698
2699// Check _Static_assert.
2700struct test_static_assert
2701{
2702  int x;
2703  _Static_assert (sizeof (int) <= sizeof (long int),
2704                  "_Static_assert does not work in struct");
2705  long int y;
2706};
2707
2708// Check UTF-8 literals.
2709#define u8 syntax error!
2710char const utf8_literal[] = u8"happens to be ASCII" "another string";
2711
2712// Check duplicate typedefs.
2713typedef long *long_ptr;
2714typedef long int *long_ptr;
2715typedef long_ptr long_ptr;
2716
2717// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2718struct anonymous
2719{
2720  union {
2721    struct { int i; int j; };
2722    struct { int k; long int l; } w;
2723  };
2724  int m;
2725} v1;
2726'
2727
2728# Test code for whether the C compiler supports C11 (body of main).
2729ac_c_conftest_c11_main='
2730  _Static_assert ((offsetof (struct anonymous, i)
2731		   == offsetof (struct anonymous, w.k)),
2732		  "Anonymous union alignment botch");
2733  v1.i = 2;
2734  v1.w.k = 5;
2735  ok |= v1.i != 5;
2736'
2737
2738# Test code for whether the C compiler supports C11 (complete).
2739ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2740${ac_c_conftest_c99_globals}
2741${ac_c_conftest_c11_globals}
2742
2743int
2744main (int argc, char **argv)
2745{
2746  int ok = 0;
2747  ${ac_c_conftest_c89_main}
2748  ${ac_c_conftest_c99_main}
2749  ${ac_c_conftest_c11_main}
2750  return ok;
2751}
2752"
2753
2754# Test code for whether the C compiler supports C99 (complete).
2755ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2756${ac_c_conftest_c99_globals}
2757
2758int
2759main (int argc, char **argv)
2760{
2761  int ok = 0;
2762  ${ac_c_conftest_c89_main}
2763  ${ac_c_conftest_c99_main}
2764  return ok;
2765}
2766"
2767
2768# Test code for whether the C compiler supports C89 (complete).
2769ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2770
2771int
2772main (int argc, char **argv)
2773{
2774  int ok = 0;
2775  ${ac_c_conftest_c89_main}
2776  return ok;
2777}
2778"
2779
2780as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2781as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2782as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2783as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2784as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2785as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2786as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2787as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2788as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2789
2790# Auxiliary files required by this configure script.
2791ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2792
2793# Locations in which to look for auxiliary files.
2794ac_aux_dir_candidates="${srcdir}/."
2795
2796# Search for a directory containing all of the required auxiliary files,
2797# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2798# If we don't find one directory that contains all the files we need,
2799# we report the set of missing files from the *first* directory in
2800# $ac_aux_dir_candidates and give up.
2801ac_missing_aux_files=""
2802ac_first_candidate=:
2803printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805as_found=false
2806for as_dir in $ac_aux_dir_candidates
2807do
2808  IFS=$as_save_IFS
2809  case $as_dir in #(((
2810    '') as_dir=./ ;;
2811    */) ;;
2812    *) as_dir=$as_dir/ ;;
2813  esac
2814  as_found=:
2815
2816  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2817  ac_aux_dir_found=yes
2818  ac_install_sh=
2819  for ac_aux in $ac_aux_files
2820  do
2821    # As a special case, if "install-sh" is required, that requirement
2822    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2823    # and $ac_install_sh is set appropriately for whichever one is found.
2824    if test x"$ac_aux" = x"install-sh"
2825    then
2826      if test -f "${as_dir}install-sh"; then
2827        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2828        ac_install_sh="${as_dir}install-sh -c"
2829      elif test -f "${as_dir}install.sh"; then
2830        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2831        ac_install_sh="${as_dir}install.sh -c"
2832      elif test -f "${as_dir}shtool"; then
2833        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2834        ac_install_sh="${as_dir}shtool install -c"
2835      else
2836        ac_aux_dir_found=no
2837        if $ac_first_candidate; then
2838          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2839        else
2840          break
2841        fi
2842      fi
2843    else
2844      if test -f "${as_dir}${ac_aux}"; then
2845        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2846      else
2847        ac_aux_dir_found=no
2848        if $ac_first_candidate; then
2849          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2850        else
2851          break
2852        fi
2853      fi
2854    fi
2855  done
2856  if test "$ac_aux_dir_found" = yes; then
2857    ac_aux_dir="$as_dir"
2858    break
2859  fi
2860  ac_first_candidate=false
2861
2862  as_found=false
2863done
2864IFS=$as_save_IFS
2865if $as_found
2866then :
2867
2868else $as_nop
2869  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2870fi
2871
2872
2873# These three variables are undocumented and unsupported,
2874# and are intended to be withdrawn in a future Autoconf release.
2875# They can cause serious problems if a builder's source tree is in a directory
2876# whose full name contains unusual characters.
2877if test -f "${ac_aux_dir}config.guess"; then
2878  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2879fi
2880if test -f "${ac_aux_dir}config.sub"; then
2881  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2882fi
2883if test -f "$ac_aux_dir/configure"; then
2884  ac_configure="$SHELL ${ac_aux_dir}configure"
2885fi
2886
2887# Check that the precious variables saved in the cache have kept the same
2888# value.
2889ac_cache_corrupted=false
2890for ac_var in $ac_precious_vars; do
2891  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2892  eval ac_new_set=\$ac_env_${ac_var}_set
2893  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2894  eval ac_new_val=\$ac_env_${ac_var}_value
2895  case $ac_old_set,$ac_new_set in
2896    set,)
2897      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2898printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2899      ac_cache_corrupted=: ;;
2900    ,set)
2901      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2902printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2903      ac_cache_corrupted=: ;;
2904    ,);;
2905    *)
2906      if test "x$ac_old_val" != "x$ac_new_val"; then
2907	# differences in whitespace do not lead to failure.
2908	ac_old_val_w=`echo x $ac_old_val`
2909	ac_new_val_w=`echo x $ac_new_val`
2910	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2911	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2912printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2913	  ac_cache_corrupted=:
2914	else
2915	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2916printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2917	  eval $ac_var=\$ac_old_val
2918	fi
2919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2920printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2921	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2922printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2923      fi;;
2924  esac
2925  # Pass precious variables to config.status.
2926  if test "$ac_new_set" = set; then
2927    case $ac_new_val in
2928    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2929    *) ac_arg=$ac_var=$ac_new_val ;;
2930    esac
2931    case " $ac_configure_args " in
2932      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2933      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2934    esac
2935  fi
2936done
2937if $ac_cache_corrupted; then
2938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2941printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2942  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2943	    and start over" "$LINENO" 5
2944fi
2945## -------------------- ##
2946## Main body of script. ##
2947## -------------------- ##
2948
2949ac_ext=c
2950ac_cpp='$CPP $CPPFLAGS'
2951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954
2955
2956
2957
2958am__api_version='1.16'
2959
2960
2961
2962  # Find a good install program.  We prefer a C program (faster),
2963# so one script is as good as another.  But avoid the broken or
2964# incompatible versions:
2965# SysV /etc/install, /usr/sbin/install
2966# SunOS /usr/etc/install
2967# IRIX /sbin/install
2968# AIX /bin/install
2969# AmigaOS /C/install, which installs bootblocks on floppy discs
2970# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2971# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2972# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2973# OS/2's system install, which has a completely different semantic
2974# ./install, which can be erroneously created by make from ./install.sh.
2975# Reject install programs that cannot install multiple files.
2976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2977printf %s "checking for a BSD-compatible install... " >&6; }
2978if test -z "$INSTALL"; then
2979if test ${ac_cv_path_install+y}
2980then :
2981  printf %s "(cached) " >&6
2982else $as_nop
2983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986  IFS=$as_save_IFS
2987  case $as_dir in #(((
2988    '') as_dir=./ ;;
2989    */) ;;
2990    *) as_dir=$as_dir/ ;;
2991  esac
2992    # Account for fact that we put trailing slashes in our PATH walk.
2993case $as_dir in #((
2994  ./ | /[cC]/* | \
2995  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2996  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2997  /usr/ucb/* ) ;;
2998  *)
2999    # OSF1 and SCO ODT 3.0 have their own names for install.
3000    # Don't use installbsd from OSF since it installs stuff as root
3001    # by default.
3002    for ac_prog in ginstall scoinst install; do
3003      for ac_exec_ext in '' $ac_executable_extensions; do
3004	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3005	  if test $ac_prog = install &&
3006	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3007	    # AIX install.  It has an incompatible calling convention.
3008	    :
3009	  elif test $ac_prog = install &&
3010	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3011	    # program-specific install script used by HP pwplus--don't use.
3012	    :
3013	  else
3014	    rm -rf conftest.one conftest.two conftest.dir
3015	    echo one > conftest.one
3016	    echo two > conftest.two
3017	    mkdir conftest.dir
3018	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3019	      test -s conftest.one && test -s conftest.two &&
3020	      test -s conftest.dir/conftest.one &&
3021	      test -s conftest.dir/conftest.two
3022	    then
3023	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3024	      break 3
3025	    fi
3026	  fi
3027	fi
3028      done
3029    done
3030    ;;
3031esac
3032
3033  done
3034IFS=$as_save_IFS
3035
3036rm -rf conftest.one conftest.two conftest.dir
3037
3038fi
3039  if test ${ac_cv_path_install+y}; then
3040    INSTALL=$ac_cv_path_install
3041  else
3042    # As a last resort, use the slow shell script.  Don't cache a
3043    # value for INSTALL within a source directory, because that will
3044    # break other packages using the cache if that directory is
3045    # removed, or if the value is a relative name.
3046    INSTALL=$ac_install_sh
3047  fi
3048fi
3049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3050printf "%s\n" "$INSTALL" >&6; }
3051
3052# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3053# It thinks the first close brace ends the variable substitution.
3054test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3055
3056test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3057
3058test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3059
3060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3061printf %s "checking whether build environment is sane... " >&6; }
3062# Reject unsafe characters in $srcdir or the absolute working directory
3063# name.  Accept space and tab only in the latter.
3064am_lf='
3065'
3066case `pwd` in
3067  *[\\\"\#\$\&\'\`$am_lf]*)
3068    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3069esac
3070case $srcdir in
3071  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3072    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3073esac
3074
3075# Do 'set' in a subshell so we don't clobber the current shell's
3076# arguments.  Must try -L first in case configure is actually a
3077# symlink; some systems play weird games with the mod time of symlinks
3078# (eg FreeBSD returns the mod time of the symlink's containing
3079# directory).
3080if (
3081   am_has_slept=no
3082   for am_try in 1 2; do
3083     echo "timestamp, slept: $am_has_slept" > conftest.file
3084     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3085     if test "$*" = "X"; then
3086	# -L didn't work.
3087	set X `ls -t "$srcdir/configure" conftest.file`
3088     fi
3089     if test "$*" != "X $srcdir/configure conftest.file" \
3090	&& test "$*" != "X conftest.file $srcdir/configure"; then
3091
3092	# If neither matched, then we have a broken ls.  This can happen
3093	# if, for instance, CONFIG_SHELL is bash and it inherits a
3094	# broken ls alias from the environment.  This has actually
3095	# happened.  Such a system could not be considered "sane".
3096	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3097  alias in your environment" "$LINENO" 5
3098     fi
3099     if test "$2" = conftest.file || test $am_try -eq 2; then
3100       break
3101     fi
3102     # Just in case.
3103     sleep 1
3104     am_has_slept=yes
3105   done
3106   test "$2" = conftest.file
3107   )
3108then
3109   # Ok.
3110   :
3111else
3112   as_fn_error $? "newly created file is older than distributed files!
3113Check your system clock" "$LINENO" 5
3114fi
3115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3116printf "%s\n" "yes" >&6; }
3117# If we didn't sleep, we still need to ensure time stamps of config.status and
3118# generated files are strictly newer.
3119am_sleep_pid=
3120if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3121  ( sleep 1 ) &
3122  am_sleep_pid=$!
3123fi
3124
3125rm -f conftest.file
3126
3127test "$program_prefix" != NONE &&
3128  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3129# Use a double $ so make ignores it.
3130test "$program_suffix" != NONE &&
3131  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3132# Double any \ or $.
3133# By default was `s,x,x', remove it if useless.
3134ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3135program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3136
3137
3138# Expand $ac_aux_dir to an absolute path.
3139am_aux_dir=`cd "$ac_aux_dir" && pwd`
3140
3141
3142  if test x"${MISSING+set}" != xset; then
3143  MISSING="\${SHELL} '$am_aux_dir/missing'"
3144fi
3145# Use eval to expand $SHELL
3146if eval "$MISSING --is-lightweight"; then
3147  am_missing_run="$MISSING "
3148else
3149  am_missing_run=
3150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3151printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3152fi
3153
3154if test x"${install_sh+set}" != xset; then
3155  case $am_aux_dir in
3156  *\ * | *\	*)
3157    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3158  *)
3159    install_sh="\${SHELL} $am_aux_dir/install-sh"
3160  esac
3161fi
3162
3163# Installed binaries are usually stripped using 'strip' when the user
3164# run "make install-strip".  However 'strip' might not be the right
3165# tool to use in cross-compilation environments, therefore Automake
3166# will honor the 'STRIP' environment variable to overrule this program.
3167if test "$cross_compiling" != no; then
3168  if test -n "$ac_tool_prefix"; then
3169  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3170set dummy ${ac_tool_prefix}strip; ac_word=$2
3171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172printf %s "checking for $ac_word... " >&6; }
3173if test ${ac_cv_prog_STRIP+y}
3174then :
3175  printf %s "(cached) " >&6
3176else $as_nop
3177  if test -n "$STRIP"; then
3178  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3179else
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183  IFS=$as_save_IFS
3184  case $as_dir in #(((
3185    '') as_dir=./ ;;
3186    */) ;;
3187    *) as_dir=$as_dir/ ;;
3188  esac
3189    for ac_exec_ext in '' $ac_executable_extensions; do
3190  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3191    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3192    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3193    break 2
3194  fi
3195done
3196  done
3197IFS=$as_save_IFS
3198
3199fi
3200fi
3201STRIP=$ac_cv_prog_STRIP
3202if test -n "$STRIP"; then
3203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3204printf "%s\n" "$STRIP" >&6; }
3205else
3206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207printf "%s\n" "no" >&6; }
3208fi
3209
3210
3211fi
3212if test -z "$ac_cv_prog_STRIP"; then
3213  ac_ct_STRIP=$STRIP
3214  # Extract the first word of "strip", so it can be a program name with args.
3215set dummy strip; ac_word=$2
3216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217printf %s "checking for $ac_word... " >&6; }
3218if test ${ac_cv_prog_ac_ct_STRIP+y}
3219then :
3220  printf %s "(cached) " >&6
3221else $as_nop
3222  if test -n "$ac_ct_STRIP"; then
3223  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  case $as_dir in #(((
3230    '') as_dir=./ ;;
3231    */) ;;
3232    *) as_dir=$as_dir/ ;;
3233  esac
3234    for ac_exec_ext in '' $ac_executable_extensions; do
3235  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3236    ac_cv_prog_ac_ct_STRIP="strip"
3237    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3238    break 2
3239  fi
3240done
3241  done
3242IFS=$as_save_IFS
3243
3244fi
3245fi
3246ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3247if test -n "$ac_ct_STRIP"; then
3248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3249printf "%s\n" "$ac_ct_STRIP" >&6; }
3250else
3251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252printf "%s\n" "no" >&6; }
3253fi
3254
3255  if test "x$ac_ct_STRIP" = x; then
3256    STRIP=":"
3257  else
3258    case $cross_compiling:$ac_tool_warned in
3259yes:)
3260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262ac_tool_warned=yes ;;
3263esac
3264    STRIP=$ac_ct_STRIP
3265  fi
3266else
3267  STRIP="$ac_cv_prog_STRIP"
3268fi
3269
3270fi
3271INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3272
3273
3274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3275printf %s "checking for a race-free mkdir -p... " >&6; }
3276if test -z "$MKDIR_P"; then
3277  if test ${ac_cv_path_mkdir+y}
3278then :
3279  printf %s "(cached) " >&6
3280else $as_nop
3281  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3283do
3284  IFS=$as_save_IFS
3285  case $as_dir in #(((
3286    '') as_dir=./ ;;
3287    */) ;;
3288    *) as_dir=$as_dir/ ;;
3289  esac
3290    for ac_prog in mkdir gmkdir; do
3291	 for ac_exec_ext in '' $ac_executable_extensions; do
3292	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3293	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3294	     'mkdir ('*'coreutils) '* | \
3295	     'BusyBox '* | \
3296	     'mkdir (fileutils) '4.1*)
3297	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3298	       break 3;;
3299	   esac
3300	 done
3301       done
3302  done
3303IFS=$as_save_IFS
3304
3305fi
3306
3307  test -d ./--version && rmdir ./--version
3308  if test ${ac_cv_path_mkdir+y}; then
3309    MKDIR_P="$ac_cv_path_mkdir -p"
3310  else
3311    # As a last resort, use the slow shell script.  Don't cache a
3312    # value for MKDIR_P within a source directory, because that will
3313    # break other packages using the cache if that directory is
3314    # removed, or if the value is a relative name.
3315    MKDIR_P="$ac_install_sh -d"
3316  fi
3317fi
3318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3319printf "%s\n" "$MKDIR_P" >&6; }
3320
3321for ac_prog in gawk mawk nawk awk
3322do
3323  # Extract the first word of "$ac_prog", so it can be a program name with args.
3324set dummy $ac_prog; ac_word=$2
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326printf %s "checking for $ac_word... " >&6; }
3327if test ${ac_cv_prog_AWK+y}
3328then :
3329  printf %s "(cached) " >&6
3330else $as_nop
3331  if test -n "$AWK"; then
3332  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337  IFS=$as_save_IFS
3338  case $as_dir in #(((
3339    '') as_dir=./ ;;
3340    */) ;;
3341    *) as_dir=$as_dir/ ;;
3342  esac
3343    for ac_exec_ext in '' $ac_executable_extensions; do
3344  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3345    ac_cv_prog_AWK="$ac_prog"
3346    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3347    break 2
3348  fi
3349done
3350  done
3351IFS=$as_save_IFS
3352
3353fi
3354fi
3355AWK=$ac_cv_prog_AWK
3356if test -n "$AWK"; then
3357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3358printf "%s\n" "$AWK" >&6; }
3359else
3360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361printf "%s\n" "no" >&6; }
3362fi
3363
3364
3365  test -n "$AWK" && break
3366done
3367
3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3369printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3370set x ${MAKE-make}
3371ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3372if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3373then :
3374  printf %s "(cached) " >&6
3375else $as_nop
3376  cat >conftest.make <<\_ACEOF
3377SHELL = /bin/sh
3378all:
3379	@echo '@@@%%%=$(MAKE)=@@@%%%'
3380_ACEOF
3381# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3382case `${MAKE-make} -f conftest.make 2>/dev/null` in
3383  *@@@%%%=?*=@@@%%%*)
3384    eval ac_cv_prog_make_${ac_make}_set=yes;;
3385  *)
3386    eval ac_cv_prog_make_${ac_make}_set=no;;
3387esac
3388rm -f conftest.make
3389fi
3390if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392printf "%s\n" "yes" >&6; }
3393  SET_MAKE=
3394else
3395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396printf "%s\n" "no" >&6; }
3397  SET_MAKE="MAKE=${MAKE-make}"
3398fi
3399
3400rm -rf .tst 2>/dev/null
3401mkdir .tst 2>/dev/null
3402if test -d .tst; then
3403  am__leading_dot=.
3404else
3405  am__leading_dot=_
3406fi
3407rmdir .tst 2>/dev/null
3408
3409# Check whether --enable-silent-rules was given.
3410if test ${enable_silent_rules+y}
3411then :
3412  enableval=$enable_silent_rules;
3413fi
3414
3415case $enable_silent_rules in # (((
3416  yes) AM_DEFAULT_VERBOSITY=0;;
3417   no) AM_DEFAULT_VERBOSITY=1;;
3418    *) AM_DEFAULT_VERBOSITY=1;;
3419esac
3420am_make=${MAKE-make}
3421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3422printf %s "checking whether $am_make supports nested variables... " >&6; }
3423if test ${am_cv_make_support_nested_variables+y}
3424then :
3425  printf %s "(cached) " >&6
3426else $as_nop
3427  if printf "%s\n" 'TRUE=$(BAR$(V))
3428BAR0=false
3429BAR1=true
3430V=1
3431am__doit:
3432	@$(TRUE)
3433.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3434  am_cv_make_support_nested_variables=yes
3435else
3436  am_cv_make_support_nested_variables=no
3437fi
3438fi
3439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3440printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3441if test $am_cv_make_support_nested_variables = yes; then
3442    AM_V='$(V)'
3443  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3444else
3445  AM_V=$AM_DEFAULT_VERBOSITY
3446  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3447fi
3448AM_BACKSLASH='\'
3449
3450if test "`cd $srcdir && pwd`" != "`pwd`"; then
3451  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3452  # is not polluted with repeated "-I."
3453  am__isrc=' -I$(srcdir)'
3454  # test to see if srcdir already configured
3455  if test -f $srcdir/config.status; then
3456    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3457  fi
3458fi
3459
3460# test whether we have cygpath
3461if test -z "$CYGPATH_W"; then
3462  if (cygpath --version) >/dev/null 2>/dev/null; then
3463    CYGPATH_W='cygpath -w'
3464  else
3465    CYGPATH_W=echo
3466  fi
3467fi
3468
3469
3470# Define the identity of the package.
3471 PACKAGE='isl-interface'
3472 VERSION='0'
3473
3474
3475printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3476
3477
3478printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3479
3480# Some tools Automake needs.
3481
3482ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3483
3484
3485AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3486
3487
3488AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3489
3490
3491AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3492
3493
3494MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3495
3496# For better backward compatibility.  To be removed once Automake 1.9.x
3497# dies out for good.  For more background, see:
3498# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3499# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3500mkdir_p='$(MKDIR_P)'
3501
3502# We need awk for the "check" target (and possibly the TAP driver).  The
3503# system "awk" is bad on some platforms.
3504# Always define AMTAR for backward compatibility.  Yes, it's still used
3505# in the wild :-(  We should find a proper way to deprecate it ...
3506AMTAR='$${TAR-tar}'
3507
3508
3509# We'll loop over all known methods to create a tar archive until one works.
3510_am_tools='gnutar  pax cpio none'
3511
3512am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3513
3514
3515
3516
3517
3518# Variables for tags utilities; see am/tags.am
3519if test -z "$CTAGS"; then
3520  CTAGS=ctags
3521fi
3522
3523if test -z "$ETAGS"; then
3524  ETAGS=etags
3525fi
3526
3527if test -z "$CSCOPE"; then
3528  CSCOPE=cscope
3529fi
3530
3531
3532
3533# POSIX will say in a future version that running "rm -f" with no argument
3534# is OK; and we want to be able to make that assumption in our Makefile
3535# recipes.  So use an aggressive probe to check that the usage we want is
3536# actually supported "in the wild" to an acceptable degree.
3537# See automake bug#10828.
3538# To make any issue more visible, cause the running configure to be aborted
3539# by default if the 'rm' program in use doesn't match our expectations; the
3540# user can still override this though.
3541if rm -f && rm -fr && rm -rf; then : OK; else
3542  cat >&2 <<'END'
3543Oops!
3544
3545Your 'rm' program seems unable to run without file operands specified
3546on the command line, even when the '-f' option is present.  This is contrary
3547to the behaviour of most rm programs out there, and not conforming with
3548the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3549
3550Please tell bug-automake@gnu.org about your system, including the value
3551of your $PATH and any error possibly output before this message.  This
3552can help us improve future automake versions.
3553
3554END
3555  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3556    echo 'Configuration will proceed anyway, since you have set the' >&2
3557    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3558    echo >&2
3559  else
3560    cat >&2 <<'END'
3561Aborting the configuration process, to ensure you take notice of the issue.
3562
3563You can download and install GNU coreutils to get an 'rm' implementation
3564that behaves properly: <https://www.gnu.org/software/coreutils/>.
3565
3566If you want to complete the configuration process using your problematic
3567'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3568to "yes", and re-run configure.
3569
3570END
3571    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3572  fi
3573fi
3574
3575# Check whether --enable-silent-rules was given.
3576if test ${enable_silent_rules+y}
3577then :
3578  enableval=$enable_silent_rules;
3579fi
3580
3581case $enable_silent_rules in # (((
3582  yes) AM_DEFAULT_VERBOSITY=0;;
3583   no) AM_DEFAULT_VERBOSITY=1;;
3584    *) AM_DEFAULT_VERBOSITY=0;;
3585esac
3586am_make=${MAKE-make}
3587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3588printf %s "checking whether $am_make supports nested variables... " >&6; }
3589if test ${am_cv_make_support_nested_variables+y}
3590then :
3591  printf %s "(cached) " >&6
3592else $as_nop
3593  if printf "%s\n" 'TRUE=$(BAR$(V))
3594BAR0=false
3595BAR1=true
3596V=1
3597am__doit:
3598	@$(TRUE)
3599.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3600  am_cv_make_support_nested_variables=yes
3601else
3602  am_cv_make_support_nested_variables=no
3603fi
3604fi
3605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3606printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3607if test $am_cv_make_support_nested_variables = yes; then
3608    AM_V='$(V)'
3609  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3610else
3611  AM_V=$AM_DEFAULT_VERBOSITY
3612  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3613fi
3614AM_BACKSLASH='\'
3615
3616
3617
3618
3619
3620
3621
3622
3623ac_ext=cpp
3624ac_cpp='$CXXCPP $CPPFLAGS'
3625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3628if test -z "$CXX"; then
3629  if test -n "$CCC"; then
3630    CXX=$CCC
3631  else
3632    if test -n "$ac_tool_prefix"; then
3633  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3634  do
3635    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3636set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638printf %s "checking for $ac_word... " >&6; }
3639if test ${ac_cv_prog_CXX+y}
3640then :
3641  printf %s "(cached) " >&6
3642else $as_nop
3643  if test -n "$CXX"; then
3644  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3645else
3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647for as_dir in $PATH
3648do
3649  IFS=$as_save_IFS
3650  case $as_dir in #(((
3651    '') as_dir=./ ;;
3652    */) ;;
3653    *) as_dir=$as_dir/ ;;
3654  esac
3655    for ac_exec_ext in '' $ac_executable_extensions; do
3656  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3657    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3658    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3659    break 2
3660  fi
3661done
3662  done
3663IFS=$as_save_IFS
3664
3665fi
3666fi
3667CXX=$ac_cv_prog_CXX
3668if test -n "$CXX"; then
3669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3670printf "%s\n" "$CXX" >&6; }
3671else
3672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673printf "%s\n" "no" >&6; }
3674fi
3675
3676
3677    test -n "$CXX" && break
3678  done
3679fi
3680if test -z "$CXX"; then
3681  ac_ct_CXX=$CXX
3682  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3683do
3684  # Extract the first word of "$ac_prog", so it can be a program name with args.
3685set dummy $ac_prog; ac_word=$2
3686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687printf %s "checking for $ac_word... " >&6; }
3688if test ${ac_cv_prog_ac_ct_CXX+y}
3689then :
3690  printf %s "(cached) " >&6
3691else $as_nop
3692  if test -n "$ac_ct_CXX"; then
3693  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3694else
3695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696for as_dir in $PATH
3697do
3698  IFS=$as_save_IFS
3699  case $as_dir in #(((
3700    '') as_dir=./ ;;
3701    */) ;;
3702    *) as_dir=$as_dir/ ;;
3703  esac
3704    for ac_exec_ext in '' $ac_executable_extensions; do
3705  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3706    ac_cv_prog_ac_ct_CXX="$ac_prog"
3707    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3708    break 2
3709  fi
3710done
3711  done
3712IFS=$as_save_IFS
3713
3714fi
3715fi
3716ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3717if test -n "$ac_ct_CXX"; then
3718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3719printf "%s\n" "$ac_ct_CXX" >&6; }
3720else
3721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722printf "%s\n" "no" >&6; }
3723fi
3724
3725
3726  test -n "$ac_ct_CXX" && break
3727done
3728
3729  if test "x$ac_ct_CXX" = x; then
3730    CXX="g++"
3731  else
3732    case $cross_compiling:$ac_tool_warned in
3733yes:)
3734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3735printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3736ac_tool_warned=yes ;;
3737esac
3738    CXX=$ac_ct_CXX
3739  fi
3740fi
3741
3742  fi
3743fi
3744# Provide some information about the compiler.
3745printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3746set X $ac_compile
3747ac_compiler=$2
3748for ac_option in --version -v -V -qversion; do
3749  { { ac_try="$ac_compiler $ac_option >&5"
3750case "(($ac_try" in
3751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752  *) ac_try_echo=$ac_try;;
3753esac
3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755printf "%s\n" "$ac_try_echo"; } >&5
3756  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3757  ac_status=$?
3758  if test -s conftest.err; then
3759    sed '10a\
3760... rest of stderr output deleted ...
3761         10q' conftest.err >conftest.er1
3762    cat conftest.er1 >&5
3763  fi
3764  rm -f conftest.er1 conftest.err
3765  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766  test $ac_status = 0; }
3767done
3768
3769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770/* end confdefs.h.  */
3771
3772int
3773main (void)
3774{
3775
3776  ;
3777  return 0;
3778}
3779_ACEOF
3780ac_clean_files_save=$ac_clean_files
3781ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3782# Try to create an executable without -o first, disregard a.out.
3783# It will help us diagnose broken compilers, and finding out an intuition
3784# of exeext.
3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3786printf %s "checking whether the C++ compiler works... " >&6; }
3787ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3788
3789# The possible output files:
3790ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3791
3792ac_rmfiles=
3793for ac_file in $ac_files
3794do
3795  case $ac_file in
3796    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3797    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3798  esac
3799done
3800rm -f $ac_rmfiles
3801
3802if { { ac_try="$ac_link_default"
3803case "(($ac_try" in
3804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805  *) ac_try_echo=$ac_try;;
3806esac
3807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808printf "%s\n" "$ac_try_echo"; } >&5
3809  (eval "$ac_link_default") 2>&5
3810  ac_status=$?
3811  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812  test $ac_status = 0; }
3813then :
3814  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3815# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3816# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3817# so that the user can short-circuit this test for compilers unknown to
3818# Autoconf.
3819for ac_file in $ac_files ''
3820do
3821  test -f "$ac_file" || continue
3822  case $ac_file in
3823    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3824	;;
3825    [ab].out )
3826	# We found the default executable, but exeext='' is most
3827	# certainly right.
3828	break;;
3829    *.* )
3830	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3831	then :; else
3832	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3833	fi
3834	# We set ac_cv_exeext here because the later test for it is not
3835	# safe: cross compilers may not add the suffix if given an `-o'
3836	# argument, so we may need to know it at that point already.
3837	# Even if this section looks crufty: it has the advantage of
3838	# actually working.
3839	break;;
3840    * )
3841	break;;
3842  esac
3843done
3844test "$ac_cv_exeext" = no && ac_cv_exeext=
3845
3846else $as_nop
3847  ac_file=''
3848fi
3849if test -z "$ac_file"
3850then :
3851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852printf "%s\n" "no" >&6; }
3853printf "%s\n" "$as_me: failed program was:" >&5
3854sed 's/^/| /' conftest.$ac_ext >&5
3855
3856{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3858as_fn_error 77 "C++ compiler cannot create executables
3859See \`config.log' for more details" "$LINENO" 5; }
3860else $as_nop
3861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3862printf "%s\n" "yes" >&6; }
3863fi
3864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3865printf %s "checking for C++ compiler default output file name... " >&6; }
3866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3867printf "%s\n" "$ac_file" >&6; }
3868ac_exeext=$ac_cv_exeext
3869
3870rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3871ac_clean_files=$ac_clean_files_save
3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3873printf %s "checking for suffix of executables... " >&6; }
3874if { { ac_try="$ac_link"
3875case "(($ac_try" in
3876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877  *) ac_try_echo=$ac_try;;
3878esac
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880printf "%s\n" "$ac_try_echo"; } >&5
3881  (eval "$ac_link") 2>&5
3882  ac_status=$?
3883  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884  test $ac_status = 0; }
3885then :
3886  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3887# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3888# work properly (i.e., refer to `conftest.exe'), while it won't with
3889# `rm'.
3890for ac_file in conftest.exe conftest conftest.*; do
3891  test -f "$ac_file" || continue
3892  case $ac_file in
3893    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3894    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3895	  break;;
3896    * ) break;;
3897  esac
3898done
3899else $as_nop
3900  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3902as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3903See \`config.log' for more details" "$LINENO" 5; }
3904fi
3905rm -f conftest conftest$ac_cv_exeext
3906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3907printf "%s\n" "$ac_cv_exeext" >&6; }
3908
3909rm -f conftest.$ac_ext
3910EXEEXT=$ac_cv_exeext
3911ac_exeext=$EXEEXT
3912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h.  */
3914#include <stdio.h>
3915int
3916main (void)
3917{
3918FILE *f = fopen ("conftest.out", "w");
3919 return ferror (f) || fclose (f) != 0;
3920
3921  ;
3922  return 0;
3923}
3924_ACEOF
3925ac_clean_files="$ac_clean_files conftest.out"
3926# Check that the compiler produces executables we can run.  If not, either
3927# the compiler is broken, or we cross compile.
3928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3929printf %s "checking whether we are cross compiling... " >&6; }
3930if test "$cross_compiling" != yes; then
3931  { { ac_try="$ac_link"
3932case "(($ac_try" in
3933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934  *) ac_try_echo=$ac_try;;
3935esac
3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937printf "%s\n" "$ac_try_echo"; } >&5
3938  (eval "$ac_link") 2>&5
3939  ac_status=$?
3940  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941  test $ac_status = 0; }
3942  if { ac_try='./conftest$ac_cv_exeext'
3943  { { case "(($ac_try" in
3944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945  *) ac_try_echo=$ac_try;;
3946esac
3947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948printf "%s\n" "$ac_try_echo"; } >&5
3949  (eval "$ac_try") 2>&5
3950  ac_status=$?
3951  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952  test $ac_status = 0; }; }; then
3953    cross_compiling=no
3954  else
3955    if test "$cross_compiling" = maybe; then
3956	cross_compiling=yes
3957    else
3958	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3960as_fn_error 77 "cannot run C++ compiled programs.
3961If you meant to cross compile, use \`--host'.
3962See \`config.log' for more details" "$LINENO" 5; }
3963    fi
3964  fi
3965fi
3966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3967printf "%s\n" "$cross_compiling" >&6; }
3968
3969rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3970ac_clean_files=$ac_clean_files_save
3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3972printf %s "checking for suffix of object files... " >&6; }
3973if test ${ac_cv_objext+y}
3974then :
3975  printf %s "(cached) " >&6
3976else $as_nop
3977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h.  */
3979
3980int
3981main (void)
3982{
3983
3984  ;
3985  return 0;
3986}
3987_ACEOF
3988rm -f conftest.o conftest.obj
3989if { { ac_try="$ac_compile"
3990case "(($ac_try" in
3991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992  *) ac_try_echo=$ac_try;;
3993esac
3994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995printf "%s\n" "$ac_try_echo"; } >&5
3996  (eval "$ac_compile") 2>&5
3997  ac_status=$?
3998  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999  test $ac_status = 0; }
4000then :
4001  for ac_file in conftest.o conftest.obj conftest.*; do
4002  test -f "$ac_file" || continue;
4003  case $ac_file in
4004    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4005    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4006       break;;
4007  esac
4008done
4009else $as_nop
4010  printf "%s\n" "$as_me: failed program was:" >&5
4011sed 's/^/| /' conftest.$ac_ext >&5
4012
4013{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4014printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4015as_fn_error $? "cannot compute suffix of object files: cannot compile
4016See \`config.log' for more details" "$LINENO" 5; }
4017fi
4018rm -f conftest.$ac_cv_objext conftest.$ac_ext
4019fi
4020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4021printf "%s\n" "$ac_cv_objext" >&6; }
4022OBJEXT=$ac_cv_objext
4023ac_objext=$OBJEXT
4024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4025printf %s "checking whether the compiler supports GNU C++... " >&6; }
4026if test ${ac_cv_cxx_compiler_gnu+y}
4027then :
4028  printf %s "(cached) " >&6
4029else $as_nop
4030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032
4033int
4034main (void)
4035{
4036#ifndef __GNUC__
4037       choke me
4038#endif
4039
4040  ;
4041  return 0;
4042}
4043_ACEOF
4044if ac_fn_cxx_try_compile "$LINENO"
4045then :
4046  ac_compiler_gnu=yes
4047else $as_nop
4048  ac_compiler_gnu=no
4049fi
4050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4051ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4052
4053fi
4054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4055printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4057
4058if test $ac_compiler_gnu = yes; then
4059  GXX=yes
4060else
4061  GXX=
4062fi
4063ac_test_CXXFLAGS=${CXXFLAGS+y}
4064ac_save_CXXFLAGS=$CXXFLAGS
4065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4066printf %s "checking whether $CXX accepts -g... " >&6; }
4067if test ${ac_cv_prog_cxx_g+y}
4068then :
4069  printf %s "(cached) " >&6
4070else $as_nop
4071  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4072   ac_cxx_werror_flag=yes
4073   ac_cv_prog_cxx_g=no
4074   CXXFLAGS="-g"
4075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h.  */
4077
4078int
4079main (void)
4080{
4081
4082  ;
4083  return 0;
4084}
4085_ACEOF
4086if ac_fn_cxx_try_compile "$LINENO"
4087then :
4088  ac_cv_prog_cxx_g=yes
4089else $as_nop
4090  CXXFLAGS=""
4091      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092/* end confdefs.h.  */
4093
4094int
4095main (void)
4096{
4097
4098  ;
4099  return 0;
4100}
4101_ACEOF
4102if ac_fn_cxx_try_compile "$LINENO"
4103then :
4104
4105else $as_nop
4106  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4107	 CXXFLAGS="-g"
4108	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110
4111int
4112main (void)
4113{
4114
4115  ;
4116  return 0;
4117}
4118_ACEOF
4119if ac_fn_cxx_try_compile "$LINENO"
4120then :
4121  ac_cv_prog_cxx_g=yes
4122fi
4123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4124fi
4125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4126fi
4127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4128   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4129fi
4130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4131printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4132if test $ac_test_CXXFLAGS; then
4133  CXXFLAGS=$ac_save_CXXFLAGS
4134elif test $ac_cv_prog_cxx_g = yes; then
4135  if test "$GXX" = yes; then
4136    CXXFLAGS="-g -O2"
4137  else
4138    CXXFLAGS="-g"
4139  fi
4140else
4141  if test "$GXX" = yes; then
4142    CXXFLAGS="-O2"
4143  else
4144    CXXFLAGS=
4145  fi
4146fi
4147ac_prog_cxx_stdcxx=no
4148if test x$ac_prog_cxx_stdcxx = xno
4149then :
4150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4151printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4152if test ${ac_cv_prog_cxx_11+y}
4153then :
4154  printf %s "(cached) " >&6
4155else $as_nop
4156  ac_cv_prog_cxx_11=no
4157ac_save_CXX=$CXX
4158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159/* end confdefs.h.  */
4160$ac_cxx_conftest_cxx11_program
4161_ACEOF
4162for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4163do
4164  CXX="$ac_save_CXX $ac_arg"
4165  if ac_fn_cxx_try_compile "$LINENO"
4166then :
4167  ac_cv_prog_cxx_cxx11=$ac_arg
4168fi
4169rm -f core conftest.err conftest.$ac_objext conftest.beam
4170  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4171done
4172rm -f conftest.$ac_ext
4173CXX=$ac_save_CXX
4174fi
4175
4176if test "x$ac_cv_prog_cxx_cxx11" = xno
4177then :
4178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4179printf "%s\n" "unsupported" >&6; }
4180else $as_nop
4181  if test "x$ac_cv_prog_cxx_cxx11" = x
4182then :
4183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4184printf "%s\n" "none needed" >&6; }
4185else $as_nop
4186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4187printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4188     CXX="$CXX $ac_cv_prog_cxx_cxx11"
4189fi
4190  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4191  ac_prog_cxx_stdcxx=cxx11
4192fi
4193fi
4194if test x$ac_prog_cxx_stdcxx = xno
4195then :
4196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4197printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4198if test ${ac_cv_prog_cxx_98+y}
4199then :
4200  printf %s "(cached) " >&6
4201else $as_nop
4202  ac_cv_prog_cxx_98=no
4203ac_save_CXX=$CXX
4204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205/* end confdefs.h.  */
4206$ac_cxx_conftest_cxx98_program
4207_ACEOF
4208for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4209do
4210  CXX="$ac_save_CXX $ac_arg"
4211  if ac_fn_cxx_try_compile "$LINENO"
4212then :
4213  ac_cv_prog_cxx_cxx98=$ac_arg
4214fi
4215rm -f core conftest.err conftest.$ac_objext conftest.beam
4216  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4217done
4218rm -f conftest.$ac_ext
4219CXX=$ac_save_CXX
4220fi
4221
4222if test "x$ac_cv_prog_cxx_cxx98" = xno
4223then :
4224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4225printf "%s\n" "unsupported" >&6; }
4226else $as_nop
4227  if test "x$ac_cv_prog_cxx_cxx98" = x
4228then :
4229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4230printf "%s\n" "none needed" >&6; }
4231else $as_nop
4232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4233printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4234     CXX="$CXX $ac_cv_prog_cxx_cxx98"
4235fi
4236  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4237  ac_prog_cxx_stdcxx=cxx98
4238fi
4239fi
4240
4241ac_ext=c
4242ac_cpp='$CPP $CPPFLAGS'
4243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246DEPDIR="${am__leading_dot}deps"
4247
4248ac_config_commands="$ac_config_commands depfiles"
4249
4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4251printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4252cat > confinc.mk << 'END'
4253am__doit:
4254	@echo this is the am__doit target >confinc.out
4255.PHONY: am__doit
4256END
4257am__include="#"
4258am__quote=
4259# BSD make does it like this.
4260echo '.include "confinc.mk" # ignored' > confmf.BSD
4261# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4262echo 'include confinc.mk # ignored' > confmf.GNU
4263_am_result=no
4264for s in GNU BSD; do
4265  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4266   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }
4270  case $?:`cat confinc.out 2>/dev/null` in #(
4271  '0:this is the am__doit target') :
4272    case $s in #(
4273  BSD) :
4274    am__include='.include' am__quote='"' ;; #(
4275  *) :
4276    am__include='include' am__quote='' ;;
4277esac ;; #(
4278  *) :
4279     ;;
4280esac
4281  if test "$am__include" != "#"; then
4282    _am_result="yes ($s style)"
4283    break
4284  fi
4285done
4286rm -f confinc.* confmf.*
4287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4288printf "%s\n" "${_am_result}" >&6; }
4289
4290# Check whether --enable-dependency-tracking was given.
4291if test ${enable_dependency_tracking+y}
4292then :
4293  enableval=$enable_dependency_tracking;
4294fi
4295
4296if test "x$enable_dependency_tracking" != xno; then
4297  am_depcomp="$ac_aux_dir/depcomp"
4298  AMDEPBACKSLASH='\'
4299  am__nodep='_no'
4300fi
4301 if test "x$enable_dependency_tracking" != xno; then
4302  AMDEP_TRUE=
4303  AMDEP_FALSE='#'
4304else
4305  AMDEP_TRUE='#'
4306  AMDEP_FALSE=
4307fi
4308
4309
4310
4311depcc="$CXX"  am_compiler_list=
4312
4313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4314printf %s "checking dependency style of $depcc... " >&6; }
4315if test ${am_cv_CXX_dependencies_compiler_type+y}
4316then :
4317  printf %s "(cached) " >&6
4318else $as_nop
4319  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4320  # We make a subdir and do the tests there.  Otherwise we can end up
4321  # making bogus files that we don't know about and never remove.  For
4322  # instance it was reported that on HP-UX the gcc test will end up
4323  # making a dummy file named 'D' -- because '-MD' means "put the output
4324  # in D".
4325  rm -rf conftest.dir
4326  mkdir conftest.dir
4327  # Copy depcomp to subdir because otherwise we won't find it if we're
4328  # using a relative directory.
4329  cp "$am_depcomp" conftest.dir
4330  cd conftest.dir
4331  # We will build objects and dependencies in a subdirectory because
4332  # it helps to detect inapplicable dependency modes.  For instance
4333  # both Tru64's cc and ICC support -MD to output dependencies as a
4334  # side effect of compilation, but ICC will put the dependencies in
4335  # the current directory while Tru64 will put them in the object
4336  # directory.
4337  mkdir sub
4338
4339  am_cv_CXX_dependencies_compiler_type=none
4340  if test "$am_compiler_list" = ""; then
4341     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4342  fi
4343  am__universal=false
4344  case " $depcc " in #(
4345     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4346     esac
4347
4348  for depmode in $am_compiler_list; do
4349    # Setup a source with many dependencies, because some compilers
4350    # like to wrap large dependency lists on column 80 (with \), and
4351    # we should not choose a depcomp mode which is confused by this.
4352    #
4353    # We need to recreate these files for each test, as the compiler may
4354    # overwrite some of them when testing with obscure command lines.
4355    # This happens at least with the AIX C compiler.
4356    : > sub/conftest.c
4357    for i in 1 2 3 4 5 6; do
4358      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4359      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4360      # Solaris 10 /bin/sh.
4361      echo '/* dummy */' > sub/conftst$i.h
4362    done
4363    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4364
4365    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4366    # mode.  It turns out that the SunPro C++ compiler does not properly
4367    # handle '-M -o', and we need to detect this.  Also, some Intel
4368    # versions had trouble with output in subdirs.
4369    am__obj=sub/conftest.${OBJEXT-o}
4370    am__minus_obj="-o $am__obj"
4371    case $depmode in
4372    gcc)
4373      # This depmode causes a compiler race in universal mode.
4374      test "$am__universal" = false || continue
4375      ;;
4376    nosideeffect)
4377      # After this tag, mechanisms are not by side-effect, so they'll
4378      # only be used when explicitly requested.
4379      if test "x$enable_dependency_tracking" = xyes; then
4380	continue
4381      else
4382	break
4383      fi
4384      ;;
4385    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4386      # This compiler won't grok '-c -o', but also, the minuso test has
4387      # not run yet.  These depmodes are late enough in the game, and
4388      # so weak that their functioning should not be impacted.
4389      am__obj=conftest.${OBJEXT-o}
4390      am__minus_obj=
4391      ;;
4392    none) break ;;
4393    esac
4394    if depmode=$depmode \
4395       source=sub/conftest.c object=$am__obj \
4396       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4397       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4398         >/dev/null 2>conftest.err &&
4399       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4400       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4401       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4402       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4403      # icc doesn't choke on unknown options, it will just issue warnings
4404      # or remarks (even with -Werror).  So we grep stderr for any message
4405      # that says an option was ignored or not supported.
4406      # When given -MP, icc 7.0 and 7.1 complain thusly:
4407      #   icc: Command line warning: ignoring option '-M'; no argument required
4408      # The diagnosis changed in icc 8.0:
4409      #   icc: Command line remark: option '-MP' not supported
4410      if (grep 'ignoring option' conftest.err ||
4411          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4412        am_cv_CXX_dependencies_compiler_type=$depmode
4413        break
4414      fi
4415    fi
4416  done
4417
4418  cd ..
4419  rm -rf conftest.dir
4420else
4421  am_cv_CXX_dependencies_compiler_type=none
4422fi
4423
4424fi
4425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4426printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4427CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4428
4429 if
4430  test "x$enable_dependency_tracking" != xno \
4431  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4432  am__fastdepCXX_TRUE=
4433  am__fastdepCXX_FALSE='#'
4434else
4435  am__fastdepCXX_TRUE='#'
4436  am__fastdepCXX_FALSE=
4437fi
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449ac_ext=c
4450ac_cpp='$CPP $CPPFLAGS'
4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454if test -n "$ac_tool_prefix"; then
4455  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4456set dummy ${ac_tool_prefix}gcc; ac_word=$2
4457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458printf %s "checking for $ac_word... " >&6; }
4459if test ${ac_cv_prog_CC+y}
4460then :
4461  printf %s "(cached) " >&6
4462else $as_nop
4463  if test -n "$CC"; then
4464  ac_cv_prog_CC="$CC" # Let the user override the test.
4465else
4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH
4468do
4469  IFS=$as_save_IFS
4470  case $as_dir in #(((
4471    '') as_dir=./ ;;
4472    */) ;;
4473    *) as_dir=$as_dir/ ;;
4474  esac
4475    for ac_exec_ext in '' $ac_executable_extensions; do
4476  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4477    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4478    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4479    break 2
4480  fi
4481done
4482  done
4483IFS=$as_save_IFS
4484
4485fi
4486fi
4487CC=$ac_cv_prog_CC
4488if test -n "$CC"; then
4489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4490printf "%s\n" "$CC" >&6; }
4491else
4492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493printf "%s\n" "no" >&6; }
4494fi
4495
4496
4497fi
4498if test -z "$ac_cv_prog_CC"; then
4499  ac_ct_CC=$CC
4500  # Extract the first word of "gcc", so it can be a program name with args.
4501set dummy gcc; ac_word=$2
4502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503printf %s "checking for $ac_word... " >&6; }
4504if test ${ac_cv_prog_ac_ct_CC+y}
4505then :
4506  printf %s "(cached) " >&6
4507else $as_nop
4508  if test -n "$ac_ct_CC"; then
4509  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4510else
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514  IFS=$as_save_IFS
4515  case $as_dir in #(((
4516    '') as_dir=./ ;;
4517    */) ;;
4518    *) as_dir=$as_dir/ ;;
4519  esac
4520    for ac_exec_ext in '' $ac_executable_extensions; do
4521  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4522    ac_cv_prog_ac_ct_CC="gcc"
4523    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4524    break 2
4525  fi
4526done
4527  done
4528IFS=$as_save_IFS
4529
4530fi
4531fi
4532ac_ct_CC=$ac_cv_prog_ac_ct_CC
4533if test -n "$ac_ct_CC"; then
4534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4535printf "%s\n" "$ac_ct_CC" >&6; }
4536else
4537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538printf "%s\n" "no" >&6; }
4539fi
4540
4541  if test "x$ac_ct_CC" = x; then
4542    CC=""
4543  else
4544    case $cross_compiling:$ac_tool_warned in
4545yes:)
4546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4547printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4548ac_tool_warned=yes ;;
4549esac
4550    CC=$ac_ct_CC
4551  fi
4552else
4553  CC="$ac_cv_prog_CC"
4554fi
4555
4556if test -z "$CC"; then
4557          if test -n "$ac_tool_prefix"; then
4558    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4559set dummy ${ac_tool_prefix}cc; ac_word=$2
4560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561printf %s "checking for $ac_word... " >&6; }
4562if test ${ac_cv_prog_CC+y}
4563then :
4564  printf %s "(cached) " >&6
4565else $as_nop
4566  if test -n "$CC"; then
4567  ac_cv_prog_CC="$CC" # Let the user override the test.
4568else
4569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570for as_dir in $PATH
4571do
4572  IFS=$as_save_IFS
4573  case $as_dir in #(((
4574    '') as_dir=./ ;;
4575    */) ;;
4576    *) as_dir=$as_dir/ ;;
4577  esac
4578    for ac_exec_ext in '' $ac_executable_extensions; do
4579  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4580    ac_cv_prog_CC="${ac_tool_prefix}cc"
4581    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4582    break 2
4583  fi
4584done
4585  done
4586IFS=$as_save_IFS
4587
4588fi
4589fi
4590CC=$ac_cv_prog_CC
4591if test -n "$CC"; then
4592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4593printf "%s\n" "$CC" >&6; }
4594else
4595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596printf "%s\n" "no" >&6; }
4597fi
4598
4599
4600  fi
4601fi
4602if test -z "$CC"; then
4603  # Extract the first word of "cc", so it can be a program name with args.
4604set dummy cc; ac_word=$2
4605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606printf %s "checking for $ac_word... " >&6; }
4607if test ${ac_cv_prog_CC+y}
4608then :
4609  printf %s "(cached) " >&6
4610else $as_nop
4611  if test -n "$CC"; then
4612  ac_cv_prog_CC="$CC" # Let the user override the test.
4613else
4614  ac_prog_rejected=no
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618  IFS=$as_save_IFS
4619  case $as_dir in #(((
4620    '') as_dir=./ ;;
4621    */) ;;
4622    *) as_dir=$as_dir/ ;;
4623  esac
4624    for ac_exec_ext in '' $ac_executable_extensions; do
4625  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4626    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4627       ac_prog_rejected=yes
4628       continue
4629     fi
4630    ac_cv_prog_CC="cc"
4631    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4632    break 2
4633  fi
4634done
4635  done
4636IFS=$as_save_IFS
4637
4638if test $ac_prog_rejected = yes; then
4639  # We found a bogon in the path, so make sure we never use it.
4640  set dummy $ac_cv_prog_CC
4641  shift
4642  if test $# != 0; then
4643    # We chose a different compiler from the bogus one.
4644    # However, it has the same basename, so the bogon will be chosen
4645    # first if we set CC to just the basename; use the full file name.
4646    shift
4647    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4648  fi
4649fi
4650fi
4651fi
4652CC=$ac_cv_prog_CC
4653if test -n "$CC"; then
4654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4655printf "%s\n" "$CC" >&6; }
4656else
4657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658printf "%s\n" "no" >&6; }
4659fi
4660
4661
4662fi
4663if test -z "$CC"; then
4664  if test -n "$ac_tool_prefix"; then
4665  for ac_prog in cl.exe
4666  do
4667    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4668set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670printf %s "checking for $ac_word... " >&6; }
4671if test ${ac_cv_prog_CC+y}
4672then :
4673  printf %s "(cached) " >&6
4674else $as_nop
4675  if test -n "$CC"; then
4676  ac_cv_prog_CC="$CC" # Let the user override the test.
4677else
4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681  IFS=$as_save_IFS
4682  case $as_dir in #(((
4683    '') as_dir=./ ;;
4684    */) ;;
4685    *) as_dir=$as_dir/ ;;
4686  esac
4687    for ac_exec_ext in '' $ac_executable_extensions; do
4688  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4689    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4690    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4691    break 2
4692  fi
4693done
4694  done
4695IFS=$as_save_IFS
4696
4697fi
4698fi
4699CC=$ac_cv_prog_CC
4700if test -n "$CC"; then
4701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702printf "%s\n" "$CC" >&6; }
4703else
4704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705printf "%s\n" "no" >&6; }
4706fi
4707
4708
4709    test -n "$CC" && break
4710  done
4711fi
4712if test -z "$CC"; then
4713  ac_ct_CC=$CC
4714  for ac_prog in cl.exe
4715do
4716  # Extract the first word of "$ac_prog", so it can be a program name with args.
4717set dummy $ac_prog; ac_word=$2
4718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719printf %s "checking for $ac_word... " >&6; }
4720if test ${ac_cv_prog_ac_ct_CC+y}
4721then :
4722  printf %s "(cached) " >&6
4723else $as_nop
4724  if test -n "$ac_ct_CC"; then
4725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4726else
4727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730  IFS=$as_save_IFS
4731  case $as_dir in #(((
4732    '') as_dir=./ ;;
4733    */) ;;
4734    *) as_dir=$as_dir/ ;;
4735  esac
4736    for ac_exec_ext in '' $ac_executable_extensions; do
4737  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4738    ac_cv_prog_ac_ct_CC="$ac_prog"
4739    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4740    break 2
4741  fi
4742done
4743  done
4744IFS=$as_save_IFS
4745
4746fi
4747fi
4748ac_ct_CC=$ac_cv_prog_ac_ct_CC
4749if test -n "$ac_ct_CC"; then
4750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4751printf "%s\n" "$ac_ct_CC" >&6; }
4752else
4753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754printf "%s\n" "no" >&6; }
4755fi
4756
4757
4758  test -n "$ac_ct_CC" && break
4759done
4760
4761  if test "x$ac_ct_CC" = x; then
4762    CC=""
4763  else
4764    case $cross_compiling:$ac_tool_warned in
4765yes:)
4766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4767printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768ac_tool_warned=yes ;;
4769esac
4770    CC=$ac_ct_CC
4771  fi
4772fi
4773
4774fi
4775if test -z "$CC"; then
4776  if test -n "$ac_tool_prefix"; then
4777  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4778set dummy ${ac_tool_prefix}clang; ac_word=$2
4779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780printf %s "checking for $ac_word... " >&6; }
4781if test ${ac_cv_prog_CC+y}
4782then :
4783  printf %s "(cached) " >&6
4784else $as_nop
4785  if test -n "$CC"; then
4786  ac_cv_prog_CC="$CC" # Let the user override the test.
4787else
4788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH
4790do
4791  IFS=$as_save_IFS
4792  case $as_dir in #(((
4793    '') as_dir=./ ;;
4794    */) ;;
4795    *) as_dir=$as_dir/ ;;
4796  esac
4797    for ac_exec_ext in '' $ac_executable_extensions; do
4798  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4799    ac_cv_prog_CC="${ac_tool_prefix}clang"
4800    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4801    break 2
4802  fi
4803done
4804  done
4805IFS=$as_save_IFS
4806
4807fi
4808fi
4809CC=$ac_cv_prog_CC
4810if test -n "$CC"; then
4811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812printf "%s\n" "$CC" >&6; }
4813else
4814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815printf "%s\n" "no" >&6; }
4816fi
4817
4818
4819fi
4820if test -z "$ac_cv_prog_CC"; then
4821  ac_ct_CC=$CC
4822  # Extract the first word of "clang", so it can be a program name with args.
4823set dummy clang; ac_word=$2
4824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825printf %s "checking for $ac_word... " >&6; }
4826if test ${ac_cv_prog_ac_ct_CC+y}
4827then :
4828  printf %s "(cached) " >&6
4829else $as_nop
4830  if test -n "$ac_ct_CC"; then
4831  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4832else
4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836  IFS=$as_save_IFS
4837  case $as_dir in #(((
4838    '') as_dir=./ ;;
4839    */) ;;
4840    *) as_dir=$as_dir/ ;;
4841  esac
4842    for ac_exec_ext in '' $ac_executable_extensions; do
4843  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4844    ac_cv_prog_ac_ct_CC="clang"
4845    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4846    break 2
4847  fi
4848done
4849  done
4850IFS=$as_save_IFS
4851
4852fi
4853fi
4854ac_ct_CC=$ac_cv_prog_ac_ct_CC
4855if test -n "$ac_ct_CC"; then
4856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4857printf "%s\n" "$ac_ct_CC" >&6; }
4858else
4859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860printf "%s\n" "no" >&6; }
4861fi
4862
4863  if test "x$ac_ct_CC" = x; then
4864    CC=""
4865  else
4866    case $cross_compiling:$ac_tool_warned in
4867yes:)
4868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4869printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4870ac_tool_warned=yes ;;
4871esac
4872    CC=$ac_ct_CC
4873  fi
4874else
4875  CC="$ac_cv_prog_CC"
4876fi
4877
4878fi
4879
4880
4881test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4882printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4883as_fn_error $? "no acceptable C compiler found in \$PATH
4884See \`config.log' for more details" "$LINENO" 5; }
4885
4886# Provide some information about the compiler.
4887printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4888set X $ac_compile
4889ac_compiler=$2
4890for ac_option in --version -v -V -qversion -version; do
4891  { { ac_try="$ac_compiler $ac_option >&5"
4892case "(($ac_try" in
4893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894  *) ac_try_echo=$ac_try;;
4895esac
4896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4897printf "%s\n" "$ac_try_echo"; } >&5
4898  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4899  ac_status=$?
4900  if test -s conftest.err; then
4901    sed '10a\
4902... rest of stderr output deleted ...
4903         10q' conftest.err >conftest.er1
4904    cat conftest.er1 >&5
4905  fi
4906  rm -f conftest.er1 conftest.err
4907  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4908  test $ac_status = 0; }
4909done
4910
4911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4912printf %s "checking whether the compiler supports GNU C... " >&6; }
4913if test ${ac_cv_c_compiler_gnu+y}
4914then :
4915  printf %s "(cached) " >&6
4916else $as_nop
4917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h.  */
4919
4920int
4921main (void)
4922{
4923#ifndef __GNUC__
4924       choke me
4925#endif
4926
4927  ;
4928  return 0;
4929}
4930_ACEOF
4931if ac_fn_c_try_compile "$LINENO"
4932then :
4933  ac_compiler_gnu=yes
4934else $as_nop
4935  ac_compiler_gnu=no
4936fi
4937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4938ac_cv_c_compiler_gnu=$ac_compiler_gnu
4939
4940fi
4941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4942printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4943ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944
4945if test $ac_compiler_gnu = yes; then
4946  GCC=yes
4947else
4948  GCC=
4949fi
4950ac_test_CFLAGS=${CFLAGS+y}
4951ac_save_CFLAGS=$CFLAGS
4952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4953printf %s "checking whether $CC accepts -g... " >&6; }
4954if test ${ac_cv_prog_cc_g+y}
4955then :
4956  printf %s "(cached) " >&6
4957else $as_nop
4958  ac_save_c_werror_flag=$ac_c_werror_flag
4959   ac_c_werror_flag=yes
4960   ac_cv_prog_cc_g=no
4961   CFLAGS="-g"
4962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963/* end confdefs.h.  */
4964
4965int
4966main (void)
4967{
4968
4969  ;
4970  return 0;
4971}
4972_ACEOF
4973if ac_fn_c_try_compile "$LINENO"
4974then :
4975  ac_cv_prog_cc_g=yes
4976else $as_nop
4977  CFLAGS=""
4978      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h.  */
4980
4981int
4982main (void)
4983{
4984
4985  ;
4986  return 0;
4987}
4988_ACEOF
4989if ac_fn_c_try_compile "$LINENO"
4990then :
4991
4992else $as_nop
4993  ac_c_werror_flag=$ac_save_c_werror_flag
4994	 CFLAGS="-g"
4995	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996/* end confdefs.h.  */
4997
4998int
4999main (void)
5000{
5001
5002  ;
5003  return 0;
5004}
5005_ACEOF
5006if ac_fn_c_try_compile "$LINENO"
5007then :
5008  ac_cv_prog_cc_g=yes
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5011fi
5012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5015   ac_c_werror_flag=$ac_save_c_werror_flag
5016fi
5017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5018printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5019if test $ac_test_CFLAGS; then
5020  CFLAGS=$ac_save_CFLAGS
5021elif test $ac_cv_prog_cc_g = yes; then
5022  if test "$GCC" = yes; then
5023    CFLAGS="-g -O2"
5024  else
5025    CFLAGS="-g"
5026  fi
5027else
5028  if test "$GCC" = yes; then
5029    CFLAGS="-O2"
5030  else
5031    CFLAGS=
5032  fi
5033fi
5034ac_prog_cc_stdc=no
5035if test x$ac_prog_cc_stdc = xno
5036then :
5037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5038printf %s "checking for $CC option to enable C11 features... " >&6; }
5039if test ${ac_cv_prog_cc_c11+y}
5040then :
5041  printf %s "(cached) " >&6
5042else $as_nop
5043  ac_cv_prog_cc_c11=no
5044ac_save_CC=$CC
5045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h.  */
5047$ac_c_conftest_c11_program
5048_ACEOF
5049for ac_arg in '' -std=gnu11
5050do
5051  CC="$ac_save_CC $ac_arg"
5052  if ac_fn_c_try_compile "$LINENO"
5053then :
5054  ac_cv_prog_cc_c11=$ac_arg
5055fi
5056rm -f core conftest.err conftest.$ac_objext conftest.beam
5057  test "x$ac_cv_prog_cc_c11" != "xno" && break
5058done
5059rm -f conftest.$ac_ext
5060CC=$ac_save_CC
5061fi
5062
5063if test "x$ac_cv_prog_cc_c11" = xno
5064then :
5065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5066printf "%s\n" "unsupported" >&6; }
5067else $as_nop
5068  if test "x$ac_cv_prog_cc_c11" = x
5069then :
5070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5071printf "%s\n" "none needed" >&6; }
5072else $as_nop
5073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5074printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5075     CC="$CC $ac_cv_prog_cc_c11"
5076fi
5077  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5078  ac_prog_cc_stdc=c11
5079fi
5080fi
5081if test x$ac_prog_cc_stdc = xno
5082then :
5083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5084printf %s "checking for $CC option to enable C99 features... " >&6; }
5085if test ${ac_cv_prog_cc_c99+y}
5086then :
5087  printf %s "(cached) " >&6
5088else $as_nop
5089  ac_cv_prog_cc_c99=no
5090ac_save_CC=$CC
5091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093$ac_c_conftest_c99_program
5094_ACEOF
5095for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5096do
5097  CC="$ac_save_CC $ac_arg"
5098  if ac_fn_c_try_compile "$LINENO"
5099then :
5100  ac_cv_prog_cc_c99=$ac_arg
5101fi
5102rm -f core conftest.err conftest.$ac_objext conftest.beam
5103  test "x$ac_cv_prog_cc_c99" != "xno" && break
5104done
5105rm -f conftest.$ac_ext
5106CC=$ac_save_CC
5107fi
5108
5109if test "x$ac_cv_prog_cc_c99" = xno
5110then :
5111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5112printf "%s\n" "unsupported" >&6; }
5113else $as_nop
5114  if test "x$ac_cv_prog_cc_c99" = x
5115then :
5116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5117printf "%s\n" "none needed" >&6; }
5118else $as_nop
5119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5120printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5121     CC="$CC $ac_cv_prog_cc_c99"
5122fi
5123  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5124  ac_prog_cc_stdc=c99
5125fi
5126fi
5127if test x$ac_prog_cc_stdc = xno
5128then :
5129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5130printf %s "checking for $CC option to enable C89 features... " >&6; }
5131if test ${ac_cv_prog_cc_c89+y}
5132then :
5133  printf %s "(cached) " >&6
5134else $as_nop
5135  ac_cv_prog_cc_c89=no
5136ac_save_CC=$CC
5137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h.  */
5139$ac_c_conftest_c89_program
5140_ACEOF
5141for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5142do
5143  CC="$ac_save_CC $ac_arg"
5144  if ac_fn_c_try_compile "$LINENO"
5145then :
5146  ac_cv_prog_cc_c89=$ac_arg
5147fi
5148rm -f core conftest.err conftest.$ac_objext conftest.beam
5149  test "x$ac_cv_prog_cc_c89" != "xno" && break
5150done
5151rm -f conftest.$ac_ext
5152CC=$ac_save_CC
5153fi
5154
5155if test "x$ac_cv_prog_cc_c89" = xno
5156then :
5157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5158printf "%s\n" "unsupported" >&6; }
5159else $as_nop
5160  if test "x$ac_cv_prog_cc_c89" = x
5161then :
5162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5163printf "%s\n" "none needed" >&6; }
5164else $as_nop
5165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5166printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5167     CC="$CC $ac_cv_prog_cc_c89"
5168fi
5169  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5170  ac_prog_cc_stdc=c89
5171fi
5172fi
5173
5174ac_ext=c
5175ac_cpp='$CPP $CPPFLAGS'
5176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178ac_compiler_gnu=$ac_cv_c_compiler_gnu
5179
5180
5181  ac_ext=c
5182ac_cpp='$CPP $CPPFLAGS'
5183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5187printf %s "checking whether $CC understands -c and -o together... " >&6; }
5188if test ${am_cv_prog_cc_c_o+y}
5189then :
5190  printf %s "(cached) " >&6
5191else $as_nop
5192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193/* end confdefs.h.  */
5194
5195int
5196main (void)
5197{
5198
5199  ;
5200  return 0;
5201}
5202_ACEOF
5203  # Make sure it works both with $CC and with simple cc.
5204  # Following AC_PROG_CC_C_O, we do the test twice because some
5205  # compilers refuse to overwrite an existing .o file with -o,
5206  # though they will create one.
5207  am_cv_prog_cc_c_o=yes
5208  for am_i in 1 2; do
5209    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5210   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } \
5214         && test -f conftest2.$ac_objext; then
5215      : OK
5216    else
5217      am_cv_prog_cc_c_o=no
5218      break
5219    fi
5220  done
5221  rm -f core conftest*
5222  unset am_i
5223fi
5224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5225printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5226if test "$am_cv_prog_cc_c_o" != yes; then
5227   # Losing compiler, so override with the script.
5228   # FIXME: It is wrong to rewrite CC.
5229   # But if we don't then we get into trouble of one sort or another.
5230   # A longer-term fix would be to have automake use am__CC in this case,
5231   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5232   CC="$am_aux_dir/compile $CC"
5233fi
5234ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240
5241depcc="$CC"   am_compiler_list=
5242
5243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5244printf %s "checking dependency style of $depcc... " >&6; }
5245if test ${am_cv_CC_dependencies_compiler_type+y}
5246then :
5247  printf %s "(cached) " >&6
5248else $as_nop
5249  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5250  # We make a subdir and do the tests there.  Otherwise we can end up
5251  # making bogus files that we don't know about and never remove.  For
5252  # instance it was reported that on HP-UX the gcc test will end up
5253  # making a dummy file named 'D' -- because '-MD' means "put the output
5254  # in D".
5255  rm -rf conftest.dir
5256  mkdir conftest.dir
5257  # Copy depcomp to subdir because otherwise we won't find it if we're
5258  # using a relative directory.
5259  cp "$am_depcomp" conftest.dir
5260  cd conftest.dir
5261  # We will build objects and dependencies in a subdirectory because
5262  # it helps to detect inapplicable dependency modes.  For instance
5263  # both Tru64's cc and ICC support -MD to output dependencies as a
5264  # side effect of compilation, but ICC will put the dependencies in
5265  # the current directory while Tru64 will put them in the object
5266  # directory.
5267  mkdir sub
5268
5269  am_cv_CC_dependencies_compiler_type=none
5270  if test "$am_compiler_list" = ""; then
5271     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5272  fi
5273  am__universal=false
5274  case " $depcc " in #(
5275     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5276     esac
5277
5278  for depmode in $am_compiler_list; do
5279    # Setup a source with many dependencies, because some compilers
5280    # like to wrap large dependency lists on column 80 (with \), and
5281    # we should not choose a depcomp mode which is confused by this.
5282    #
5283    # We need to recreate these files for each test, as the compiler may
5284    # overwrite some of them when testing with obscure command lines.
5285    # This happens at least with the AIX C compiler.
5286    : > sub/conftest.c
5287    for i in 1 2 3 4 5 6; do
5288      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5289      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5290      # Solaris 10 /bin/sh.
5291      echo '/* dummy */' > sub/conftst$i.h
5292    done
5293    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5294
5295    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5296    # mode.  It turns out that the SunPro C++ compiler does not properly
5297    # handle '-M -o', and we need to detect this.  Also, some Intel
5298    # versions had trouble with output in subdirs.
5299    am__obj=sub/conftest.${OBJEXT-o}
5300    am__minus_obj="-o $am__obj"
5301    case $depmode in
5302    gcc)
5303      # This depmode causes a compiler race in universal mode.
5304      test "$am__universal" = false || continue
5305      ;;
5306    nosideeffect)
5307      # After this tag, mechanisms are not by side-effect, so they'll
5308      # only be used when explicitly requested.
5309      if test "x$enable_dependency_tracking" = xyes; then
5310	continue
5311      else
5312	break
5313      fi
5314      ;;
5315    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5316      # This compiler won't grok '-c -o', but also, the minuso test has
5317      # not run yet.  These depmodes are late enough in the game, and
5318      # so weak that their functioning should not be impacted.
5319      am__obj=conftest.${OBJEXT-o}
5320      am__minus_obj=
5321      ;;
5322    none) break ;;
5323    esac
5324    if depmode=$depmode \
5325       source=sub/conftest.c object=$am__obj \
5326       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5327       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5328         >/dev/null 2>conftest.err &&
5329       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5330       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5331       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5332       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5333      # icc doesn't choke on unknown options, it will just issue warnings
5334      # or remarks (even with -Werror).  So we grep stderr for any message
5335      # that says an option was ignored or not supported.
5336      # When given -MP, icc 7.0 and 7.1 complain thusly:
5337      #   icc: Command line warning: ignoring option '-M'; no argument required
5338      # The diagnosis changed in icc 8.0:
5339      #   icc: Command line remark: option '-MP' not supported
5340      if (grep 'ignoring option' conftest.err ||
5341          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5342        am_cv_CC_dependencies_compiler_type=$depmode
5343        break
5344      fi
5345    fi
5346  done
5347
5348  cd ..
5349  rm -rf conftest.dir
5350else
5351  am_cv_CC_dependencies_compiler_type=none
5352fi
5353
5354fi
5355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5356printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5357CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5358
5359 if
5360  test "x$enable_dependency_tracking" != xno \
5361  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5362  am__fastdepCC_TRUE=
5363  am__fastdepCC_FALSE='#'
5364else
5365  am__fastdepCC_TRUE='#'
5366  am__fastdepCC_FALSE=
5367fi
5368
5369
5370ac_ext=c
5371ac_cpp='$CPP $CPPFLAGS'
5372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5376printf %s "checking how to run the C preprocessor... " >&6; }
5377# On Suns, sometimes $CPP names a directory.
5378if test -n "$CPP" && test -d "$CPP"; then
5379  CPP=
5380fi
5381if test -z "$CPP"; then
5382  if test ${ac_cv_prog_CPP+y}
5383then :
5384  printf %s "(cached) " >&6
5385else $as_nop
5386      # Double quotes because $CC needs to be expanded
5387    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5388    do
5389      ac_preproc_ok=false
5390for ac_c_preproc_warn_flag in '' yes
5391do
5392  # Use a header file that comes with gcc, so configuring glibc
5393  # with a fresh cross-compiler works.
5394  # On the NeXT, cc -E runs the code through the compiler's parser,
5395  # not just through cpp. "Syntax error" is here to catch this case.
5396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398#include <limits.h>
5399		     Syntax error
5400_ACEOF
5401if ac_fn_c_try_cpp "$LINENO"
5402then :
5403
5404else $as_nop
5405  # Broken: fails on valid input.
5406continue
5407fi
5408rm -f conftest.err conftest.i conftest.$ac_ext
5409
5410  # OK, works on sane cases.  Now check whether nonexistent headers
5411  # can be detected and how.
5412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414#include <ac_nonexistent.h>
5415_ACEOF
5416if ac_fn_c_try_cpp "$LINENO"
5417then :
5418  # Broken: success on invalid input.
5419continue
5420else $as_nop
5421  # Passes both tests.
5422ac_preproc_ok=:
5423break
5424fi
5425rm -f conftest.err conftest.i conftest.$ac_ext
5426
5427done
5428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5429rm -f conftest.i conftest.err conftest.$ac_ext
5430if $ac_preproc_ok
5431then :
5432  break
5433fi
5434
5435    done
5436    ac_cv_prog_CPP=$CPP
5437
5438fi
5439  CPP=$ac_cv_prog_CPP
5440else
5441  ac_cv_prog_CPP=$CPP
5442fi
5443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5444printf "%s\n" "$CPP" >&6; }
5445ac_preproc_ok=false
5446for ac_c_preproc_warn_flag in '' yes
5447do
5448  # Use a header file that comes with gcc, so configuring glibc
5449  # with a fresh cross-compiler works.
5450  # On the NeXT, cc -E runs the code through the compiler's parser,
5451  # not just through cpp. "Syntax error" is here to catch this case.
5452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h.  */
5454#include <limits.h>
5455		     Syntax error
5456_ACEOF
5457if ac_fn_c_try_cpp "$LINENO"
5458then :
5459
5460else $as_nop
5461  # Broken: fails on valid input.
5462continue
5463fi
5464rm -f conftest.err conftest.i conftest.$ac_ext
5465
5466  # OK, works on sane cases.  Now check whether nonexistent headers
5467  # can be detected and how.
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470#include <ac_nonexistent.h>
5471_ACEOF
5472if ac_fn_c_try_cpp "$LINENO"
5473then :
5474  # Broken: success on invalid input.
5475continue
5476else $as_nop
5477  # Passes both tests.
5478ac_preproc_ok=:
5479break
5480fi
5481rm -f conftest.err conftest.i conftest.$ac_ext
5482
5483done
5484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485rm -f conftest.i conftest.err conftest.$ac_ext
5486if $ac_preproc_ok
5487then :
5488
5489else $as_nop
5490  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5491printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5492as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5493See \`config.log' for more details" "$LINENO" 5; }
5494fi
5495
5496ac_ext=c
5497ac_cpp='$CPP $CPPFLAGS'
5498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500ac_compiler_gnu=$ac_cv_c_compiler_gnu
5501
5502
5503
5504  # Make sure we can run config.sub.
5505$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5506  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5507
5508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5509printf %s "checking build system type... " >&6; }
5510if test ${ac_cv_build+y}
5511then :
5512  printf %s "(cached) " >&6
5513else $as_nop
5514  ac_build_alias=$build_alias
5515test "x$ac_build_alias" = x &&
5516  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5517test "x$ac_build_alias" = x &&
5518  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5519ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5520  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5521
5522fi
5523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5524printf "%s\n" "$ac_cv_build" >&6; }
5525case $ac_cv_build in
5526*-*-*) ;;
5527*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5528esac
5529build=$ac_cv_build
5530ac_save_IFS=$IFS; IFS='-'
5531set x $ac_cv_build
5532shift
5533build_cpu=$1
5534build_vendor=$2
5535shift; shift
5536# Remember, the first character of IFS is used to create $*,
5537# except with old shells:
5538build_os=$*
5539IFS=$ac_save_IFS
5540case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5541
5542
5543
5544
5545cross_compiling_build=no
5546
5547ac_build_tool_prefix=
5548if test -n "$build"
5549then :
5550  ac_build_tool_prefix="$build-"
5551elif test -n "$build_alias"
5552then :
5553  ac_build_tool_prefix="$build_alias-"
5554fi
5555
5556ac_ext=c
5557ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5558ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5559ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5560ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5561
5562
5563was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
5564if test ${was_set_c_compiler_gnu}
5565then :
5566  saved_c_compiler_gnu=$ac_cv_c_compiler_gnu
5567    { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
5568fi
5569
5570ac_ext=c
5571ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5572ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5573ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5574ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5575if test -n "$ac_build_tool_prefix"; then
5576  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5577set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579printf %s "checking for $ac_word... " >&6; }
5580if test ${ac_cv_prog_CC_FOR_BUILD+y}
5581then :
5582  printf %s "(cached) " >&6
5583else $as_nop
5584  if test -n "$CC_FOR_BUILD"; then
5585  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5586else
5587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590  IFS=$as_save_IFS
5591  case $as_dir in #(((
5592    '') as_dir=./ ;;
5593    */) ;;
5594    *) as_dir=$as_dir/ ;;
5595  esac
5596    for ac_exec_ext in '' $ac_executable_extensions; do
5597  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5598    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5599    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5600    break 2
5601  fi
5602done
5603  done
5604IFS=$as_save_IFS
5605
5606fi
5607fi
5608CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5609if test -n "$CC_FOR_BUILD"; then
5610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5611printf "%s\n" "$CC_FOR_BUILD" >&6; }
5612else
5613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614printf "%s\n" "no" >&6; }
5615fi
5616
5617
5618fi
5619if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5620  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5621  # Extract the first word of "gcc", so it can be a program name with args.
5622set dummy gcc; ac_word=$2
5623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624printf %s "checking for $ac_word... " >&6; }
5625if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
5626then :
5627  printf %s "(cached) " >&6
5628else $as_nop
5629  if test -n "$ac_ct_CC_FOR_BUILD"; then
5630  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635  IFS=$as_save_IFS
5636  case $as_dir in #(((
5637    '') as_dir=./ ;;
5638    */) ;;
5639    *) as_dir=$as_dir/ ;;
5640  esac
5641    for ac_exec_ext in '' $ac_executable_extensions; do
5642  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5643    ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5644    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5645    break 2
5646  fi
5647done
5648  done
5649IFS=$as_save_IFS
5650
5651fi
5652fi
5653ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5654if test -n "$ac_ct_CC_FOR_BUILD"; then
5655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5656printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
5657else
5658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659printf "%s\n" "no" >&6; }
5660fi
5661
5662  if test "x$ac_ct_CC_FOR_BUILD" = x; then
5663    CC_FOR_BUILD=""
5664  else
5665    case $cross_compiling_build:$ac_tool_warned in
5666yes:)
5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5668printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5669ac_tool_warned=yes ;;
5670esac
5671    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5672  fi
5673else
5674  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5675fi
5676
5677if test -z "$CC_FOR_BUILD"; then
5678          if test -n "$ac_build_tool_prefix"; then
5679    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5680set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682printf %s "checking for $ac_word... " >&6; }
5683if test ${ac_cv_prog_CC_FOR_BUILD+y}
5684then :
5685  printf %s "(cached) " >&6
5686else $as_nop
5687  if test -n "$CC_FOR_BUILD"; then
5688  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5689else
5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693  IFS=$as_save_IFS
5694  case $as_dir in #(((
5695    '') as_dir=./ ;;
5696    */) ;;
5697    *) as_dir=$as_dir/ ;;
5698  esac
5699    for ac_exec_ext in '' $ac_executable_extensions; do
5700  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5701    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5702    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5703    break 2
5704  fi
5705done
5706  done
5707IFS=$as_save_IFS
5708
5709fi
5710fi
5711CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5712if test -n "$CC_FOR_BUILD"; then
5713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5714printf "%s\n" "$CC_FOR_BUILD" >&6; }
5715else
5716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717printf "%s\n" "no" >&6; }
5718fi
5719
5720
5721  fi
5722fi
5723if test -z "$CC_FOR_BUILD"; then
5724  # Extract the first word of "cc", so it can be a program name with args.
5725set dummy cc; ac_word=$2
5726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727printf %s "checking for $ac_word... " >&6; }
5728if test ${ac_cv_prog_CC_FOR_BUILD+y}
5729then :
5730  printf %s "(cached) " >&6
5731else $as_nop
5732  if test -n "$CC_FOR_BUILD"; then
5733  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5734else
5735  ac_prog_rejected=no
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739  IFS=$as_save_IFS
5740  case $as_dir in #(((
5741    '') as_dir=./ ;;
5742    */) ;;
5743    *) as_dir=$as_dir/ ;;
5744  esac
5745    for ac_exec_ext in '' $ac_executable_extensions; do
5746  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5747    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5748       ac_prog_rejected=yes
5749       continue
5750     fi
5751    ac_cv_prog_CC_FOR_BUILD="cc"
5752    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5753    break 2
5754  fi
5755done
5756  done
5757IFS=$as_save_IFS
5758
5759if test $ac_prog_rejected = yes; then
5760  # We found a bogon in the path, so make sure we never use it.
5761  set dummy $ac_cv_prog_CC_FOR_BUILD
5762  shift
5763  if test $# != 0; then
5764    # We chose a different compiler from the bogus one.
5765    # However, it has the same basename, so the bogon will be chosen
5766    # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5767    shift
5768    ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@"
5769  fi
5770fi
5771fi
5772fi
5773CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5774if test -n "$CC_FOR_BUILD"; then
5775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5776printf "%s\n" "$CC_FOR_BUILD" >&6; }
5777else
5778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779printf "%s\n" "no" >&6; }
5780fi
5781
5782
5783fi
5784if test -z "$CC_FOR_BUILD"; then
5785  if test -n "$ac_build_tool_prefix"; then
5786  for ac_prog in cl.exe
5787  do
5788    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5789set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791printf %s "checking for $ac_word... " >&6; }
5792if test ${ac_cv_prog_CC_FOR_BUILD+y}
5793then :
5794  printf %s "(cached) " >&6
5795else $as_nop
5796  if test -n "$CC_FOR_BUILD"; then
5797  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5798else
5799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802  IFS=$as_save_IFS
5803  case $as_dir in #(((
5804    '') as_dir=./ ;;
5805    */) ;;
5806    *) as_dir=$as_dir/ ;;
5807  esac
5808    for ac_exec_ext in '' $ac_executable_extensions; do
5809  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5810    ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5811    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5812    break 2
5813  fi
5814done
5815  done
5816IFS=$as_save_IFS
5817
5818fi
5819fi
5820CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5821if test -n "$CC_FOR_BUILD"; then
5822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5823printf "%s\n" "$CC_FOR_BUILD" >&6; }
5824else
5825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826printf "%s\n" "no" >&6; }
5827fi
5828
5829
5830    test -n "$CC_FOR_BUILD" && break
5831  done
5832fi
5833if test -z "$CC_FOR_BUILD"; then
5834  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5835  for ac_prog in cl.exe
5836do
5837  # Extract the first word of "$ac_prog", so it can be a program name with args.
5838set dummy $ac_prog; ac_word=$2
5839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840printf %s "checking for $ac_word... " >&6; }
5841if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
5842then :
5843  printf %s "(cached) " >&6
5844else $as_nop
5845  if test -n "$ac_ct_CC_FOR_BUILD"; then
5846  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5847else
5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851  IFS=$as_save_IFS
5852  case $as_dir in #(((
5853    '') as_dir=./ ;;
5854    */) ;;
5855    *) as_dir=$as_dir/ ;;
5856  esac
5857    for ac_exec_ext in '' $ac_executable_extensions; do
5858  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5859    ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5860    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5861    break 2
5862  fi
5863done
5864  done
5865IFS=$as_save_IFS
5866
5867fi
5868fi
5869ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5870if test -n "$ac_ct_CC_FOR_BUILD"; then
5871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5872printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
5873else
5874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875printf "%s\n" "no" >&6; }
5876fi
5877
5878
5879  test -n "$ac_ct_CC_FOR_BUILD" && break
5880done
5881
5882  if test "x$ac_ct_CC_FOR_BUILD" = x; then
5883    CC_FOR_BUILD=""
5884  else
5885    case $cross_compiling_build:$ac_tool_warned in
5886yes:)
5887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5888printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5889ac_tool_warned=yes ;;
5890esac
5891    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5892  fi
5893fi
5894
5895fi
5896if test -z "$CC_FOR_BUILD"; then
5897  if test -n "$ac_build_tool_prefix"; then
5898  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5899set dummy ${ac_build_tool_prefix}clang; ac_word=$2
5900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901printf %s "checking for $ac_word... " >&6; }
5902if test ${ac_cv_prog_CC_FOR_BUILD+y}
5903then :
5904  printf %s "(cached) " >&6
5905else $as_nop
5906  if test -n "$CC_FOR_BUILD"; then
5907  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912  IFS=$as_save_IFS
5913  case $as_dir in #(((
5914    '') as_dir=./ ;;
5915    */) ;;
5916    *) as_dir=$as_dir/ ;;
5917  esac
5918    for ac_exec_ext in '' $ac_executable_extensions; do
5919  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5920    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}clang"
5921    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5922    break 2
5923  fi
5924done
5925  done
5926IFS=$as_save_IFS
5927
5928fi
5929fi
5930CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5931if test -n "$CC_FOR_BUILD"; then
5932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5933printf "%s\n" "$CC_FOR_BUILD" >&6; }
5934else
5935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936printf "%s\n" "no" >&6; }
5937fi
5938
5939
5940fi
5941if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5942  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5943  # Extract the first word of "clang", so it can be a program name with args.
5944set dummy clang; ac_word=$2
5945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946printf %s "checking for $ac_word... " >&6; }
5947if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
5948then :
5949  printf %s "(cached) " >&6
5950else $as_nop
5951  if test -n "$ac_ct_CC_FOR_BUILD"; then
5952  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957  IFS=$as_save_IFS
5958  case $as_dir in #(((
5959    '') as_dir=./ ;;
5960    */) ;;
5961    *) as_dir=$as_dir/ ;;
5962  esac
5963    for ac_exec_ext in '' $ac_executable_extensions; do
5964  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5965    ac_cv_prog_ac_ct_CC_FOR_BUILD="clang"
5966    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5967    break 2
5968  fi
5969done
5970  done
5971IFS=$as_save_IFS
5972
5973fi
5974fi
5975ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5976if test -n "$ac_ct_CC_FOR_BUILD"; then
5977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5978printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
5979else
5980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981printf "%s\n" "no" >&6; }
5982fi
5983
5984  if test "x$ac_ct_CC_FOR_BUILD" = x; then
5985    CC_FOR_BUILD=""
5986  else
5987    case $cross_compiling_build:$ac_tool_warned in
5988yes:)
5989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5990printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5991ac_tool_warned=yes ;;
5992esac
5993    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5994  fi
5995else
5996  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5997fi
5998
5999fi
6000
6001
6002test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6004as_fn_error $? "no acceptable C compiler found in \$PATH
6005See \`config.log' for more details" "$LINENO" 5; }
6006
6007# Provide some information about the compiler.
6008printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6009set X $ac_compile
6010ac_compiler=$2
6011for ac_option in --version -v -V -qversion -version; do
6012  { { ac_try="$ac_compiler $ac_option >&5"
6013case "(($ac_try" in
6014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015  *) ac_try_echo=$ac_try;;
6016esac
6017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6018printf "%s\n" "$ac_try_echo"; } >&5
6019  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6020  ac_status=$?
6021  if test -s conftest.err; then
6022    sed '10a\
6023... rest of stderr output deleted ...
6024         10q' conftest.err >conftest.er1
6025    cat conftest.er1 >&5
6026  fi
6027  rm -f conftest.er1 conftest.err
6028  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029  test $ac_status = 0; }
6030done
6031
6032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6033printf %s "checking whether the compiler supports GNU C... " >&6; }
6034if test ${ac_cv_c_compiler_gnu+y}
6035then :
6036  printf %s "(cached) " >&6
6037else $as_nop
6038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h.  */
6040
6041int
6042main (void)
6043{
6044#ifndef __GNUC__
6045       choke me
6046#endif
6047
6048  ;
6049  return 0;
6050}
6051_ACEOF
6052if ac_fn_c_try_compile "$LINENO"
6053then :
6054  ac_compiler_gnu=yes
6055else $as_nop
6056  ac_compiler_gnu=no
6057fi
6058rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
6059ac_cv_c_compiler_gnu=$ac_compiler_gnu
6060
6061fi
6062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6063printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6064ac_compiler_gnu=$ac_cv_c_compiler_gnu
6065
6066if test $ac_compiler_gnu = yes; then
6067  GCC_FOR_BUILD=yes
6068else
6069  GCC_FOR_BUILD=
6070fi
6071ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y}
6072ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
6074printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
6075if test ${ac_cv_build_prog_cc_g+y}
6076then :
6077  printf %s "(cached) " >&6
6078else $as_nop
6079  ac_save_c_werror_flag=$ac_c_werror_flag
6080   ac_c_werror_flag=yes
6081   ac_cv_build_prog_cc_g=no
6082   CFLAGS_FOR_BUILD="-g"
6083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h.  */
6085
6086int
6087main (void)
6088{
6089
6090  ;
6091  return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"
6095then :
6096  ac_cv_build_prog_cc_g=yes
6097else $as_nop
6098  CFLAGS_FOR_BUILD=""
6099      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100/* end confdefs.h.  */
6101
6102int
6103main (void)
6104{
6105
6106  ;
6107  return 0;
6108}
6109_ACEOF
6110if ac_fn_c_try_compile "$LINENO"
6111then :
6112
6113else $as_nop
6114  ac_c_werror_flag=$ac_save_c_werror_flag
6115	 CFLAGS_FOR_BUILD="-g"
6116	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118
6119int
6120main (void)
6121{
6122
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_compile "$LINENO"
6128then :
6129  ac_cv_build_prog_cc_g=yes
6130fi
6131rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
6132fi
6133rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
6134fi
6135rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
6136   ac_c_werror_flag=$ac_save_c_werror_flag
6137fi
6138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
6139printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; }
6140if test $ac_test_CFLAGS; then
6141  CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6142elif test $ac_cv_build_prog_cc_g = yes; then
6143  if test "$GCC_FOR_BUILD" = yes; then
6144    CFLAGS_FOR_BUILD="-g -O2"
6145  else
6146    CFLAGS_FOR_BUILD="-g"
6147  fi
6148else
6149  if test "$GCC_FOR_BUILD" = yes; then
6150    CFLAGS_FOR_BUILD="-O2"
6151  else
6152    CFLAGS_FOR_BUILD=
6153  fi
6154fi
6155ac_prog_cc_stdc=no
6156if test x$ac_prog_cc_stdc = xno
6157then :
6158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5
6159printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; }
6160if test ${ac_cv_build_prog_cc_c11+y}
6161then :
6162  printf %s "(cached) " >&6
6163else $as_nop
6164  ac_cv_build_prog_cc_c11=no
6165ac_save_CC=$CC_FOR_BUILD
6166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h.  */
6168$ac_c_conftest_c11_program
6169_ACEOF
6170for ac_arg in '' -std=gnu11
6171do
6172  CC_FOR_BUILD="$ac_save_CC $ac_arg"
6173  if ac_fn_c_try_compile "$LINENO"
6174then :
6175  ac_cv_build_prog_cc_c11=$ac_arg
6176fi
6177rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6178  test "x$ac_cv_build_prog_cc_c11" != "xno" && break
6179done
6180rm -f conftest.$ac_ext
6181CC_FOR_BUILD=$ac_save_CC
6182fi
6183
6184if test "x$ac_cv_build_prog_cc_c11" = xno
6185then :
6186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6187printf "%s\n" "unsupported" >&6; }
6188else $as_nop
6189  if test "x$ac_cv_build_prog_cc_c11" = x
6190then :
6191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6192printf "%s\n" "none needed" >&6; }
6193else $as_nop
6194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c11" >&5
6195printf "%s\n" "$ac_cv_build_prog_cc_c11" >&6; }
6196     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c11"
6197fi
6198  ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c11
6199  ac_prog_cc_stdc=c11
6200fi
6201fi
6202if test x$ac_prog_cc_stdc = xno
6203then :
6204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5
6205printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; }
6206if test ${ac_cv_build_prog_cc_c99+y}
6207then :
6208  printf %s "(cached) " >&6
6209else $as_nop
6210  ac_cv_build_prog_cc_c99=no
6211ac_save_CC=$CC_FOR_BUILD
6212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h.  */
6214$ac_c_conftest_c99_program
6215_ACEOF
6216for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6217do
6218  CC_FOR_BUILD="$ac_save_CC $ac_arg"
6219  if ac_fn_c_try_compile "$LINENO"
6220then :
6221  ac_cv_build_prog_cc_c99=$ac_arg
6222fi
6223rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6224  test "x$ac_cv_build_prog_cc_c99" != "xno" && break
6225done
6226rm -f conftest.$ac_ext
6227CC_FOR_BUILD=$ac_save_CC
6228fi
6229
6230if test "x$ac_cv_build_prog_cc_c99" = xno
6231then :
6232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6233printf "%s\n" "unsupported" >&6; }
6234else $as_nop
6235  if test "x$ac_cv_build_prog_cc_c99" = x
6236then :
6237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6238printf "%s\n" "none needed" >&6; }
6239else $as_nop
6240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5
6241printf "%s\n" "$ac_cv_build_prog_cc_c99" >&6; }
6242     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c99"
6243fi
6244  ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99
6245  ac_prog_cc_stdc=c99
6246fi
6247fi
6248if test x$ac_prog_cc_stdc = xno
6249then :
6250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5
6251printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; }
6252if test ${ac_cv_build_prog_cc_c89+y}
6253then :
6254  printf %s "(cached) " >&6
6255else $as_nop
6256  ac_cv_build_prog_cc_c89=no
6257ac_save_CC=$CC_FOR_BUILD
6258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h.  */
6260$ac_c_conftest_c89_program
6261_ACEOF
6262for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6263do
6264  CC_FOR_BUILD="$ac_save_CC $ac_arg"
6265  if ac_fn_c_try_compile "$LINENO"
6266then :
6267  ac_cv_build_prog_cc_c89=$ac_arg
6268fi
6269rm -f core conftest.err conftest.$ac_build_objext conftest.beam
6270  test "x$ac_cv_build_prog_cc_c89" != "xno" && break
6271done
6272rm -f conftest.$ac_ext
6273CC_FOR_BUILD=$ac_save_CC
6274fi
6275
6276if test "x$ac_cv_build_prog_cc_c89" = xno
6277then :
6278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6279printf "%s\n" "unsupported" >&6; }
6280else $as_nop
6281  if test "x$ac_cv_build_prog_cc_c89" = x
6282then :
6283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6284printf "%s\n" "none needed" >&6; }
6285else $as_nop
6286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
6287printf "%s\n" "$ac_cv_build_prog_cc_c89" >&6; }
6288     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89"
6289fi
6290  ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c89
6291  ac_prog_cc_stdc=c89
6292fi
6293fi
6294
6295ac_ext=c
6296ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6297ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6298ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6299ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6300
6301
6302  ac_ext=c
6303ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6304ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6305ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6306ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
6308printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
6309if test ${am_cv_build_prog_cc_c_o+y}
6310then :
6311  printf %s "(cached) " >&6
6312else $as_nop
6313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314/* end confdefs.h.  */
6315
6316int
6317main (void)
6318{
6319
6320  ;
6321  return 0;
6322}
6323_ACEOF
6324  # Make sure it works both with $CC and with simple cc.
6325  # Following AC_PROG_CC_C_O, we do the test twice because some
6326  # compilers refuse to overwrite an existing .o file with -o,
6327  # though they will create one.
6328  am_cv_build_prog_cc_c_o=yes
6329  for am_i in 1 2; do
6330    if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
6331   ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); } \
6335         && test -f conftest2.$ac_build_objext; then
6336      : OK
6337    else
6338      am_cv_build_prog_cc_c_o=no
6339      break
6340    fi
6341  done
6342  rm -f core conftest*
6343  unset am_i
6344fi
6345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5
6346printf "%s\n" "$am_cv_build_prog_cc_c_o" >&6; }
6347if test "$am_cv_build_prog_cc_c_o" != yes; then
6348   # Losing compiler, so override with the script.
6349   # FIXME: It is wrong to rewrite CC.
6350   # But if we don't then we get into trouble of one sort or another.
6351   # A longer-term fix would be to have automake use am__CC in this case,
6352   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6353   CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
6354fi
6355ac_ext=c
6356ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6357ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6358ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6359ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6360
6361
6362depcc="$CC_FOR_BUILD"   am_compiler_list=
6363
6364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6365printf %s "checking dependency style of $depcc... " >&6; }
6366if test ${am_cv_build_CC_dependencies_compiler_type+y}
6367then :
6368  printf %s "(cached) " >&6
6369else $as_nop
6370  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6371  # We make a subdir and do the tests there.  Otherwise we can end up
6372  # making bogus files that we don't know about and never remove.  For
6373  # instance it was reported that on HP-UX the gcc test will end up
6374  # making a dummy file named 'D' -- because '-MD' means "put the output
6375  # in D".
6376  rm -rf conftest.dir
6377  mkdir conftest.dir
6378  # Copy depcomp to subdir because otherwise we won't find it if we're
6379  # using a relative directory.
6380  cp "$am_depcomp" conftest.dir
6381  cd conftest.dir
6382  # We will build objects and dependencies in a subdirectory because
6383  # it helps to detect inapplicable dependency modes.  For instance
6384  # both Tru64's cc and ICC support -MD to output dependencies as a
6385  # side effect of compilation, but ICC will put the dependencies in
6386  # the current directory while Tru64 will put them in the object
6387  # directory.
6388  mkdir sub
6389
6390  am_cv_build_CC_dependencies_compiler_type=none
6391  if test "$am_compiler_list" = ""; then
6392     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6393  fi
6394  am__universal=false
6395  case " $depcc " in #(
6396     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6397     esac
6398
6399  for depmode in $am_compiler_list; do
6400    # Setup a source with many dependencies, because some compilers
6401    # like to wrap large dependency lists on column 80 (with \), and
6402    # we should not choose a depcomp mode which is confused by this.
6403    #
6404    # We need to recreate these files for each test, as the compiler may
6405    # overwrite some of them when testing with obscure command lines.
6406    # This happens at least with the AIX C compiler.
6407    : > sub/conftest.c
6408    for i in 1 2 3 4 5 6; do
6409      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6410      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6411      # Solaris 10 /bin/sh.
6412      echo '/* dummy */' > sub/conftst$i.h
6413    done
6414    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6415
6416    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6417    # mode.  It turns out that the SunPro C++ compiler does not properly
6418    # handle '-M -o', and we need to detect this.  Also, some Intel
6419    # versions had trouble with output in subdirs.
6420    am__obj=sub/conftest.${BUILD_OBJEXT-o}
6421    am__minus_obj="-o $am__obj"
6422    case $depmode in
6423    gcc)
6424      # This depmode causes a compiler race in universal mode.
6425      test "$am__universal" = false || continue
6426      ;;
6427    nosideeffect)
6428      # After this tag, mechanisms are not by side-effect, so they'll
6429      # only be used when explicitly requested.
6430      if test "x$enable_dependency_tracking" = xyes; then
6431	continue
6432      else
6433	break
6434      fi
6435      ;;
6436    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6437      # This compiler won't grok '-c -o', but also, the minuso test has
6438      # not run yet.  These depmodes are late enough in the game, and
6439      # so weak that their functioning should not be impacted.
6440      am__obj=conftest.${BUILD_OBJEXT-o}
6441      am__minus_obj=
6442      ;;
6443    none) break ;;
6444    esac
6445    if depmode=$depmode \
6446       source=sub/conftest.c object=$am__obj \
6447       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6448       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6449         >/dev/null 2>conftest.err &&
6450       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6451       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6452       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6453       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6454      # icc doesn't choke on unknown options, it will just issue warnings
6455      # or remarks (even with -Werror).  So we grep stderr for any message
6456      # that says an option was ignored or not supported.
6457      # When given -MP, icc 7.0 and 7.1 complain thusly:
6458      #   icc: Command line warning: ignoring option '-M'; no argument required
6459      # The diagnosis changed in icc 8.0:
6460      #   icc: Command line remark: option '-MP' not supported
6461      if (grep 'ignoring option' conftest.err ||
6462          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6463        am_cv_build_CC_dependencies_compiler_type=$depmode
6464        break
6465      fi
6466    fi
6467  done
6468
6469  cd ..
6470  rm -rf conftest.dir
6471else
6472  am_cv_build_CC_dependencies_compiler_type=none
6473fi
6474
6475fi
6476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5
6477printf "%s\n" "$am_cv_build_CC_dependencies_compiler_type" >&6; }
6478CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type
6479
6480 if
6481  test "x$enable_dependency_tracking" != xno \
6482  && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then
6483  am__fastdepCC_build_TRUE=
6484  am__fastdepCC_build_FALSE='#'
6485else
6486  am__fastdepCC_build_TRUE='#'
6487  am__fastdepCC_build_FALSE=
6488fi
6489
6490
6491
6492if test ${was_set_c_compiler_gnu}
6493then :
6494  ac_cv_c_compiler_gnu=$saved_c_compiler_gnu
6495fi
6496
6497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h.  */
6499
6500int
6501main (void)
6502{
6503
6504  ;
6505  return 0;
6506}
6507_ACEOF
6508ac_clean_files_save=$ac_clean_files
6509ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6510# Try to create an executable without -o first, disregard a.out.
6511# It will help us diagnose broken compilers, and finding out an intuition
6512# of exeext.
6513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
6514printf %s "checking whether the C compiler works... " >&6; }
6515ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6516
6517# The possible output files:
6518ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6519
6520ac_rmfiles=
6521for ac_file in $ac_files
6522do
6523  case $ac_file in
6524    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6525    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
6526  esac
6527done
6528rm -f $ac_rmfiles
6529
6530if { { ac_try="$ac_link_default"
6531case "(($ac_try" in
6532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533  *) ac_try_echo=$ac_try;;
6534esac
6535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6536printf "%s\n" "$ac_try_echo"; } >&5
6537  (eval "$ac_link_default") 2>&5
6538  ac_status=$?
6539  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540  test $ac_status = 0; }
6541then :
6542  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
6543# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
6544# in a Makefile.  We should not override ac_cv_exeext if it was cached,
6545# so that the user can short-circuit this test for compilers unknown to
6546# Autoconf.
6547for ac_file in $ac_files ''
6548do
6549  test -f "$ac_file" || continue
6550  case $ac_file in
6551    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6552	;;
6553    [ab].out )
6554	# We found the default executable, but exeext='' is most
6555	# certainly right.
6556	break;;
6557    *.* )
6558	if test ${ac_cv_build_exeext+y} && test "$ac_cv_build_exeext" != no;
6559	then :; else
6560	   ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6561	fi
6562	# We set ac_cv_exeext here because the later test for it is not
6563	# safe: cross compilers may not add the suffix if given an `-o'
6564	# argument, so we may need to know it at that point already.
6565	# Even if this section looks crufty: it has the advantage of
6566	# actually working.
6567	break;;
6568    * )
6569	break;;
6570  esac
6571done
6572test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
6573
6574else $as_nop
6575  ac_file=''
6576fi
6577if test -z "$ac_file"
6578then :
6579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580printf "%s\n" "no" >&6; }
6581printf "%s\n" "$as_me: failed program was:" >&5
6582sed 's/^/| /' conftest.$ac_ext >&5
6583
6584{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6585printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6586as_fn_error 77 "C compiler cannot create executables
6587See \`config.log' for more details" "$LINENO" 5; }
6588else $as_nop
6589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6590printf "%s\n" "yes" >&6; }
6591fi
6592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6593printf %s "checking for C compiler default output file name... " >&6; }
6594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6595printf "%s\n" "$ac_file" >&6; }
6596ac_build_exeext=$ac_cv_build_exeext
6597
6598rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
6599ac_clean_files=$ac_clean_files_save
6600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6601printf %s "checking for suffix of executables... " >&6; }
6602if { { ac_try="$ac_link"
6603case "(($ac_try" in
6604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605  *) ac_try_echo=$ac_try;;
6606esac
6607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6608printf "%s\n" "$ac_try_echo"; } >&5
6609  (eval "$ac_link") 2>&5
6610  ac_status=$?
6611  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6612  test $ac_status = 0; }
6613then :
6614  # If both `conftest.exe' and `conftest' are `present' (well, observable)
6615# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
6616# work properly (i.e., refer to `conftest.exe'), while it won't with
6617# `rm'.
6618for ac_file in conftest.exe conftest conftest.*; do
6619  test -f "$ac_file" || continue
6620  case $ac_file in
6621    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6622    *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6623	  break;;
6624    * ) break;;
6625  esac
6626done
6627else $as_nop
6628  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6629printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6630as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6631See \`config.log' for more details" "$LINENO" 5; }
6632fi
6633rm -f conftest conftest$ac_cv_build_exeext
6634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
6635printf "%s\n" "$ac_cv_build_exeext" >&6; }
6636
6637rm -f conftest.$ac_ext
6638EXEEXT=$ac_cv_build_exeext
6639ac_build_exeext=$BUILD_EXEEXT
6640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641/* end confdefs.h.  */
6642#include <stdio.h>
6643int
6644main (void)
6645{
6646FILE *f = fopen ("conftest.out", "w");
6647 return ferror (f) || fclose (f) != 0;
6648
6649  ;
6650  return 0;
6651}
6652_ACEOF
6653ac_clean_files="$ac_clean_files conftest.out"
6654# Check that the compiler produces executables we can run.  If not, either
6655# the compiler is broken, or we cross compile.
6656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6657printf %s "checking whether we are cross compiling... " >&6; }
6658if test "$cross_compiling_build" != yes; then
6659  { { ac_try="$ac_link"
6660case "(($ac_try" in
6661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662  *) ac_try_echo=$ac_try;;
6663esac
6664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6665printf "%s\n" "$ac_try_echo"; } >&5
6666  (eval "$ac_link") 2>&5
6667  ac_status=$?
6668  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669  test $ac_status = 0; }
6670  if { ac_try='./conftest$ac_cv_build_exeext'
6671  { { case "(($ac_try" in
6672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673  *) ac_try_echo=$ac_try;;
6674esac
6675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6676printf "%s\n" "$ac_try_echo"; } >&5
6677  (eval "$ac_try") 2>&5
6678  ac_status=$?
6679  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6680  test $ac_status = 0; }; }; then
6681    cross_compiling_build=no
6682  else
6683    if test "$cross_compiling_build" = maybe; then
6684	cross_compiling_build=yes
6685    else
6686	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6687printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6688as_fn_error 77 "cannot run C compiled programs.
6689If you meant to cross compile, use \`--build'.
6690See \`config.log' for more details" "$LINENO" 5; }
6691    fi
6692  fi
6693fi
6694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
6695printf "%s\n" "$cross_compiling_build" >&6; }
6696
6697rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
6698ac_clean_files=$ac_clean_files_save
6699
6700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6701printf %s "checking for suffix of object files... " >&6; }
6702if test ${ac_cv_build_objext+y}
6703then :
6704  printf %s "(cached) " >&6
6705else $as_nop
6706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h.  */
6708
6709int
6710main (void)
6711{
6712
6713  ;
6714  return 0;
6715}
6716_ACEOF
6717rm -f conftest.o conftest.obj
6718if { { ac_try="$ac_compile"
6719case "(($ac_try" in
6720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721  *) ac_try_echo=$ac_try;;
6722esac
6723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6724printf "%s\n" "$ac_try_echo"; } >&5
6725  (eval "$ac_compile") 2>&5
6726  ac_status=$?
6727  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728  test $ac_status = 0; }
6729then :
6730  for ac_file in conftest.o conftest.obj conftest.*; do
6731  test -f "$ac_file" || continue;
6732  case $ac_file in
6733    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6734    *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6735       break;;
6736  esac
6737done
6738else $as_nop
6739  printf "%s\n" "$as_me: failed program was:" >&5
6740sed 's/^/| /' conftest.$ac_ext >&5
6741
6742{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6743printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6744as_fn_error $? "cannot compute suffix of object files: cannot compile
6745See \`config.log' for more details" "$LINENO" 5; }
6746fi
6747rm -f conftest.$ac_cv_build_objext conftest.$ac_ext
6748fi
6749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
6750printf "%s\n" "$ac_cv_build_objext" >&6; }
6751OBJEXT=$ac_cv_build_objext
6752ac_build_objext=$BUILD_OBJEXT
6753
6754ac_ext=c
6755ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6756ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6757ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6758ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6760printf %s "checking how to run the C preprocessor... " >&6; }
6761# On Suns, sometimes $CPP names a directory.
6762if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6763  CPP_FOR_BUILD=
6764fi
6765if test -z "$CPP_FOR_BUILD"; then
6766  if test ${ac_cv_build_prog_CPP+y}
6767then :
6768  printf %s "(cached) " >&6
6769else $as_nop
6770      # Double quotes because $CC needs to be expanded
6771    for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp
6772    do
6773      ac_preproc_ok=false
6774for ac_c_preproc_warn_flag in '' yes
6775do
6776  # Use a header file that comes with gcc, so configuring glibc
6777  # with a fresh cross-compiler works.
6778  # On the NeXT, cc -E runs the code through the compiler's parser,
6779  # not just through cpp. "Syntax error" is here to catch this case.
6780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h.  */
6782#include <limits.h>
6783		     Syntax error
6784_ACEOF
6785if ac_fn_c_try_cpp "$LINENO"
6786then :
6787
6788else $as_nop
6789  # Broken: fails on valid input.
6790continue
6791fi
6792rm -f conftest.err conftest.i conftest.$ac_ext
6793
6794  # OK, works on sane cases.  Now check whether nonexistent headers
6795  # can be detected and how.
6796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797/* end confdefs.h.  */
6798#include <ac_nonexistent.h>
6799_ACEOF
6800if ac_fn_c_try_cpp "$LINENO"
6801then :
6802  # Broken: success on invalid input.
6803continue
6804else $as_nop
6805  # Passes both tests.
6806ac_preproc_ok=:
6807break
6808fi
6809rm -f conftest.err conftest.i conftest.$ac_ext
6810
6811done
6812# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6813rm -f conftest.i conftest.err conftest.$ac_ext
6814if $ac_preproc_ok
6815then :
6816  break
6817fi
6818
6819    done
6820    ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6821
6822fi
6823  CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6824else
6825  ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6826fi
6827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
6828printf "%s\n" "$CPP_FOR_BUILD" >&6; }
6829ac_preproc_ok=false
6830for ac_c_preproc_warn_flag in '' yes
6831do
6832  # Use a header file that comes with gcc, so configuring glibc
6833  # with a fresh cross-compiler works.
6834  # On the NeXT, cc -E runs the code through the compiler's parser,
6835  # not just through cpp. "Syntax error" is here to catch this case.
6836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h.  */
6838#include <limits.h>
6839		     Syntax error
6840_ACEOF
6841if ac_fn_c_try_cpp "$LINENO"
6842then :
6843
6844else $as_nop
6845  # Broken: fails on valid input.
6846continue
6847fi
6848rm -f conftest.err conftest.i conftest.$ac_ext
6849
6850  # OK, works on sane cases.  Now check whether nonexistent headers
6851  # can be detected and how.
6852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853/* end confdefs.h.  */
6854#include <ac_nonexistent.h>
6855_ACEOF
6856if ac_fn_c_try_cpp "$LINENO"
6857then :
6858  # Broken: success on invalid input.
6859continue
6860else $as_nop
6861  # Passes both tests.
6862ac_preproc_ok=:
6863break
6864fi
6865rm -f conftest.err conftest.i conftest.$ac_ext
6866
6867done
6868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6869rm -f conftest.i conftest.err conftest.$ac_ext
6870if $ac_preproc_ok
6871then :
6872
6873else $as_nop
6874  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6875printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6876as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6877See \`config.log' for more details" "$LINENO" 5; }
6878fi
6879
6880ac_ext=c
6881ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6882ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6883ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6884ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6885
6886
6887
6888ac_ext=c
6889ac_cpp='$CPP $CPPFLAGS'
6890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893
6894
6895EXEEXT=$ac_cv_exeext
6896BUILD_EXEEXT=$ac_cv_build_exeext; ac_build_exeext=$ac_cv_build_exeext
6897OBJEXT=$ac_cv_objext
6898BUILD_OBJEXT=$ac_cv_build_objext; ac_build_objext=$ac_cv_build_objext
6899CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6900CCDEPMODE_FOR_BUILD=depmode=$am_cv_build_CC_dependencies_compiler_type
6901
6902ac_ext=cpp
6903ac_cpp='$CXXCPP $CPPFLAGS'
6904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6908printf %s "checking how to run the C++ preprocessor... " >&6; }
6909if test -z "$CXXCPP"; then
6910  if test ${ac_cv_prog_CXXCPP+y}
6911then :
6912  printf %s "(cached) " >&6
6913else $as_nop
6914      # Double quotes because $CXX needs to be expanded
6915    for CXXCPP in "$CXX -E" cpp /lib/cpp
6916    do
6917      ac_preproc_ok=false
6918for ac_cxx_preproc_warn_flag in '' yes
6919do
6920  # Use a header file that comes with gcc, so configuring glibc
6921  # with a fresh cross-compiler works.
6922  # On the NeXT, cc -E runs the code through the compiler's parser,
6923  # not just through cpp. "Syntax error" is here to catch this case.
6924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925/* end confdefs.h.  */
6926#include <limits.h>
6927		     Syntax error
6928_ACEOF
6929if ac_fn_cxx_try_cpp "$LINENO"
6930then :
6931
6932else $as_nop
6933  # Broken: fails on valid input.
6934continue
6935fi
6936rm -f conftest.err conftest.i conftest.$ac_ext
6937
6938  # OK, works on sane cases.  Now check whether nonexistent headers
6939  # can be detected and how.
6940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h.  */
6942#include <ac_nonexistent.h>
6943_ACEOF
6944if ac_fn_cxx_try_cpp "$LINENO"
6945then :
6946  # Broken: success on invalid input.
6947continue
6948else $as_nop
6949  # Passes both tests.
6950ac_preproc_ok=:
6951break
6952fi
6953rm -f conftest.err conftest.i conftest.$ac_ext
6954
6955done
6956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6957rm -f conftest.i conftest.err conftest.$ac_ext
6958if $ac_preproc_ok
6959then :
6960  break
6961fi
6962
6963    done
6964    ac_cv_prog_CXXCPP=$CXXCPP
6965
6966fi
6967  CXXCPP=$ac_cv_prog_CXXCPP
6968else
6969  ac_cv_prog_CXXCPP=$CXXCPP
6970fi
6971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6972printf "%s\n" "$CXXCPP" >&6; }
6973ac_preproc_ok=false
6974for ac_cxx_preproc_warn_flag in '' yes
6975do
6976  # Use a header file that comes with gcc, so configuring glibc
6977  # with a fresh cross-compiler works.
6978  # On the NeXT, cc -E runs the code through the compiler's parser,
6979  # not just through cpp. "Syntax error" is here to catch this case.
6980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981/* end confdefs.h.  */
6982#include <limits.h>
6983		     Syntax error
6984_ACEOF
6985if ac_fn_cxx_try_cpp "$LINENO"
6986then :
6987
6988else $as_nop
6989  # Broken: fails on valid input.
6990continue
6991fi
6992rm -f conftest.err conftest.i conftest.$ac_ext
6993
6994  # OK, works on sane cases.  Now check whether nonexistent headers
6995  # can be detected and how.
6996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997/* end confdefs.h.  */
6998#include <ac_nonexistent.h>
6999_ACEOF
7000if ac_fn_cxx_try_cpp "$LINENO"
7001then :
7002  # Broken: success on invalid input.
7003continue
7004else $as_nop
7005  # Passes both tests.
7006ac_preproc_ok=:
7007break
7008fi
7009rm -f conftest.err conftest.i conftest.$ac_ext
7010
7011done
7012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7013rm -f conftest.i conftest.err conftest.$ac_ext
7014if $ac_preproc_ok
7015then :
7016
7017else $as_nop
7018  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7019printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7020as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
7021See \`config.log' for more details" "$LINENO" 5; }
7022fi
7023
7024ac_ext=c
7025ac_cpp='$CPP $CPPFLAGS'
7026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029
7030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7031printf %s "checking host system type... " >&6; }
7032if test ${ac_cv_host+y}
7033then :
7034  printf %s "(cached) " >&6
7035else $as_nop
7036  if test "x$host_alias" = x; then
7037  ac_cv_host=$ac_cv_build
7038else
7039  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7040    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7041fi
7042
7043fi
7044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7045printf "%s\n" "$ac_cv_host" >&6; }
7046case $ac_cv_host in
7047*-*-*) ;;
7048*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7049esac
7050host=$ac_cv_host
7051ac_save_IFS=$IFS; IFS='-'
7052set x $ac_cv_host
7053shift
7054host_cpu=$1
7055host_vendor=$2
7056shift; shift
7057# Remember, the first character of IFS is used to create $*,
7058# except with old shells:
7059host_os=$*
7060IFS=$ac_save_IFS
7061case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7062
7063
7064
7065
7066save_cross_compiling=$cross_compiling
7067save_ac_tool_prefix=$ac_tool_prefix
7068cross_compiling=no
7069ac_tool_prefix=
7070
7071ac_ext=cpp
7072ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7073ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7074ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7076if test -z "$CXX_FOR_BUILD"; then
7077  if test -n "$CCC"; then
7078    CXX_FOR_BUILD=$CCC
7079  else
7080    if test -n "$ac_tool_prefix"; then
7081  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7082  do
7083    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086printf %s "checking for $ac_word... " >&6; }
7087if test ${ac_cv_prog_CXX_FOR_BUILD+y}
7088then :
7089  printf %s "(cached) " >&6
7090else $as_nop
7091  if test -n "$CXX_FOR_BUILD"; then
7092  ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097  IFS=$as_save_IFS
7098  case $as_dir in #(((
7099    '') as_dir=./ ;;
7100    */) ;;
7101    *) as_dir=$as_dir/ ;;
7102  esac
7103    for ac_exec_ext in '' $ac_executable_extensions; do
7104  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7105    ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
7106    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7107    break 2
7108  fi
7109done
7110  done
7111IFS=$as_save_IFS
7112
7113fi
7114fi
7115CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
7116if test -n "$CXX_FOR_BUILD"; then
7117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
7118printf "%s\n" "$CXX_FOR_BUILD" >&6; }
7119else
7120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121printf "%s\n" "no" >&6; }
7122fi
7123
7124
7125    test -n "$CXX_FOR_BUILD" && break
7126  done
7127fi
7128if test -z "$CXX_FOR_BUILD"; then
7129  ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
7130  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7131do
7132  # Extract the first word of "$ac_prog", so it can be a program name with args.
7133set dummy $ac_prog; ac_word=$2
7134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135printf %s "checking for $ac_word... " >&6; }
7136if test ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+y}
7137then :
7138  printf %s "(cached) " >&6
7139else $as_nop
7140  if test -n "$ac_ct_CXX_FOR_BUILD"; then
7141  ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146  IFS=$as_save_IFS
7147  case $as_dir in #(((
7148    '') as_dir=./ ;;
7149    */) ;;
7150    *) as_dir=$as_dir/ ;;
7151  esac
7152    for ac_exec_ext in '' $ac_executable_extensions; do
7153  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7154    ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
7155    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7156    break 2
7157  fi
7158done
7159  done
7160IFS=$as_save_IFS
7161
7162fi
7163fi
7164ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
7165if test -n "$ac_ct_CXX_FOR_BUILD"; then
7166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
7167printf "%s\n" "$ac_ct_CXX_FOR_BUILD" >&6; }
7168else
7169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170printf "%s\n" "no" >&6; }
7171fi
7172
7173
7174  test -n "$ac_ct_CXX_FOR_BUILD" && break
7175done
7176
7177  if test "x$ac_ct_CXX_FOR_BUILD" = x; then
7178    CXX_FOR_BUILD="g++"
7179  else
7180    case $cross_compiling:$ac_tool_warned in
7181yes:)
7182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
7183printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
7184ac_tool_warned=yes ;;
7185esac
7186    CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
7187  fi
7188fi
7189
7190  fi
7191fi
7192# Provide some information about the compiler.
7193printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7194set X $ac_build_compile
7195ac_compiler=$2
7196for ac_option in --version -v -V -qversion; do
7197  { { ac_try="$ac_compiler $ac_option >&5"
7198case "(($ac_try" in
7199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200  *) ac_try_echo=$ac_try;;
7201esac
7202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7203printf "%s\n" "$ac_try_echo"; } >&5
7204  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7205  ac_status=$?
7206  if test -s conftest.err; then
7207    sed '10a\
7208... rest of stderr output deleted ...
7209         10q' conftest.err >conftest.er1
7210    cat conftest.er1 >&5
7211  fi
7212  rm -f conftest.er1 conftest.err
7213  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214  test $ac_status = 0; }
7215done
7216
7217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
7218printf %s "checking whether the compiler supports GNU C++... " >&6; }
7219if test ${ac_cv_cxx_compiler_gnu+y}
7220then :
7221  printf %s "(cached) " >&6
7222else $as_nop
7223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224/* end confdefs.h.  */
7225
7226int
7227main (void)
7228{
7229#ifndef __GNUC__
7230       choke me
7231#endif
7232
7233  ;
7234  return 0;
7235}
7236_ACEOF
7237if ac_fn_cxx_try_compile "$LINENO"
7238then :
7239  ac_compiler_gnu=yes
7240else $as_nop
7241  ac_compiler_gnu=no
7242fi
7243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7244ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7245
7246fi
7247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7248printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
7249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7250
7251if test $ac_compiler_gnu = yes; then
7252  GXX=yes
7253else
7254  GXX=
7255fi
7256ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+y}
7257ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
7258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
7259printf %s "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
7260if test ${ac_cv_build_prog_cxx_g+y}
7261then :
7262  printf %s "(cached) " >&6
7263else $as_nop
7264  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7265   ac_cxx_werror_flag=yes
7266   ac_cv_build_prog_cxx_g=no
7267   CXXFLAGS_FOR_BUILD="-g"
7268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h.  */
7270
7271int
7272main (void)
7273{
7274
7275  ;
7276  return 0;
7277}
7278_ACEOF
7279if ac_fn_cxx_try_compile "$LINENO"
7280then :
7281  ac_cv_build_prog_cxx_g=yes
7282else $as_nop
7283  CXXFLAGS_FOR_BUILD=""
7284      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h.  */
7286
7287int
7288main (void)
7289{
7290
7291  ;
7292  return 0;
7293}
7294_ACEOF
7295if ac_fn_cxx_try_compile "$LINENO"
7296then :
7297
7298else $as_nop
7299  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7300	 CXXFLAGS_FOR_BUILD="-g"
7301	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302/* end confdefs.h.  */
7303
7304int
7305main (void)
7306{
7307
7308  ;
7309  return 0;
7310}
7311_ACEOF
7312if ac_fn_cxx_try_compile "$LINENO"
7313then :
7314  ac_cv_build_prog_cxx_g=yes
7315fi
7316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7317fi
7318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7319fi
7320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7321   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7322fi
7323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
7324printf "%s\n" "$ac_cv_build_prog_cxx_g" >&6; }
7325if test $ac_test_CXXFLAGS; then
7326  CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
7327elif test $ac_cv_build_prog_cxx_g = yes; then
7328  if test "$GXX" = yes; then
7329    CXXFLAGS_FOR_BUILD="-g -O2"
7330  else
7331    CXXFLAGS_FOR_BUILD="-g"
7332  fi
7333else
7334  if test "$GXX" = yes; then
7335    CXXFLAGS_FOR_BUILD="-O2"
7336  else
7337    CXXFLAGS_FOR_BUILD=
7338  fi
7339fi
7340ac_prog_cxx_stdcxx=no
7341if test x$ac_prog_cxx_stdcxx = xno
7342then :
7343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX_FOR_BUILD option to enable C++11 features" >&5
7344printf %s "checking for $CXX_FOR_BUILD option to enable C++11 features... " >&6; }
7345if test ${ac_cv_prog_cxx_11+y}
7346then :
7347  printf %s "(cached) " >&6
7348else $as_nop
7349  ac_cv_prog_cxx_11=no
7350ac_save_CXX=$CXX_FOR_BUILD
7351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352/* end confdefs.h.  */
7353$ac_cxx_conftest_cxx11_program
7354_ACEOF
7355for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
7356do
7357  CXX_FOR_BUILD="$ac_save_CXX $ac_arg"
7358  if ac_fn_cxx_try_compile "$LINENO"
7359then :
7360  ac_cv_prog_cxx_cxx11=$ac_arg
7361fi
7362rm -f core conftest.err conftest.$ac_objext conftest.beam
7363  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
7364done
7365rm -f conftest.$ac_ext
7366CXX_FOR_BUILD=$ac_save_CXX
7367fi
7368
7369if test "x$ac_cv_prog_cxx_cxx11" = xno
7370then :
7371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7372printf "%s\n" "unsupported" >&6; }
7373else $as_nop
7374  if test "x$ac_cv_prog_cxx_cxx11" = x
7375then :
7376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7377printf "%s\n" "none needed" >&6; }
7378else $as_nop
7379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
7380printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
7381     CXX_FOR_BUILD="$CXX_FOR_BUILD $ac_cv_prog_cxx_cxx11"
7382fi
7383  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
7384  ac_prog_cxx_stdcxx=cxx11
7385fi
7386fi
7387if test x$ac_prog_cxx_stdcxx = xno
7388then :
7389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX_FOR_BUILD option to enable C++98 features" >&5
7390printf %s "checking for $CXX_FOR_BUILD option to enable C++98 features... " >&6; }
7391if test ${ac_cv_prog_cxx_98+y}
7392then :
7393  printf %s "(cached) " >&6
7394else $as_nop
7395  ac_cv_prog_cxx_98=no
7396ac_save_CXX=$CXX_FOR_BUILD
7397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398/* end confdefs.h.  */
7399$ac_cxx_conftest_cxx98_program
7400_ACEOF
7401for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
7402do
7403  CXX_FOR_BUILD="$ac_save_CXX $ac_arg"
7404  if ac_fn_cxx_try_compile "$LINENO"
7405then :
7406  ac_cv_prog_cxx_cxx98=$ac_arg
7407fi
7408rm -f core conftest.err conftest.$ac_objext conftest.beam
7409  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
7410done
7411rm -f conftest.$ac_ext
7412CXX_FOR_BUILD=$ac_save_CXX
7413fi
7414
7415if test "x$ac_cv_prog_cxx_cxx98" = xno
7416then :
7417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7418printf "%s\n" "unsupported" >&6; }
7419else $as_nop
7420  if test "x$ac_cv_prog_cxx_cxx98" = x
7421then :
7422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7423printf "%s\n" "none needed" >&6; }
7424else $as_nop
7425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
7426printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
7427     CXX_FOR_BUILD="$CXX_FOR_BUILD $ac_cv_prog_cxx_cxx98"
7428fi
7429  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
7430  ac_prog_cxx_stdcxx=cxx98
7431fi
7432fi
7433
7434ac_ext=c
7435ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
7436ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7437ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439
7440depcc="$CXX_FOR_BUILD"  am_compiler_list=
7441
7442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7443printf %s "checking dependency style of $depcc... " >&6; }
7444if test ${am_cv_CXX_dependencies_compiler_type+y}
7445then :
7446  printf %s "(cached) " >&6
7447else $as_nop
7448  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7449  # We make a subdir and do the tests there.  Otherwise we can end up
7450  # making bogus files that we don't know about and never remove.  For
7451  # instance it was reported that on HP-UX the gcc test will end up
7452  # making a dummy file named 'D' -- because '-MD' means "put the output
7453  # in D".
7454  rm -rf conftest.dir
7455  mkdir conftest.dir
7456  # Copy depcomp to subdir because otherwise we won't find it if we're
7457  # using a relative directory.
7458  cp "$am_depcomp" conftest.dir
7459  cd conftest.dir
7460  # We will build objects and dependencies in a subdirectory because
7461  # it helps to detect inapplicable dependency modes.  For instance
7462  # both Tru64's cc and ICC support -MD to output dependencies as a
7463  # side effect of compilation, but ICC will put the dependencies in
7464  # the current directory while Tru64 will put them in the object
7465  # directory.
7466  mkdir sub
7467
7468  am_cv_CXX_dependencies_compiler_type=none
7469  if test "$am_compiler_list" = ""; then
7470     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7471  fi
7472  am__universal=false
7473  case " $depcc " in #(
7474     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7475     esac
7476
7477  for depmode in $am_compiler_list; do
7478    # Setup a source with many dependencies, because some compilers
7479    # like to wrap large dependency lists on column 80 (with \), and
7480    # we should not choose a depcomp mode which is confused by this.
7481    #
7482    # We need to recreate these files for each test, as the compiler may
7483    # overwrite some of them when testing with obscure command lines.
7484    # This happens at least with the AIX C compiler.
7485    : > sub/conftest.c
7486    for i in 1 2 3 4 5 6; do
7487      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7488      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7489      # Solaris 10 /bin/sh.
7490      echo '/* dummy */' > sub/conftst$i.h
7491    done
7492    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7493
7494    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7495    # mode.  It turns out that the SunPro C++ compiler does not properly
7496    # handle '-M -o', and we need to detect this.  Also, some Intel
7497    # versions had trouble with output in subdirs.
7498    am__obj=sub/conftest.${OBJEXT-o}
7499    am__minus_obj="-o $am__obj"
7500    case $depmode in
7501    gcc)
7502      # This depmode causes a compiler race in universal mode.
7503      test "$am__universal" = false || continue
7504      ;;
7505    nosideeffect)
7506      # After this tag, mechanisms are not by side-effect, so they'll
7507      # only be used when explicitly requested.
7508      if test "x$enable_dependency_tracking" = xyes; then
7509	continue
7510      else
7511	break
7512      fi
7513      ;;
7514    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7515      # This compiler won't grok '-c -o', but also, the minuso test has
7516      # not run yet.  These depmodes are late enough in the game, and
7517      # so weak that their functioning should not be impacted.
7518      am__obj=conftest.${OBJEXT-o}
7519      am__minus_obj=
7520      ;;
7521    none) break ;;
7522    esac
7523    if depmode=$depmode \
7524       source=sub/conftest.c object=$am__obj \
7525       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7526       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7527         >/dev/null 2>conftest.err &&
7528       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7529       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7530       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7531       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7532      # icc doesn't choke on unknown options, it will just issue warnings
7533      # or remarks (even with -Werror).  So we grep stderr for any message
7534      # that says an option was ignored or not supported.
7535      # When given -MP, icc 7.0 and 7.1 complain thusly:
7536      #   icc: Command line warning: ignoring option '-M'; no argument required
7537      # The diagnosis changed in icc 8.0:
7538      #   icc: Command line remark: option '-MP' not supported
7539      if (grep 'ignoring option' conftest.err ||
7540          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7541        am_cv_CXX_dependencies_compiler_type=$depmode
7542        break
7543      fi
7544    fi
7545  done
7546
7547  cd ..
7548  rm -rf conftest.dir
7549else
7550  am_cv_CXX_dependencies_compiler_type=none
7551fi
7552
7553fi
7554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7555printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
7556CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7557
7558 if
7559  test "x$enable_dependency_tracking" != xno \
7560  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7561  am__fastdepCXX_TRUE=
7562  am__fastdepCXX_FALSE='#'
7563else
7564  am__fastdepCXX_TRUE='#'
7565  am__fastdepCXX_FALSE=
7566fi
7567
7568
7569ac_ext=cpp
7570ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7571ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7572ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7575printf %s "checking how to run the C++ preprocessor... " >&6; }
7576if test -z "$CXXCPP_FOR_BUILD"; then
7577  if test ${ac_cv_build_prog_CXXCPP+y}
7578then :
7579  printf %s "(cached) " >&6
7580else $as_nop
7581      # Double quotes because $CXX needs to be expanded
7582    for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" cpp /lib/cpp
7583    do
7584      ac_preproc_ok=false
7585for ac_cxx_preproc_warn_flag in '' yes
7586do
7587  # Use a header file that comes with gcc, so configuring glibc
7588  # with a fresh cross-compiler works.
7589  # On the NeXT, cc -E runs the code through the compiler's parser,
7590  # not just through cpp. "Syntax error" is here to catch this case.
7591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592/* end confdefs.h.  */
7593#include <limits.h>
7594		     Syntax error
7595_ACEOF
7596if ac_fn_cxx_try_cpp "$LINENO"
7597then :
7598
7599else $as_nop
7600  # Broken: fails on valid input.
7601continue
7602fi
7603rm -f conftest.err conftest.i conftest.$ac_ext
7604
7605  # OK, works on sane cases.  Now check whether nonexistent headers
7606  # can be detected and how.
7607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h.  */
7609#include <ac_nonexistent.h>
7610_ACEOF
7611if ac_fn_cxx_try_cpp "$LINENO"
7612then :
7613  # Broken: success on invalid input.
7614continue
7615else $as_nop
7616  # Passes both tests.
7617ac_preproc_ok=:
7618break
7619fi
7620rm -f conftest.err conftest.i conftest.$ac_ext
7621
7622done
7623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7624rm -f conftest.i conftest.err conftest.$ac_ext
7625if $ac_preproc_ok
7626then :
7627  break
7628fi
7629
7630    done
7631    ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
7632
7633fi
7634  CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
7635else
7636  ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
7637fi
7638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
7639printf "%s\n" "$CXXCPP_FOR_BUILD" >&6; }
7640ac_preproc_ok=false
7641for ac_cxx_preproc_warn_flag in '' yes
7642do
7643  # Use a header file that comes with gcc, so configuring glibc
7644  # with a fresh cross-compiler works.
7645  # On the NeXT, cc -E runs the code through the compiler's parser,
7646  # not just through cpp. "Syntax error" is here to catch this case.
7647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648/* end confdefs.h.  */
7649#include <limits.h>
7650		     Syntax error
7651_ACEOF
7652if ac_fn_cxx_try_cpp "$LINENO"
7653then :
7654
7655else $as_nop
7656  # Broken: fails on valid input.
7657continue
7658fi
7659rm -f conftest.err conftest.i conftest.$ac_ext
7660
7661  # OK, works on sane cases.  Now check whether nonexistent headers
7662  # can be detected and how.
7663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665#include <ac_nonexistent.h>
7666_ACEOF
7667if ac_fn_cxx_try_cpp "$LINENO"
7668then :
7669  # Broken: success on invalid input.
7670continue
7671else $as_nop
7672  # Passes both tests.
7673ac_preproc_ok=:
7674break
7675fi
7676rm -f conftest.err conftest.i conftest.$ac_ext
7677
7678done
7679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7680rm -f conftest.i conftest.err conftest.$ac_ext
7681if $ac_preproc_ok
7682then :
7683
7684else $as_nop
7685  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7686printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7687as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
7688See \`config.log' for more details" "$LINENO" 5; }
7689fi
7690
7691ac_ext=c
7692ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
7693ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7694ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696
7697
7698ac_tool_prefix=$save_ac_tool_prefix
7699cross_compiling=$save_cross_compiling
7700
7701
7702
7703
7704# extract_interface needs to be run on the build system.
7705# Since this is the only target that is being built,
7706# simply use the build compiler throughout.
7707# This ensures that the clang configure checks are
7708# performed using the right compiler.
7709CXX="$CXX_FOR_BUILD"
7710CXXCPP="$CXXCPP_FOR_BUILD"
7711EXEEXT="$BUILD_EXEEXT"
7712OBJEXT="$BUILD_OBJEXT"
7713
7714
7715	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7716printf %s "checking for grep that handles long lines and -e... " >&6; }
7717if test ${ac_cv_path_GREP+y}
7718then :
7719  printf %s "(cached) " >&6
7720else $as_nop
7721  if test -z "$GREP"; then
7722  ac_path_GREP_found=false
7723  # Loop through the user's path and test for each of PROGNAME-LIST
7724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7726do
7727  IFS=$as_save_IFS
7728  case $as_dir in #(((
7729    '') as_dir=./ ;;
7730    */) ;;
7731    *) as_dir=$as_dir/ ;;
7732  esac
7733    for ac_prog in grep ggrep
7734   do
7735    for ac_exec_ext in '' $ac_executable_extensions; do
7736      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7737      as_fn_executable_p "$ac_path_GREP" || continue
7738# Check for GNU ac_path_GREP and select it if it is found.
7739  # Check for GNU $ac_path_GREP
7740case `"$ac_path_GREP" --version 2>&1` in
7741*GNU*)
7742  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7743*)
7744  ac_count=0
7745  printf %s 0123456789 >"conftest.in"
7746  while :
7747  do
7748    cat "conftest.in" "conftest.in" >"conftest.tmp"
7749    mv "conftest.tmp" "conftest.in"
7750    cp "conftest.in" "conftest.nl"
7751    printf "%s\n" 'GREP' >> "conftest.nl"
7752    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7753    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7754    as_fn_arith $ac_count + 1 && ac_count=$as_val
7755    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7756      # Best one so far, save it but keep looking for a better one
7757      ac_cv_path_GREP="$ac_path_GREP"
7758      ac_path_GREP_max=$ac_count
7759    fi
7760    # 10*(2^10) chars as input seems more than enough
7761    test $ac_count -gt 10 && break
7762  done
7763  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7764esac
7765
7766      $ac_path_GREP_found && break 3
7767    done
7768  done
7769  done
7770IFS=$as_save_IFS
7771  if test -z "$ac_cv_path_GREP"; then
7772    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7773  fi
7774else
7775  ac_cv_path_GREP=$GREP
7776fi
7777
7778fi
7779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7780printf "%s\n" "$ac_cv_path_GREP" >&6; }
7781 GREP="$ac_cv_path_GREP"
7782
7783
7784	echo $CXX | $GREP -e "-std=" > /dev/null 2> /dev/null
7785	if test $? -eq 0; then
7786		  ac_ext=cpp
7787ac_cpp='$CXXCPP $CPPFLAGS'
7788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7791  ac_success=no
7792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
7793printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
7794if test ${ax_cv_cxx_compile_cxx11+y}
7795then :
7796  printf %s "(cached) " >&6
7797else $as_nop
7798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h.  */
7800
7801
7802// If the compiler admits that it is not ready for C++11, why torture it?
7803// Hopefully, this will speed up the test.
7804
7805#ifndef __cplusplus
7806
7807#error "This is not a C++ compiler"
7808
7809#elif __cplusplus < 201103L
7810
7811#error "This is not a C++11 compiler"
7812
7813#else
7814
7815namespace cxx11
7816{
7817
7818  namespace test_static_assert
7819  {
7820
7821    template <typename T>
7822    struct check
7823    {
7824      static_assert(sizeof(int) <= sizeof(T), "not big enough");
7825    };
7826
7827  }
7828
7829  namespace test_final_override
7830  {
7831
7832    struct Base
7833    {
7834      virtual ~Base() {}
7835      virtual void f() {}
7836    };
7837
7838    struct Derived : public Base
7839    {
7840      virtual ~Derived() override {}
7841      virtual void f() override {}
7842    };
7843
7844  }
7845
7846  namespace test_double_right_angle_brackets
7847  {
7848
7849    template < typename T >
7850    struct check {};
7851
7852    typedef check<void> single_type;
7853    typedef check<check<void>> double_type;
7854    typedef check<check<check<void>>> triple_type;
7855    typedef check<check<check<check<void>>>> quadruple_type;
7856
7857  }
7858
7859  namespace test_decltype
7860  {
7861
7862    int
7863    f()
7864    {
7865      int a = 1;
7866      decltype(a) b = 2;
7867      return a + b;
7868    }
7869
7870  }
7871
7872  namespace test_type_deduction
7873  {
7874
7875    template < typename T1, typename T2 >
7876    struct is_same
7877    {
7878      static const bool value = false;
7879    };
7880
7881    template < typename T >
7882    struct is_same<T, T>
7883    {
7884      static const bool value = true;
7885    };
7886
7887    template < typename T1, typename T2 >
7888    auto
7889    add(T1 a1, T2 a2) -> decltype(a1 + a2)
7890    {
7891      return a1 + a2;
7892    }
7893
7894    int
7895    test(const int c, volatile int v)
7896    {
7897      static_assert(is_same<int, decltype(0)>::value == true, "");
7898      static_assert(is_same<int, decltype(c)>::value == false, "");
7899      static_assert(is_same<int, decltype(v)>::value == false, "");
7900      auto ac = c;
7901      auto av = v;
7902      auto sumi = ac + av + 'x';
7903      auto sumf = ac + av + 1.0;
7904      static_assert(is_same<int, decltype(ac)>::value == true, "");
7905      static_assert(is_same<int, decltype(av)>::value == true, "");
7906      static_assert(is_same<int, decltype(sumi)>::value == true, "");
7907      static_assert(is_same<int, decltype(sumf)>::value == false, "");
7908      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7909      return (sumf > 0.0) ? sumi : add(c, v);
7910    }
7911
7912  }
7913
7914  namespace test_noexcept
7915  {
7916
7917    int f() { return 0; }
7918    int g() noexcept { return 0; }
7919
7920    static_assert(noexcept(f()) == false, "");
7921    static_assert(noexcept(g()) == true, "");
7922
7923  }
7924
7925  namespace test_constexpr
7926  {
7927
7928    template < typename CharT >
7929    unsigned long constexpr
7930    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7931    {
7932      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7933    }
7934
7935    template < typename CharT >
7936    unsigned long constexpr
7937    strlen_c(const CharT *const s) noexcept
7938    {
7939      return strlen_c_r(s, 0UL);
7940    }
7941
7942    static_assert(strlen_c("") == 0UL, "");
7943    static_assert(strlen_c("1") == 1UL, "");
7944    static_assert(strlen_c("example") == 7UL, "");
7945    static_assert(strlen_c("another\0example") == 7UL, "");
7946
7947  }
7948
7949  namespace test_rvalue_references
7950  {
7951
7952    template < int N >
7953    struct answer
7954    {
7955      static constexpr int value = N;
7956    };
7957
7958    answer<1> f(int&)       { return answer<1>(); }
7959    answer<2> f(const int&) { return answer<2>(); }
7960    answer<3> f(int&&)      { return answer<3>(); }
7961
7962    void
7963    test()
7964    {
7965      int i = 0;
7966      const int c = 0;
7967      static_assert(decltype(f(i))::value == 1, "");
7968      static_assert(decltype(f(c))::value == 2, "");
7969      static_assert(decltype(f(0))::value == 3, "");
7970    }
7971
7972  }
7973
7974  namespace test_uniform_initialization
7975  {
7976
7977    struct test
7978    {
7979      static const int zero {};
7980      static const int one {1};
7981    };
7982
7983    static_assert(test::zero == 0, "");
7984    static_assert(test::one == 1, "");
7985
7986  }
7987
7988  namespace test_lambdas
7989  {
7990
7991    void
7992    test1()
7993    {
7994      auto lambda1 = [](){};
7995      auto lambda2 = lambda1;
7996      lambda1();
7997      lambda2();
7998    }
7999
8000    int
8001    test2()
8002    {
8003      auto a = [](int i, int j){ return i + j; }(1, 2);
8004      auto b = []() -> int { return '0'; }();
8005      auto c = [=](){ return a + b; }();
8006      auto d = [&](){ return c; }();
8007      auto e = [a, &b](int x) mutable {
8008        const auto identity = [](int y){ return y; };
8009        for (auto i = 0; i < a; ++i)
8010          a += b--;
8011        return x + identity(a + b);
8012      }(0);
8013      return a + b + c + d + e;
8014    }
8015
8016    int
8017    test3()
8018    {
8019      const auto nullary = [](){ return 0; };
8020      const auto unary = [](int x){ return x; };
8021      using nullary_t = decltype(nullary);
8022      using unary_t = decltype(unary);
8023      const auto higher1st = [](nullary_t f){ return f(); };
8024      const auto higher2nd = [unary](nullary_t f1){
8025        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8026      };
8027      return higher1st(nullary) + higher2nd(nullary)(unary);
8028    }
8029
8030  }
8031
8032  namespace test_variadic_templates
8033  {
8034
8035    template <int...>
8036    struct sum;
8037
8038    template <int N0, int... N1toN>
8039    struct sum<N0, N1toN...>
8040    {
8041      static constexpr auto value = N0 + sum<N1toN...>::value;
8042    };
8043
8044    template <>
8045    struct sum<>
8046    {
8047      static constexpr auto value = 0;
8048    };
8049
8050    static_assert(sum<>::value == 0, "");
8051    static_assert(sum<1>::value == 1, "");
8052    static_assert(sum<23>::value == 23, "");
8053    static_assert(sum<1, 2>::value == 3, "");
8054    static_assert(sum<5, 5, 11>::value == 21, "");
8055    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8056
8057  }
8058
8059  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8060  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8061  // because of this.
8062  namespace test_template_alias_sfinae
8063  {
8064
8065    struct foo {};
8066
8067    template<typename T>
8068    using member = typename T::member_type;
8069
8070    template<typename T>
8071    void func(...) {}
8072
8073    template<typename T>
8074    void func(member<T>*) {}
8075
8076    void test();
8077
8078    void test() { func<foo>(0); }
8079
8080  }
8081
8082}  // namespace cxx11
8083
8084#endif  // __cplusplus >= 201103L
8085
8086
8087
8088_ACEOF
8089if ac_fn_cxx_try_compile "$LINENO"
8090then :
8091  ax_cv_cxx_compile_cxx11=yes
8092else $as_nop
8093  ax_cv_cxx_compile_cxx11=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8096fi
8097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
8098printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
8099  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
8100    ac_success=yes
8101  fi
8102  ac_ext=c
8103ac_cpp='$CPP $CPPFLAGS'
8104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8106ac_compiler_gnu=$ac_cv_c_compiler_gnu
8107
8108  if test x$ac_success = xno; then
8109    HAVE_CXX11=0
8110  else
8111    HAVE_CXX11=1
8112
8113printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
8114
8115  fi
8116
8117
8118	else
8119		  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=false
8120  ac_ext=cpp
8121ac_cpp='$CXXCPP $CPPFLAGS'
8122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8125  ac_success=no
8126
8127
8128
8129
8130
8131    if test x$ac_success = xno; then
8132                for alternative in ${ax_cxx_compile_alternatives}; do
8133      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8134        cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
8135        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
8136printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
8137if eval test \${$cachevar+y}
8138then :
8139  printf %s "(cached) " >&6
8140else $as_nop
8141  ac_save_CXX="$CXX"
8142           CXX="$CXX $switch"
8143           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144/* end confdefs.h.  */
8145
8146
8147// If the compiler admits that it is not ready for C++11, why torture it?
8148// Hopefully, this will speed up the test.
8149
8150#ifndef __cplusplus
8151
8152#error "This is not a C++ compiler"
8153
8154#elif __cplusplus < 201103L
8155
8156#error "This is not a C++11 compiler"
8157
8158#else
8159
8160namespace cxx11
8161{
8162
8163  namespace test_static_assert
8164  {
8165
8166    template <typename T>
8167    struct check
8168    {
8169      static_assert(sizeof(int) <= sizeof(T), "not big enough");
8170    };
8171
8172  }
8173
8174  namespace test_final_override
8175  {
8176
8177    struct Base
8178    {
8179      virtual ~Base() {}
8180      virtual void f() {}
8181    };
8182
8183    struct Derived : public Base
8184    {
8185      virtual ~Derived() override {}
8186      virtual void f() override {}
8187    };
8188
8189  }
8190
8191  namespace test_double_right_angle_brackets
8192  {
8193
8194    template < typename T >
8195    struct check {};
8196
8197    typedef check<void> single_type;
8198    typedef check<check<void>> double_type;
8199    typedef check<check<check<void>>> triple_type;
8200    typedef check<check<check<check<void>>>> quadruple_type;
8201
8202  }
8203
8204  namespace test_decltype
8205  {
8206
8207    int
8208    f()
8209    {
8210      int a = 1;
8211      decltype(a) b = 2;
8212      return a + b;
8213    }
8214
8215  }
8216
8217  namespace test_type_deduction
8218  {
8219
8220    template < typename T1, typename T2 >
8221    struct is_same
8222    {
8223      static const bool value = false;
8224    };
8225
8226    template < typename T >
8227    struct is_same<T, T>
8228    {
8229      static const bool value = true;
8230    };
8231
8232    template < typename T1, typename T2 >
8233    auto
8234    add(T1 a1, T2 a2) -> decltype(a1 + a2)
8235    {
8236      return a1 + a2;
8237    }
8238
8239    int
8240    test(const int c, volatile int v)
8241    {
8242      static_assert(is_same<int, decltype(0)>::value == true, "");
8243      static_assert(is_same<int, decltype(c)>::value == false, "");
8244      static_assert(is_same<int, decltype(v)>::value == false, "");
8245      auto ac = c;
8246      auto av = v;
8247      auto sumi = ac + av + 'x';
8248      auto sumf = ac + av + 1.0;
8249      static_assert(is_same<int, decltype(ac)>::value == true, "");
8250      static_assert(is_same<int, decltype(av)>::value == true, "");
8251      static_assert(is_same<int, decltype(sumi)>::value == true, "");
8252      static_assert(is_same<int, decltype(sumf)>::value == false, "");
8253      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8254      return (sumf > 0.0) ? sumi : add(c, v);
8255    }
8256
8257  }
8258
8259  namespace test_noexcept
8260  {
8261
8262    int f() { return 0; }
8263    int g() noexcept { return 0; }
8264
8265    static_assert(noexcept(f()) == false, "");
8266    static_assert(noexcept(g()) == true, "");
8267
8268  }
8269
8270  namespace test_constexpr
8271  {
8272
8273    template < typename CharT >
8274    unsigned long constexpr
8275    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8276    {
8277      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8278    }
8279
8280    template < typename CharT >
8281    unsigned long constexpr
8282    strlen_c(const CharT *const s) noexcept
8283    {
8284      return strlen_c_r(s, 0UL);
8285    }
8286
8287    static_assert(strlen_c("") == 0UL, "");
8288    static_assert(strlen_c("1") == 1UL, "");
8289    static_assert(strlen_c("example") == 7UL, "");
8290    static_assert(strlen_c("another\0example") == 7UL, "");
8291
8292  }
8293
8294  namespace test_rvalue_references
8295  {
8296
8297    template < int N >
8298    struct answer
8299    {
8300      static constexpr int value = N;
8301    };
8302
8303    answer<1> f(int&)       { return answer<1>(); }
8304    answer<2> f(const int&) { return answer<2>(); }
8305    answer<3> f(int&&)      { return answer<3>(); }
8306
8307    void
8308    test()
8309    {
8310      int i = 0;
8311      const int c = 0;
8312      static_assert(decltype(f(i))::value == 1, "");
8313      static_assert(decltype(f(c))::value == 2, "");
8314      static_assert(decltype(f(0))::value == 3, "");
8315    }
8316
8317  }
8318
8319  namespace test_uniform_initialization
8320  {
8321
8322    struct test
8323    {
8324      static const int zero {};
8325      static const int one {1};
8326    };
8327
8328    static_assert(test::zero == 0, "");
8329    static_assert(test::one == 1, "");
8330
8331  }
8332
8333  namespace test_lambdas
8334  {
8335
8336    void
8337    test1()
8338    {
8339      auto lambda1 = [](){};
8340      auto lambda2 = lambda1;
8341      lambda1();
8342      lambda2();
8343    }
8344
8345    int
8346    test2()
8347    {
8348      auto a = [](int i, int j){ return i + j; }(1, 2);
8349      auto b = []() -> int { return '0'; }();
8350      auto c = [=](){ return a + b; }();
8351      auto d = [&](){ return c; }();
8352      auto e = [a, &b](int x) mutable {
8353        const auto identity = [](int y){ return y; };
8354        for (auto i = 0; i < a; ++i)
8355          a += b--;
8356        return x + identity(a + b);
8357      }(0);
8358      return a + b + c + d + e;
8359    }
8360
8361    int
8362    test3()
8363    {
8364      const auto nullary = [](){ return 0; };
8365      const auto unary = [](int x){ return x; };
8366      using nullary_t = decltype(nullary);
8367      using unary_t = decltype(unary);
8368      const auto higher1st = [](nullary_t f){ return f(); };
8369      const auto higher2nd = [unary](nullary_t f1){
8370        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8371      };
8372      return higher1st(nullary) + higher2nd(nullary)(unary);
8373    }
8374
8375  }
8376
8377  namespace test_variadic_templates
8378  {
8379
8380    template <int...>
8381    struct sum;
8382
8383    template <int N0, int... N1toN>
8384    struct sum<N0, N1toN...>
8385    {
8386      static constexpr auto value = N0 + sum<N1toN...>::value;
8387    };
8388
8389    template <>
8390    struct sum<>
8391    {
8392      static constexpr auto value = 0;
8393    };
8394
8395    static_assert(sum<>::value == 0, "");
8396    static_assert(sum<1>::value == 1, "");
8397    static_assert(sum<23>::value == 23, "");
8398    static_assert(sum<1, 2>::value == 3, "");
8399    static_assert(sum<5, 5, 11>::value == 21, "");
8400    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8401
8402  }
8403
8404  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8405  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8406  // because of this.
8407  namespace test_template_alias_sfinae
8408  {
8409
8410    struct foo {};
8411
8412    template<typename T>
8413    using member = typename T::member_type;
8414
8415    template<typename T>
8416    void func(...) {}
8417
8418    template<typename T>
8419    void func(member<T>*) {}
8420
8421    void test();
8422
8423    void test() { func<foo>(0); }
8424
8425  }
8426
8427}  // namespace cxx11
8428
8429#endif  // __cplusplus >= 201103L
8430
8431
8432
8433_ACEOF
8434if ac_fn_cxx_try_compile "$LINENO"
8435then :
8436  eval $cachevar=yes
8437else $as_nop
8438  eval $cachevar=no
8439fi
8440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8441           CXX="$ac_save_CXX"
8442fi
8443eval ac_res=\$$cachevar
8444	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8445printf "%s\n" "$ac_res" >&6; }
8446        if eval test x\$$cachevar = xyes; then
8447          CXX="$CXX $switch"
8448          if test -n "$CXXCPP" ; then
8449            CXXCPP="$CXXCPP $switch"
8450          fi
8451          ac_success=yes
8452          break
8453        fi
8454      done
8455      if test x$ac_success = xyes; then
8456        break
8457      fi
8458    done
8459  fi
8460  ac_ext=c
8461ac_cpp='$CPP $CPPFLAGS'
8462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8464ac_compiler_gnu=$ac_cv_c_compiler_gnu
8465
8466  if test x$ax_cxx_compile_cxx11_required = xtrue; then
8467    if test x$ac_success = xno; then
8468      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
8469    fi
8470  fi
8471  if test x$ac_success = xno; then
8472    HAVE_CXX11=0
8473    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
8474printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
8475  else
8476    HAVE_CXX11=1
8477
8478printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
8479
8480  fi
8481
8482
8483	fi
8484
8485
8486# Check whether --enable-shared was given.
8487if test ${enable_shared+y}
8488then :
8489  enableval=$enable_shared; p=${PACKAGE-default}
8490    case $enableval in
8491    yes) enable_shared=yes ;;
8492    no) enable_shared=no ;;
8493    *)
8494      enable_shared=no
8495      # Look at the argument we got.  We use all the common list separators.
8496      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8497      for pkg in $enableval; do
8498	IFS=$lt_save_ifs
8499	if test "X$pkg" = "X$p"; then
8500	  enable_shared=yes
8501	fi
8502      done
8503      IFS=$lt_save_ifs
8504      ;;
8505    esac
8506else $as_nop
8507  enable_shared=no
8508fi
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518case `pwd` in
8519  *\ * | *\	*)
8520    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8521printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8522esac
8523
8524
8525
8526macro_version='2.4.6'
8527macro_revision='2.4.6'
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542ltmain=$ac_aux_dir/ltmain.sh
8543
8544# Backslashify metacharacters that are still active within
8545# double-quoted strings.
8546sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8547
8548# Same as above, but do not quote variable references.
8549double_quote_subst='s/\(["`\\]\)/\\\1/g'
8550
8551# Sed substitution to delay expansion of an escaped shell variable in a
8552# double_quote_subst'ed string.
8553delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8554
8555# Sed substitution to delay expansion of an escaped single quote.
8556delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8557
8558# Sed substitution to avoid accidental globbing in evaled expressions
8559no_glob_subst='s/\*/\\\*/g'
8560
8561ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8562ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8563ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8564
8565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8566printf %s "checking how to print strings... " >&6; }
8567# Test print first, because it will be a builtin if present.
8568if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8569   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8570  ECHO='print -r --'
8571elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8572  ECHO='printf %s\n'
8573else
8574  # Use this function as a fallback that always works.
8575  func_fallback_echo ()
8576  {
8577    eval 'cat <<_LTECHO_EOF
8578$1
8579_LTECHO_EOF'
8580  }
8581  ECHO='func_fallback_echo'
8582fi
8583
8584# func_echo_all arg...
8585# Invoke $ECHO with all args, space-separated.
8586func_echo_all ()
8587{
8588    $ECHO ""
8589}
8590
8591case $ECHO in
8592  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8593printf "%s\n" "printf" >&6; } ;;
8594  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8595printf "%s\n" "print -r" >&6; } ;;
8596  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8597printf "%s\n" "cat" >&6; } ;;
8598esac
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8614printf %s "checking for a sed that does not truncate output... " >&6; }
8615if test ${ac_cv_path_SED+y}
8616then :
8617  printf %s "(cached) " >&6
8618else $as_nop
8619            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8620     for ac_i in 1 2 3 4 5 6 7; do
8621       ac_script="$ac_script$as_nl$ac_script"
8622     done
8623     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8624     { ac_script=; unset ac_script;}
8625     if test -z "$SED"; then
8626  ac_path_SED_found=false
8627  # Loop through the user's path and test for each of PROGNAME-LIST
8628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631  IFS=$as_save_IFS
8632  case $as_dir in #(((
8633    '') as_dir=./ ;;
8634    */) ;;
8635    *) as_dir=$as_dir/ ;;
8636  esac
8637    for ac_prog in sed gsed
8638   do
8639    for ac_exec_ext in '' $ac_executable_extensions; do
8640      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8641      as_fn_executable_p "$ac_path_SED" || continue
8642# Check for GNU ac_path_SED and select it if it is found.
8643  # Check for GNU $ac_path_SED
8644case `"$ac_path_SED" --version 2>&1` in
8645*GNU*)
8646  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8647*)
8648  ac_count=0
8649  printf %s 0123456789 >"conftest.in"
8650  while :
8651  do
8652    cat "conftest.in" "conftest.in" >"conftest.tmp"
8653    mv "conftest.tmp" "conftest.in"
8654    cp "conftest.in" "conftest.nl"
8655    printf "%s\n" '' >> "conftest.nl"
8656    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8657    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8658    as_fn_arith $ac_count + 1 && ac_count=$as_val
8659    if test $ac_count -gt ${ac_path_SED_max-0}; then
8660      # Best one so far, save it but keep looking for a better one
8661      ac_cv_path_SED="$ac_path_SED"
8662      ac_path_SED_max=$ac_count
8663    fi
8664    # 10*(2^10) chars as input seems more than enough
8665    test $ac_count -gt 10 && break
8666  done
8667  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8668esac
8669
8670      $ac_path_SED_found && break 3
8671    done
8672  done
8673  done
8674IFS=$as_save_IFS
8675  if test -z "$ac_cv_path_SED"; then
8676    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8677  fi
8678else
8679  ac_cv_path_SED=$SED
8680fi
8681
8682fi
8683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8684printf "%s\n" "$ac_cv_path_SED" >&6; }
8685 SED="$ac_cv_path_SED"
8686  rm -f conftest.sed
8687
8688test -z "$SED" && SED=sed
8689Xsed="$SED -e 1s/^X//"
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8702printf %s "checking for egrep... " >&6; }
8703if test ${ac_cv_path_EGREP+y}
8704then :
8705  printf %s "(cached) " >&6
8706else $as_nop
8707  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8708   then ac_cv_path_EGREP="$GREP -E"
8709   else
8710     if test -z "$EGREP"; then
8711  ac_path_EGREP_found=false
8712  # Loop through the user's path and test for each of PROGNAME-LIST
8713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8715do
8716  IFS=$as_save_IFS
8717  case $as_dir in #(((
8718    '') as_dir=./ ;;
8719    */) ;;
8720    *) as_dir=$as_dir/ ;;
8721  esac
8722    for ac_prog in egrep
8723   do
8724    for ac_exec_ext in '' $ac_executable_extensions; do
8725      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8726      as_fn_executable_p "$ac_path_EGREP" || continue
8727# Check for GNU ac_path_EGREP and select it if it is found.
8728  # Check for GNU $ac_path_EGREP
8729case `"$ac_path_EGREP" --version 2>&1` in
8730*GNU*)
8731  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8732*)
8733  ac_count=0
8734  printf %s 0123456789 >"conftest.in"
8735  while :
8736  do
8737    cat "conftest.in" "conftest.in" >"conftest.tmp"
8738    mv "conftest.tmp" "conftest.in"
8739    cp "conftest.in" "conftest.nl"
8740    printf "%s\n" 'EGREP' >> "conftest.nl"
8741    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8742    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8743    as_fn_arith $ac_count + 1 && ac_count=$as_val
8744    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8745      # Best one so far, save it but keep looking for a better one
8746      ac_cv_path_EGREP="$ac_path_EGREP"
8747      ac_path_EGREP_max=$ac_count
8748    fi
8749    # 10*(2^10) chars as input seems more than enough
8750    test $ac_count -gt 10 && break
8751  done
8752  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8753esac
8754
8755      $ac_path_EGREP_found && break 3
8756    done
8757  done
8758  done
8759IFS=$as_save_IFS
8760  if test -z "$ac_cv_path_EGREP"; then
8761    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8762  fi
8763else
8764  ac_cv_path_EGREP=$EGREP
8765fi
8766
8767   fi
8768fi
8769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8770printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8771 EGREP="$ac_cv_path_EGREP"
8772
8773
8774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8775printf %s "checking for fgrep... " >&6; }
8776if test ${ac_cv_path_FGREP+y}
8777then :
8778  printf %s "(cached) " >&6
8779else $as_nop
8780  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8781   then ac_cv_path_FGREP="$GREP -F"
8782   else
8783     if test -z "$FGREP"; then
8784  ac_path_FGREP_found=false
8785  # Loop through the user's path and test for each of PROGNAME-LIST
8786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8788do
8789  IFS=$as_save_IFS
8790  case $as_dir in #(((
8791    '') as_dir=./ ;;
8792    */) ;;
8793    *) as_dir=$as_dir/ ;;
8794  esac
8795    for ac_prog in fgrep
8796   do
8797    for ac_exec_ext in '' $ac_executable_extensions; do
8798      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8799      as_fn_executable_p "$ac_path_FGREP" || continue
8800# Check for GNU ac_path_FGREP and select it if it is found.
8801  # Check for GNU $ac_path_FGREP
8802case `"$ac_path_FGREP" --version 2>&1` in
8803*GNU*)
8804  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8805*)
8806  ac_count=0
8807  printf %s 0123456789 >"conftest.in"
8808  while :
8809  do
8810    cat "conftest.in" "conftest.in" >"conftest.tmp"
8811    mv "conftest.tmp" "conftest.in"
8812    cp "conftest.in" "conftest.nl"
8813    printf "%s\n" 'FGREP' >> "conftest.nl"
8814    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8815    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8816    as_fn_arith $ac_count + 1 && ac_count=$as_val
8817    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8818      # Best one so far, save it but keep looking for a better one
8819      ac_cv_path_FGREP="$ac_path_FGREP"
8820      ac_path_FGREP_max=$ac_count
8821    fi
8822    # 10*(2^10) chars as input seems more than enough
8823    test $ac_count -gt 10 && break
8824  done
8825  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8826esac
8827
8828      $ac_path_FGREP_found && break 3
8829    done
8830  done
8831  done
8832IFS=$as_save_IFS
8833  if test -z "$ac_cv_path_FGREP"; then
8834    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8835  fi
8836else
8837  ac_cv_path_FGREP=$FGREP
8838fi
8839
8840   fi
8841fi
8842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8843printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8844 FGREP="$ac_cv_path_FGREP"
8845
8846
8847test -z "$GREP" && GREP=grep
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867# Check whether --with-gnu-ld was given.
8868if test ${with_gnu_ld+y}
8869then :
8870  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8871else $as_nop
8872  with_gnu_ld=no
8873fi
8874
8875ac_prog=ld
8876if test yes = "$GCC"; then
8877  # Check if gcc -print-prog-name=ld gives a path.
8878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8879printf %s "checking for ld used by $CC... " >&6; }
8880  case $host in
8881  *-*-mingw*)
8882    # gcc leaves a trailing carriage return, which upsets mingw
8883    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8884  *)
8885    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8886  esac
8887  case $ac_prog in
8888    # Accept absolute paths.
8889    [\\/]* | ?:[\\/]*)
8890      re_direlt='/[^/][^/]*/\.\./'
8891      # Canonicalize the pathname of ld
8892      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8893      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8894	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8895      done
8896      test -z "$LD" && LD=$ac_prog
8897      ;;
8898  "")
8899    # If it fails, then pretend we aren't using GCC.
8900    ac_prog=ld
8901    ;;
8902  *)
8903    # If it is relative, then search for the first ld in PATH.
8904    with_gnu_ld=unknown
8905    ;;
8906  esac
8907elif test yes = "$with_gnu_ld"; then
8908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8909printf %s "checking for GNU ld... " >&6; }
8910else
8911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8912printf %s "checking for non-GNU ld... " >&6; }
8913fi
8914if test ${lt_cv_path_LD+y}
8915then :
8916  printf %s "(cached) " >&6
8917else $as_nop
8918  if test -z "$LD"; then
8919  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8920  for ac_dir in $PATH; do
8921    IFS=$lt_save_ifs
8922    test -z "$ac_dir" && ac_dir=.
8923    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8924      lt_cv_path_LD=$ac_dir/$ac_prog
8925      # Check to see if the program is GNU ld.  I'd rather use --version,
8926      # but apparently some variants of GNU ld only accept -v.
8927      # Break only if it was the GNU/non-GNU ld that we prefer.
8928      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8929      *GNU* | *'with BFD'*)
8930	test no != "$with_gnu_ld" && break
8931	;;
8932      *)
8933	test yes != "$with_gnu_ld" && break
8934	;;
8935      esac
8936    fi
8937  done
8938  IFS=$lt_save_ifs
8939else
8940  lt_cv_path_LD=$LD # Let the user override the test with a path.
8941fi
8942fi
8943
8944LD=$lt_cv_path_LD
8945if test -n "$LD"; then
8946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8947printf "%s\n" "$LD" >&6; }
8948else
8949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950printf "%s\n" "no" >&6; }
8951fi
8952test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8954printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8955if test ${lt_cv_prog_gnu_ld+y}
8956then :
8957  printf %s "(cached) " >&6
8958else $as_nop
8959  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8960case `$LD -v 2>&1 </dev/null` in
8961*GNU* | *'with BFD'*)
8962  lt_cv_prog_gnu_ld=yes
8963  ;;
8964*)
8965  lt_cv_prog_gnu_ld=no
8966  ;;
8967esac
8968fi
8969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8970printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8971with_gnu_ld=$lt_cv_prog_gnu_ld
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8982printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8983if test ${lt_cv_path_NM+y}
8984then :
8985  printf %s "(cached) " >&6
8986else $as_nop
8987  if test -n "$NM"; then
8988  # Let the user override the test.
8989  lt_cv_path_NM=$NM
8990else
8991  lt_nm_to_check=${ac_tool_prefix}nm
8992  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8993    lt_nm_to_check="$lt_nm_to_check nm"
8994  fi
8995  for lt_tmp_nm in $lt_nm_to_check; do
8996    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8997    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8998      IFS=$lt_save_ifs
8999      test -z "$ac_dir" && ac_dir=.
9000      tmp_nm=$ac_dir/$lt_tmp_nm
9001      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9002	# Check to see if the nm accepts a BSD-compat flag.
9003	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9004	#   nm: unknown option "B" ignored
9005	# Tru64's nm complains that /dev/null is an invalid object file
9006	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9007	case $build_os in
9008	mingw*) lt_bad_file=conftest.nm/nofile ;;
9009	*) lt_bad_file=/dev/null ;;
9010	esac
9011	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
9012	*$lt_bad_file* | *'Invalid file or object type'*)
9013	  lt_cv_path_NM="$tmp_nm -B"
9014	  break 2
9015	  ;;
9016	*)
9017	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9018	  */dev/null*)
9019	    lt_cv_path_NM="$tmp_nm -p"
9020	    break 2
9021	    ;;
9022	  *)
9023	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9024	    continue # so that we can try to find one that supports BSD flags
9025	    ;;
9026	  esac
9027	  ;;
9028	esac
9029      fi
9030    done
9031    IFS=$lt_save_ifs
9032  done
9033  : ${lt_cv_path_NM=no}
9034fi
9035fi
9036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9037printf "%s\n" "$lt_cv_path_NM" >&6; }
9038if test no != "$lt_cv_path_NM"; then
9039  NM=$lt_cv_path_NM
9040else
9041  # Didn't find any BSD compatible name lister, look for dumpbin.
9042  if test -n "$DUMPBIN"; then :
9043    # Let the user override the test.
9044  else
9045    if test -n "$ac_tool_prefix"; then
9046  for ac_prog in dumpbin "link -dump"
9047  do
9048    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9049set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051printf %s "checking for $ac_word... " >&6; }
9052if test ${ac_cv_prog_DUMPBIN+y}
9053then :
9054  printf %s "(cached) " >&6
9055else $as_nop
9056  if test -n "$DUMPBIN"; then
9057  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9058else
9059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060for as_dir in $PATH
9061do
9062  IFS=$as_save_IFS
9063  case $as_dir in #(((
9064    '') as_dir=./ ;;
9065    */) ;;
9066    *) as_dir=$as_dir/ ;;
9067  esac
9068    for ac_exec_ext in '' $ac_executable_extensions; do
9069  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9070    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9071    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9072    break 2
9073  fi
9074done
9075  done
9076IFS=$as_save_IFS
9077
9078fi
9079fi
9080DUMPBIN=$ac_cv_prog_DUMPBIN
9081if test -n "$DUMPBIN"; then
9082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9083printf "%s\n" "$DUMPBIN" >&6; }
9084else
9085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086printf "%s\n" "no" >&6; }
9087fi
9088
9089
9090    test -n "$DUMPBIN" && break
9091  done
9092fi
9093if test -z "$DUMPBIN"; then
9094  ac_ct_DUMPBIN=$DUMPBIN
9095  for ac_prog in dumpbin "link -dump"
9096do
9097  # Extract the first word of "$ac_prog", so it can be a program name with args.
9098set dummy $ac_prog; ac_word=$2
9099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100printf %s "checking for $ac_word... " >&6; }
9101if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9102then :
9103  printf %s "(cached) " >&6
9104else $as_nop
9105  if test -n "$ac_ct_DUMPBIN"; then
9106  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9107else
9108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109for as_dir in $PATH
9110do
9111  IFS=$as_save_IFS
9112  case $as_dir in #(((
9113    '') as_dir=./ ;;
9114    */) ;;
9115    *) as_dir=$as_dir/ ;;
9116  esac
9117    for ac_exec_ext in '' $ac_executable_extensions; do
9118  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9119    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9120    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9121    break 2
9122  fi
9123done
9124  done
9125IFS=$as_save_IFS
9126
9127fi
9128fi
9129ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9130if test -n "$ac_ct_DUMPBIN"; then
9131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9132printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9133else
9134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135printf "%s\n" "no" >&6; }
9136fi
9137
9138
9139  test -n "$ac_ct_DUMPBIN" && break
9140done
9141
9142  if test "x$ac_ct_DUMPBIN" = x; then
9143    DUMPBIN=":"
9144  else
9145    case $cross_compiling:$ac_tool_warned in
9146yes:)
9147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9148printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9149ac_tool_warned=yes ;;
9150esac
9151    DUMPBIN=$ac_ct_DUMPBIN
9152  fi
9153fi
9154
9155    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
9156    *COFF*)
9157      DUMPBIN="$DUMPBIN -symbols -headers"
9158      ;;
9159    *)
9160      DUMPBIN=:
9161      ;;
9162    esac
9163  fi
9164
9165  if test : != "$DUMPBIN"; then
9166    NM=$DUMPBIN
9167  fi
9168fi
9169test -z "$NM" && NM=nm
9170
9171
9172
9173
9174
9175
9176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9177printf %s "checking the name lister ($NM) interface... " >&6; }
9178if test ${lt_cv_nm_interface+y}
9179then :
9180  printf %s "(cached) " >&6
9181else $as_nop
9182  lt_cv_nm_interface="BSD nm"
9183  echo "int some_variable = 0;" > conftest.$ac_ext
9184  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9185  (eval "$ac_compile" 2>conftest.err)
9186  cat conftest.err >&5
9187  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9188  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9189  cat conftest.err >&5
9190  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9191  cat conftest.out >&5
9192  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9193    lt_cv_nm_interface="MS dumpbin"
9194  fi
9195  rm -f conftest*
9196fi
9197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9198printf "%s\n" "$lt_cv_nm_interface" >&6; }
9199
9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9201printf %s "checking whether ln -s works... " >&6; }
9202LN_S=$as_ln_s
9203if test "$LN_S" = "ln -s"; then
9204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9205printf "%s\n" "yes" >&6; }
9206else
9207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9208printf "%s\n" "no, using $LN_S" >&6; }
9209fi
9210
9211# find the maximum length of command line arguments
9212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9213printf %s "checking the maximum length of command line arguments... " >&6; }
9214if test ${lt_cv_sys_max_cmd_len+y}
9215then :
9216  printf %s "(cached) " >&6
9217else $as_nop
9218    i=0
9219  teststring=ABCD
9220
9221  case $build_os in
9222  msdosdjgpp*)
9223    # On DJGPP, this test can blow up pretty badly due to problems in libc
9224    # (any single argument exceeding 2000 bytes causes a buffer overrun
9225    # during glob expansion).  Even if it were fixed, the result of this
9226    # check would be larger than it should be.
9227    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9228    ;;
9229
9230  gnu*)
9231    # Under GNU Hurd, this test is not required because there is
9232    # no limit to the length of command line arguments.
9233    # Libtool will interpret -1 as no limit whatsoever
9234    lt_cv_sys_max_cmd_len=-1;
9235    ;;
9236
9237  cygwin* | mingw* | cegcc*)
9238    # On Win9x/ME, this test blows up -- it succeeds, but takes
9239    # about 5 minutes as the teststring grows exponentially.
9240    # Worse, since 9x/ME are not pre-emptively multitasking,
9241    # you end up with a "frozen" computer, even though with patience
9242    # the test eventually succeeds (with a max line length of 256k).
9243    # Instead, let's just punt: use the minimum linelength reported by
9244    # all of the supported platforms: 8192 (on NT/2K/XP).
9245    lt_cv_sys_max_cmd_len=8192;
9246    ;;
9247
9248  mint*)
9249    # On MiNT this can take a long time and run out of memory.
9250    lt_cv_sys_max_cmd_len=8192;
9251    ;;
9252
9253  amigaos*)
9254    # On AmigaOS with pdksh, this test takes hours, literally.
9255    # So we just punt and use a minimum line length of 8192.
9256    lt_cv_sys_max_cmd_len=8192;
9257    ;;
9258
9259  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
9260    # This has been around since 386BSD, at least.  Likely further.
9261    if test -x /sbin/sysctl; then
9262      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9263    elif test -x /usr/sbin/sysctl; then
9264      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9265    else
9266      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9267    fi
9268    # And add a safety zone
9269    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9270    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9271    ;;
9272
9273  interix*)
9274    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9275    lt_cv_sys_max_cmd_len=196608
9276    ;;
9277
9278  os2*)
9279    # The test takes a long time on OS/2.
9280    lt_cv_sys_max_cmd_len=8192
9281    ;;
9282
9283  osf*)
9284    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9285    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9286    # nice to cause kernel panics so lets avoid the loop below.
9287    # First set a reasonable default.
9288    lt_cv_sys_max_cmd_len=16384
9289    #
9290    if test -x /sbin/sysconfig; then
9291      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9292        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9293      esac
9294    fi
9295    ;;
9296  sco3.2v5*)
9297    lt_cv_sys_max_cmd_len=102400
9298    ;;
9299  sysv5* | sco5v6* | sysv4.2uw2*)
9300    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9301    if test -n "$kargmax"; then
9302      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
9303    else
9304      lt_cv_sys_max_cmd_len=32768
9305    fi
9306    ;;
9307  *)
9308    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9309    if test -n "$lt_cv_sys_max_cmd_len" && \
9310       test undefined != "$lt_cv_sys_max_cmd_len"; then
9311      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9312      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9313    else
9314      # Make teststring a little bigger before we do anything with it.
9315      # a 1K string should be a reasonable start.
9316      for i in 1 2 3 4 5 6 7 8; do
9317        teststring=$teststring$teststring
9318      done
9319      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9320      # If test is not a shell built-in, we'll probably end up computing a
9321      # maximum length that is only half of the actual maximum length, but
9322      # we can't tell.
9323      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9324	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9325	      test 17 != "$i" # 1/2 MB should be enough
9326      do
9327        i=`expr $i + 1`
9328        teststring=$teststring$teststring
9329      done
9330      # Only check the string length outside the loop.
9331      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9332      teststring=
9333      # Add a significant safety factor because C++ compilers can tack on
9334      # massive amounts of additional arguments before passing them to the
9335      # linker.  It appears as though 1/2 is a usable value.
9336      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9337    fi
9338    ;;
9339  esac
9340
9341fi
9342
9343if test -n "$lt_cv_sys_max_cmd_len"; then
9344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9345printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9346else
9347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9348printf "%s\n" "none" >&6; }
9349fi
9350max_cmd_len=$lt_cv_sys_max_cmd_len
9351
9352
9353
9354
9355
9356
9357: ${CP="cp -f"}
9358: ${MV="mv -f"}
9359: ${RM="rm -f"}
9360
9361if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9362  lt_unset=unset
9363else
9364  lt_unset=false
9365fi
9366
9367
9368
9369
9370
9371# test EBCDIC or ASCII
9372case `echo X|tr X '\101'` in
9373 A) # ASCII based system
9374    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9375  lt_SP2NL='tr \040 \012'
9376  lt_NL2SP='tr \015\012 \040\040'
9377  ;;
9378 *) # EBCDIC based system
9379  lt_SP2NL='tr \100 \n'
9380  lt_NL2SP='tr \r\n \100\100'
9381  ;;
9382esac
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9393printf %s "checking how to convert $build file names to $host format... " >&6; }
9394if test ${lt_cv_to_host_file_cmd+y}
9395then :
9396  printf %s "(cached) " >&6
9397else $as_nop
9398  case $host in
9399  *-*-mingw* )
9400    case $build in
9401      *-*-mingw* ) # actually msys
9402        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9403        ;;
9404      *-*-cygwin* )
9405        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9406        ;;
9407      * ) # otherwise, assume *nix
9408        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9409        ;;
9410    esac
9411    ;;
9412  *-*-cygwin* )
9413    case $build in
9414      *-*-mingw* ) # actually msys
9415        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9416        ;;
9417      *-*-cygwin* )
9418        lt_cv_to_host_file_cmd=func_convert_file_noop
9419        ;;
9420      * ) # otherwise, assume *nix
9421        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9422        ;;
9423    esac
9424    ;;
9425  * ) # unhandled hosts (and "normal" native builds)
9426    lt_cv_to_host_file_cmd=func_convert_file_noop
9427    ;;
9428esac
9429
9430fi
9431
9432to_host_file_cmd=$lt_cv_to_host_file_cmd
9433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9434printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9435
9436
9437
9438
9439
9440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9441printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9442if test ${lt_cv_to_tool_file_cmd+y}
9443then :
9444  printf %s "(cached) " >&6
9445else $as_nop
9446  #assume ordinary cross tools, or native build.
9447lt_cv_to_tool_file_cmd=func_convert_file_noop
9448case $host in
9449  *-*-mingw* )
9450    case $build in
9451      *-*-mingw* ) # actually msys
9452        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9453        ;;
9454    esac
9455    ;;
9456esac
9457
9458fi
9459
9460to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9462printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9463
9464
9465
9466
9467
9468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9469printf %s "checking for $LD option to reload object files... " >&6; }
9470if test ${lt_cv_ld_reload_flag+y}
9471then :
9472  printf %s "(cached) " >&6
9473else $as_nop
9474  lt_cv_ld_reload_flag='-r'
9475fi
9476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9477printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9478reload_flag=$lt_cv_ld_reload_flag
9479case $reload_flag in
9480"" | " "*) ;;
9481*) reload_flag=" $reload_flag" ;;
9482esac
9483reload_cmds='$LD$reload_flag -o $output$reload_objs'
9484case $host_os in
9485  cygwin* | mingw* | pw32* | cegcc*)
9486    if test yes != "$GCC"; then
9487      reload_cmds=false
9488    fi
9489    ;;
9490  darwin*)
9491    if test yes = "$GCC"; then
9492      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9493    else
9494      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9495    fi
9496    ;;
9497esac
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507if test -n "$ac_tool_prefix"; then
9508  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9509set dummy ${ac_tool_prefix}objdump; ac_word=$2
9510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511printf %s "checking for $ac_word... " >&6; }
9512if test ${ac_cv_prog_OBJDUMP+y}
9513then :
9514  printf %s "(cached) " >&6
9515else $as_nop
9516  if test -n "$OBJDUMP"; then
9517  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9518else
9519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520for as_dir in $PATH
9521do
9522  IFS=$as_save_IFS
9523  case $as_dir in #(((
9524    '') as_dir=./ ;;
9525    */) ;;
9526    *) as_dir=$as_dir/ ;;
9527  esac
9528    for ac_exec_ext in '' $ac_executable_extensions; do
9529  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9530    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9531    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9532    break 2
9533  fi
9534done
9535  done
9536IFS=$as_save_IFS
9537
9538fi
9539fi
9540OBJDUMP=$ac_cv_prog_OBJDUMP
9541if test -n "$OBJDUMP"; then
9542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9543printf "%s\n" "$OBJDUMP" >&6; }
9544else
9545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546printf "%s\n" "no" >&6; }
9547fi
9548
9549
9550fi
9551if test -z "$ac_cv_prog_OBJDUMP"; then
9552  ac_ct_OBJDUMP=$OBJDUMP
9553  # Extract the first word of "objdump", so it can be a program name with args.
9554set dummy objdump; ac_word=$2
9555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556printf %s "checking for $ac_word... " >&6; }
9557if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9558then :
9559  printf %s "(cached) " >&6
9560else $as_nop
9561  if test -n "$ac_ct_OBJDUMP"; then
9562  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9563else
9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567  IFS=$as_save_IFS
9568  case $as_dir in #(((
9569    '') as_dir=./ ;;
9570    */) ;;
9571    *) as_dir=$as_dir/ ;;
9572  esac
9573    for ac_exec_ext in '' $ac_executable_extensions; do
9574  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9575    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9576    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9577    break 2
9578  fi
9579done
9580  done
9581IFS=$as_save_IFS
9582
9583fi
9584fi
9585ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9586if test -n "$ac_ct_OBJDUMP"; then
9587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9588printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9589else
9590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591printf "%s\n" "no" >&6; }
9592fi
9593
9594  if test "x$ac_ct_OBJDUMP" = x; then
9595    OBJDUMP="false"
9596  else
9597    case $cross_compiling:$ac_tool_warned in
9598yes:)
9599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9600printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9601ac_tool_warned=yes ;;
9602esac
9603    OBJDUMP=$ac_ct_OBJDUMP
9604  fi
9605else
9606  OBJDUMP="$ac_cv_prog_OBJDUMP"
9607fi
9608
9609test -z "$OBJDUMP" && OBJDUMP=objdump
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9620printf %s "checking how to recognize dependent libraries... " >&6; }
9621if test ${lt_cv_deplibs_check_method+y}
9622then :
9623  printf %s "(cached) " >&6
9624else $as_nop
9625  lt_cv_file_magic_cmd='$MAGIC_CMD'
9626lt_cv_file_magic_test_file=
9627lt_cv_deplibs_check_method='unknown'
9628# Need to set the preceding variable on all platforms that support
9629# interlibrary dependencies.
9630# 'none' -- dependencies not supported.
9631# 'unknown' -- same as none, but documents that we really don't know.
9632# 'pass_all' -- all dependencies passed with no checks.
9633# 'test_compile' -- check by making test program.
9634# 'file_magic [[regex]]' -- check by looking for files in library path
9635# that responds to the $file_magic_cmd with a given extended regex.
9636# If you have 'file' or equivalent on your system and you're not sure
9637# whether 'pass_all' will *always* work, you probably want this one.
9638
9639case $host_os in
9640aix[4-9]*)
9641  lt_cv_deplibs_check_method=pass_all
9642  ;;
9643
9644beos*)
9645  lt_cv_deplibs_check_method=pass_all
9646  ;;
9647
9648bsdi[45]*)
9649  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9650  lt_cv_file_magic_cmd='/usr/bin/file -L'
9651  lt_cv_file_magic_test_file=/shlib/libc.so
9652  ;;
9653
9654cygwin*)
9655  # func_win32_libid is a shell function defined in ltmain.sh
9656  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9657  lt_cv_file_magic_cmd='func_win32_libid'
9658  ;;
9659
9660mingw* | pw32*)
9661  # Base MSYS/MinGW do not provide the 'file' command needed by
9662  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9663  # unless we find 'file', for example because we are cross-compiling.
9664  if ( file / ) >/dev/null 2>&1; then
9665    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9666    lt_cv_file_magic_cmd='func_win32_libid'
9667  else
9668    # Keep this pattern in sync with the one in func_win32_libid.
9669    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9670    lt_cv_file_magic_cmd='$OBJDUMP -f'
9671  fi
9672  ;;
9673
9674cegcc*)
9675  # use the weaker test based on 'objdump'. See mingw*.
9676  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9677  lt_cv_file_magic_cmd='$OBJDUMP -f'
9678  ;;
9679
9680darwin* | rhapsody*)
9681  lt_cv_deplibs_check_method=pass_all
9682  ;;
9683
9684freebsd* | dragonfly*)
9685  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9686    case $host_cpu in
9687    i*86 )
9688      # Not sure whether the presence of OpenBSD here was a mistake.
9689      # Let's accept both of them until this is cleared up.
9690      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9691      lt_cv_file_magic_cmd=/usr/bin/file
9692      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9693      ;;
9694    esac
9695  else
9696    lt_cv_deplibs_check_method=pass_all
9697  fi
9698  ;;
9699
9700haiku*)
9701  lt_cv_deplibs_check_method=pass_all
9702  ;;
9703
9704hpux10.20* | hpux11*)
9705  lt_cv_file_magic_cmd=/usr/bin/file
9706  case $host_cpu in
9707  ia64*)
9708    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9709    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9710    ;;
9711  hppa*64*)
9712    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]'
9713    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9714    ;;
9715  *)
9716    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9717    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9718    ;;
9719  esac
9720  ;;
9721
9722interix[3-9]*)
9723  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9724  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9725  ;;
9726
9727irix5* | irix6* | nonstopux*)
9728  case $LD in
9729  *-32|*"-32 ") libmagic=32-bit;;
9730  *-n32|*"-n32 ") libmagic=N32;;
9731  *-64|*"-64 ") libmagic=64-bit;;
9732  *) libmagic=never-match;;
9733  esac
9734  lt_cv_deplibs_check_method=pass_all
9735  ;;
9736
9737# This must be glibc/ELF.
9738linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9739  lt_cv_deplibs_check_method=pass_all
9740  ;;
9741
9742netbsd* | netbsdelf*-gnu)
9743  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9744    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9745  else
9746    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9747  fi
9748  ;;
9749
9750newos6*)
9751  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9752  lt_cv_file_magic_cmd=/usr/bin/file
9753  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9754  ;;
9755
9756*nto* | *qnx*)
9757  lt_cv_deplibs_check_method=pass_all
9758  ;;
9759
9760openbsd* | bitrig*)
9761  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9762    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9763  else
9764    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9765  fi
9766  ;;
9767
9768osf3* | osf4* | osf5*)
9769  lt_cv_deplibs_check_method=pass_all
9770  ;;
9771
9772rdos*)
9773  lt_cv_deplibs_check_method=pass_all
9774  ;;
9775
9776solaris*)
9777  lt_cv_deplibs_check_method=pass_all
9778  ;;
9779
9780sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9781  lt_cv_deplibs_check_method=pass_all
9782  ;;
9783
9784sysv4 | sysv4.3*)
9785  case $host_vendor in
9786  motorola)
9787    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]'
9788    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9789    ;;
9790  ncr)
9791    lt_cv_deplibs_check_method=pass_all
9792    ;;
9793  sequent)
9794    lt_cv_file_magic_cmd='/bin/file'
9795    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9796    ;;
9797  sni)
9798    lt_cv_file_magic_cmd='/bin/file'
9799    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9800    lt_cv_file_magic_test_file=/lib/libc.so
9801    ;;
9802  siemens)
9803    lt_cv_deplibs_check_method=pass_all
9804    ;;
9805  pc)
9806    lt_cv_deplibs_check_method=pass_all
9807    ;;
9808  esac
9809  ;;
9810
9811tpf*)
9812  lt_cv_deplibs_check_method=pass_all
9813  ;;
9814os2*)
9815  lt_cv_deplibs_check_method=pass_all
9816  ;;
9817esac
9818
9819fi
9820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9821printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9822
9823file_magic_glob=
9824want_nocaseglob=no
9825if test "$build" = "$host"; then
9826  case $host_os in
9827  mingw* | pw32*)
9828    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9829      want_nocaseglob=yes
9830    else
9831      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9832    fi
9833    ;;
9834  esac
9835fi
9836
9837file_magic_cmd=$lt_cv_file_magic_cmd
9838deplibs_check_method=$lt_cv_deplibs_check_method
9839test -z "$deplibs_check_method" && deplibs_check_method=unknown
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862if test -n "$ac_tool_prefix"; then
9863  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9864set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9866printf %s "checking for $ac_word... " >&6; }
9867if test ${ac_cv_prog_DLLTOOL+y}
9868then :
9869  printf %s "(cached) " >&6
9870else $as_nop
9871  if test -n "$DLLTOOL"; then
9872  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877  IFS=$as_save_IFS
9878  case $as_dir in #(((
9879    '') as_dir=./ ;;
9880    */) ;;
9881    *) as_dir=$as_dir/ ;;
9882  esac
9883    for ac_exec_ext in '' $ac_executable_extensions; do
9884  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9885    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9886    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9887    break 2
9888  fi
9889done
9890  done
9891IFS=$as_save_IFS
9892
9893fi
9894fi
9895DLLTOOL=$ac_cv_prog_DLLTOOL
9896if test -n "$DLLTOOL"; then
9897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9898printf "%s\n" "$DLLTOOL" >&6; }
9899else
9900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901printf "%s\n" "no" >&6; }
9902fi
9903
9904
9905fi
9906if test -z "$ac_cv_prog_DLLTOOL"; then
9907  ac_ct_DLLTOOL=$DLLTOOL
9908  # Extract the first word of "dlltool", so it can be a program name with args.
9909set dummy dlltool; ac_word=$2
9910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911printf %s "checking for $ac_word... " >&6; }
9912if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9913then :
9914  printf %s "(cached) " >&6
9915else $as_nop
9916  if test -n "$ac_ct_DLLTOOL"; then
9917  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9918else
9919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920for as_dir in $PATH
9921do
9922  IFS=$as_save_IFS
9923  case $as_dir in #(((
9924    '') as_dir=./ ;;
9925    */) ;;
9926    *) as_dir=$as_dir/ ;;
9927  esac
9928    for ac_exec_ext in '' $ac_executable_extensions; do
9929  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9930    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9931    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9932    break 2
9933  fi
9934done
9935  done
9936IFS=$as_save_IFS
9937
9938fi
9939fi
9940ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9941if test -n "$ac_ct_DLLTOOL"; then
9942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9943printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9944else
9945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946printf "%s\n" "no" >&6; }
9947fi
9948
9949  if test "x$ac_ct_DLLTOOL" = x; then
9950    DLLTOOL="false"
9951  else
9952    case $cross_compiling:$ac_tool_warned in
9953yes:)
9954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9955printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9956ac_tool_warned=yes ;;
9957esac
9958    DLLTOOL=$ac_ct_DLLTOOL
9959  fi
9960else
9961  DLLTOOL="$ac_cv_prog_DLLTOOL"
9962fi
9963
9964test -z "$DLLTOOL" && DLLTOOL=dlltool
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9976printf %s "checking how to associate runtime and link libraries... " >&6; }
9977if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9978then :
9979  printf %s "(cached) " >&6
9980else $as_nop
9981  lt_cv_sharedlib_from_linklib_cmd='unknown'
9982
9983case $host_os in
9984cygwin* | mingw* | pw32* | cegcc*)
9985  # two different shell functions defined in ltmain.sh;
9986  # decide which one to use based on capabilities of $DLLTOOL
9987  case `$DLLTOOL --help 2>&1` in
9988  *--identify-strict*)
9989    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9990    ;;
9991  *)
9992    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9993    ;;
9994  esac
9995  ;;
9996*)
9997  # fallback: assume linklib IS sharedlib
9998  lt_cv_sharedlib_from_linklib_cmd=$ECHO
9999  ;;
10000esac
10001
10002fi
10003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10004printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10005sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10006test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10007
10008
10009
10010
10011
10012
10013
10014
10015if test -n "$ac_tool_prefix"; then
10016  for ac_prog in ar
10017  do
10018    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10019set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021printf %s "checking for $ac_word... " >&6; }
10022if test ${ac_cv_prog_AR+y}
10023then :
10024  printf %s "(cached) " >&6
10025else $as_nop
10026  if test -n "$AR"; then
10027  ac_cv_prog_AR="$AR" # Let the user override the test.
10028else
10029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030for as_dir in $PATH
10031do
10032  IFS=$as_save_IFS
10033  case $as_dir in #(((
10034    '') as_dir=./ ;;
10035    */) ;;
10036    *) as_dir=$as_dir/ ;;
10037  esac
10038    for ac_exec_ext in '' $ac_executable_extensions; do
10039  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10040    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10041    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10042    break 2
10043  fi
10044done
10045  done
10046IFS=$as_save_IFS
10047
10048fi
10049fi
10050AR=$ac_cv_prog_AR
10051if test -n "$AR"; then
10052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10053printf "%s\n" "$AR" >&6; }
10054else
10055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056printf "%s\n" "no" >&6; }
10057fi
10058
10059
10060    test -n "$AR" && break
10061  done
10062fi
10063if test -z "$AR"; then
10064  ac_ct_AR=$AR
10065  for ac_prog in ar
10066do
10067  # Extract the first word of "$ac_prog", so it can be a program name with args.
10068set dummy $ac_prog; ac_word=$2
10069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070printf %s "checking for $ac_word... " >&6; }
10071if test ${ac_cv_prog_ac_ct_AR+y}
10072then :
10073  printf %s "(cached) " >&6
10074else $as_nop
10075  if test -n "$ac_ct_AR"; then
10076  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10077else
10078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079for as_dir in $PATH
10080do
10081  IFS=$as_save_IFS
10082  case $as_dir in #(((
10083    '') as_dir=./ ;;
10084    */) ;;
10085    *) as_dir=$as_dir/ ;;
10086  esac
10087    for ac_exec_ext in '' $ac_executable_extensions; do
10088  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10089    ac_cv_prog_ac_ct_AR="$ac_prog"
10090    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10091    break 2
10092  fi
10093done
10094  done
10095IFS=$as_save_IFS
10096
10097fi
10098fi
10099ac_ct_AR=$ac_cv_prog_ac_ct_AR
10100if test -n "$ac_ct_AR"; then
10101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10102printf "%s\n" "$ac_ct_AR" >&6; }
10103else
10104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105printf "%s\n" "no" >&6; }
10106fi
10107
10108
10109  test -n "$ac_ct_AR" && break
10110done
10111
10112  if test "x$ac_ct_AR" = x; then
10113    AR="false"
10114  else
10115    case $cross_compiling:$ac_tool_warned in
10116yes:)
10117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10118printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10119ac_tool_warned=yes ;;
10120esac
10121    AR=$ac_ct_AR
10122  fi
10123fi
10124
10125: ${AR=ar}
10126: ${AR_FLAGS=cr}
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10139printf %s "checking for archiver @FILE support... " >&6; }
10140if test ${lt_cv_ar_at_file+y}
10141then :
10142  printf %s "(cached) " >&6
10143else $as_nop
10144  lt_cv_ar_at_file=no
10145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h.  */
10147
10148int
10149main (void)
10150{
10151
10152  ;
10153  return 0;
10154}
10155_ACEOF
10156if ac_fn_c_try_compile "$LINENO"
10157then :
10158  echo conftest.$ac_objext > conftest.lst
10159      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10160      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10161  (eval $lt_ar_try) 2>&5
10162  ac_status=$?
10163  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10164  test $ac_status = 0; }
10165      if test 0 -eq "$ac_status"; then
10166	# Ensure the archiver fails upon bogus file names.
10167	rm -f conftest.$ac_objext libconftest.a
10168	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10169  (eval $lt_ar_try) 2>&5
10170  ac_status=$?
10171  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10172  test $ac_status = 0; }
10173	if test 0 -ne "$ac_status"; then
10174          lt_cv_ar_at_file=@
10175        fi
10176      fi
10177      rm -f conftest.* libconftest.a
10178
10179fi
10180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10181
10182fi
10183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10184printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10185
10186if test no = "$lt_cv_ar_at_file"; then
10187  archiver_list_spec=
10188else
10189  archiver_list_spec=$lt_cv_ar_at_file
10190fi
10191
10192
10193
10194
10195
10196
10197
10198if test -n "$ac_tool_prefix"; then
10199  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10200set dummy ${ac_tool_prefix}strip; ac_word=$2
10201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202printf %s "checking for $ac_word... " >&6; }
10203if test ${ac_cv_prog_STRIP+y}
10204then :
10205  printf %s "(cached) " >&6
10206else $as_nop
10207  if test -n "$STRIP"; then
10208  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10209else
10210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211for as_dir in $PATH
10212do
10213  IFS=$as_save_IFS
10214  case $as_dir in #(((
10215    '') as_dir=./ ;;
10216    */) ;;
10217    *) as_dir=$as_dir/ ;;
10218  esac
10219    for ac_exec_ext in '' $ac_executable_extensions; do
10220  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10221    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10222    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10223    break 2
10224  fi
10225done
10226  done
10227IFS=$as_save_IFS
10228
10229fi
10230fi
10231STRIP=$ac_cv_prog_STRIP
10232if test -n "$STRIP"; then
10233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10234printf "%s\n" "$STRIP" >&6; }
10235else
10236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237printf "%s\n" "no" >&6; }
10238fi
10239
10240
10241fi
10242if test -z "$ac_cv_prog_STRIP"; then
10243  ac_ct_STRIP=$STRIP
10244  # Extract the first word of "strip", so it can be a program name with args.
10245set dummy strip; ac_word=$2
10246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247printf %s "checking for $ac_word... " >&6; }
10248if test ${ac_cv_prog_ac_ct_STRIP+y}
10249then :
10250  printf %s "(cached) " >&6
10251else $as_nop
10252  if test -n "$ac_ct_STRIP"; then
10253  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10254else
10255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256for as_dir in $PATH
10257do
10258  IFS=$as_save_IFS
10259  case $as_dir in #(((
10260    '') as_dir=./ ;;
10261    */) ;;
10262    *) as_dir=$as_dir/ ;;
10263  esac
10264    for ac_exec_ext in '' $ac_executable_extensions; do
10265  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10266    ac_cv_prog_ac_ct_STRIP="strip"
10267    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10268    break 2
10269  fi
10270done
10271  done
10272IFS=$as_save_IFS
10273
10274fi
10275fi
10276ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10277if test -n "$ac_ct_STRIP"; then
10278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10279printf "%s\n" "$ac_ct_STRIP" >&6; }
10280else
10281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282printf "%s\n" "no" >&6; }
10283fi
10284
10285  if test "x$ac_ct_STRIP" = x; then
10286    STRIP=":"
10287  else
10288    case $cross_compiling:$ac_tool_warned in
10289yes:)
10290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10291printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10292ac_tool_warned=yes ;;
10293esac
10294    STRIP=$ac_ct_STRIP
10295  fi
10296else
10297  STRIP="$ac_cv_prog_STRIP"
10298fi
10299
10300test -z "$STRIP" && STRIP=:
10301
10302
10303
10304
10305
10306
10307if test -n "$ac_tool_prefix"; then
10308  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10309set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311printf %s "checking for $ac_word... " >&6; }
10312if test ${ac_cv_prog_RANLIB+y}
10313then :
10314  printf %s "(cached) " >&6
10315else $as_nop
10316  if test -n "$RANLIB"; then
10317  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10318else
10319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322  IFS=$as_save_IFS
10323  case $as_dir in #(((
10324    '') as_dir=./ ;;
10325    */) ;;
10326    *) as_dir=$as_dir/ ;;
10327  esac
10328    for ac_exec_ext in '' $ac_executable_extensions; do
10329  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10330    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10331    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10332    break 2
10333  fi
10334done
10335  done
10336IFS=$as_save_IFS
10337
10338fi
10339fi
10340RANLIB=$ac_cv_prog_RANLIB
10341if test -n "$RANLIB"; then
10342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10343printf "%s\n" "$RANLIB" >&6; }
10344else
10345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346printf "%s\n" "no" >&6; }
10347fi
10348
10349
10350fi
10351if test -z "$ac_cv_prog_RANLIB"; then
10352  ac_ct_RANLIB=$RANLIB
10353  # Extract the first word of "ranlib", so it can be a program name with args.
10354set dummy ranlib; ac_word=$2
10355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356printf %s "checking for $ac_word... " >&6; }
10357if test ${ac_cv_prog_ac_ct_RANLIB+y}
10358then :
10359  printf %s "(cached) " >&6
10360else $as_nop
10361  if test -n "$ac_ct_RANLIB"; then
10362  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10363else
10364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365for as_dir in $PATH
10366do
10367  IFS=$as_save_IFS
10368  case $as_dir in #(((
10369    '') as_dir=./ ;;
10370    */) ;;
10371    *) as_dir=$as_dir/ ;;
10372  esac
10373    for ac_exec_ext in '' $ac_executable_extensions; do
10374  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10375    ac_cv_prog_ac_ct_RANLIB="ranlib"
10376    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10377    break 2
10378  fi
10379done
10380  done
10381IFS=$as_save_IFS
10382
10383fi
10384fi
10385ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10386if test -n "$ac_ct_RANLIB"; then
10387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10388printf "%s\n" "$ac_ct_RANLIB" >&6; }
10389else
10390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391printf "%s\n" "no" >&6; }
10392fi
10393
10394  if test "x$ac_ct_RANLIB" = x; then
10395    RANLIB=":"
10396  else
10397    case $cross_compiling:$ac_tool_warned in
10398yes:)
10399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10400printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10401ac_tool_warned=yes ;;
10402esac
10403    RANLIB=$ac_ct_RANLIB
10404  fi
10405else
10406  RANLIB="$ac_cv_prog_RANLIB"
10407fi
10408
10409test -z "$RANLIB" && RANLIB=:
10410
10411
10412
10413
10414
10415
10416# Determine commands to create old-style static archives.
10417old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10418old_postinstall_cmds='chmod 644 $oldlib'
10419old_postuninstall_cmds=
10420
10421if test -n "$RANLIB"; then
10422  case $host_os in
10423  bitrig* | openbsd*)
10424    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10425    ;;
10426  *)
10427    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10428    ;;
10429  esac
10430  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10431fi
10432
10433case $host_os in
10434  darwin*)
10435    lock_old_archive_extraction=yes ;;
10436  *)
10437    lock_old_archive_extraction=no ;;
10438esac
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478# If no C compiler was specified, use CC.
10479LTCC=${LTCC-"$CC"}
10480
10481# If no C compiler flags were specified, use CFLAGS.
10482LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10483
10484# Allow CC to be a program name with arguments.
10485compiler=$CC
10486
10487
10488# Check for command to grab the raw symbol name followed by C symbol from nm.
10489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10490printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10491if test ${lt_cv_sys_global_symbol_pipe+y}
10492then :
10493  printf %s "(cached) " >&6
10494else $as_nop
10495
10496# These are sane defaults that work on at least a few old systems.
10497# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10498
10499# Character class describing NM global symbol codes.
10500symcode='[BCDEGRST]'
10501
10502# Regexp to match symbols that can be accessed directly from C.
10503sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10504
10505# Define system-specific variables.
10506case $host_os in
10507aix*)
10508  symcode='[BCDT]'
10509  ;;
10510cygwin* | mingw* | pw32* | cegcc*)
10511  symcode='[ABCDGISTW]'
10512  ;;
10513hpux*)
10514  if test ia64 = "$host_cpu"; then
10515    symcode='[ABCDEGRST]'
10516  fi
10517  ;;
10518irix* | nonstopux*)
10519  symcode='[BCDEGRST]'
10520  ;;
10521osf*)
10522  symcode='[BCDEGQRST]'
10523  ;;
10524solaris*)
10525  symcode='[BDRT]'
10526  ;;
10527sco3.2v5*)
10528  symcode='[DT]'
10529  ;;
10530sysv4.2uw2*)
10531  symcode='[DT]'
10532  ;;
10533sysv5* | sco5v6* | unixware* | OpenUNIX*)
10534  symcode='[ABDT]'
10535  ;;
10536sysv4)
10537  symcode='[DFNSTU]'
10538  ;;
10539esac
10540
10541# If we're using GNU nm, then use its standard symbol codes.
10542case `$NM -V 2>&1` in
10543*GNU* | *'with BFD'*)
10544  symcode='[ABCDGIRSTW]' ;;
10545esac
10546
10547if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10548  # Gets list of data symbols to import.
10549  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10550  # Adjust the below global symbol transforms to fixup imported variables.
10551  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10552  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10553  lt_c_name_lib_hook="\
10554  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10555  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10556else
10557  # Disable hooks by default.
10558  lt_cv_sys_global_symbol_to_import=
10559  lt_cdecl_hook=
10560  lt_c_name_hook=
10561  lt_c_name_lib_hook=
10562fi
10563
10564# Transform an extracted symbol line into a proper C declaration.
10565# Some systems (esp. on ia64) link data and code symbols differently,
10566# so use this general approach.
10567lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10568$lt_cdecl_hook\
10569" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10570" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10571
10572# Transform an extracted symbol line into symbol name and symbol address
10573lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10574$lt_c_name_hook\
10575" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10576" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10577
10578# Transform an extracted symbol line into symbol name with lib prefix and
10579# symbol address.
10580lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10581$lt_c_name_lib_hook\
10582" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10583" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10584" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10585
10586# Handle CRLF in mingw tool chain
10587opt_cr=
10588case $build_os in
10589mingw*)
10590  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10591  ;;
10592esac
10593
10594# Try without a prefix underscore, then with it.
10595for ac_symprfx in "" "_"; do
10596
10597  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10598  symxfrm="\\1 $ac_symprfx\\2 \\2"
10599
10600  # Write the raw and C identifiers.
10601  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10602    # Fake it for dumpbin and say T for any non-static function,
10603    # D for any global variable and I for any imported variable.
10604    # Also find C++ and __fastcall symbols from MSVC++,
10605    # which start with @ or ?.
10606    lt_cv_sys_global_symbol_pipe="$AWK '"\
10607"     {last_section=section; section=\$ 3};"\
10608"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10609"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10610"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10611"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10612"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10613"     \$ 0!~/External *\|/{next};"\
10614"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10615"     {if(hide[section]) next};"\
10616"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10617"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10618"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10619"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10620"     ' prfx=^$ac_symprfx"
10621  else
10622    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10623  fi
10624  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10625
10626  # Check to see that the pipe works correctly.
10627  pipe_works=no
10628
10629  rm -f conftest*
10630  cat > conftest.$ac_ext <<_LT_EOF
10631#ifdef __cplusplus
10632extern "C" {
10633#endif
10634char nm_test_var;
10635void nm_test_func(void);
10636void nm_test_func(void){}
10637#ifdef __cplusplus
10638}
10639#endif
10640int main(){nm_test_var='a';nm_test_func();return(0);}
10641_LT_EOF
10642
10643  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10644  (eval $ac_compile) 2>&5
10645  ac_status=$?
10646  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10647  test $ac_status = 0; }; then
10648    # Now try to grab the symbols.
10649    nlist=conftest.nm
10650    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10651    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10652      # Try sorting and uniquifying the output.
10653      if sort "$nlist" | uniq > "$nlist"T; then
10654	mv -f "$nlist"T "$nlist"
10655      else
10656	rm -f "$nlist"T
10657      fi
10658
10659      # Make sure that we snagged all the symbols we need.
10660      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10661	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10662	  cat <<_LT_EOF > conftest.$ac_ext
10663/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10664#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10665/* DATA imports from DLLs on WIN32 can't be const, because runtime
10666   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10667# define LT_DLSYM_CONST
10668#elif defined __osf__
10669/* This system does not cope well with relocations in const data.  */
10670# define LT_DLSYM_CONST
10671#else
10672# define LT_DLSYM_CONST const
10673#endif
10674
10675#ifdef __cplusplus
10676extern "C" {
10677#endif
10678
10679_LT_EOF
10680	  # Now generate the symbol file.
10681	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10682
10683	  cat <<_LT_EOF >> conftest.$ac_ext
10684
10685/* The mapping between symbol names and symbols.  */
10686LT_DLSYM_CONST struct {
10687  const char *name;
10688  void       *address;
10689}
10690lt__PROGRAM__LTX_preloaded_symbols[] =
10691{
10692  { "@PROGRAM@", (void *) 0 },
10693_LT_EOF
10694	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10695	  cat <<\_LT_EOF >> conftest.$ac_ext
10696  {0, (void *) 0}
10697};
10698
10699/* This works around a problem in FreeBSD linker */
10700#ifdef FREEBSD_WORKAROUND
10701static const void *lt_preloaded_setup() {
10702  return lt__PROGRAM__LTX_preloaded_symbols;
10703}
10704#endif
10705
10706#ifdef __cplusplus
10707}
10708#endif
10709_LT_EOF
10710	  # Now try linking the two files.
10711	  mv conftest.$ac_objext conftstm.$ac_objext
10712	  lt_globsym_save_LIBS=$LIBS
10713	  lt_globsym_save_CFLAGS=$CFLAGS
10714	  LIBS=conftstm.$ac_objext
10715	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10716	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10717  (eval $ac_link) 2>&5
10718  ac_status=$?
10719  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10720  test $ac_status = 0; } && test -s conftest$ac_exeext; then
10721	    pipe_works=yes
10722	  fi
10723	  LIBS=$lt_globsym_save_LIBS
10724	  CFLAGS=$lt_globsym_save_CFLAGS
10725	else
10726	  echo "cannot find nm_test_func in $nlist" >&5
10727	fi
10728      else
10729	echo "cannot find nm_test_var in $nlist" >&5
10730      fi
10731    else
10732      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10733    fi
10734  else
10735    echo "$progname: failed program was:" >&5
10736    cat conftest.$ac_ext >&5
10737  fi
10738  rm -rf conftest* conftst*
10739
10740  # Do not use the global_symbol_pipe unless it works.
10741  if test yes = "$pipe_works"; then
10742    break
10743  else
10744    lt_cv_sys_global_symbol_pipe=
10745  fi
10746done
10747
10748fi
10749
10750if test -z "$lt_cv_sys_global_symbol_pipe"; then
10751  lt_cv_sys_global_symbol_to_cdecl=
10752fi
10753if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10755printf "%s\n" "failed" >&6; }
10756else
10757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10758printf "%s\n" "ok" >&6; }
10759fi
10760
10761# Response file support.
10762if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10763  nm_file_list_spec='@'
10764elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10765  nm_file_list_spec='@'
10766fi
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10805printf %s "checking for sysroot... " >&6; }
10806
10807# Check whether --with-sysroot was given.
10808if test ${with_sysroot+y}
10809then :
10810  withval=$with_sysroot;
10811else $as_nop
10812  with_sysroot=no
10813fi
10814
10815
10816lt_sysroot=
10817case $with_sysroot in #(
10818 yes)
10819   if test yes = "$GCC"; then
10820     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10821   fi
10822   ;; #(
10823 /*)
10824   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10825   ;; #(
10826 no|'')
10827   ;; #(
10828 *)
10829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10830printf "%s\n" "$with_sysroot" >&6; }
10831   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10832   ;;
10833esac
10834
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10836printf "%s\n" "${lt_sysroot:-no}" >&6; }
10837
10838
10839
10840
10841
10842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10843printf %s "checking for a working dd... " >&6; }
10844if test ${ac_cv_path_lt_DD+y}
10845then :
10846  printf %s "(cached) " >&6
10847else $as_nop
10848  printf 0123456789abcdef0123456789abcdef >conftest.i
10849cat conftest.i conftest.i >conftest2.i
10850: ${lt_DD:=$DD}
10851if test -z "$lt_DD"; then
10852  ac_path_lt_DD_found=false
10853  # Loop through the user's path and test for each of PROGNAME-LIST
10854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855for as_dir in $PATH
10856do
10857  IFS=$as_save_IFS
10858  case $as_dir in #(((
10859    '') as_dir=./ ;;
10860    */) ;;
10861    *) as_dir=$as_dir/ ;;
10862  esac
10863    for ac_prog in dd
10864   do
10865    for ac_exec_ext in '' $ac_executable_extensions; do
10866      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10867      as_fn_executable_p "$ac_path_lt_DD" || continue
10868if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10869  cmp -s conftest.i conftest.out \
10870  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10871fi
10872      $ac_path_lt_DD_found && break 3
10873    done
10874  done
10875  done
10876IFS=$as_save_IFS
10877  if test -z "$ac_cv_path_lt_DD"; then
10878    :
10879  fi
10880else
10881  ac_cv_path_lt_DD=$lt_DD
10882fi
10883
10884rm -f conftest.i conftest2.i conftest.out
10885fi
10886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10887printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10888
10889
10890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10891printf %s "checking how to truncate binary pipes... " >&6; }
10892if test ${lt_cv_truncate_bin+y}
10893then :
10894  printf %s "(cached) " >&6
10895else $as_nop
10896  printf 0123456789abcdef0123456789abcdef >conftest.i
10897cat conftest.i conftest.i >conftest2.i
10898lt_cv_truncate_bin=
10899if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10900  cmp -s conftest.i conftest.out \
10901  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10902fi
10903rm -f conftest.i conftest2.i conftest.out
10904test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10905fi
10906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10907printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10908
10909
10910
10911
10912
10913
10914
10915# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10916func_cc_basename ()
10917{
10918    for cc_temp in $*""; do
10919      case $cc_temp in
10920        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10921        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10922        \-*) ;;
10923        *) break;;
10924      esac
10925    done
10926    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10927}
10928
10929# Check whether --enable-libtool-lock was given.
10930if test ${enable_libtool_lock+y}
10931then :
10932  enableval=$enable_libtool_lock;
10933fi
10934
10935test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10936
10937# Some flags need to be propagated to the compiler or linker for good
10938# libtool support.
10939case $host in
10940ia64-*-hpux*)
10941  # Find out what ABI is being produced by ac_compile, and set mode
10942  # options accordingly.
10943  echo 'int i;' > conftest.$ac_ext
10944  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10945  (eval $ac_compile) 2>&5
10946  ac_status=$?
10947  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10948  test $ac_status = 0; }; then
10949    case `/usr/bin/file conftest.$ac_objext` in
10950      *ELF-32*)
10951	HPUX_IA64_MODE=32
10952	;;
10953      *ELF-64*)
10954	HPUX_IA64_MODE=64
10955	;;
10956    esac
10957  fi
10958  rm -rf conftest*
10959  ;;
10960*-*-irix6*)
10961  # Find out what ABI is being produced by ac_compile, and set linker
10962  # options accordingly.
10963  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10964  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10965  (eval $ac_compile) 2>&5
10966  ac_status=$?
10967  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10968  test $ac_status = 0; }; then
10969    if test yes = "$lt_cv_prog_gnu_ld"; then
10970      case `/usr/bin/file conftest.$ac_objext` in
10971	*32-bit*)
10972	  LD="${LD-ld} -melf32bsmip"
10973	  ;;
10974	*N32*)
10975	  LD="${LD-ld} -melf32bmipn32"
10976	  ;;
10977	*64-bit*)
10978	  LD="${LD-ld} -melf64bmip"
10979	;;
10980      esac
10981    else
10982      case `/usr/bin/file conftest.$ac_objext` in
10983	*32-bit*)
10984	  LD="${LD-ld} -32"
10985	  ;;
10986	*N32*)
10987	  LD="${LD-ld} -n32"
10988	  ;;
10989	*64-bit*)
10990	  LD="${LD-ld} -64"
10991	  ;;
10992      esac
10993    fi
10994  fi
10995  rm -rf conftest*
10996  ;;
10997
10998mips64*-*linux*)
10999  # Find out what ABI is being produced by ac_compile, and set linker
11000  # options accordingly.
11001  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11002  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11003  (eval $ac_compile) 2>&5
11004  ac_status=$?
11005  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11006  test $ac_status = 0; }; then
11007    emul=elf
11008    case `/usr/bin/file conftest.$ac_objext` in
11009      *32-bit*)
11010	emul="${emul}32"
11011	;;
11012      *64-bit*)
11013	emul="${emul}64"
11014	;;
11015    esac
11016    case `/usr/bin/file conftest.$ac_objext` in
11017      *MSB*)
11018	emul="${emul}btsmip"
11019	;;
11020      *LSB*)
11021	emul="${emul}ltsmip"
11022	;;
11023    esac
11024    case `/usr/bin/file conftest.$ac_objext` in
11025      *N32*)
11026	emul="${emul}n32"
11027	;;
11028    esac
11029    LD="${LD-ld} -m $emul"
11030  fi
11031  rm -rf conftest*
11032  ;;
11033
11034x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11035s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11036  # Find out what ABI is being produced by ac_compile, and set linker
11037  # options accordingly.  Note that the listed cases only cover the
11038  # situations where additional linker options are needed (such as when
11039  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11040  # vice versa); the common cases where no linker options are needed do
11041  # not appear in the list.
11042  echo 'int i;' > conftest.$ac_ext
11043  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11044  (eval $ac_compile) 2>&5
11045  ac_status=$?
11046  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047  test $ac_status = 0; }; then
11048    case `/usr/bin/file conftest.o` in
11049      *32-bit*)
11050	case $host in
11051	  x86_64-*kfreebsd*-gnu)
11052	    LD="${LD-ld} -m elf_i386_fbsd"
11053	    ;;
11054	  x86_64-*linux*)
11055	    case `/usr/bin/file conftest.o` in
11056	      *x86-64*)
11057		LD="${LD-ld} -m elf32_x86_64"
11058		;;
11059	      *)
11060		LD="${LD-ld} -m elf_i386"
11061		;;
11062	    esac
11063	    ;;
11064	  powerpc64le-*linux*)
11065	    LD="${LD-ld} -m elf32lppclinux"
11066	    ;;
11067	  powerpc64-*linux*)
11068	    LD="${LD-ld} -m elf32ppclinux"
11069	    ;;
11070	  s390x-*linux*)
11071	    LD="${LD-ld} -m elf_s390"
11072	    ;;
11073	  sparc64-*linux*)
11074	    LD="${LD-ld} -m elf32_sparc"
11075	    ;;
11076	esac
11077	;;
11078      *64-bit*)
11079	case $host in
11080	  x86_64-*kfreebsd*-gnu)
11081	    LD="${LD-ld} -m elf_x86_64_fbsd"
11082	    ;;
11083	  x86_64-*linux*)
11084	    LD="${LD-ld} -m elf_x86_64"
11085	    ;;
11086	  powerpcle-*linux*)
11087	    LD="${LD-ld} -m elf64lppc"
11088	    ;;
11089	  powerpc-*linux*)
11090	    LD="${LD-ld} -m elf64ppc"
11091	    ;;
11092	  s390*-*linux*|s390*-*tpf*)
11093	    LD="${LD-ld} -m elf64_s390"
11094	    ;;
11095	  sparc*-*linux*)
11096	    LD="${LD-ld} -m elf64_sparc"
11097	    ;;
11098	esac
11099	;;
11100    esac
11101  fi
11102  rm -rf conftest*
11103  ;;
11104
11105*-*-sco3.2v5*)
11106  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11107  SAVE_CFLAGS=$CFLAGS
11108  CFLAGS="$CFLAGS -belf"
11109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11110printf %s "checking whether the C compiler needs -belf... " >&6; }
11111if test ${lt_cv_cc_needs_belf+y}
11112then :
11113  printf %s "(cached) " >&6
11114else $as_nop
11115  ac_ext=c
11116ac_cpp='$CPP $CPPFLAGS'
11117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11119ac_compiler_gnu=$ac_cv_c_compiler_gnu
11120
11121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122/* end confdefs.h.  */
11123
11124int
11125main (void)
11126{
11127
11128  ;
11129  return 0;
11130}
11131_ACEOF
11132if ac_fn_c_try_link "$LINENO"
11133then :
11134  lt_cv_cc_needs_belf=yes
11135else $as_nop
11136  lt_cv_cc_needs_belf=no
11137fi
11138rm -f core conftest.err conftest.$ac_objext conftest.beam \
11139    conftest$ac_exeext conftest.$ac_ext
11140     ac_ext=c
11141ac_cpp='$CPP $CPPFLAGS'
11142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144ac_compiler_gnu=$ac_cv_c_compiler_gnu
11145
11146fi
11147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11148printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11149  if test yes != "$lt_cv_cc_needs_belf"; then
11150    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11151    CFLAGS=$SAVE_CFLAGS
11152  fi
11153  ;;
11154*-*solaris*)
11155  # Find out what ABI is being produced by ac_compile, and set linker
11156  # options accordingly.
11157  echo 'int i;' > conftest.$ac_ext
11158  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11159  (eval $ac_compile) 2>&5
11160  ac_status=$?
11161  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11162  test $ac_status = 0; }; then
11163    case `/usr/bin/file conftest.o` in
11164    *64-bit*)
11165      case $lt_cv_prog_gnu_ld in
11166      yes*)
11167        case $host in
11168        i?86-*-solaris*|x86_64-*-solaris*)
11169          LD="${LD-ld} -m elf_x86_64"
11170          ;;
11171        sparc*-*-solaris*)
11172          LD="${LD-ld} -m elf64_sparc"
11173          ;;
11174        esac
11175        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11176        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11177          LD=${LD-ld}_sol2
11178        fi
11179        ;;
11180      *)
11181	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11182	  LD="${LD-ld} -64"
11183	fi
11184	;;
11185      esac
11186      ;;
11187    esac
11188  fi
11189  rm -rf conftest*
11190  ;;
11191esac
11192
11193need_locks=$enable_libtool_lock
11194
11195if test -n "$ac_tool_prefix"; then
11196  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11197set dummy ${ac_tool_prefix}mt; ac_word=$2
11198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11199printf %s "checking for $ac_word... " >&6; }
11200if test ${ac_cv_prog_MANIFEST_TOOL+y}
11201then :
11202  printf %s "(cached) " >&6
11203else $as_nop
11204  if test -n "$MANIFEST_TOOL"; then
11205  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11206else
11207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $PATH
11209do
11210  IFS=$as_save_IFS
11211  case $as_dir in #(((
11212    '') as_dir=./ ;;
11213    */) ;;
11214    *) as_dir=$as_dir/ ;;
11215  esac
11216    for ac_exec_ext in '' $ac_executable_extensions; do
11217  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11218    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11219    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11220    break 2
11221  fi
11222done
11223  done
11224IFS=$as_save_IFS
11225
11226fi
11227fi
11228MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11229if test -n "$MANIFEST_TOOL"; then
11230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11231printf "%s\n" "$MANIFEST_TOOL" >&6; }
11232else
11233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234printf "%s\n" "no" >&6; }
11235fi
11236
11237
11238fi
11239if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11240  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11241  # Extract the first word of "mt", so it can be a program name with args.
11242set dummy mt; ac_word=$2
11243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244printf %s "checking for $ac_word... " >&6; }
11245if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11246then :
11247  printf %s "(cached) " >&6
11248else $as_nop
11249  if test -n "$ac_ct_MANIFEST_TOOL"; then
11250  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11251else
11252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253for as_dir in $PATH
11254do
11255  IFS=$as_save_IFS
11256  case $as_dir in #(((
11257    '') as_dir=./ ;;
11258    */) ;;
11259    *) as_dir=$as_dir/ ;;
11260  esac
11261    for ac_exec_ext in '' $ac_executable_extensions; do
11262  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11263    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11264    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11265    break 2
11266  fi
11267done
11268  done
11269IFS=$as_save_IFS
11270
11271fi
11272fi
11273ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11274if test -n "$ac_ct_MANIFEST_TOOL"; then
11275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11276printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11277else
11278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279printf "%s\n" "no" >&6; }
11280fi
11281
11282  if test "x$ac_ct_MANIFEST_TOOL" = x; then
11283    MANIFEST_TOOL=":"
11284  else
11285    case $cross_compiling:$ac_tool_warned in
11286yes:)
11287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11288printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11289ac_tool_warned=yes ;;
11290esac
11291    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11292  fi
11293else
11294  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11295fi
11296
11297test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11299printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11300if test ${lt_cv_path_mainfest_tool+y}
11301then :
11302  printf %s "(cached) " >&6
11303else $as_nop
11304  lt_cv_path_mainfest_tool=no
11305  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11306  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11307  cat conftest.err >&5
11308  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11309    lt_cv_path_mainfest_tool=yes
11310  fi
11311  rm -f conftest*
11312fi
11313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11314printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11315if test yes != "$lt_cv_path_mainfest_tool"; then
11316  MANIFEST_TOOL=:
11317fi
11318
11319
11320
11321
11322
11323
11324  case $host_os in
11325    rhapsody* | darwin*)
11326    if test -n "$ac_tool_prefix"; then
11327  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11328set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11330printf %s "checking for $ac_word... " >&6; }
11331if test ${ac_cv_prog_DSYMUTIL+y}
11332then :
11333  printf %s "(cached) " >&6
11334else $as_nop
11335  if test -n "$DSYMUTIL"; then
11336  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11337else
11338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339for as_dir in $PATH
11340do
11341  IFS=$as_save_IFS
11342  case $as_dir in #(((
11343    '') as_dir=./ ;;
11344    */) ;;
11345    *) as_dir=$as_dir/ ;;
11346  esac
11347    for ac_exec_ext in '' $ac_executable_extensions; do
11348  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11349    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11350    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11351    break 2
11352  fi
11353done
11354  done
11355IFS=$as_save_IFS
11356
11357fi
11358fi
11359DSYMUTIL=$ac_cv_prog_DSYMUTIL
11360if test -n "$DSYMUTIL"; then
11361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11362printf "%s\n" "$DSYMUTIL" >&6; }
11363else
11364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365printf "%s\n" "no" >&6; }
11366fi
11367
11368
11369fi
11370if test -z "$ac_cv_prog_DSYMUTIL"; then
11371  ac_ct_DSYMUTIL=$DSYMUTIL
11372  # Extract the first word of "dsymutil", so it can be a program name with args.
11373set dummy dsymutil; ac_word=$2
11374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375printf %s "checking for $ac_word... " >&6; }
11376if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11377then :
11378  printf %s "(cached) " >&6
11379else $as_nop
11380  if test -n "$ac_ct_DSYMUTIL"; then
11381  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11382else
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386  IFS=$as_save_IFS
11387  case $as_dir in #(((
11388    '') as_dir=./ ;;
11389    */) ;;
11390    *) as_dir=$as_dir/ ;;
11391  esac
11392    for ac_exec_ext in '' $ac_executable_extensions; do
11393  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11394    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11395    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11396    break 2
11397  fi
11398done
11399  done
11400IFS=$as_save_IFS
11401
11402fi
11403fi
11404ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11405if test -n "$ac_ct_DSYMUTIL"; then
11406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11407printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11408else
11409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410printf "%s\n" "no" >&6; }
11411fi
11412
11413  if test "x$ac_ct_DSYMUTIL" = x; then
11414    DSYMUTIL=":"
11415  else
11416    case $cross_compiling:$ac_tool_warned in
11417yes:)
11418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11419printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11420ac_tool_warned=yes ;;
11421esac
11422    DSYMUTIL=$ac_ct_DSYMUTIL
11423  fi
11424else
11425  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11426fi
11427
11428    if test -n "$ac_tool_prefix"; then
11429  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11430set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432printf %s "checking for $ac_word... " >&6; }
11433if test ${ac_cv_prog_NMEDIT+y}
11434then :
11435  printf %s "(cached) " >&6
11436else $as_nop
11437  if test -n "$NMEDIT"; then
11438  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11439else
11440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441for as_dir in $PATH
11442do
11443  IFS=$as_save_IFS
11444  case $as_dir in #(((
11445    '') as_dir=./ ;;
11446    */) ;;
11447    *) as_dir=$as_dir/ ;;
11448  esac
11449    for ac_exec_ext in '' $ac_executable_extensions; do
11450  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11451    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11452    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11453    break 2
11454  fi
11455done
11456  done
11457IFS=$as_save_IFS
11458
11459fi
11460fi
11461NMEDIT=$ac_cv_prog_NMEDIT
11462if test -n "$NMEDIT"; then
11463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11464printf "%s\n" "$NMEDIT" >&6; }
11465else
11466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467printf "%s\n" "no" >&6; }
11468fi
11469
11470
11471fi
11472if test -z "$ac_cv_prog_NMEDIT"; then
11473  ac_ct_NMEDIT=$NMEDIT
11474  # Extract the first word of "nmedit", so it can be a program name with args.
11475set dummy nmedit; ac_word=$2
11476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477printf %s "checking for $ac_word... " >&6; }
11478if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11479then :
11480  printf %s "(cached) " >&6
11481else $as_nop
11482  if test -n "$ac_ct_NMEDIT"; then
11483  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11484else
11485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486for as_dir in $PATH
11487do
11488  IFS=$as_save_IFS
11489  case $as_dir in #(((
11490    '') as_dir=./ ;;
11491    */) ;;
11492    *) as_dir=$as_dir/ ;;
11493  esac
11494    for ac_exec_ext in '' $ac_executable_extensions; do
11495  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11496    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11497    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11498    break 2
11499  fi
11500done
11501  done
11502IFS=$as_save_IFS
11503
11504fi
11505fi
11506ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11507if test -n "$ac_ct_NMEDIT"; then
11508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11509printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11510else
11511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512printf "%s\n" "no" >&6; }
11513fi
11514
11515  if test "x$ac_ct_NMEDIT" = x; then
11516    NMEDIT=":"
11517  else
11518    case $cross_compiling:$ac_tool_warned in
11519yes:)
11520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11521printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11522ac_tool_warned=yes ;;
11523esac
11524    NMEDIT=$ac_ct_NMEDIT
11525  fi
11526else
11527  NMEDIT="$ac_cv_prog_NMEDIT"
11528fi
11529
11530    if test -n "$ac_tool_prefix"; then
11531  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11532set dummy ${ac_tool_prefix}lipo; ac_word=$2
11533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534printf %s "checking for $ac_word... " >&6; }
11535if test ${ac_cv_prog_LIPO+y}
11536then :
11537  printf %s "(cached) " >&6
11538else $as_nop
11539  if test -n "$LIPO"; then
11540  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11541else
11542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543for as_dir in $PATH
11544do
11545  IFS=$as_save_IFS
11546  case $as_dir in #(((
11547    '') as_dir=./ ;;
11548    */) ;;
11549    *) as_dir=$as_dir/ ;;
11550  esac
11551    for ac_exec_ext in '' $ac_executable_extensions; do
11552  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11553    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11554    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11555    break 2
11556  fi
11557done
11558  done
11559IFS=$as_save_IFS
11560
11561fi
11562fi
11563LIPO=$ac_cv_prog_LIPO
11564if test -n "$LIPO"; then
11565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11566printf "%s\n" "$LIPO" >&6; }
11567else
11568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569printf "%s\n" "no" >&6; }
11570fi
11571
11572
11573fi
11574if test -z "$ac_cv_prog_LIPO"; then
11575  ac_ct_LIPO=$LIPO
11576  # Extract the first word of "lipo", so it can be a program name with args.
11577set dummy lipo; ac_word=$2
11578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579printf %s "checking for $ac_word... " >&6; }
11580if test ${ac_cv_prog_ac_ct_LIPO+y}
11581then :
11582  printf %s "(cached) " >&6
11583else $as_nop
11584  if test -n "$ac_ct_LIPO"; then
11585  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11586else
11587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588for as_dir in $PATH
11589do
11590  IFS=$as_save_IFS
11591  case $as_dir in #(((
11592    '') as_dir=./ ;;
11593    */) ;;
11594    *) as_dir=$as_dir/ ;;
11595  esac
11596    for ac_exec_ext in '' $ac_executable_extensions; do
11597  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11598    ac_cv_prog_ac_ct_LIPO="lipo"
11599    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11600    break 2
11601  fi
11602done
11603  done
11604IFS=$as_save_IFS
11605
11606fi
11607fi
11608ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11609if test -n "$ac_ct_LIPO"; then
11610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11611printf "%s\n" "$ac_ct_LIPO" >&6; }
11612else
11613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614printf "%s\n" "no" >&6; }
11615fi
11616
11617  if test "x$ac_ct_LIPO" = x; then
11618    LIPO=":"
11619  else
11620    case $cross_compiling:$ac_tool_warned in
11621yes:)
11622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11623printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11624ac_tool_warned=yes ;;
11625esac
11626    LIPO=$ac_ct_LIPO
11627  fi
11628else
11629  LIPO="$ac_cv_prog_LIPO"
11630fi
11631
11632    if test -n "$ac_tool_prefix"; then
11633  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11634set dummy ${ac_tool_prefix}otool; ac_word=$2
11635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636printf %s "checking for $ac_word... " >&6; }
11637if test ${ac_cv_prog_OTOOL+y}
11638then :
11639  printf %s "(cached) " >&6
11640else $as_nop
11641  if test -n "$OTOOL"; then
11642  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11643else
11644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645for as_dir in $PATH
11646do
11647  IFS=$as_save_IFS
11648  case $as_dir in #(((
11649    '') as_dir=./ ;;
11650    */) ;;
11651    *) as_dir=$as_dir/ ;;
11652  esac
11653    for ac_exec_ext in '' $ac_executable_extensions; do
11654  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11655    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11656    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11657    break 2
11658  fi
11659done
11660  done
11661IFS=$as_save_IFS
11662
11663fi
11664fi
11665OTOOL=$ac_cv_prog_OTOOL
11666if test -n "$OTOOL"; then
11667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11668printf "%s\n" "$OTOOL" >&6; }
11669else
11670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671printf "%s\n" "no" >&6; }
11672fi
11673
11674
11675fi
11676if test -z "$ac_cv_prog_OTOOL"; then
11677  ac_ct_OTOOL=$OTOOL
11678  # Extract the first word of "otool", so it can be a program name with args.
11679set dummy otool; ac_word=$2
11680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681printf %s "checking for $ac_word... " >&6; }
11682if test ${ac_cv_prog_ac_ct_OTOOL+y}
11683then :
11684  printf %s "(cached) " >&6
11685else $as_nop
11686  if test -n "$ac_ct_OTOOL"; then
11687  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11688else
11689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690for as_dir in $PATH
11691do
11692  IFS=$as_save_IFS
11693  case $as_dir in #(((
11694    '') as_dir=./ ;;
11695    */) ;;
11696    *) as_dir=$as_dir/ ;;
11697  esac
11698    for ac_exec_ext in '' $ac_executable_extensions; do
11699  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11700    ac_cv_prog_ac_ct_OTOOL="otool"
11701    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11702    break 2
11703  fi
11704done
11705  done
11706IFS=$as_save_IFS
11707
11708fi
11709fi
11710ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11711if test -n "$ac_ct_OTOOL"; then
11712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11713printf "%s\n" "$ac_ct_OTOOL" >&6; }
11714else
11715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716printf "%s\n" "no" >&6; }
11717fi
11718
11719  if test "x$ac_ct_OTOOL" = x; then
11720    OTOOL=":"
11721  else
11722    case $cross_compiling:$ac_tool_warned in
11723yes:)
11724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11725printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11726ac_tool_warned=yes ;;
11727esac
11728    OTOOL=$ac_ct_OTOOL
11729  fi
11730else
11731  OTOOL="$ac_cv_prog_OTOOL"
11732fi
11733
11734    if test -n "$ac_tool_prefix"; then
11735  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11736set dummy ${ac_tool_prefix}otool64; ac_word=$2
11737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738printf %s "checking for $ac_word... " >&6; }
11739if test ${ac_cv_prog_OTOOL64+y}
11740then :
11741  printf %s "(cached) " >&6
11742else $as_nop
11743  if test -n "$OTOOL64"; then
11744  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11745else
11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749  IFS=$as_save_IFS
11750  case $as_dir in #(((
11751    '') as_dir=./ ;;
11752    */) ;;
11753    *) as_dir=$as_dir/ ;;
11754  esac
11755    for ac_exec_ext in '' $ac_executable_extensions; do
11756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11757    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11759    break 2
11760  fi
11761done
11762  done
11763IFS=$as_save_IFS
11764
11765fi
11766fi
11767OTOOL64=$ac_cv_prog_OTOOL64
11768if test -n "$OTOOL64"; then
11769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11770printf "%s\n" "$OTOOL64" >&6; }
11771else
11772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773printf "%s\n" "no" >&6; }
11774fi
11775
11776
11777fi
11778if test -z "$ac_cv_prog_OTOOL64"; then
11779  ac_ct_OTOOL64=$OTOOL64
11780  # Extract the first word of "otool64", so it can be a program name with args.
11781set dummy otool64; ac_word=$2
11782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783printf %s "checking for $ac_word... " >&6; }
11784if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11785then :
11786  printf %s "(cached) " >&6
11787else $as_nop
11788  if test -n "$ac_ct_OTOOL64"; then
11789  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11790else
11791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792for as_dir in $PATH
11793do
11794  IFS=$as_save_IFS
11795  case $as_dir in #(((
11796    '') as_dir=./ ;;
11797    */) ;;
11798    *) as_dir=$as_dir/ ;;
11799  esac
11800    for ac_exec_ext in '' $ac_executable_extensions; do
11801  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11802    ac_cv_prog_ac_ct_OTOOL64="otool64"
11803    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11804    break 2
11805  fi
11806done
11807  done
11808IFS=$as_save_IFS
11809
11810fi
11811fi
11812ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11813if test -n "$ac_ct_OTOOL64"; then
11814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11815printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11816else
11817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818printf "%s\n" "no" >&6; }
11819fi
11820
11821  if test "x$ac_ct_OTOOL64" = x; then
11822    OTOOL64=":"
11823  else
11824    case $cross_compiling:$ac_tool_warned in
11825yes:)
11826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11827printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11828ac_tool_warned=yes ;;
11829esac
11830    OTOOL64=$ac_ct_OTOOL64
11831  fi
11832else
11833  OTOOL64="$ac_cv_prog_OTOOL64"
11834fi
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11863printf %s "checking for -single_module linker flag... " >&6; }
11864if test ${lt_cv_apple_cc_single_mod+y}
11865then :
11866  printf %s "(cached) " >&6
11867else $as_nop
11868  lt_cv_apple_cc_single_mod=no
11869      if test -z "$LT_MULTI_MODULE"; then
11870	# By default we will add the -single_module flag. You can override
11871	# by either setting the environment variable LT_MULTI_MODULE
11872	# non-empty at configure time, or by adding -multi_module to the
11873	# link flags.
11874	rm -rf libconftest.dylib*
11875	echo "int foo(void){return 1;}" > conftest.c
11876	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11877-dynamiclib -Wl,-single_module conftest.c" >&5
11878	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11879	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11880        _lt_result=$?
11881	# If there is a non-empty error log, and "single_module"
11882	# appears in it, assume the flag caused a linker warning
11883        if test -s conftest.err && $GREP single_module conftest.err; then
11884	  cat conftest.err >&5
11885	# Otherwise, if the output was created with a 0 exit code from
11886	# the compiler, it worked.
11887	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11888	  lt_cv_apple_cc_single_mod=yes
11889	else
11890	  cat conftest.err >&5
11891	fi
11892	rm -rf libconftest.dylib*
11893	rm -f conftest.*
11894      fi
11895fi
11896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11897printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11898
11899    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11900printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11901if test ${lt_cv_ld_exported_symbols_list+y}
11902then :
11903  printf %s "(cached) " >&6
11904else $as_nop
11905  lt_cv_ld_exported_symbols_list=no
11906      save_LDFLAGS=$LDFLAGS
11907      echo "_main" > conftest.sym
11908      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11909      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910/* end confdefs.h.  */
11911
11912int
11913main (void)
11914{
11915
11916  ;
11917  return 0;
11918}
11919_ACEOF
11920if ac_fn_c_try_link "$LINENO"
11921then :
11922  lt_cv_ld_exported_symbols_list=yes
11923else $as_nop
11924  lt_cv_ld_exported_symbols_list=no
11925fi
11926rm -f core conftest.err conftest.$ac_objext conftest.beam \
11927    conftest$ac_exeext conftest.$ac_ext
11928	LDFLAGS=$save_LDFLAGS
11929
11930fi
11931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11932printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11933
11934    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11935printf %s "checking for -force_load linker flag... " >&6; }
11936if test ${lt_cv_ld_force_load+y}
11937then :
11938  printf %s "(cached) " >&6
11939else $as_nop
11940  lt_cv_ld_force_load=no
11941      cat > conftest.c << _LT_EOF
11942int forced_loaded() { return 2;}
11943_LT_EOF
11944      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11945      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11946      echo "$AR cr libconftest.a conftest.o" >&5
11947      $AR cr libconftest.a conftest.o 2>&5
11948      echo "$RANLIB libconftest.a" >&5
11949      $RANLIB libconftest.a 2>&5
11950      cat > conftest.c << _LT_EOF
11951int main() { return 0;}
11952_LT_EOF
11953      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11954      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11955      _lt_result=$?
11956      if test -s conftest.err && $GREP force_load conftest.err; then
11957	cat conftest.err >&5
11958      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11959	lt_cv_ld_force_load=yes
11960      else
11961	cat conftest.err >&5
11962      fi
11963        rm -f conftest.err libconftest.a conftest conftest.c
11964        rm -rf conftest.dSYM
11965
11966fi
11967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11968printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11969    case $host_os in
11970    rhapsody* | darwin1.[012])
11971      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11972    darwin1.*)
11973      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11974    darwin*) # darwin 5.x on
11975      # if running on 10.5 or later, the deployment target defaults
11976      # to the OS version, if on x86, and 10.4, the deployment
11977      # target defaults to 10.4. Don't you love it?
11978      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11979	10.0,*86*-darwin8*|10.0,*-darwin[912]*)
11980	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11981	10.[012][,.]*)
11982	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11983	10.*|11.*)
11984	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11985      esac
11986    ;;
11987  esac
11988    if test yes = "$lt_cv_apple_cc_single_mod"; then
11989      _lt_dar_single_mod='$single_module'
11990    fi
11991    if test yes = "$lt_cv_ld_exported_symbols_list"; then
11992      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11993    else
11994      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11995    fi
11996    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11997      _lt_dsymutil='~$DSYMUTIL $lib || :'
11998    else
11999      _lt_dsymutil=
12000    fi
12001    ;;
12002  esac
12003
12004# func_munge_path_list VARIABLE PATH
12005# -----------------------------------
12006# VARIABLE is name of variable containing _space_ separated list of
12007# directories to be munged by the contents of PATH, which is string
12008# having a format:
12009# "DIR[:DIR]:"
12010#       string "DIR[ DIR]" will be prepended to VARIABLE
12011# ":DIR[:DIR]"
12012#       string "DIR[ DIR]" will be appended to VARIABLE
12013# "DIRP[:DIRP]::[DIRA:]DIRA"
12014#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12015#       "DIRA[ DIRA]" will be appended to VARIABLE
12016# "DIR[:DIR]"
12017#       VARIABLE will be replaced by "DIR[ DIR]"
12018func_munge_path_list ()
12019{
12020    case x$2 in
12021    x)
12022        ;;
12023    *:)
12024        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12025        ;;
12026    x:*)
12027        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12028        ;;
12029    *::*)
12030        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12031        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12032        ;;
12033    *)
12034        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12035        ;;
12036    esac
12037}
12038
12039ac_header= ac_cache=
12040for ac_item in $ac_header_c_list
12041do
12042  if test $ac_cache; then
12043    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
12044    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
12045      printf "%s\n" "#define $ac_item 1" >> confdefs.h
12046    fi
12047    ac_header= ac_cache=
12048  elif test $ac_header; then
12049    ac_cache=$ac_item
12050  else
12051    ac_header=$ac_item
12052  fi
12053done
12054
12055
12056
12057
12058
12059
12060
12061
12062if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
12063then :
12064
12065printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
12066
12067fi
12068ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12069"
12070if test "x$ac_cv_header_dlfcn_h" = xyes
12071then :
12072  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12073
12074fi
12075
12076
12077
12078func_stripname_cnf ()
12079{
12080  case $2 in
12081  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12082  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12083  esac
12084} # func_stripname_cnf
12085
12086
12087
12088
12089
12090# Set options
12091
12092
12093
12094        enable_dlopen=no
12095
12096
12097  enable_win32_dll=no
12098
12099
12100
12101  # Check whether --enable-static was given.
12102if test ${enable_static+y}
12103then :
12104  enableval=$enable_static; p=${PACKAGE-default}
12105    case $enableval in
12106    yes) enable_static=yes ;;
12107    no) enable_static=no ;;
12108    *)
12109     enable_static=no
12110      # Look at the argument we got.  We use all the common list separators.
12111      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12112      for pkg in $enableval; do
12113	IFS=$lt_save_ifs
12114	if test "X$pkg" = "X$p"; then
12115	  enable_static=yes
12116	fi
12117      done
12118      IFS=$lt_save_ifs
12119      ;;
12120    esac
12121else $as_nop
12122  enable_static=yes
12123fi
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134# Check whether --with-pic was given.
12135if test ${with_pic+y}
12136then :
12137  withval=$with_pic; lt_p=${PACKAGE-default}
12138    case $withval in
12139    yes|no) pic_mode=$withval ;;
12140    *)
12141      pic_mode=default
12142      # Look at the argument we got.  We use all the common list separators.
12143      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12144      for lt_pkg in $withval; do
12145	IFS=$lt_save_ifs
12146	if test "X$lt_pkg" = "X$lt_p"; then
12147	  pic_mode=yes
12148	fi
12149      done
12150      IFS=$lt_save_ifs
12151      ;;
12152    esac
12153else $as_nop
12154  pic_mode=default
12155fi
12156
12157
12158
12159
12160
12161
12162
12163
12164  # Check whether --enable-fast-install was given.
12165if test ${enable_fast_install+y}
12166then :
12167  enableval=$enable_fast_install; p=${PACKAGE-default}
12168    case $enableval in
12169    yes) enable_fast_install=yes ;;
12170    no) enable_fast_install=no ;;
12171    *)
12172      enable_fast_install=no
12173      # Look at the argument we got.  We use all the common list separators.
12174      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12175      for pkg in $enableval; do
12176	IFS=$lt_save_ifs
12177	if test "X$pkg" = "X$p"; then
12178	  enable_fast_install=yes
12179	fi
12180      done
12181      IFS=$lt_save_ifs
12182      ;;
12183    esac
12184else $as_nop
12185  enable_fast_install=yes
12186fi
12187
12188
12189
12190
12191
12192
12193
12194
12195  shared_archive_member_spec=
12196case $host,$enable_shared in
12197power*-*-aix[5-9]*,yes)
12198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12199printf %s "checking which variant of shared library versioning to provide... " >&6; }
12200
12201# Check whether --with-aix-soname was given.
12202if test ${with_aix_soname+y}
12203then :
12204  withval=$with_aix_soname; case $withval in
12205    aix|svr4|both)
12206      ;;
12207    *)
12208      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12209      ;;
12210    esac
12211    lt_cv_with_aix_soname=$with_aix_soname
12212else $as_nop
12213  if test ${lt_cv_with_aix_soname+y}
12214then :
12215  printf %s "(cached) " >&6
12216else $as_nop
12217  lt_cv_with_aix_soname=aix
12218fi
12219
12220    with_aix_soname=$lt_cv_with_aix_soname
12221fi
12222
12223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12224printf "%s\n" "$with_aix_soname" >&6; }
12225  if test aix != "$with_aix_soname"; then
12226    # For the AIX way of multilib, we name the shared archive member
12227    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12228    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12229    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12230    # the AIX toolchain works better with OBJECT_MODE set (default 32).
12231    if test 64 = "${OBJECT_MODE-32}"; then
12232      shared_archive_member_spec=shr_64
12233    else
12234      shared_archive_member_spec=shr
12235    fi
12236  fi
12237  ;;
12238*)
12239  with_aix_soname=aix
12240  ;;
12241esac
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252# This can be used to rebuild libtool when needed
12253LIBTOOL_DEPS=$ltmain
12254
12255# Always use our own libtool.
12256LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287test -z "$LN_S" && LN_S="ln -s"
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302if test -n "${ZSH_VERSION+set}"; then
12303   setopt NO_GLOB_SUBST
12304fi
12305
12306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12307printf %s "checking for objdir... " >&6; }
12308if test ${lt_cv_objdir+y}
12309then :
12310  printf %s "(cached) " >&6
12311else $as_nop
12312  rm -f .libs 2>/dev/null
12313mkdir .libs 2>/dev/null
12314if test -d .libs; then
12315  lt_cv_objdir=.libs
12316else
12317  # MS-DOS does not allow filenames that begin with a dot.
12318  lt_cv_objdir=_libs
12319fi
12320rmdir .libs 2>/dev/null
12321fi
12322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12323printf "%s\n" "$lt_cv_objdir" >&6; }
12324objdir=$lt_cv_objdir
12325
12326
12327
12328
12329
12330printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12331
12332
12333
12334
12335case $host_os in
12336aix3*)
12337  # AIX sometimes has problems with the GCC collect2 program.  For some
12338  # reason, if we set the COLLECT_NAMES environment variable, the problems
12339  # vanish in a puff of smoke.
12340  if test set != "${COLLECT_NAMES+set}"; then
12341    COLLECT_NAMES=
12342    export COLLECT_NAMES
12343  fi
12344  ;;
12345esac
12346
12347# Global variables:
12348ofile=libtool
12349can_build_shared=yes
12350
12351# All known linkers require a '.a' archive for static linking (except MSVC,
12352# which needs '.lib').
12353libext=a
12354
12355with_gnu_ld=$lt_cv_prog_gnu_ld
12356
12357old_CC=$CC
12358old_CFLAGS=$CFLAGS
12359
12360# Set sane defaults for various variables
12361test -z "$CC" && CC=cc
12362test -z "$LTCC" && LTCC=$CC
12363test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12364test -z "$LD" && LD=ld
12365test -z "$ac_objext" && ac_objext=o
12366
12367func_cc_basename $compiler
12368cc_basename=$func_cc_basename_result
12369
12370
12371# Only perform the check for file, if the check method requires it
12372test -z "$MAGIC_CMD" && MAGIC_CMD=file
12373case $deplibs_check_method in
12374file_magic*)
12375  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12376    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12377printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12378if test ${lt_cv_path_MAGIC_CMD+y}
12379then :
12380  printf %s "(cached) " >&6
12381else $as_nop
12382  case $MAGIC_CMD in
12383[\\/*] |  ?:[\\/]*)
12384  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12385  ;;
12386*)
12387  lt_save_MAGIC_CMD=$MAGIC_CMD
12388  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12389  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12390  for ac_dir in $ac_dummy; do
12391    IFS=$lt_save_ifs
12392    test -z "$ac_dir" && ac_dir=.
12393    if test -f "$ac_dir/${ac_tool_prefix}file"; then
12394      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12395      if test -n "$file_magic_test_file"; then
12396	case $deplibs_check_method in
12397	"file_magic "*)
12398	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12399	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12400	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12401	    $EGREP "$file_magic_regex" > /dev/null; then
12402	    :
12403	  else
12404	    cat <<_LT_EOF 1>&2
12405
12406*** Warning: the command libtool uses to detect shared libraries,
12407*** $file_magic_cmd, produces output that libtool cannot recognize.
12408*** The result is that libtool may fail to recognize shared libraries
12409*** as such.  This will affect the creation of libtool libraries that
12410*** depend on shared libraries, but programs linked with such libtool
12411*** libraries will work regardless of this problem.  Nevertheless, you
12412*** may want to report the problem to your system manager and/or to
12413*** bug-libtool@gnu.org
12414
12415_LT_EOF
12416	  fi ;;
12417	esac
12418      fi
12419      break
12420    fi
12421  done
12422  IFS=$lt_save_ifs
12423  MAGIC_CMD=$lt_save_MAGIC_CMD
12424  ;;
12425esac
12426fi
12427
12428MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12429if test -n "$MAGIC_CMD"; then
12430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12431printf "%s\n" "$MAGIC_CMD" >&6; }
12432else
12433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434printf "%s\n" "no" >&6; }
12435fi
12436
12437
12438
12439
12440
12441if test -z "$lt_cv_path_MAGIC_CMD"; then
12442  if test -n "$ac_tool_prefix"; then
12443    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12444printf %s "checking for file... " >&6; }
12445if test ${lt_cv_path_MAGIC_CMD+y}
12446then :
12447  printf %s "(cached) " >&6
12448else $as_nop
12449  case $MAGIC_CMD in
12450[\\/*] |  ?:[\\/]*)
12451  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12452  ;;
12453*)
12454  lt_save_MAGIC_CMD=$MAGIC_CMD
12455  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12456  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12457  for ac_dir in $ac_dummy; do
12458    IFS=$lt_save_ifs
12459    test -z "$ac_dir" && ac_dir=.
12460    if test -f "$ac_dir/file"; then
12461      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12462      if test -n "$file_magic_test_file"; then
12463	case $deplibs_check_method in
12464	"file_magic "*)
12465	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12466	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12467	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12468	    $EGREP "$file_magic_regex" > /dev/null; then
12469	    :
12470	  else
12471	    cat <<_LT_EOF 1>&2
12472
12473*** Warning: the command libtool uses to detect shared libraries,
12474*** $file_magic_cmd, produces output that libtool cannot recognize.
12475*** The result is that libtool may fail to recognize shared libraries
12476*** as such.  This will affect the creation of libtool libraries that
12477*** depend on shared libraries, but programs linked with such libtool
12478*** libraries will work regardless of this problem.  Nevertheless, you
12479*** may want to report the problem to your system manager and/or to
12480*** bug-libtool@gnu.org
12481
12482_LT_EOF
12483	  fi ;;
12484	esac
12485      fi
12486      break
12487    fi
12488  done
12489  IFS=$lt_save_ifs
12490  MAGIC_CMD=$lt_save_MAGIC_CMD
12491  ;;
12492esac
12493fi
12494
12495MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12496if test -n "$MAGIC_CMD"; then
12497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12498printf "%s\n" "$MAGIC_CMD" >&6; }
12499else
12500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501printf "%s\n" "no" >&6; }
12502fi
12503
12504
12505  else
12506    MAGIC_CMD=:
12507  fi
12508fi
12509
12510  fi
12511  ;;
12512esac
12513
12514# Use C for the default configuration in the libtool script
12515
12516lt_save_CC=$CC
12517ac_ext=c
12518ac_cpp='$CPP $CPPFLAGS'
12519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12521ac_compiler_gnu=$ac_cv_c_compiler_gnu
12522
12523
12524# Source file extension for C test sources.
12525ac_ext=c
12526
12527# Object file extension for compiled C test sources.
12528objext=o
12529objext=$objext
12530
12531# Code to be used in simple compile tests
12532lt_simple_compile_test_code="int some_variable = 0;"
12533
12534# Code to be used in simple link tests
12535lt_simple_link_test_code='int main(){return(0);}'
12536
12537
12538
12539
12540
12541
12542
12543# If no C compiler was specified, use CC.
12544LTCC=${LTCC-"$CC"}
12545
12546# If no C compiler flags were specified, use CFLAGS.
12547LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12548
12549# Allow CC to be a program name with arguments.
12550compiler=$CC
12551
12552# Save the default compiler, since it gets overwritten when the other
12553# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12554compiler_DEFAULT=$CC
12555
12556# save warnings/boilerplate of simple test code
12557ac_outfile=conftest.$ac_objext
12558echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12559eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12560_lt_compiler_boilerplate=`cat conftest.err`
12561$RM conftest*
12562
12563ac_outfile=conftest.$ac_objext
12564echo "$lt_simple_link_test_code" >conftest.$ac_ext
12565eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12566_lt_linker_boilerplate=`cat conftest.err`
12567$RM -r conftest*
12568
12569
12570## CAVEAT EMPTOR:
12571## There is no encapsulation within the following macros, do not change
12572## the running order or otherwise move them around unless you know exactly
12573## what you are doing...
12574if test -n "$compiler"; then
12575
12576lt_prog_compiler_no_builtin_flag=
12577
12578if test yes = "$GCC"; then
12579  case $cc_basename in
12580  nvcc*)
12581    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12582  *)
12583    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12584  esac
12585
12586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12587printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12588if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12589then :
12590  printf %s "(cached) " >&6
12591else $as_nop
12592  lt_cv_prog_compiler_rtti_exceptions=no
12593   ac_outfile=conftest.$ac_objext
12594   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12595   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12596   # Insert the option either (1) after the last *FLAGS variable, or
12597   # (2) before a word containing "conftest.", or (3) at the end.
12598   # Note that $ac_compile itself does not contain backslashes and begins
12599   # with a dollar sign (not a hyphen), so the echo should work correctly.
12600   # The option is referenced via a variable to avoid confusing sed.
12601   lt_compile=`echo "$ac_compile" | $SED \
12602   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12603   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12604   -e 's:$: $lt_compiler_flag:'`
12605   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12606   (eval "$lt_compile" 2>conftest.err)
12607   ac_status=$?
12608   cat conftest.err >&5
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   if (exit $ac_status) && test -s "$ac_outfile"; then
12611     # The compiler can only warn and ignore the option if not recognized
12612     # So say no if there are warnings other than the usual output.
12613     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12614     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12615     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12616       lt_cv_prog_compiler_rtti_exceptions=yes
12617     fi
12618   fi
12619   $RM conftest*
12620
12621fi
12622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12623printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12624
12625if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12626    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12627else
12628    :
12629fi
12630
12631fi
12632
12633
12634
12635
12636
12637
12638  lt_prog_compiler_wl=
12639lt_prog_compiler_pic=
12640lt_prog_compiler_static=
12641
12642
12643  if test yes = "$GCC"; then
12644    lt_prog_compiler_wl='-Wl,'
12645    lt_prog_compiler_static='-static'
12646
12647    case $host_os in
12648      aix*)
12649      # All AIX code is PIC.
12650      if test ia64 = "$host_cpu"; then
12651	# AIX 5 now supports IA64 processor
12652	lt_prog_compiler_static='-Bstatic'
12653      fi
12654      lt_prog_compiler_pic='-fPIC'
12655      ;;
12656
12657    amigaos*)
12658      case $host_cpu in
12659      powerpc)
12660            # see comment about AmigaOS4 .so support
12661            lt_prog_compiler_pic='-fPIC'
12662        ;;
12663      m68k)
12664            # FIXME: we need at least 68020 code to build shared libraries, but
12665            # adding the '-m68020' flag to GCC prevents building anything better,
12666            # like '-m68040'.
12667            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12668        ;;
12669      esac
12670      ;;
12671
12672    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12673      # PIC is the default for these OSes.
12674      ;;
12675
12676    mingw* | cygwin* | pw32* | os2* | cegcc*)
12677      # This hack is so that the source file can tell whether it is being
12678      # built for inclusion in a dll (and should export symbols for example).
12679      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12680      # (--disable-auto-import) libraries
12681      lt_prog_compiler_pic='-DDLL_EXPORT'
12682      case $host_os in
12683      os2*)
12684	lt_prog_compiler_static='$wl-static'
12685	;;
12686      esac
12687      ;;
12688
12689    darwin* | rhapsody*)
12690      # PIC is the default on this platform
12691      # Common symbols not allowed in MH_DYLIB files
12692      lt_prog_compiler_pic='-fno-common'
12693      ;;
12694
12695    haiku*)
12696      # PIC is the default for Haiku.
12697      # The "-static" flag exists, but is broken.
12698      lt_prog_compiler_static=
12699      ;;
12700
12701    hpux*)
12702      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12703      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12704      # sets the default TLS model and affects inlining.
12705      case $host_cpu in
12706      hppa*64*)
12707	# +Z the default
12708	;;
12709      *)
12710	lt_prog_compiler_pic='-fPIC'
12711	;;
12712      esac
12713      ;;
12714
12715    interix[3-9]*)
12716      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12717      # Instead, we relocate shared libraries at runtime.
12718      ;;
12719
12720    msdosdjgpp*)
12721      # Just because we use GCC doesn't mean we suddenly get shared libraries
12722      # on systems that don't support them.
12723      lt_prog_compiler_can_build_shared=no
12724      enable_shared=no
12725      ;;
12726
12727    *nto* | *qnx*)
12728      # QNX uses GNU C++, but need to define -shared option too, otherwise
12729      # it will coredump.
12730      lt_prog_compiler_pic='-fPIC -shared'
12731      ;;
12732
12733    sysv4*MP*)
12734      if test -d /usr/nec; then
12735	lt_prog_compiler_pic=-Kconform_pic
12736      fi
12737      ;;
12738
12739    *)
12740      lt_prog_compiler_pic='-fPIC'
12741      ;;
12742    esac
12743
12744    case $cc_basename in
12745    nvcc*) # Cuda Compiler Driver 2.2
12746      lt_prog_compiler_wl='-Xlinker '
12747      if test -n "$lt_prog_compiler_pic"; then
12748        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12749      fi
12750      ;;
12751    esac
12752  else
12753    # PORTME Check for flag to pass linker flags through the system compiler.
12754    case $host_os in
12755    aix*)
12756      lt_prog_compiler_wl='-Wl,'
12757      if test ia64 = "$host_cpu"; then
12758	# AIX 5 now supports IA64 processor
12759	lt_prog_compiler_static='-Bstatic'
12760      else
12761	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12762      fi
12763      ;;
12764
12765    darwin* | rhapsody*)
12766      # PIC is the default on this platform
12767      # Common symbols not allowed in MH_DYLIB files
12768      lt_prog_compiler_pic='-fno-common'
12769      case $cc_basename in
12770      nagfor*)
12771        # NAG Fortran compiler
12772        lt_prog_compiler_wl='-Wl,-Wl,,'
12773        lt_prog_compiler_pic='-PIC'
12774        lt_prog_compiler_static='-Bstatic'
12775        ;;
12776      esac
12777      ;;
12778
12779    mingw* | cygwin* | pw32* | os2* | cegcc*)
12780      # This hack is so that the source file can tell whether it is being
12781      # built for inclusion in a dll (and should export symbols for example).
12782      lt_prog_compiler_pic='-DDLL_EXPORT'
12783      case $host_os in
12784      os2*)
12785	lt_prog_compiler_static='$wl-static'
12786	;;
12787      esac
12788      ;;
12789
12790    hpux9* | hpux10* | hpux11*)
12791      lt_prog_compiler_wl='-Wl,'
12792      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12793      # not for PA HP-UX.
12794      case $host_cpu in
12795      hppa*64*|ia64*)
12796	# +Z the default
12797	;;
12798      *)
12799	lt_prog_compiler_pic='+Z'
12800	;;
12801      esac
12802      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12803      lt_prog_compiler_static='$wl-a ${wl}archive'
12804      ;;
12805
12806    irix5* | irix6* | nonstopux*)
12807      lt_prog_compiler_wl='-Wl,'
12808      # PIC (with -KPIC) is the default.
12809      lt_prog_compiler_static='-non_shared'
12810      ;;
12811
12812    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12813      case $cc_basename in
12814      # old Intel for x86_64, which still supported -KPIC.
12815      ecc*)
12816	lt_prog_compiler_wl='-Wl,'
12817	lt_prog_compiler_pic='-KPIC'
12818	lt_prog_compiler_static='-static'
12819        ;;
12820      # flang / f18. f95 an alias for gfortran or flang on Debian
12821      flang* | f18* | f95*)
12822	lt_prog_compiler_wl='-Wl,'
12823	lt_prog_compiler_pic='-fPIC'
12824	lt_prog_compiler_static='-static'
12825        ;;
12826      # icc used to be incompatible with GCC.
12827      # ICC 10 doesn't accept -KPIC any more.
12828      icc* | ifort*)
12829	lt_prog_compiler_wl='-Wl,'
12830	lt_prog_compiler_pic='-fPIC'
12831	lt_prog_compiler_static='-static'
12832        ;;
12833      # Lahey Fortran 8.1.
12834      lf95*)
12835	lt_prog_compiler_wl='-Wl,'
12836	lt_prog_compiler_pic='--shared'
12837	lt_prog_compiler_static='--static'
12838	;;
12839      nagfor*)
12840	# NAG Fortran compiler
12841	lt_prog_compiler_wl='-Wl,-Wl,,'
12842	lt_prog_compiler_pic='-PIC'
12843	lt_prog_compiler_static='-Bstatic'
12844	;;
12845      tcc*)
12846	# Fabrice Bellard et al's Tiny C Compiler
12847	lt_prog_compiler_wl='-Wl,'
12848	lt_prog_compiler_pic='-fPIC'
12849	lt_prog_compiler_static='-static'
12850	;;
12851      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12852        # Portland Group compilers (*not* the Pentium gcc compiler,
12853	# which looks to be a dead project)
12854	lt_prog_compiler_wl='-Wl,'
12855	lt_prog_compiler_pic='-fpic'
12856	lt_prog_compiler_static='-Bstatic'
12857        ;;
12858      ccc*)
12859        lt_prog_compiler_wl='-Wl,'
12860        # All Alpha code is PIC.
12861        lt_prog_compiler_static='-non_shared'
12862        ;;
12863      xl* | bgxl* | bgf* | mpixl*)
12864	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12865	lt_prog_compiler_wl='-Wl,'
12866	lt_prog_compiler_pic='-qpic'
12867	lt_prog_compiler_static='-qstaticlink'
12868	;;
12869      *)
12870	case `$CC -V 2>&1 | sed 5q` in
12871	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12872	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12873	  lt_prog_compiler_pic='-KPIC'
12874	  lt_prog_compiler_static='-Bstatic'
12875	  lt_prog_compiler_wl=''
12876	  ;;
12877	*Sun\ F* | *Sun*Fortran*)
12878	  lt_prog_compiler_pic='-KPIC'
12879	  lt_prog_compiler_static='-Bstatic'
12880	  lt_prog_compiler_wl='-Qoption ld '
12881	  ;;
12882	*Sun\ C*)
12883	  # Sun C 5.9
12884	  lt_prog_compiler_pic='-KPIC'
12885	  lt_prog_compiler_static='-Bstatic'
12886	  lt_prog_compiler_wl='-Wl,'
12887	  ;;
12888        *Intel*\ [CF]*Compiler*)
12889	  lt_prog_compiler_wl='-Wl,'
12890	  lt_prog_compiler_pic='-fPIC'
12891	  lt_prog_compiler_static='-static'
12892	  ;;
12893	*Portland\ Group*)
12894	  lt_prog_compiler_wl='-Wl,'
12895	  lt_prog_compiler_pic='-fpic'
12896	  lt_prog_compiler_static='-Bstatic'
12897	  ;;
12898	esac
12899	;;
12900      esac
12901      ;;
12902
12903    newsos6)
12904      lt_prog_compiler_pic='-KPIC'
12905      lt_prog_compiler_static='-Bstatic'
12906      ;;
12907
12908    *nto* | *qnx*)
12909      # QNX uses GNU C++, but need to define -shared option too, otherwise
12910      # it will coredump.
12911      lt_prog_compiler_pic='-fPIC -shared'
12912      ;;
12913
12914    osf3* | osf4* | osf5*)
12915      lt_prog_compiler_wl='-Wl,'
12916      # All OSF/1 code is PIC.
12917      lt_prog_compiler_static='-non_shared'
12918      ;;
12919
12920    rdos*)
12921      lt_prog_compiler_static='-non_shared'
12922      ;;
12923
12924    solaris*)
12925      lt_prog_compiler_pic='-KPIC'
12926      lt_prog_compiler_static='-Bstatic'
12927      case $cc_basename in
12928      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12929	lt_prog_compiler_wl='-Qoption ld ';;
12930      *)
12931	lt_prog_compiler_wl='-Wl,';;
12932      esac
12933      ;;
12934
12935    sunos4*)
12936      lt_prog_compiler_wl='-Qoption ld '
12937      lt_prog_compiler_pic='-PIC'
12938      lt_prog_compiler_static='-Bstatic'
12939      ;;
12940
12941    sysv4 | sysv4.2uw2* | sysv4.3*)
12942      lt_prog_compiler_wl='-Wl,'
12943      lt_prog_compiler_pic='-KPIC'
12944      lt_prog_compiler_static='-Bstatic'
12945      ;;
12946
12947    sysv4*MP*)
12948      if test -d /usr/nec; then
12949	lt_prog_compiler_pic='-Kconform_pic'
12950	lt_prog_compiler_static='-Bstatic'
12951      fi
12952      ;;
12953
12954    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12955      lt_prog_compiler_wl='-Wl,'
12956      lt_prog_compiler_pic='-KPIC'
12957      lt_prog_compiler_static='-Bstatic'
12958      ;;
12959
12960    unicos*)
12961      lt_prog_compiler_wl='-Wl,'
12962      lt_prog_compiler_can_build_shared=no
12963      ;;
12964
12965    uts4*)
12966      lt_prog_compiler_pic='-pic'
12967      lt_prog_compiler_static='-Bstatic'
12968      ;;
12969
12970    *)
12971      lt_prog_compiler_can_build_shared=no
12972      ;;
12973    esac
12974  fi
12975
12976case $host_os in
12977  # For platforms that do not support PIC, -DPIC is meaningless:
12978  *djgpp*)
12979    lt_prog_compiler_pic=
12980    ;;
12981  *)
12982    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12983    ;;
12984esac
12985
12986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12987printf %s "checking for $compiler option to produce PIC... " >&6; }
12988if test ${lt_cv_prog_compiler_pic+y}
12989then :
12990  printf %s "(cached) " >&6
12991else $as_nop
12992  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12993fi
12994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12995printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12996lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12997
12998#
12999# Check to make sure the PIC flag actually works.
13000#
13001if test -n "$lt_prog_compiler_pic"; then
13002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13003printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13004if test ${lt_cv_prog_compiler_pic_works+y}
13005then :
13006  printf %s "(cached) " >&6
13007else $as_nop
13008  lt_cv_prog_compiler_pic_works=no
13009   ac_outfile=conftest.$ac_objext
13010   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13011   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13012   # Insert the option either (1) after the last *FLAGS variable, or
13013   # (2) before a word containing "conftest.", or (3) at the end.
13014   # Note that $ac_compile itself does not contain backslashes and begins
13015   # with a dollar sign (not a hyphen), so the echo should work correctly.
13016   # The option is referenced via a variable to avoid confusing sed.
13017   lt_compile=`echo "$ac_compile" | $SED \
13018   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13019   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13020   -e 's:$: $lt_compiler_flag:'`
13021   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13022   (eval "$lt_compile" 2>conftest.err)
13023   ac_status=$?
13024   cat conftest.err >&5
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   if (exit $ac_status) && test -s "$ac_outfile"; then
13027     # The compiler can only warn and ignore the option if not recognized
13028     # So say no if there are warnings other than the usual output.
13029     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13030     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13031     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13032       lt_cv_prog_compiler_pic_works=yes
13033     fi
13034   fi
13035   $RM conftest*
13036
13037fi
13038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13039printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13040
13041if test yes = "$lt_cv_prog_compiler_pic_works"; then
13042    case $lt_prog_compiler_pic in
13043     "" | " "*) ;;
13044     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13045     esac
13046else
13047    lt_prog_compiler_pic=
13048     lt_prog_compiler_can_build_shared=no
13049fi
13050
13051fi
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063#
13064# Check to make sure the static flag actually works.
13065#
13066wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13068printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13069if test ${lt_cv_prog_compiler_static_works+y}
13070then :
13071  printf %s "(cached) " >&6
13072else $as_nop
13073  lt_cv_prog_compiler_static_works=no
13074   save_LDFLAGS=$LDFLAGS
13075   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13076   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13077   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13078     # The linker can only warn and ignore the option if not recognized
13079     # So say no if there are warnings
13080     if test -s conftest.err; then
13081       # Append any errors to the config.log.
13082       cat conftest.err 1>&5
13083       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13084       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13085       if diff conftest.exp conftest.er2 >/dev/null; then
13086         lt_cv_prog_compiler_static_works=yes
13087       fi
13088     else
13089       lt_cv_prog_compiler_static_works=yes
13090     fi
13091   fi
13092   $RM -r conftest*
13093   LDFLAGS=$save_LDFLAGS
13094
13095fi
13096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13097printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13098
13099if test yes = "$lt_cv_prog_compiler_static_works"; then
13100    :
13101else
13102    lt_prog_compiler_static=
13103fi
13104
13105
13106
13107
13108
13109
13110
13111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13112printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13113if test ${lt_cv_prog_compiler_c_o+y}
13114then :
13115  printf %s "(cached) " >&6
13116else $as_nop
13117  lt_cv_prog_compiler_c_o=no
13118   $RM -r conftest 2>/dev/null
13119   mkdir conftest
13120   cd conftest
13121   mkdir out
13122   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13123
13124   lt_compiler_flag="-o out/conftest2.$ac_objext"
13125   # Insert the option either (1) after the last *FLAGS variable, or
13126   # (2) before a word containing "conftest.", or (3) at the end.
13127   # Note that $ac_compile itself does not contain backslashes and begins
13128   # with a dollar sign (not a hyphen), so the echo should work correctly.
13129   lt_compile=`echo "$ac_compile" | $SED \
13130   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13131   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13132   -e 's:$: $lt_compiler_flag:'`
13133   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13134   (eval "$lt_compile" 2>out/conftest.err)
13135   ac_status=$?
13136   cat out/conftest.err >&5
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13139   then
13140     # The compiler can only warn and ignore the option if not recognized
13141     # So say no if there are warnings
13142     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13143     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13144     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13145       lt_cv_prog_compiler_c_o=yes
13146     fi
13147   fi
13148   chmod u+w . 2>&5
13149   $RM conftest*
13150   # SGI C++ compiler will create directory out/ii_files/ for
13151   # template instantiation
13152   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13153   $RM out/* && rmdir out
13154   cd ..
13155   $RM -r conftest
13156   $RM conftest*
13157
13158fi
13159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13160printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13161
13162
13163
13164
13165
13166
13167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13168printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13169if test ${lt_cv_prog_compiler_c_o+y}
13170then :
13171  printf %s "(cached) " >&6
13172else $as_nop
13173  lt_cv_prog_compiler_c_o=no
13174   $RM -r conftest 2>/dev/null
13175   mkdir conftest
13176   cd conftest
13177   mkdir out
13178   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13179
13180   lt_compiler_flag="-o out/conftest2.$ac_objext"
13181   # Insert the option either (1) after the last *FLAGS variable, or
13182   # (2) before a word containing "conftest.", or (3) at the end.
13183   # Note that $ac_compile itself does not contain backslashes and begins
13184   # with a dollar sign (not a hyphen), so the echo should work correctly.
13185   lt_compile=`echo "$ac_compile" | $SED \
13186   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13187   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13188   -e 's:$: $lt_compiler_flag:'`
13189   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13190   (eval "$lt_compile" 2>out/conftest.err)
13191   ac_status=$?
13192   cat out/conftest.err >&5
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13195   then
13196     # The compiler can only warn and ignore the option if not recognized
13197     # So say no if there are warnings
13198     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13199     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13200     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13201       lt_cv_prog_compiler_c_o=yes
13202     fi
13203   fi
13204   chmod u+w . 2>&5
13205   $RM conftest*
13206   # SGI C++ compiler will create directory out/ii_files/ for
13207   # template instantiation
13208   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13209   $RM out/* && rmdir out
13210   cd ..
13211   $RM -r conftest
13212   $RM conftest*
13213
13214fi
13215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13216printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13217
13218
13219
13220
13221hard_links=nottested
13222if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13223  # do not overwrite the value of need_locks provided by the user
13224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13225printf %s "checking if we can lock with hard links... " >&6; }
13226  hard_links=yes
13227  $RM conftest*
13228  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13229  touch conftest.a
13230  ln conftest.a conftest.b 2>&5 || hard_links=no
13231  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13233printf "%s\n" "$hard_links" >&6; }
13234  if test no = "$hard_links"; then
13235    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13236printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13237    need_locks=warn
13238  fi
13239else
13240  need_locks=no
13241fi
13242
13243
13244
13245
13246
13247
13248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13249printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13250
13251  runpath_var=
13252  allow_undefined_flag=
13253  always_export_symbols=no
13254  archive_cmds=
13255  archive_expsym_cmds=
13256  compiler_needs_object=no
13257  enable_shared_with_static_runtimes=no
13258  export_dynamic_flag_spec=
13259  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13260  hardcode_automatic=no
13261  hardcode_direct=no
13262  hardcode_direct_absolute=no
13263  hardcode_libdir_flag_spec=
13264  hardcode_libdir_separator=
13265  hardcode_minus_L=no
13266  hardcode_shlibpath_var=unsupported
13267  inherit_rpath=no
13268  link_all_deplibs=unknown
13269  module_cmds=
13270  module_expsym_cmds=
13271  old_archive_from_new_cmds=
13272  old_archive_from_expsyms_cmds=
13273  thread_safe_flag_spec=
13274  whole_archive_flag_spec=
13275  # include_expsyms should be a list of space-separated symbols to be *always*
13276  # included in the symbol list
13277  include_expsyms=
13278  # exclude_expsyms can be an extended regexp of symbols to exclude
13279  # it will be wrapped by ' (' and ')$', so one must not match beginning or
13280  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13281  # as well as any symbol that contains 'd'.
13282  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13283  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13284  # platforms (ab)use it in PIC code, but their linkers get confused if
13285  # the symbol is explicitly referenced.  Since portable code cannot
13286  # rely on this symbol name, it's probably fine to never include it in
13287  # preloaded symbol tables.
13288  # Exclude shared library initialization/finalization symbols.
13289  extract_expsyms_cmds=
13290
13291  case $host_os in
13292  cygwin* | mingw* | pw32* | cegcc*)
13293    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13294    # When not using gcc, we currently assume that we are using
13295    # Microsoft Visual C++.
13296    if test yes != "$GCC"; then
13297      with_gnu_ld=no
13298    fi
13299    ;;
13300  interix*)
13301    # we just hope/assume this is gcc and not c89 (= MSVC++)
13302    with_gnu_ld=yes
13303    ;;
13304  openbsd* | bitrig*)
13305    with_gnu_ld=no
13306    ;;
13307  linux* | k*bsd*-gnu | gnu*)
13308    link_all_deplibs=no
13309    ;;
13310  esac
13311
13312  ld_shlibs=yes
13313
13314  # On some targets, GNU ld is compatible enough with the native linker
13315  # that we're better off using the native interface for both.
13316  lt_use_gnu_ld_interface=no
13317  if test yes = "$with_gnu_ld"; then
13318    case $host_os in
13319      aix*)
13320	# The AIX port of GNU ld has always aspired to compatibility
13321	# with the native linker.  However, as the warning in the GNU ld
13322	# block says, versions before 2.19.5* couldn't really create working
13323	# shared libraries, regardless of the interface used.
13324	case `$LD -v 2>&1` in
13325	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13326	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13327	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13328	  *)
13329	    lt_use_gnu_ld_interface=yes
13330	    ;;
13331	esac
13332	;;
13333      *)
13334	lt_use_gnu_ld_interface=yes
13335	;;
13336    esac
13337  fi
13338
13339  if test yes = "$lt_use_gnu_ld_interface"; then
13340    # If archive_cmds runs LD, not CC, wlarc should be empty
13341    wlarc='$wl'
13342
13343    # Set some defaults for GNU ld with shared library support. These
13344    # are reset later if shared libraries are not supported. Putting them
13345    # here allows them to be overridden if necessary.
13346    runpath_var=LD_RUN_PATH
13347    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13348    export_dynamic_flag_spec='$wl--export-dynamic'
13349    # ancient GNU ld didn't support --whole-archive et. al.
13350    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13351      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13352    else
13353      whole_archive_flag_spec=
13354    fi
13355    supports_anon_versioning=no
13356    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13357      *GNU\ gold*) supports_anon_versioning=yes ;;
13358      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13359      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13360      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13361      *\ 2.11.*) ;; # other 2.11 versions
13362      *) supports_anon_versioning=yes ;;
13363    esac
13364
13365    # See if GNU ld supports shared libraries.
13366    case $host_os in
13367    aix[3-9]*)
13368      # On AIX/PPC, the GNU linker is very broken
13369      if test ia64 != "$host_cpu"; then
13370	ld_shlibs=no
13371	cat <<_LT_EOF 1>&2
13372
13373*** Warning: the GNU linker, at least up to release 2.19, is reported
13374*** to be unable to reliably create shared libraries on AIX.
13375*** Therefore, libtool is disabling shared libraries support.  If you
13376*** really care for shared libraries, you may want to install binutils
13377*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13378*** You will then need to restart the configuration process.
13379
13380_LT_EOF
13381      fi
13382      ;;
13383
13384    amigaos*)
13385      case $host_cpu in
13386      powerpc)
13387            # see comment about AmigaOS4 .so support
13388            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13389            archive_expsym_cmds=''
13390        ;;
13391      m68k)
13392            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)'
13393            hardcode_libdir_flag_spec='-L$libdir'
13394            hardcode_minus_L=yes
13395        ;;
13396      esac
13397      ;;
13398
13399    beos*)
13400      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13401	allow_undefined_flag=unsupported
13402	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13403	# support --undefined.  This deserves some investigation.  FIXME
13404	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13405      else
13406	ld_shlibs=no
13407      fi
13408      ;;
13409
13410    cygwin* | mingw* | pw32* | cegcc*)
13411      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13412      # as there is no search path for DLLs.
13413      hardcode_libdir_flag_spec='-L$libdir'
13414      export_dynamic_flag_spec='$wl--export-all-symbols'
13415      allow_undefined_flag=unsupported
13416      always_export_symbols=no
13417      enable_shared_with_static_runtimes=yes
13418      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'
13419      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13420
13421      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13422        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13423	# If the export-symbols file already is a .def file, use it as
13424	# is; otherwise, prepend EXPORTS...
13425	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13426          cp $export_symbols $output_objdir/$soname.def;
13427        else
13428          echo EXPORTS > $output_objdir/$soname.def;
13429          cat $export_symbols >> $output_objdir/$soname.def;
13430        fi~
13431        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13432      else
13433	ld_shlibs=no
13434      fi
13435      ;;
13436
13437    haiku*)
13438      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13439      link_all_deplibs=yes
13440      ;;
13441
13442    os2*)
13443      hardcode_libdir_flag_spec='-L$libdir'
13444      hardcode_minus_L=yes
13445      allow_undefined_flag=unsupported
13446      shrext_cmds=.dll
13447      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13448	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13449	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13450	$ECHO EXPORTS >> $output_objdir/$libname.def~
13451	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13452	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13453	emximp -o $lib $output_objdir/$libname.def'
13454      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13455	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13456	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13457	$ECHO EXPORTS >> $output_objdir/$libname.def~
13458	prefix_cmds="$SED"~
13459	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13460	  prefix_cmds="$prefix_cmds -e 1d";
13461	fi~
13462	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13463	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13464	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13465	emximp -o $lib $output_objdir/$libname.def'
13466      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13467      enable_shared_with_static_runtimes=yes
13468      ;;
13469
13470    interix[3-9]*)
13471      hardcode_direct=no
13472      hardcode_shlibpath_var=no
13473      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13474      export_dynamic_flag_spec='$wl-E'
13475      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13476      # Instead, shared libraries are loaded at an image base (0x10000000 by
13477      # default) and relocated if they conflict, which is a slow very memory
13478      # consuming and fragmenting process.  To avoid this, we pick a random,
13479      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13480      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13481      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13482      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'
13483      ;;
13484
13485    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13486      tmp_diet=no
13487      if test linux-dietlibc = "$host_os"; then
13488	case $cc_basename in
13489	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
13490	esac
13491      fi
13492      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13493	 && test no = "$tmp_diet"
13494      then
13495	tmp_addflag=' $pic_flag'
13496	tmp_sharedflag='-shared'
13497	case $cc_basename,$host_cpu in
13498        pgcc*)				# Portland Group C compiler
13499	  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'
13500	  tmp_addflag=' $pic_flag'
13501	  ;;
13502	pgf77* | pgf90* | pgf95* | pgfortran*)
13503					# Portland Group f77 and f90 compilers
13504	  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'
13505	  tmp_addflag=' $pic_flag -Mnomain' ;;
13506	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13507	  tmp_addflag=' -i_dynamic' ;;
13508	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13509	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13510	ifc* | ifort*)			# Intel Fortran compiler
13511	  tmp_addflag=' -nofor_main' ;;
13512	lf95*)				# Lahey Fortran 8.1
13513	  whole_archive_flag_spec=
13514	  tmp_sharedflag='--shared' ;;
13515        nagfor*)                        # NAGFOR 5.3
13516          tmp_sharedflag='-Wl,-shared' ;;
13517	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13518	  tmp_sharedflag='-qmkshrobj'
13519	  tmp_addflag= ;;
13520	nvcc*)	# Cuda Compiler Driver 2.2
13521	  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'
13522	  compiler_needs_object=yes
13523	  ;;
13524	esac
13525	case `$CC -V 2>&1 | sed 5q` in
13526	*Sun\ C*)			# Sun C 5.9
13527	  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'
13528	  compiler_needs_object=yes
13529	  tmp_sharedflag='-G' ;;
13530	*Sun\ F*)			# Sun Fortran 8.3
13531	  tmp_sharedflag='-G' ;;
13532	esac
13533	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13534
13535        if test yes = "$supports_anon_versioning"; then
13536          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13537            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13538            echo "local: *; };" >> $output_objdir/$libname.ver~
13539            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13540        fi
13541
13542	case $cc_basename in
13543	tcc*)
13544	  export_dynamic_flag_spec='-rdynamic'
13545	  ;;
13546	xlf* | bgf* | bgxlf* | mpixlf*)
13547	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13548	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13549	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13550	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13551	  if test yes = "$supports_anon_versioning"; then
13552	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13553              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13554              echo "local: *; };" >> $output_objdir/$libname.ver~
13555              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13556	  fi
13557	  ;;
13558	esac
13559      else
13560        ld_shlibs=no
13561      fi
13562      ;;
13563
13564    netbsd* | netbsdelf*-gnu)
13565      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13566	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13567	wlarc=
13568      else
13569	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13570	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13571      fi
13572      ;;
13573
13574    solaris*)
13575      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13576	ld_shlibs=no
13577	cat <<_LT_EOF 1>&2
13578
13579*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13580*** create shared libraries on Solaris systems.  Therefore, libtool
13581*** is disabling shared libraries support.  We urge you to upgrade GNU
13582*** binutils to release 2.9.1 or newer.  Another option is to modify
13583*** your PATH or compiler configuration so that the native linker is
13584*** used, and then restart.
13585
13586_LT_EOF
13587      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13588	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13589	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13590      else
13591	ld_shlibs=no
13592      fi
13593      ;;
13594
13595    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13596      case `$LD -v 2>&1` in
13597        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13598	ld_shlibs=no
13599	cat <<_LT_EOF 1>&2
13600
13601*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13602*** reliably create shared libraries on SCO systems.  Therefore, libtool
13603*** is disabling shared libraries support.  We urge you to upgrade GNU
13604*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13605*** your PATH or compiler configuration so that the native linker is
13606*** used, and then restart.
13607
13608_LT_EOF
13609	;;
13610	*)
13611	  # For security reasons, it is highly recommended that you always
13612	  # use absolute paths for naming shared libraries, and exclude the
13613	  # DT_RUNPATH tag from executables and libraries.  But doing so
13614	  # requires that you compile everything twice, which is a pain.
13615	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13616	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13617	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13618	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13619	  else
13620	    ld_shlibs=no
13621	  fi
13622	;;
13623      esac
13624      ;;
13625
13626    sunos4*)
13627      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13628      wlarc=
13629      hardcode_direct=yes
13630      hardcode_shlibpath_var=no
13631      ;;
13632
13633    *)
13634      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13635	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13636	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13637      else
13638	ld_shlibs=no
13639      fi
13640      ;;
13641    esac
13642
13643    if test no = "$ld_shlibs"; then
13644      runpath_var=
13645      hardcode_libdir_flag_spec=
13646      export_dynamic_flag_spec=
13647      whole_archive_flag_spec=
13648    fi
13649  else
13650    # PORTME fill in a description of your system's linker (not GNU ld)
13651    case $host_os in
13652    aix3*)
13653      allow_undefined_flag=unsupported
13654      always_export_symbols=yes
13655      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'
13656      # Note: this linker hardcodes the directories in LIBPATH if there
13657      # are no directories specified by -L.
13658      hardcode_minus_L=yes
13659      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13660	# Neither direct hardcoding nor static linking is supported with a
13661	# broken collect2.
13662	hardcode_direct=unsupported
13663      fi
13664      ;;
13665
13666    aix[4-9]*)
13667      if test ia64 = "$host_cpu"; then
13668	# On IA64, the linker does run time linking by default, so we don't
13669	# have to do anything special.
13670	aix_use_runtimelinking=no
13671	exp_sym_flag='-Bexport'
13672	no_entry_flag=
13673      else
13674	# If we're using GNU nm, then we don't want the "-C" option.
13675	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
13676	# Without the "-l" option, or with the "-B" option, AIX nm treats
13677	# weak defined symbols like other global defined symbols, whereas
13678	# GNU nm marks them as "W".
13679	# While the 'weak' keyword is ignored in the Export File, we need
13680	# it in the Import File for the 'aix-soname' feature, so we have
13681	# to replace the "-B" option with "-P" for AIX nm.
13682	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13683	  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'
13684	else
13685	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13686	fi
13687	aix_use_runtimelinking=no
13688
13689	# Test if we are trying to use run time linking or normal
13690	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13691	# have runtime linking enabled, and use it for executables.
13692	# For shared libraries, we enable/disable runtime linking
13693	# depending on the kind of the shared library created -
13694	# when "with_aix_soname,aix_use_runtimelinking" is:
13695	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13696	# "aix,yes"  lib.so          shared, rtl:yes, for executables
13697	#            lib.a           static archive
13698	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
13699	#            lib.a(lib.so.V) shared, rtl:no,  for executables
13700	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13701	#            lib.a(lib.so.V) shared, rtl:no
13702	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13703	#            lib.a           static archive
13704	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13705	  for ld_flag in $LDFLAGS; do
13706	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13707	    aix_use_runtimelinking=yes
13708	    break
13709	  fi
13710	  done
13711	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13712	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
13713	    # so we don't have lib.a shared libs to link our executables.
13714	    # We have to force runtime linking in this case.
13715	    aix_use_runtimelinking=yes
13716	    LDFLAGS="$LDFLAGS -Wl,-brtl"
13717	  fi
13718	  ;;
13719	esac
13720
13721	exp_sym_flag='-bexport'
13722	no_entry_flag='-bnoentry'
13723      fi
13724
13725      # When large executables or shared objects are built, AIX ld can
13726      # have problems creating the table of contents.  If linking a library
13727      # or program results in "error TOC overflow" add -mminimal-toc to
13728      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13729      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13730
13731      archive_cmds=''
13732      hardcode_direct=yes
13733      hardcode_direct_absolute=yes
13734      hardcode_libdir_separator=':'
13735      link_all_deplibs=yes
13736      file_list_spec='$wl-f,'
13737      case $with_aix_soname,$aix_use_runtimelinking in
13738      aix,*) ;; # traditional, no import file
13739      svr4,* | *,yes) # use import file
13740	# The Import File defines what to hardcode.
13741	hardcode_direct=no
13742	hardcode_direct_absolute=no
13743	;;
13744      esac
13745
13746      if test yes = "$GCC"; then
13747	case $host_os in aix4.[012]|aix4.[012].*)
13748	# We only want to do this on AIX 4.2 and lower, the check
13749	# below for broken collect2 doesn't work under 4.3+
13750	  collect2name=`$CC -print-prog-name=collect2`
13751	  if test -f "$collect2name" &&
13752	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13753	  then
13754	  # We have reworked collect2
13755	  :
13756	  else
13757	  # We have old collect2
13758	  hardcode_direct=unsupported
13759	  # It fails to find uninstalled libraries when the uninstalled
13760	  # path is not listed in the libpath.  Setting hardcode_minus_L
13761	  # to unsupported forces relinking
13762	  hardcode_minus_L=yes
13763	  hardcode_libdir_flag_spec='-L$libdir'
13764	  hardcode_libdir_separator=
13765	  fi
13766	  ;;
13767	esac
13768	shared_flag='-shared'
13769	if test yes = "$aix_use_runtimelinking"; then
13770	  shared_flag="$shared_flag "'$wl-G'
13771	fi
13772	# Need to ensure runtime linking is disabled for the traditional
13773	# shared library, or the linker may eventually find shared libraries
13774	# /with/ Import File - we do not want to mix them.
13775	shared_flag_aix='-shared'
13776	shared_flag_svr4='-shared $wl-G'
13777      else
13778	# not using gcc
13779	if test ia64 = "$host_cpu"; then
13780	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13781	# chokes on -Wl,-G. The following line is correct:
13782	  shared_flag='-G'
13783	else
13784	  if test yes = "$aix_use_runtimelinking"; then
13785	    shared_flag='$wl-G'
13786	  else
13787	    shared_flag='$wl-bM:SRE'
13788	  fi
13789	  shared_flag_aix='$wl-bM:SRE'
13790	  shared_flag_svr4='$wl-G'
13791	fi
13792      fi
13793
13794      export_dynamic_flag_spec='$wl-bexpall'
13795      # It seems that -bexpall does not export symbols beginning with
13796      # underscore (_), so it is better to generate a list of symbols to export.
13797      always_export_symbols=yes
13798      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13799	# Warning - without using the other runtime loading flags (-brtl),
13800	# -berok will link without error, but may produce a broken library.
13801	allow_undefined_flag='-berok'
13802        # Determine the default libpath from the value encoded in an
13803        # empty executable.
13804        if test set = "${lt_cv_aix_libpath+set}"; then
13805  aix_libpath=$lt_cv_aix_libpath
13806else
13807  if test ${lt_cv_aix_libpath_+y}
13808then :
13809  printf %s "(cached) " >&6
13810else $as_nop
13811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812/* end confdefs.h.  */
13813
13814int
13815main (void)
13816{
13817
13818  ;
13819  return 0;
13820}
13821_ACEOF
13822if ac_fn_c_try_link "$LINENO"
13823then :
13824
13825  lt_aix_libpath_sed='
13826      /Import File Strings/,/^$/ {
13827	  /^0/ {
13828	      s/^0  *\([^ ]*\) *$/\1/
13829	      p
13830	  }
13831      }'
13832  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13833  # Check for a 64-bit object if we didn't find anything.
13834  if test -z "$lt_cv_aix_libpath_"; then
13835    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13836  fi
13837fi
13838rm -f core conftest.err conftest.$ac_objext conftest.beam \
13839    conftest$ac_exeext conftest.$ac_ext
13840  if test -z "$lt_cv_aix_libpath_"; then
13841    lt_cv_aix_libpath_=/usr/lib:/lib
13842  fi
13843
13844fi
13845
13846  aix_libpath=$lt_cv_aix_libpath_
13847fi
13848
13849        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13850        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
13851      else
13852	if test ia64 = "$host_cpu"; then
13853	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13854	  allow_undefined_flag="-z nodefs"
13855	  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"
13856	else
13857	 # Determine the default libpath from the value encoded in an
13858	 # empty executable.
13859	 if test set = "${lt_cv_aix_libpath+set}"; then
13860  aix_libpath=$lt_cv_aix_libpath
13861else
13862  if test ${lt_cv_aix_libpath_+y}
13863then :
13864  printf %s "(cached) " >&6
13865else $as_nop
13866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867/* end confdefs.h.  */
13868
13869int
13870main (void)
13871{
13872
13873  ;
13874  return 0;
13875}
13876_ACEOF
13877if ac_fn_c_try_link "$LINENO"
13878then :
13879
13880  lt_aix_libpath_sed='
13881      /Import File Strings/,/^$/ {
13882	  /^0/ {
13883	      s/^0  *\([^ ]*\) *$/\1/
13884	      p
13885	  }
13886      }'
13887  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13888  # Check for a 64-bit object if we didn't find anything.
13889  if test -z "$lt_cv_aix_libpath_"; then
13890    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13891  fi
13892fi
13893rm -f core conftest.err conftest.$ac_objext conftest.beam \
13894    conftest$ac_exeext conftest.$ac_ext
13895  if test -z "$lt_cv_aix_libpath_"; then
13896    lt_cv_aix_libpath_=/usr/lib:/lib
13897  fi
13898
13899fi
13900
13901  aix_libpath=$lt_cv_aix_libpath_
13902fi
13903
13904	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13905	  # Warning - without using the other run time loading flags,
13906	  # -berok will link without error, but may produce a broken library.
13907	  no_undefined_flag=' $wl-bernotok'
13908	  allow_undefined_flag=' $wl-berok'
13909	  if test yes = "$with_gnu_ld"; then
13910	    # We only use this code for GNU lds that support --whole-archive.
13911	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13912	  else
13913	    # Exported symbols can be pulled into shared objects from archives
13914	    whole_archive_flag_spec='$convenience'
13915	  fi
13916	  archive_cmds_need_lc=yes
13917	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13918	  # -brtl affects multiple linker settings, -berok does not and is overridden later
13919	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13920	  if test svr4 != "$with_aix_soname"; then
13921	    # This is similar to how AIX traditionally builds its shared libraries.
13922	    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'
13923	  fi
13924	  if test aix != "$with_aix_soname"; then
13925	    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'
13926	  else
13927	    # used by -dlpreopen to get the symbols
13928	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13929	  fi
13930	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13931	fi
13932      fi
13933      ;;
13934
13935    amigaos*)
13936      case $host_cpu in
13937      powerpc)
13938            # see comment about AmigaOS4 .so support
13939            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13940            archive_expsym_cmds=''
13941        ;;
13942      m68k)
13943            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)'
13944            hardcode_libdir_flag_spec='-L$libdir'
13945            hardcode_minus_L=yes
13946        ;;
13947      esac
13948      ;;
13949
13950    bsdi[45]*)
13951      export_dynamic_flag_spec=-rdynamic
13952      ;;
13953
13954    cygwin* | mingw* | pw32* | cegcc*)
13955      # When not using gcc, we currently assume that we are using
13956      # Microsoft Visual C++.
13957      # hardcode_libdir_flag_spec is actually meaningless, as there is
13958      # no search path for DLLs.
13959      case $cc_basename in
13960      cl*)
13961	# Native MSVC
13962	hardcode_libdir_flag_spec=' '
13963	allow_undefined_flag=unsupported
13964	always_export_symbols=yes
13965	file_list_spec='@'
13966	# Tell ltmain to make .lib files, not .a files.
13967	libext=lib
13968	# Tell ltmain to make .dll files, not .so files.
13969	shrext_cmds=.dll
13970	# FIXME: Setting linknames here is a bad hack.
13971	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13972	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13973            cp "$export_symbols" "$output_objdir/$soname.def";
13974            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13975          else
13976            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13977          fi~
13978          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13979          linknames='
13980	# The linker will not automatically build a static lib if we build a DLL.
13981	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13982	enable_shared_with_static_runtimes=yes
13983	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13984	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13985	# Don't use ranlib
13986	old_postinstall_cmds='chmod 644 $oldlib'
13987	postlink_cmds='lt_outputfile="@OUTPUT@"~
13988          lt_tool_outputfile="@TOOL_OUTPUT@"~
13989          case $lt_outputfile in
13990            *.exe|*.EXE) ;;
13991            *)
13992              lt_outputfile=$lt_outputfile.exe
13993              lt_tool_outputfile=$lt_tool_outputfile.exe
13994              ;;
13995          esac~
13996          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13997            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13998            $RM "$lt_outputfile.manifest";
13999          fi'
14000	;;
14001      *)
14002	# Assume MSVC wrapper
14003	hardcode_libdir_flag_spec=' '
14004	allow_undefined_flag=unsupported
14005	# Tell ltmain to make .lib files, not .a files.
14006	libext=lib
14007	# Tell ltmain to make .dll files, not .so files.
14008	shrext_cmds=.dll
14009	# FIXME: Setting linknames here is a bad hack.
14010	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14011	# The linker will automatically build a .lib file if we build a DLL.
14012	old_archive_from_new_cmds='true'
14013	# FIXME: Should let the user specify the lib program.
14014	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14015	enable_shared_with_static_runtimes=yes
14016	;;
14017      esac
14018      ;;
14019
14020    darwin* | rhapsody*)
14021
14022
14023  archive_cmds_need_lc=no
14024  hardcode_direct=no
14025  hardcode_automatic=yes
14026  hardcode_shlibpath_var=unsupported
14027  if test yes = "$lt_cv_ld_force_load"; then
14028    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\"`'
14029
14030  else
14031    whole_archive_flag_spec=''
14032  fi
14033  link_all_deplibs=yes
14034  allow_undefined_flag=$_lt_dar_allow_undefined
14035  case $cc_basename in
14036     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14037     *) _lt_dar_can_shared=$GCC ;;
14038  esac
14039  if test yes = "$_lt_dar_can_shared"; then
14040    output_verbose_link_cmd=func_echo_all
14041    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14042    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14043    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"
14044    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"
14045
14046  else
14047  ld_shlibs=no
14048  fi
14049
14050      ;;
14051
14052    dgux*)
14053      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14054      hardcode_libdir_flag_spec='-L$libdir'
14055      hardcode_shlibpath_var=no
14056      ;;
14057
14058    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14059    # support.  Future versions do this automatically, but an explicit c++rt0.o
14060    # does not break anything, and helps significantly (at the cost of a little
14061    # extra space).
14062    freebsd2.2*)
14063      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14064      hardcode_libdir_flag_spec='-R$libdir'
14065      hardcode_direct=yes
14066      hardcode_shlibpath_var=no
14067      ;;
14068
14069    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14070    freebsd2.*)
14071      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14072      hardcode_direct=yes
14073      hardcode_minus_L=yes
14074      hardcode_shlibpath_var=no
14075      ;;
14076
14077    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14078    freebsd* | dragonfly*)
14079      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14080      hardcode_libdir_flag_spec='-R$libdir'
14081      hardcode_direct=yes
14082      hardcode_shlibpath_var=no
14083      ;;
14084
14085    hpux9*)
14086      if test yes = "$GCC"; then
14087	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'
14088      else
14089	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'
14090      fi
14091      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14092      hardcode_libdir_separator=:
14093      hardcode_direct=yes
14094
14095      # hardcode_minus_L: Not really in the search PATH,
14096      # but as the default location of the library.
14097      hardcode_minus_L=yes
14098      export_dynamic_flag_spec='$wl-E'
14099      ;;
14100
14101    hpux10*)
14102      if test yes,no = "$GCC,$with_gnu_ld"; then
14103	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14104      else
14105	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14106      fi
14107      if test no = "$with_gnu_ld"; then
14108	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14109	hardcode_libdir_separator=:
14110	hardcode_direct=yes
14111	hardcode_direct_absolute=yes
14112	export_dynamic_flag_spec='$wl-E'
14113	# hardcode_minus_L: Not really in the search PATH,
14114	# but as the default location of the library.
14115	hardcode_minus_L=yes
14116      fi
14117      ;;
14118
14119    hpux11*)
14120      if test yes,no = "$GCC,$with_gnu_ld"; then
14121	case $host_cpu in
14122	hppa*64*)
14123	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14124	  ;;
14125	ia64*)
14126	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14127	  ;;
14128	*)
14129	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14130	  ;;
14131	esac
14132      else
14133	case $host_cpu in
14134	hppa*64*)
14135	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14136	  ;;
14137	ia64*)
14138	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14139	  ;;
14140	*)
14141
14142	  # Older versions of the 11.00 compiler do not understand -b yet
14143	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14144	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14145printf %s "checking if $CC understands -b... " >&6; }
14146if test ${lt_cv_prog_compiler__b+y}
14147then :
14148  printf %s "(cached) " >&6
14149else $as_nop
14150  lt_cv_prog_compiler__b=no
14151   save_LDFLAGS=$LDFLAGS
14152   LDFLAGS="$LDFLAGS -b"
14153   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14154   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14155     # The linker can only warn and ignore the option if not recognized
14156     # So say no if there are warnings
14157     if test -s conftest.err; then
14158       # Append any errors to the config.log.
14159       cat conftest.err 1>&5
14160       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14161       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14162       if diff conftest.exp conftest.er2 >/dev/null; then
14163         lt_cv_prog_compiler__b=yes
14164       fi
14165     else
14166       lt_cv_prog_compiler__b=yes
14167     fi
14168   fi
14169   $RM -r conftest*
14170   LDFLAGS=$save_LDFLAGS
14171
14172fi
14173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14174printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14175
14176if test yes = "$lt_cv_prog_compiler__b"; then
14177    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14178else
14179    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14180fi
14181
14182	  ;;
14183	esac
14184      fi
14185      if test no = "$with_gnu_ld"; then
14186	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14187	hardcode_libdir_separator=:
14188
14189	case $host_cpu in
14190	hppa*64*|ia64*)
14191	  hardcode_direct=no
14192	  hardcode_shlibpath_var=no
14193	  ;;
14194	*)
14195	  hardcode_direct=yes
14196	  hardcode_direct_absolute=yes
14197	  export_dynamic_flag_spec='$wl-E'
14198
14199	  # hardcode_minus_L: Not really in the search PATH,
14200	  # but as the default location of the library.
14201	  hardcode_minus_L=yes
14202	  ;;
14203	esac
14204      fi
14205      ;;
14206
14207    irix5* | irix6* | nonstopux*)
14208      if test yes = "$GCC"; then
14209	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'
14210	# Try to use the -exported_symbol ld option, if it does not
14211	# work, assume that -exports_file does not work either and
14212	# implicitly export all symbols.
14213	# This should be the same for all languages, so no per-tag cache variable.
14214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14215printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14216if test ${lt_cv_irix_exported_symbol+y}
14217then :
14218  printf %s "(cached) " >&6
14219else $as_nop
14220  save_LDFLAGS=$LDFLAGS
14221	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14222	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223/* end confdefs.h.  */
14224int foo (void) { return 0; }
14225_ACEOF
14226if ac_fn_c_try_link "$LINENO"
14227then :
14228  lt_cv_irix_exported_symbol=yes
14229else $as_nop
14230  lt_cv_irix_exported_symbol=no
14231fi
14232rm -f core conftest.err conftest.$ac_objext conftest.beam \
14233    conftest$ac_exeext conftest.$ac_ext
14234           LDFLAGS=$save_LDFLAGS
14235fi
14236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14237printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14238	if test yes = "$lt_cv_irix_exported_symbol"; then
14239          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'
14240	fi
14241	link_all_deplibs=no
14242      else
14243	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'
14244	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'
14245      fi
14246      archive_cmds_need_lc='no'
14247      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14248      hardcode_libdir_separator=:
14249      inherit_rpath=yes
14250      link_all_deplibs=yes
14251      ;;
14252
14253    linux*)
14254      case $cc_basename in
14255      tcc*)
14256	# Fabrice Bellard et al's Tiny C Compiler
14257	ld_shlibs=yes
14258	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14259	;;
14260      esac
14261      ;;
14262
14263    netbsd* | netbsdelf*-gnu)
14264      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14265	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14266      else
14267	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14268      fi
14269      hardcode_libdir_flag_spec='-R$libdir'
14270      hardcode_direct=yes
14271      hardcode_shlibpath_var=no
14272      ;;
14273
14274    newsos6)
14275      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14276      hardcode_direct=yes
14277      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14278      hardcode_libdir_separator=:
14279      hardcode_shlibpath_var=no
14280      ;;
14281
14282    *nto* | *qnx*)
14283      ;;
14284
14285    openbsd* | bitrig*)
14286      if test -f /usr/libexec/ld.so; then
14287	hardcode_direct=yes
14288	hardcode_shlibpath_var=no
14289	hardcode_direct_absolute=yes
14290	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14291	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14292	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14293	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14294	  export_dynamic_flag_spec='$wl-E'
14295	else
14296	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14297	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14298	fi
14299      else
14300	ld_shlibs=no
14301      fi
14302      ;;
14303
14304    os2*)
14305      hardcode_libdir_flag_spec='-L$libdir'
14306      hardcode_minus_L=yes
14307      allow_undefined_flag=unsupported
14308      shrext_cmds=.dll
14309      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14310	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14311	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14312	$ECHO EXPORTS >> $output_objdir/$libname.def~
14313	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14314	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14315	emximp -o $lib $output_objdir/$libname.def'
14316      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14317	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14318	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14319	$ECHO EXPORTS >> $output_objdir/$libname.def~
14320	prefix_cmds="$SED"~
14321	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14322	  prefix_cmds="$prefix_cmds -e 1d";
14323	fi~
14324	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14325	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14326	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14327	emximp -o $lib $output_objdir/$libname.def'
14328      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14329      enable_shared_with_static_runtimes=yes
14330      ;;
14331
14332    osf3*)
14333      if test yes = "$GCC"; then
14334	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14335	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'
14336      else
14337	allow_undefined_flag=' -expect_unresolved \*'
14338	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'
14339      fi
14340      archive_cmds_need_lc='no'
14341      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14342      hardcode_libdir_separator=:
14343      ;;
14344
14345    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14346      if test yes = "$GCC"; then
14347	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14348	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'
14349	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14350      else
14351	allow_undefined_flag=' -expect_unresolved \*'
14352	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'
14353	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~
14354          $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'
14355
14356	# Both c and cxx compiler support -rpath directly
14357	hardcode_libdir_flag_spec='-rpath $libdir'
14358      fi
14359      archive_cmds_need_lc='no'
14360      hardcode_libdir_separator=:
14361      ;;
14362
14363    solaris*)
14364      no_undefined_flag=' -z defs'
14365      if test yes = "$GCC"; then
14366	wlarc='$wl'
14367	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14368	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14369          $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'
14370      else
14371	case `$CC -V 2>&1` in
14372	*"Compilers 5.0"*)
14373	  wlarc=''
14374	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14375	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14376            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14377	  ;;
14378	*)
14379	  wlarc='$wl'
14380	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14381	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14382            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14383	  ;;
14384	esac
14385      fi
14386      hardcode_libdir_flag_spec='-R$libdir'
14387      hardcode_shlibpath_var=no
14388      case $host_os in
14389      solaris2.[0-5] | solaris2.[0-5].*) ;;
14390      *)
14391	# The compiler driver will combine and reorder linker options,
14392	# but understands '-z linker_flag'.  GCC discards it without '$wl',
14393	# but is careful enough not to reorder.
14394	# Supported since Solaris 2.6 (maybe 2.5.1?)
14395	if test yes = "$GCC"; then
14396	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14397	else
14398	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14399	fi
14400	;;
14401      esac
14402      link_all_deplibs=yes
14403      ;;
14404
14405    sunos4*)
14406      if test sequent = "$host_vendor"; then
14407	# Use $CC to link under sequent, because it throws in some extra .o
14408	# files that make .init and .fini sections work.
14409	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14410      else
14411	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14412      fi
14413      hardcode_libdir_flag_spec='-L$libdir'
14414      hardcode_direct=yes
14415      hardcode_minus_L=yes
14416      hardcode_shlibpath_var=no
14417      ;;
14418
14419    sysv4)
14420      case $host_vendor in
14421	sni)
14422	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14423	  hardcode_direct=yes # is this really true???
14424	;;
14425	siemens)
14426	  ## LD is ld it makes a PLAMLIB
14427	  ## CC just makes a GrossModule.
14428	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14429	  reload_cmds='$CC -r -o $output$reload_objs'
14430	  hardcode_direct=no
14431        ;;
14432	motorola)
14433	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14434	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14435	;;
14436      esac
14437      runpath_var='LD_RUN_PATH'
14438      hardcode_shlibpath_var=no
14439      ;;
14440
14441    sysv4.3*)
14442      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14443      hardcode_shlibpath_var=no
14444      export_dynamic_flag_spec='-Bexport'
14445      ;;
14446
14447    sysv4*MP*)
14448      if test -d /usr/nec; then
14449	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14450	hardcode_shlibpath_var=no
14451	runpath_var=LD_RUN_PATH
14452	hardcode_runpath_var=yes
14453	ld_shlibs=yes
14454      fi
14455      ;;
14456
14457    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14458      no_undefined_flag='$wl-z,text'
14459      archive_cmds_need_lc=no
14460      hardcode_shlibpath_var=no
14461      runpath_var='LD_RUN_PATH'
14462
14463      if test yes = "$GCC"; then
14464	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14465	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14466      else
14467	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14468	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14469      fi
14470      ;;
14471
14472    sysv5* | sco3.2v5* | sco5v6*)
14473      # Note: We CANNOT use -z defs as we might desire, because we do not
14474      # link with -lc, and that would cause any symbols used from libc to
14475      # always be unresolved, which means just about no library would
14476      # ever link correctly.  If we're not using GNU ld we use -z text
14477      # though, which does catch some bad symbols but isn't as heavy-handed
14478      # as -z defs.
14479      no_undefined_flag='$wl-z,text'
14480      allow_undefined_flag='$wl-z,nodefs'
14481      archive_cmds_need_lc=no
14482      hardcode_shlibpath_var=no
14483      hardcode_libdir_flag_spec='$wl-R,$libdir'
14484      hardcode_libdir_separator=':'
14485      link_all_deplibs=yes
14486      export_dynamic_flag_spec='$wl-Bexport'
14487      runpath_var='LD_RUN_PATH'
14488
14489      if test yes = "$GCC"; then
14490	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14491	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14492      else
14493	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14494	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14495      fi
14496      ;;
14497
14498    uts4*)
14499      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14500      hardcode_libdir_flag_spec='-L$libdir'
14501      hardcode_shlibpath_var=no
14502      ;;
14503
14504    *)
14505      ld_shlibs=no
14506      ;;
14507    esac
14508
14509    if test sni = "$host_vendor"; then
14510      case $host in
14511      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14512	export_dynamic_flag_spec='$wl-Blargedynsym'
14513	;;
14514      esac
14515    fi
14516  fi
14517
14518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14519printf "%s\n" "$ld_shlibs" >&6; }
14520test no = "$ld_shlibs" && can_build_shared=no
14521
14522with_gnu_ld=$with_gnu_ld
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538#
14539# Do we need to explicitly link libc?
14540#
14541case "x$archive_cmds_need_lc" in
14542x|xyes)
14543  # Assume -lc should be added
14544  archive_cmds_need_lc=yes
14545
14546  if test yes,yes = "$GCC,$enable_shared"; then
14547    case $archive_cmds in
14548    *'~'*)
14549      # FIXME: we may have to deal with multi-command sequences.
14550      ;;
14551    '$CC '*)
14552      # Test whether the compiler implicitly links with -lc since on some
14553      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14554      # to ld, don't add -lc before -lgcc.
14555      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14556printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14557if test ${lt_cv_archive_cmds_need_lc+y}
14558then :
14559  printf %s "(cached) " >&6
14560else $as_nop
14561  $RM conftest*
14562	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14563
14564	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14565  (eval $ac_compile) 2>&5
14566  ac_status=$?
14567  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14568  test $ac_status = 0; } 2>conftest.err; then
14569	  soname=conftest
14570	  lib=conftest
14571	  libobjs=conftest.$ac_objext
14572	  deplibs=
14573	  wl=$lt_prog_compiler_wl
14574	  pic_flag=$lt_prog_compiler_pic
14575	  compiler_flags=-v
14576	  linker_flags=-v
14577	  verstring=
14578	  output_objdir=.
14579	  libname=conftest
14580	  lt_save_allow_undefined_flag=$allow_undefined_flag
14581	  allow_undefined_flag=
14582	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14583  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14584  ac_status=$?
14585  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586  test $ac_status = 0; }
14587	  then
14588	    lt_cv_archive_cmds_need_lc=no
14589	  else
14590	    lt_cv_archive_cmds_need_lc=yes
14591	  fi
14592	  allow_undefined_flag=$lt_save_allow_undefined_flag
14593	else
14594	  cat conftest.err 1>&5
14595	fi
14596	$RM conftest*
14597
14598fi
14599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14600printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14601      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14602      ;;
14603    esac
14604  fi
14605  ;;
14606esac
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
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14760printf %s "checking dynamic linker characteristics... " >&6; }
14761
14762if test yes = "$GCC"; then
14763  case $host_os in
14764    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14765    *) lt_awk_arg='/^libraries:/' ;;
14766  esac
14767  case $host_os in
14768    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14769    *) lt_sed_strip_eq='s|=/|/|g' ;;
14770  esac
14771  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14772  case $lt_search_path_spec in
14773  *\;*)
14774    # if the path contains ";" then we assume it to be the separator
14775    # otherwise default to the standard path separator (i.e. ":") - it is
14776    # assumed that no part of a normal pathname contains ";" but that should
14777    # okay in the real world where ";" in dirpaths is itself problematic.
14778    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14779    ;;
14780  *)
14781    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14782    ;;
14783  esac
14784  # Ok, now we have the path, separated by spaces, we can step through it
14785  # and add multilib dir if necessary...
14786  lt_tmp_lt_search_path_spec=
14787  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14788  # ...but if some path component already ends with the multilib dir we assume
14789  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14790  case "$lt_multi_os_dir; $lt_search_path_spec " in
14791  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14792    lt_multi_os_dir=
14793    ;;
14794  esac
14795  for lt_sys_path in $lt_search_path_spec; do
14796    if test -d "$lt_sys_path$lt_multi_os_dir"; then
14797      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14798    elif test -n "$lt_multi_os_dir"; then
14799      test -d "$lt_sys_path" && \
14800	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14801    fi
14802  done
14803  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14804BEGIN {RS = " "; FS = "/|\n";} {
14805  lt_foo = "";
14806  lt_count = 0;
14807  for (lt_i = NF; lt_i > 0; lt_i--) {
14808    if ($lt_i != "" && $lt_i != ".") {
14809      if ($lt_i == "..") {
14810        lt_count++;
14811      } else {
14812        if (lt_count == 0) {
14813          lt_foo = "/" $lt_i lt_foo;
14814        } else {
14815          lt_count--;
14816        }
14817      }
14818    }
14819  }
14820  if (lt_foo != "") { lt_freq[lt_foo]++; }
14821  if (lt_freq[lt_foo] == 1) { print lt_foo; }
14822}'`
14823  # AWK program above erroneously prepends '/' to C:/dos/paths
14824  # for these hosts.
14825  case $host_os in
14826    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14827      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14828  esac
14829  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14830else
14831  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14832fi
14833library_names_spec=
14834libname_spec='lib$name'
14835soname_spec=
14836shrext_cmds=.so
14837postinstall_cmds=
14838postuninstall_cmds=
14839finish_cmds=
14840finish_eval=
14841shlibpath_var=
14842shlibpath_overrides_runpath=unknown
14843version_type=none
14844dynamic_linker="$host_os ld.so"
14845sys_lib_dlsearch_path_spec="/lib /usr/lib"
14846need_lib_prefix=unknown
14847hardcode_into_libs=no
14848
14849# when you set need_version to no, make sure it does not cause -set_version
14850# flags to be left without arguments
14851need_version=unknown
14852
14853
14854
14855case $host_os in
14856aix3*)
14857  version_type=linux # correct to gnu/linux during the next big refactor
14858  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14859  shlibpath_var=LIBPATH
14860
14861  # AIX 3 has no versioning support, so we append a major version to the name.
14862  soname_spec='$libname$release$shared_ext$major'
14863  ;;
14864
14865aix[4-9]*)
14866  version_type=linux # correct to gnu/linux during the next big refactor
14867  need_lib_prefix=no
14868  need_version=no
14869  hardcode_into_libs=yes
14870  if test ia64 = "$host_cpu"; then
14871    # AIX 5 supports IA64
14872    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14873    shlibpath_var=LD_LIBRARY_PATH
14874  else
14875    # With GCC up to 2.95.x, collect2 would create an import file
14876    # for dependence libraries.  The import file would start with
14877    # the line '#! .'.  This would cause the generated library to
14878    # depend on '.', always an invalid library.  This was fixed in
14879    # development snapshots of GCC prior to 3.0.
14880    case $host_os in
14881      aix4 | aix4.[01] | aix4.[01].*)
14882      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14883	   echo ' yes '
14884	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14885	:
14886      else
14887	can_build_shared=no
14888      fi
14889      ;;
14890    esac
14891    # Using Import Files as archive members, it is possible to support
14892    # filename-based versioning of shared library archives on AIX. While
14893    # this would work for both with and without runtime linking, it will
14894    # prevent static linking of such archives. So we do filename-based
14895    # shared library versioning with .so extension only, which is used
14896    # when both runtime linking and shared linking is enabled.
14897    # Unfortunately, runtime linking may impact performance, so we do
14898    # not want this to be the default eventually. Also, we use the
14899    # versioned .so libs for executables only if there is the -brtl
14900    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14901    # To allow for filename-based versioning support, we need to create
14902    # libNAME.so.V as an archive file, containing:
14903    # *) an Import File, referring to the versioned filename of the
14904    #    archive as well as the shared archive member, telling the
14905    #    bitwidth (32 or 64) of that shared object, and providing the
14906    #    list of exported symbols of that shared object, eventually
14907    #    decorated with the 'weak' keyword
14908    # *) the shared object with the F_LOADONLY flag set, to really avoid
14909    #    it being seen by the linker.
14910    # At run time we better use the real file rather than another symlink,
14911    # but for link time we create the symlink libNAME.so -> libNAME.so.V
14912
14913    case $with_aix_soname,$aix_use_runtimelinking in
14914    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14915    # soname into executable. Probably we can add versioning support to
14916    # collect2, so additional links can be useful in future.
14917    aix,yes) # traditional libtool
14918      dynamic_linker='AIX unversionable lib.so'
14919      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14920      # instead of lib<name>.a to let people know that these are not
14921      # typical AIX shared libraries.
14922      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14923      ;;
14924    aix,no) # traditional AIX only
14925      dynamic_linker='AIX lib.a(lib.so.V)'
14926      # We preserve .a as extension for shared libraries through AIX4.2
14927      # and later when we are not doing run time linking.
14928      library_names_spec='$libname$release.a $libname.a'
14929      soname_spec='$libname$release$shared_ext$major'
14930      ;;
14931    svr4,*) # full svr4 only
14932      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14933      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14934      # We do not specify a path in Import Files, so LIBPATH fires.
14935      shlibpath_overrides_runpath=yes
14936      ;;
14937    *,yes) # both, prefer svr4
14938      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14939      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14940      # unpreferred sharedlib libNAME.a needs extra handling
14941      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"'
14942      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"'
14943      # We do not specify a path in Import Files, so LIBPATH fires.
14944      shlibpath_overrides_runpath=yes
14945      ;;
14946    *,no) # both, prefer aix
14947      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14948      library_names_spec='$libname$release.a $libname.a'
14949      soname_spec='$libname$release$shared_ext$major'
14950      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14951      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)'
14952      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"'
14953      ;;
14954    esac
14955    shlibpath_var=LIBPATH
14956  fi
14957  ;;
14958
14959amigaos*)
14960  case $host_cpu in
14961  powerpc)
14962    # Since July 2007 AmigaOS4 officially supports .so libraries.
14963    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14964    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14965    ;;
14966  m68k)
14967    library_names_spec='$libname.ixlibrary $libname.a'
14968    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14969    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'
14970    ;;
14971  esac
14972  ;;
14973
14974beos*)
14975  library_names_spec='$libname$shared_ext'
14976  dynamic_linker="$host_os ld.so"
14977  shlibpath_var=LIBRARY_PATH
14978  ;;
14979
14980bsdi[45]*)
14981  version_type=linux # correct to gnu/linux during the next big refactor
14982  need_version=no
14983  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14984  soname_spec='$libname$release$shared_ext$major'
14985  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14986  shlibpath_var=LD_LIBRARY_PATH
14987  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14988  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14989  # the default ld.so.conf also contains /usr/contrib/lib and
14990  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14991  # libtool to hard-code these into programs
14992  ;;
14993
14994cygwin* | mingw* | pw32* | cegcc*)
14995  version_type=windows
14996  shrext_cmds=.dll
14997  need_version=no
14998  need_lib_prefix=no
14999
15000  case $GCC,$cc_basename in
15001  yes,*)
15002    # gcc
15003    library_names_spec='$libname.dll.a'
15004    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15005    postinstall_cmds='base_file=`basename \$file`~
15006      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15007      dldir=$destdir/`dirname \$dlpath`~
15008      test -d \$dldir || mkdir -p \$dldir~
15009      $install_prog $dir/$dlname \$dldir/$dlname~
15010      chmod a+x \$dldir/$dlname~
15011      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15012        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15013      fi'
15014    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15015      dlpath=$dir/\$dldll~
15016       $RM \$dlpath'
15017    shlibpath_overrides_runpath=yes
15018
15019    case $host_os in
15020    cygwin*)
15021      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15022      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15023
15024      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15025      ;;
15026    mingw* | cegcc*)
15027      # MinGW DLLs use traditional 'lib' prefix
15028      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15029      ;;
15030    pw32*)
15031      # pw32 DLLs use 'pw' prefix rather than 'lib'
15032      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15033      ;;
15034    esac
15035    dynamic_linker='Win32 ld.exe'
15036    ;;
15037
15038  *,cl*)
15039    # Native MSVC
15040    libname_spec='$name'
15041    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15042    library_names_spec='$libname.dll.lib'
15043
15044    case $build_os in
15045    mingw*)
15046      sys_lib_search_path_spec=
15047      lt_save_ifs=$IFS
15048      IFS=';'
15049      for lt_path in $LIB
15050      do
15051        IFS=$lt_save_ifs
15052        # Let DOS variable expansion print the short 8.3 style file name.
15053        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15054        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15055      done
15056      IFS=$lt_save_ifs
15057      # Convert to MSYS style.
15058      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15059      ;;
15060    cygwin*)
15061      # Convert to unix form, then to dos form, then back to unix form
15062      # but this time dos style (no spaces!) so that the unix form looks
15063      # like /cygdrive/c/PROGRA~1:/cygdr...
15064      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15065      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15066      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15067      ;;
15068    *)
15069      sys_lib_search_path_spec=$LIB
15070      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15071        # It is most probably a Windows format PATH.
15072        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15073      else
15074        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15075      fi
15076      # FIXME: find the short name or the path components, as spaces are
15077      # common. (e.g. "Program Files" -> "PROGRA~1")
15078      ;;
15079    esac
15080
15081    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15082    postinstall_cmds='base_file=`basename \$file`~
15083      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15084      dldir=$destdir/`dirname \$dlpath`~
15085      test -d \$dldir || mkdir -p \$dldir~
15086      $install_prog $dir/$dlname \$dldir/$dlname'
15087    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15088      dlpath=$dir/\$dldll~
15089       $RM \$dlpath'
15090    shlibpath_overrides_runpath=yes
15091    dynamic_linker='Win32 link.exe'
15092    ;;
15093
15094  *)
15095    # Assume MSVC wrapper
15096    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15097    dynamic_linker='Win32 ld.exe'
15098    ;;
15099  esac
15100  # FIXME: first we should search . and the directory the executable is in
15101  shlibpath_var=PATH
15102  ;;
15103
15104darwin* | rhapsody*)
15105  dynamic_linker="$host_os dyld"
15106  version_type=darwin
15107  need_lib_prefix=no
15108  need_version=no
15109  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15110  soname_spec='$libname$release$major$shared_ext'
15111  shlibpath_overrides_runpath=yes
15112  shlibpath_var=DYLD_LIBRARY_PATH
15113  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15114
15115  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15116  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15117  ;;
15118
15119dgux*)
15120  version_type=linux # correct to gnu/linux during the next big refactor
15121  need_lib_prefix=no
15122  need_version=no
15123  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15124  soname_spec='$libname$release$shared_ext$major'
15125  shlibpath_var=LD_LIBRARY_PATH
15126  ;;
15127
15128freebsd* | dragonfly*)
15129  # DragonFly does not have aout.  When/if they implement a new
15130  # versioning mechanism, adjust this.
15131  if test -x /usr/bin/objformat; then
15132    objformat=`/usr/bin/objformat`
15133  else
15134    case $host_os in
15135    freebsd[23].*) objformat=aout ;;
15136    *) objformat=elf ;;
15137    esac
15138  fi
15139  version_type=freebsd-$objformat
15140  case $version_type in
15141    freebsd-elf*)
15142      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15143      soname_spec='$libname$release$shared_ext$major'
15144      need_version=no
15145      need_lib_prefix=no
15146      ;;
15147    freebsd-*)
15148      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15149      need_version=yes
15150      ;;
15151  esac
15152  shlibpath_var=LD_LIBRARY_PATH
15153  case $host_os in
15154  freebsd2.*)
15155    shlibpath_overrides_runpath=yes
15156    ;;
15157  freebsd3.[01]* | freebsdelf3.[01]*)
15158    shlibpath_overrides_runpath=yes
15159    hardcode_into_libs=yes
15160    ;;
15161  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15162  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15163    shlibpath_overrides_runpath=no
15164    hardcode_into_libs=yes
15165    ;;
15166  *) # from 4.6 on, and DragonFly
15167    shlibpath_overrides_runpath=yes
15168    hardcode_into_libs=yes
15169    ;;
15170  esac
15171  ;;
15172
15173haiku*)
15174  version_type=linux # correct to gnu/linux during the next big refactor
15175  need_lib_prefix=no
15176  need_version=no
15177  dynamic_linker="$host_os runtime_loader"
15178  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15179  soname_spec='$libname$release$shared_ext$major'
15180  shlibpath_var=LIBRARY_PATH
15181  shlibpath_overrides_runpath=no
15182  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15183  hardcode_into_libs=yes
15184  ;;
15185
15186hpux9* | hpux10* | hpux11*)
15187  # Give a soname corresponding to the major version so that dld.sl refuses to
15188  # link against other versions.
15189  version_type=sunos
15190  need_lib_prefix=no
15191  need_version=no
15192  case $host_cpu in
15193  ia64*)
15194    shrext_cmds='.so'
15195    hardcode_into_libs=yes
15196    dynamic_linker="$host_os dld.so"
15197    shlibpath_var=LD_LIBRARY_PATH
15198    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15199    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15200    soname_spec='$libname$release$shared_ext$major'
15201    if test 32 = "$HPUX_IA64_MODE"; then
15202      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15203      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15204    else
15205      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15206      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15207    fi
15208    ;;
15209  hppa*64*)
15210    shrext_cmds='.sl'
15211    hardcode_into_libs=yes
15212    dynamic_linker="$host_os dld.sl"
15213    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15214    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15215    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15216    soname_spec='$libname$release$shared_ext$major'
15217    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15218    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15219    ;;
15220  *)
15221    shrext_cmds='.sl'
15222    dynamic_linker="$host_os dld.sl"
15223    shlibpath_var=SHLIB_PATH
15224    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15225    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15226    soname_spec='$libname$release$shared_ext$major'
15227    ;;
15228  esac
15229  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15230  postinstall_cmds='chmod 555 $lib'
15231  # or fails outright, so override atomically:
15232  install_override_mode=555
15233  ;;
15234
15235interix[3-9]*)
15236  version_type=linux # correct to gnu/linux during the next big refactor
15237  need_lib_prefix=no
15238  need_version=no
15239  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15240  soname_spec='$libname$release$shared_ext$major'
15241  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15242  shlibpath_var=LD_LIBRARY_PATH
15243  shlibpath_overrides_runpath=no
15244  hardcode_into_libs=yes
15245  ;;
15246
15247irix5* | irix6* | nonstopux*)
15248  case $host_os in
15249    nonstopux*) version_type=nonstopux ;;
15250    *)
15251	if test yes = "$lt_cv_prog_gnu_ld"; then
15252		version_type=linux # correct to gnu/linux during the next big refactor
15253	else
15254		version_type=irix
15255	fi ;;
15256  esac
15257  need_lib_prefix=no
15258  need_version=no
15259  soname_spec='$libname$release$shared_ext$major'
15260  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15261  case $host_os in
15262  irix5* | nonstopux*)
15263    libsuff= shlibsuff=
15264    ;;
15265  *)
15266    case $LD in # libtool.m4 will add one of these switches to LD
15267    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15268      libsuff= shlibsuff= libmagic=32-bit;;
15269    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15270      libsuff=32 shlibsuff=N32 libmagic=N32;;
15271    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15272      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15273    *) libsuff= shlibsuff= libmagic=never-match;;
15274    esac
15275    ;;
15276  esac
15277  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15278  shlibpath_overrides_runpath=no
15279  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15280  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15281  hardcode_into_libs=yes
15282  ;;
15283
15284# No shared lib support for Linux oldld, aout, or coff.
15285linux*oldld* | linux*aout* | linux*coff*)
15286  dynamic_linker=no
15287  ;;
15288
15289linux*android*)
15290  version_type=none # Android doesn't support versioned libraries.
15291  need_lib_prefix=no
15292  need_version=no
15293  library_names_spec='$libname$release$shared_ext'
15294  soname_spec='$libname$release$shared_ext'
15295  finish_cmds=
15296  shlibpath_var=LD_LIBRARY_PATH
15297  shlibpath_overrides_runpath=yes
15298
15299  # This implies no fast_install, which is unacceptable.
15300  # Some rework will be needed to allow for fast_install
15301  # before this can be enabled.
15302  hardcode_into_libs=yes
15303
15304  dynamic_linker='Android linker'
15305  # Don't embed -rpath directories since the linker doesn't support them.
15306  hardcode_libdir_flag_spec='-L$libdir'
15307  ;;
15308
15309# This must be glibc/ELF.
15310linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15311  version_type=linux # correct to gnu/linux during the next big refactor
15312  need_lib_prefix=no
15313  need_version=no
15314  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15315  soname_spec='$libname$release$shared_ext$major'
15316  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15317  shlibpath_var=LD_LIBRARY_PATH
15318  shlibpath_overrides_runpath=no
15319
15320  # Some binutils ld are patched to set DT_RUNPATH
15321  if test ${lt_cv_shlibpath_overrides_runpath+y}
15322then :
15323  printf %s "(cached) " >&6
15324else $as_nop
15325  lt_cv_shlibpath_overrides_runpath=no
15326    save_LDFLAGS=$LDFLAGS
15327    save_libdir=$libdir
15328    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15329	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15330    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331/* end confdefs.h.  */
15332
15333int
15334main (void)
15335{
15336
15337  ;
15338  return 0;
15339}
15340_ACEOF
15341if ac_fn_c_try_link "$LINENO"
15342then :
15343  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15344then :
15345  lt_cv_shlibpath_overrides_runpath=yes
15346fi
15347fi
15348rm -f core conftest.err conftest.$ac_objext conftest.beam \
15349    conftest$ac_exeext conftest.$ac_ext
15350    LDFLAGS=$save_LDFLAGS
15351    libdir=$save_libdir
15352
15353fi
15354
15355  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15356
15357  # This implies no fast_install, which is unacceptable.
15358  # Some rework will be needed to allow for fast_install
15359  # before this can be enabled.
15360  hardcode_into_libs=yes
15361
15362  # Ideally, we could use ldconfig to report *all* directores which are
15363  # searched for libraries, however this is still not possible.  Aside from not
15364  # being certain /sbin/ldconfig is available, command
15365  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15366  # even though it is searched at run-time.  Try to do the best guess by
15367  # appending ld.so.conf contents (and includes) to the search path.
15368  if test -f /etc/ld.so.conf; then
15369    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' ' '`
15370    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15371  fi
15372
15373  # We used to test for /lib/ld.so.1 and disable shared libraries on
15374  # powerpc, because MkLinux only supported shared libraries with the
15375  # GNU dynamic linker.  Since this was broken with cross compilers,
15376  # most powerpc-linux boxes support dynamic linking these days and
15377  # people can always --disable-shared, the test was removed, and we
15378  # assume the GNU/Linux dynamic linker is in use.
15379  dynamic_linker='GNU/Linux ld.so'
15380  ;;
15381
15382netbsdelf*-gnu)
15383  version_type=linux
15384  need_lib_prefix=no
15385  need_version=no
15386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15387  soname_spec='${libname}${release}${shared_ext}$major'
15388  shlibpath_var=LD_LIBRARY_PATH
15389  shlibpath_overrides_runpath=no
15390  hardcode_into_libs=yes
15391  dynamic_linker='NetBSD ld.elf_so'
15392  ;;
15393
15394netbsd*)
15395  version_type=sunos
15396  need_lib_prefix=no
15397  need_version=no
15398  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15399    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15400    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15401    dynamic_linker='NetBSD (a.out) ld.so'
15402  else
15403    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15404    soname_spec='$libname$release$shared_ext$major'
15405    dynamic_linker='NetBSD ld.elf_so'
15406  fi
15407  shlibpath_var=LD_LIBRARY_PATH
15408  shlibpath_overrides_runpath=yes
15409  hardcode_into_libs=yes
15410  ;;
15411
15412newsos6)
15413  version_type=linux # correct to gnu/linux during the next big refactor
15414  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15415  shlibpath_var=LD_LIBRARY_PATH
15416  shlibpath_overrides_runpath=yes
15417  ;;
15418
15419*nto* | *qnx*)
15420  version_type=qnx
15421  need_lib_prefix=no
15422  need_version=no
15423  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15424  soname_spec='$libname$release$shared_ext$major'
15425  shlibpath_var=LD_LIBRARY_PATH
15426  shlibpath_overrides_runpath=no
15427  hardcode_into_libs=yes
15428  dynamic_linker='ldqnx.so'
15429  ;;
15430
15431openbsd* | bitrig*)
15432  version_type=sunos
15433  sys_lib_dlsearch_path_spec=/usr/lib
15434  need_lib_prefix=no
15435  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15436    need_version=no
15437  else
15438    need_version=yes
15439  fi
15440  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15441  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15442  shlibpath_var=LD_LIBRARY_PATH
15443  shlibpath_overrides_runpath=yes
15444  ;;
15445
15446os2*)
15447  libname_spec='$name'
15448  version_type=windows
15449  shrext_cmds=.dll
15450  need_version=no
15451  need_lib_prefix=no
15452  # OS/2 can only load a DLL with a base name of 8 characters or less.
15453  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15454    v=$($ECHO $release$versuffix | tr -d .-);
15455    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15456    $ECHO $n$v`$shared_ext'
15457  library_names_spec='${libname}_dll.$libext'
15458  dynamic_linker='OS/2 ld.exe'
15459  shlibpath_var=BEGINLIBPATH
15460  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15461  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15462  postinstall_cmds='base_file=`basename \$file`~
15463    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15464    dldir=$destdir/`dirname \$dlpath`~
15465    test -d \$dldir || mkdir -p \$dldir~
15466    $install_prog $dir/$dlname \$dldir/$dlname~
15467    chmod a+x \$dldir/$dlname~
15468    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15469      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15470    fi'
15471  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15472    dlpath=$dir/\$dldll~
15473    $RM \$dlpath'
15474  ;;
15475
15476osf3* | osf4* | osf5*)
15477  version_type=osf
15478  need_lib_prefix=no
15479  need_version=no
15480  soname_spec='$libname$release$shared_ext$major'
15481  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15482  shlibpath_var=LD_LIBRARY_PATH
15483  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15484  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15485  ;;
15486
15487rdos*)
15488  dynamic_linker=no
15489  ;;
15490
15491solaris*)
15492  version_type=linux # correct to gnu/linux during the next big refactor
15493  need_lib_prefix=no
15494  need_version=no
15495  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15496  soname_spec='$libname$release$shared_ext$major'
15497  shlibpath_var=LD_LIBRARY_PATH
15498  shlibpath_overrides_runpath=yes
15499  hardcode_into_libs=yes
15500  # ldd complains unless libraries are executable
15501  postinstall_cmds='chmod +x $lib'
15502  ;;
15503
15504sunos4*)
15505  version_type=sunos
15506  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15507  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15508  shlibpath_var=LD_LIBRARY_PATH
15509  shlibpath_overrides_runpath=yes
15510  if test yes = "$with_gnu_ld"; then
15511    need_lib_prefix=no
15512  fi
15513  need_version=yes
15514  ;;
15515
15516sysv4 | sysv4.3*)
15517  version_type=linux # correct to gnu/linux during the next big refactor
15518  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15519  soname_spec='$libname$release$shared_ext$major'
15520  shlibpath_var=LD_LIBRARY_PATH
15521  case $host_vendor in
15522    sni)
15523      shlibpath_overrides_runpath=no
15524      need_lib_prefix=no
15525      runpath_var=LD_RUN_PATH
15526      ;;
15527    siemens)
15528      need_lib_prefix=no
15529      ;;
15530    motorola)
15531      need_lib_prefix=no
15532      need_version=no
15533      shlibpath_overrides_runpath=no
15534      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15535      ;;
15536  esac
15537  ;;
15538
15539sysv4*MP*)
15540  if test -d /usr/nec; then
15541    version_type=linux # correct to gnu/linux during the next big refactor
15542    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15543    soname_spec='$libname$shared_ext.$major'
15544    shlibpath_var=LD_LIBRARY_PATH
15545  fi
15546  ;;
15547
15548sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15549  version_type=sco
15550  need_lib_prefix=no
15551  need_version=no
15552  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15553  soname_spec='$libname$release$shared_ext$major'
15554  shlibpath_var=LD_LIBRARY_PATH
15555  shlibpath_overrides_runpath=yes
15556  hardcode_into_libs=yes
15557  if test yes = "$with_gnu_ld"; then
15558    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15559  else
15560    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15561    case $host_os in
15562      sco3.2v5*)
15563        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15564	;;
15565    esac
15566  fi
15567  sys_lib_dlsearch_path_spec='/usr/lib'
15568  ;;
15569
15570tpf*)
15571  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15572  version_type=linux # correct to gnu/linux during the next big refactor
15573  need_lib_prefix=no
15574  need_version=no
15575  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15576  shlibpath_var=LD_LIBRARY_PATH
15577  shlibpath_overrides_runpath=no
15578  hardcode_into_libs=yes
15579  ;;
15580
15581uts4*)
15582  version_type=linux # correct to gnu/linux during the next big refactor
15583  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15584  soname_spec='$libname$release$shared_ext$major'
15585  shlibpath_var=LD_LIBRARY_PATH
15586  ;;
15587
15588*)
15589  dynamic_linker=no
15590  ;;
15591esac
15592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15593printf "%s\n" "$dynamic_linker" >&6; }
15594test no = "$dynamic_linker" && can_build_shared=no
15595
15596variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15597if test yes = "$GCC"; then
15598  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15599fi
15600
15601if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15602  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15603fi
15604
15605if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15606  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15607fi
15608
15609# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15610configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15611
15612# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15613func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15614
15615# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15616configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15715printf %s "checking how to hardcode library paths into programs... " >&6; }
15716hardcode_action=
15717if test -n "$hardcode_libdir_flag_spec" ||
15718   test -n "$runpath_var" ||
15719   test yes = "$hardcode_automatic"; then
15720
15721  # We can hardcode non-existent directories.
15722  if test no != "$hardcode_direct" &&
15723     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15724     # have to relink, otherwise we might link with an installed library
15725     # when we should be linking with a yet-to-be-installed one
15726     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15727     test no != "$hardcode_minus_L"; then
15728    # Linking always hardcodes the temporary library directory.
15729    hardcode_action=relink
15730  else
15731    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15732    hardcode_action=immediate
15733  fi
15734else
15735  # We cannot hardcode anything, or else we can only hardcode existing
15736  # directories.
15737  hardcode_action=unsupported
15738fi
15739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15740printf "%s\n" "$hardcode_action" >&6; }
15741
15742if test relink = "$hardcode_action" ||
15743   test yes = "$inherit_rpath"; then
15744  # Fast installation is not supported
15745  enable_fast_install=no
15746elif test yes = "$shlibpath_overrides_runpath" ||
15747     test no = "$enable_shared"; then
15748  # Fast installation is not necessary
15749  enable_fast_install=needless
15750fi
15751
15752
15753
15754
15755
15756
15757  if test yes != "$enable_dlopen"; then
15758  enable_dlopen=unknown
15759  enable_dlopen_self=unknown
15760  enable_dlopen_self_static=unknown
15761else
15762  lt_cv_dlopen=no
15763  lt_cv_dlopen_libs=
15764
15765  case $host_os in
15766  beos*)
15767    lt_cv_dlopen=load_add_on
15768    lt_cv_dlopen_libs=
15769    lt_cv_dlopen_self=yes
15770    ;;
15771
15772  mingw* | pw32* | cegcc*)
15773    lt_cv_dlopen=LoadLibrary
15774    lt_cv_dlopen_libs=
15775    ;;
15776
15777  cygwin*)
15778    lt_cv_dlopen=dlopen
15779    lt_cv_dlopen_libs=
15780    ;;
15781
15782  darwin*)
15783    # if libdl is installed we need to link against it
15784    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15785printf %s "checking for dlopen in -ldl... " >&6; }
15786if test ${ac_cv_lib_dl_dlopen+y}
15787then :
15788  printf %s "(cached) " >&6
15789else $as_nop
15790  ac_check_lib_save_LIBS=$LIBS
15791LIBS="-ldl  $LIBS"
15792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793/* end confdefs.h.  */
15794
15795/* Override any GCC internal prototype to avoid an error.
15796   Use char because int might match the return type of a GCC
15797   builtin and then its argument prototype would still apply.  */
15798char dlopen ();
15799int
15800main (void)
15801{
15802return dlopen ();
15803  ;
15804  return 0;
15805}
15806_ACEOF
15807if ac_fn_c_try_link "$LINENO"
15808then :
15809  ac_cv_lib_dl_dlopen=yes
15810else $as_nop
15811  ac_cv_lib_dl_dlopen=no
15812fi
15813rm -f core conftest.err conftest.$ac_objext conftest.beam \
15814    conftest$ac_exeext conftest.$ac_ext
15815LIBS=$ac_check_lib_save_LIBS
15816fi
15817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15818printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15819if test "x$ac_cv_lib_dl_dlopen" = xyes
15820then :
15821  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15822else $as_nop
15823
15824    lt_cv_dlopen=dyld
15825    lt_cv_dlopen_libs=
15826    lt_cv_dlopen_self=yes
15827
15828fi
15829
15830    ;;
15831
15832  tpf*)
15833    # Don't try to run any link tests for TPF.  We know it's impossible
15834    # because TPF is a cross-compiler, and we know how we open DSOs.
15835    lt_cv_dlopen=dlopen
15836    lt_cv_dlopen_libs=
15837    lt_cv_dlopen_self=no
15838    ;;
15839
15840  *)
15841    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15842if test "x$ac_cv_func_shl_load" = xyes
15843then :
15844  lt_cv_dlopen=shl_load
15845else $as_nop
15846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15847printf %s "checking for shl_load in -ldld... " >&6; }
15848if test ${ac_cv_lib_dld_shl_load+y}
15849then :
15850  printf %s "(cached) " >&6
15851else $as_nop
15852  ac_check_lib_save_LIBS=$LIBS
15853LIBS="-ldld  $LIBS"
15854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855/* end confdefs.h.  */
15856
15857/* Override any GCC internal prototype to avoid an error.
15858   Use char because int might match the return type of a GCC
15859   builtin and then its argument prototype would still apply.  */
15860char shl_load ();
15861int
15862main (void)
15863{
15864return shl_load ();
15865  ;
15866  return 0;
15867}
15868_ACEOF
15869if ac_fn_c_try_link "$LINENO"
15870then :
15871  ac_cv_lib_dld_shl_load=yes
15872else $as_nop
15873  ac_cv_lib_dld_shl_load=no
15874fi
15875rm -f core conftest.err conftest.$ac_objext conftest.beam \
15876    conftest$ac_exeext conftest.$ac_ext
15877LIBS=$ac_check_lib_save_LIBS
15878fi
15879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15880printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15881if test "x$ac_cv_lib_dld_shl_load" = xyes
15882then :
15883  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15884else $as_nop
15885  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15886if test "x$ac_cv_func_dlopen" = xyes
15887then :
15888  lt_cv_dlopen=dlopen
15889else $as_nop
15890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15891printf %s "checking for dlopen in -ldl... " >&6; }
15892if test ${ac_cv_lib_dl_dlopen+y}
15893then :
15894  printf %s "(cached) " >&6
15895else $as_nop
15896  ac_check_lib_save_LIBS=$LIBS
15897LIBS="-ldl  $LIBS"
15898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899/* end confdefs.h.  */
15900
15901/* Override any GCC internal prototype to avoid an error.
15902   Use char because int might match the return type of a GCC
15903   builtin and then its argument prototype would still apply.  */
15904char dlopen ();
15905int
15906main (void)
15907{
15908return dlopen ();
15909  ;
15910  return 0;
15911}
15912_ACEOF
15913if ac_fn_c_try_link "$LINENO"
15914then :
15915  ac_cv_lib_dl_dlopen=yes
15916else $as_nop
15917  ac_cv_lib_dl_dlopen=no
15918fi
15919rm -f core conftest.err conftest.$ac_objext conftest.beam \
15920    conftest$ac_exeext conftest.$ac_ext
15921LIBS=$ac_check_lib_save_LIBS
15922fi
15923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15924printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15925if test "x$ac_cv_lib_dl_dlopen" = xyes
15926then :
15927  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15928else $as_nop
15929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15930printf %s "checking for dlopen in -lsvld... " >&6; }
15931if test ${ac_cv_lib_svld_dlopen+y}
15932then :
15933  printf %s "(cached) " >&6
15934else $as_nop
15935  ac_check_lib_save_LIBS=$LIBS
15936LIBS="-lsvld  $LIBS"
15937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938/* end confdefs.h.  */
15939
15940/* Override any GCC internal prototype to avoid an error.
15941   Use char because int might match the return type of a GCC
15942   builtin and then its argument prototype would still apply.  */
15943char dlopen ();
15944int
15945main (void)
15946{
15947return dlopen ();
15948  ;
15949  return 0;
15950}
15951_ACEOF
15952if ac_fn_c_try_link "$LINENO"
15953then :
15954  ac_cv_lib_svld_dlopen=yes
15955else $as_nop
15956  ac_cv_lib_svld_dlopen=no
15957fi
15958rm -f core conftest.err conftest.$ac_objext conftest.beam \
15959    conftest$ac_exeext conftest.$ac_ext
15960LIBS=$ac_check_lib_save_LIBS
15961fi
15962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15963printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15964if test "x$ac_cv_lib_svld_dlopen" = xyes
15965then :
15966  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15967else $as_nop
15968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15969printf %s "checking for dld_link in -ldld... " >&6; }
15970if test ${ac_cv_lib_dld_dld_link+y}
15971then :
15972  printf %s "(cached) " >&6
15973else $as_nop
15974  ac_check_lib_save_LIBS=$LIBS
15975LIBS="-ldld  $LIBS"
15976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977/* end confdefs.h.  */
15978
15979/* Override any GCC internal prototype to avoid an error.
15980   Use char because int might match the return type of a GCC
15981   builtin and then its argument prototype would still apply.  */
15982char dld_link ();
15983int
15984main (void)
15985{
15986return dld_link ();
15987  ;
15988  return 0;
15989}
15990_ACEOF
15991if ac_fn_c_try_link "$LINENO"
15992then :
15993  ac_cv_lib_dld_dld_link=yes
15994else $as_nop
15995  ac_cv_lib_dld_dld_link=no
15996fi
15997rm -f core conftest.err conftest.$ac_objext conftest.beam \
15998    conftest$ac_exeext conftest.$ac_ext
15999LIBS=$ac_check_lib_save_LIBS
16000fi
16001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16002printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16003if test "x$ac_cv_lib_dld_dld_link" = xyes
16004then :
16005  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16006fi
16007
16008
16009fi
16010
16011
16012fi
16013
16014
16015fi
16016
16017
16018fi
16019
16020
16021fi
16022
16023    ;;
16024  esac
16025
16026  if test no = "$lt_cv_dlopen"; then
16027    enable_dlopen=no
16028  else
16029    enable_dlopen=yes
16030  fi
16031
16032  case $lt_cv_dlopen in
16033  dlopen)
16034    save_CPPFLAGS=$CPPFLAGS
16035    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16036
16037    save_LDFLAGS=$LDFLAGS
16038    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16039
16040    save_LIBS=$LIBS
16041    LIBS="$lt_cv_dlopen_libs $LIBS"
16042
16043    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16044printf %s "checking whether a program can dlopen itself... " >&6; }
16045if test ${lt_cv_dlopen_self+y}
16046then :
16047  printf %s "(cached) " >&6
16048else $as_nop
16049  	  if test yes = "$cross_compiling"; then :
16050  lt_cv_dlopen_self=cross
16051else
16052  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16053  lt_status=$lt_dlunknown
16054  cat > conftest.$ac_ext <<_LT_EOF
16055#line $LINENO "configure"
16056#include "confdefs.h"
16057
16058#if HAVE_DLFCN_H
16059#include <dlfcn.h>
16060#endif
16061
16062#include <stdio.h>
16063
16064#ifdef RTLD_GLOBAL
16065#  define LT_DLGLOBAL		RTLD_GLOBAL
16066#else
16067#  ifdef DL_GLOBAL
16068#    define LT_DLGLOBAL		DL_GLOBAL
16069#  else
16070#    define LT_DLGLOBAL		0
16071#  endif
16072#endif
16073
16074/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16075   find out it does not work in some platform. */
16076#ifndef LT_DLLAZY_OR_NOW
16077#  ifdef RTLD_LAZY
16078#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16079#  else
16080#    ifdef DL_LAZY
16081#      define LT_DLLAZY_OR_NOW		DL_LAZY
16082#    else
16083#      ifdef RTLD_NOW
16084#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16085#      else
16086#        ifdef DL_NOW
16087#          define LT_DLLAZY_OR_NOW	DL_NOW
16088#        else
16089#          define LT_DLLAZY_OR_NOW	0
16090#        endif
16091#      endif
16092#    endif
16093#  endif
16094#endif
16095
16096/* When -fvisibility=hidden is used, assume the code has been annotated
16097   correspondingly for the symbols needed.  */
16098#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16099int fnord () __attribute__((visibility("default")));
16100#endif
16101
16102int fnord () { return 42; }
16103int main ()
16104{
16105  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16106  int status = $lt_dlunknown;
16107
16108  if (self)
16109    {
16110      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16111      else
16112        {
16113	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16114          else puts (dlerror ());
16115	}
16116      /* dlclose (self); */
16117    }
16118  else
16119    puts (dlerror ());
16120
16121  return status;
16122}
16123_LT_EOF
16124  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16125  (eval $ac_link) 2>&5
16126  ac_status=$?
16127  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16128  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16129    (./conftest; exit; ) >&5 2>/dev/null
16130    lt_status=$?
16131    case x$lt_status in
16132      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16133      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16134      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16135    esac
16136  else :
16137    # compilation failed
16138    lt_cv_dlopen_self=no
16139  fi
16140fi
16141rm -fr conftest*
16142
16143
16144fi
16145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16146printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16147
16148    if test yes = "$lt_cv_dlopen_self"; then
16149      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16150      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16151printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16152if test ${lt_cv_dlopen_self_static+y}
16153then :
16154  printf %s "(cached) " >&6
16155else $as_nop
16156  	  if test yes = "$cross_compiling"; then :
16157  lt_cv_dlopen_self_static=cross
16158else
16159  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16160  lt_status=$lt_dlunknown
16161  cat > conftest.$ac_ext <<_LT_EOF
16162#line $LINENO "configure"
16163#include "confdefs.h"
16164
16165#if HAVE_DLFCN_H
16166#include <dlfcn.h>
16167#endif
16168
16169#include <stdio.h>
16170
16171#ifdef RTLD_GLOBAL
16172#  define LT_DLGLOBAL		RTLD_GLOBAL
16173#else
16174#  ifdef DL_GLOBAL
16175#    define LT_DLGLOBAL		DL_GLOBAL
16176#  else
16177#    define LT_DLGLOBAL		0
16178#  endif
16179#endif
16180
16181/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16182   find out it does not work in some platform. */
16183#ifndef LT_DLLAZY_OR_NOW
16184#  ifdef RTLD_LAZY
16185#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16186#  else
16187#    ifdef DL_LAZY
16188#      define LT_DLLAZY_OR_NOW		DL_LAZY
16189#    else
16190#      ifdef RTLD_NOW
16191#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16192#      else
16193#        ifdef DL_NOW
16194#          define LT_DLLAZY_OR_NOW	DL_NOW
16195#        else
16196#          define LT_DLLAZY_OR_NOW	0
16197#        endif
16198#      endif
16199#    endif
16200#  endif
16201#endif
16202
16203/* When -fvisibility=hidden is used, assume the code has been annotated
16204   correspondingly for the symbols needed.  */
16205#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16206int fnord () __attribute__((visibility("default")));
16207#endif
16208
16209int fnord () { return 42; }
16210int main ()
16211{
16212  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16213  int status = $lt_dlunknown;
16214
16215  if (self)
16216    {
16217      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16218      else
16219        {
16220	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16221          else puts (dlerror ());
16222	}
16223      /* dlclose (self); */
16224    }
16225  else
16226    puts (dlerror ());
16227
16228  return status;
16229}
16230_LT_EOF
16231  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16232  (eval $ac_link) 2>&5
16233  ac_status=$?
16234  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16235  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16236    (./conftest; exit; ) >&5 2>/dev/null
16237    lt_status=$?
16238    case x$lt_status in
16239      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16240      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16241      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16242    esac
16243  else :
16244    # compilation failed
16245    lt_cv_dlopen_self_static=no
16246  fi
16247fi
16248rm -fr conftest*
16249
16250
16251fi
16252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16253printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16254    fi
16255
16256    CPPFLAGS=$save_CPPFLAGS
16257    LDFLAGS=$save_LDFLAGS
16258    LIBS=$save_LIBS
16259    ;;
16260  esac
16261
16262  case $lt_cv_dlopen_self in
16263  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16264  *) enable_dlopen_self=unknown ;;
16265  esac
16266
16267  case $lt_cv_dlopen_self_static in
16268  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16269  *) enable_dlopen_self_static=unknown ;;
16270  esac
16271fi
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289striplib=
16290old_striplib=
16291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16292printf %s "checking whether stripping libraries is possible... " >&6; }
16293if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16294  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16295  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16297printf "%s\n" "yes" >&6; }
16298else
16299# FIXME - insert some real tests, host_os isn't really good enough
16300  case $host_os in
16301  darwin*)
16302    if test -n "$STRIP"; then
16303      striplib="$STRIP -x"
16304      old_striplib="$STRIP -S"
16305      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16306printf "%s\n" "yes" >&6; }
16307    else
16308      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309printf "%s\n" "no" >&6; }
16310    fi
16311    ;;
16312  *)
16313    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16314printf "%s\n" "no" >&6; }
16315    ;;
16316  esac
16317fi
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330  # Report what library types will actually be built
16331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16332printf %s "checking if libtool supports shared libraries... " >&6; }
16333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16334printf "%s\n" "$can_build_shared" >&6; }
16335
16336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16337printf %s "checking whether to build shared libraries... " >&6; }
16338  test no = "$can_build_shared" && enable_shared=no
16339
16340  # On AIX, shared libraries and static libraries use the same namespace, and
16341  # are all built from PIC.
16342  case $host_os in
16343  aix3*)
16344    test yes = "$enable_shared" && enable_static=no
16345    if test -n "$RANLIB"; then
16346      archive_cmds="$archive_cmds~\$RANLIB \$lib"
16347      postinstall_cmds='$RANLIB $lib'
16348    fi
16349    ;;
16350
16351  aix[4-9]*)
16352    if test ia64 != "$host_cpu"; then
16353      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16354      yes,aix,yes) ;;			# shared object as lib.so file only
16355      yes,svr4,*) ;;			# shared object as lib.so archive member only
16356      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
16357      esac
16358    fi
16359    ;;
16360  esac
16361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16362printf "%s\n" "$enable_shared" >&6; }
16363
16364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16365printf %s "checking whether to build static libraries... " >&6; }
16366  # Make sure either enable_shared or enable_static is yes.
16367  test yes = "$enable_shared" || enable_static=yes
16368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16369printf "%s\n" "$enable_static" >&6; }
16370
16371
16372
16373
16374fi
16375ac_ext=c
16376ac_cpp='$CPP $CPPFLAGS'
16377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16379ac_compiler_gnu=$ac_cv_c_compiler_gnu
16380
16381CC=$lt_save_CC
16382
16383      if test -n "$CXX" && ( test no != "$CXX" &&
16384    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16385    (test g++ != "$CXX"))); then
16386  ac_ext=cpp
16387ac_cpp='$CXXCPP $CPPFLAGS'
16388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16392printf %s "checking how to run the C++ preprocessor... " >&6; }
16393if test -z "$CXXCPP"; then
16394  if test ${ac_cv_prog_CXXCPP+y}
16395then :
16396  printf %s "(cached) " >&6
16397else $as_nop
16398      # Double quotes because $CXX needs to be expanded
16399    for CXXCPP in "$CXX -E" cpp /lib/cpp
16400    do
16401      ac_preproc_ok=false
16402for ac_cxx_preproc_warn_flag in '' yes
16403do
16404  # Use a header file that comes with gcc, so configuring glibc
16405  # with a fresh cross-compiler works.
16406  # On the NeXT, cc -E runs the code through the compiler's parser,
16407  # not just through cpp. "Syntax error" is here to catch this case.
16408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409/* end confdefs.h.  */
16410#include <limits.h>
16411		     Syntax error
16412_ACEOF
16413if ac_fn_cxx_try_cpp "$LINENO"
16414then :
16415
16416else $as_nop
16417  # Broken: fails on valid input.
16418continue
16419fi
16420rm -f conftest.err conftest.i conftest.$ac_ext
16421
16422  # OK, works on sane cases.  Now check whether nonexistent headers
16423  # can be detected and how.
16424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425/* end confdefs.h.  */
16426#include <ac_nonexistent.h>
16427_ACEOF
16428if ac_fn_cxx_try_cpp "$LINENO"
16429then :
16430  # Broken: success on invalid input.
16431continue
16432else $as_nop
16433  # Passes both tests.
16434ac_preproc_ok=:
16435break
16436fi
16437rm -f conftest.err conftest.i conftest.$ac_ext
16438
16439done
16440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16441rm -f conftest.i conftest.err conftest.$ac_ext
16442if $ac_preproc_ok
16443then :
16444  break
16445fi
16446
16447    done
16448    ac_cv_prog_CXXCPP=$CXXCPP
16449
16450fi
16451  CXXCPP=$ac_cv_prog_CXXCPP
16452else
16453  ac_cv_prog_CXXCPP=$CXXCPP
16454fi
16455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16456printf "%s\n" "$CXXCPP" >&6; }
16457ac_preproc_ok=false
16458for ac_cxx_preproc_warn_flag in '' yes
16459do
16460  # Use a header file that comes with gcc, so configuring glibc
16461  # with a fresh cross-compiler works.
16462  # On the NeXT, cc -E runs the code through the compiler's parser,
16463  # not just through cpp. "Syntax error" is here to catch this case.
16464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465/* end confdefs.h.  */
16466#include <limits.h>
16467		     Syntax error
16468_ACEOF
16469if ac_fn_cxx_try_cpp "$LINENO"
16470then :
16471
16472else $as_nop
16473  # Broken: fails on valid input.
16474continue
16475fi
16476rm -f conftest.err conftest.i conftest.$ac_ext
16477
16478  # OK, works on sane cases.  Now check whether nonexistent headers
16479  # can be detected and how.
16480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481/* end confdefs.h.  */
16482#include <ac_nonexistent.h>
16483_ACEOF
16484if ac_fn_cxx_try_cpp "$LINENO"
16485then :
16486  # Broken: success on invalid input.
16487continue
16488else $as_nop
16489  # Passes both tests.
16490ac_preproc_ok=:
16491break
16492fi
16493rm -f conftest.err conftest.i conftest.$ac_ext
16494
16495done
16496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16497rm -f conftest.i conftest.err conftest.$ac_ext
16498if $ac_preproc_ok
16499then :
16500
16501else $as_nop
16502  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16503printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16504as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16505See \`config.log' for more details" "$LINENO" 5; }
16506fi
16507
16508ac_ext=c
16509ac_cpp='$CPP $CPPFLAGS'
16510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16512ac_compiler_gnu=$ac_cv_c_compiler_gnu
16513
16514else
16515  _lt_caught_CXX_error=yes
16516fi
16517
16518ac_ext=cpp
16519ac_cpp='$CXXCPP $CPPFLAGS'
16520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16523
16524archive_cmds_need_lc_CXX=no
16525allow_undefined_flag_CXX=
16526always_export_symbols_CXX=no
16527archive_expsym_cmds_CXX=
16528compiler_needs_object_CXX=no
16529export_dynamic_flag_spec_CXX=
16530hardcode_direct_CXX=no
16531hardcode_direct_absolute_CXX=no
16532hardcode_libdir_flag_spec_CXX=
16533hardcode_libdir_separator_CXX=
16534hardcode_minus_L_CXX=no
16535hardcode_shlibpath_var_CXX=unsupported
16536hardcode_automatic_CXX=no
16537inherit_rpath_CXX=no
16538module_cmds_CXX=
16539module_expsym_cmds_CXX=
16540link_all_deplibs_CXX=unknown
16541old_archive_cmds_CXX=$old_archive_cmds
16542reload_flag_CXX=$reload_flag
16543reload_cmds_CXX=$reload_cmds
16544no_undefined_flag_CXX=
16545whole_archive_flag_spec_CXX=
16546enable_shared_with_static_runtimes_CXX=no
16547
16548# Source file extension for C++ test sources.
16549ac_ext=cpp
16550
16551# Object file extension for compiled C++ test sources.
16552objext=o
16553objext_CXX=$objext
16554
16555# No sense in running all these tests if we already determined that
16556# the CXX compiler isn't working.  Some variables (like enable_shared)
16557# are currently assumed to apply to all compilers on this platform,
16558# and will be corrupted by setting them based on a non-working compiler.
16559if test yes != "$_lt_caught_CXX_error"; then
16560  # Code to be used in simple compile tests
16561  lt_simple_compile_test_code="int some_variable = 0;"
16562
16563  # Code to be used in simple link tests
16564  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16565
16566  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16567
16568
16569
16570
16571
16572
16573# If no C compiler was specified, use CC.
16574LTCC=${LTCC-"$CC"}
16575
16576# If no C compiler flags were specified, use CFLAGS.
16577LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16578
16579# Allow CC to be a program name with arguments.
16580compiler=$CC
16581
16582
16583  # save warnings/boilerplate of simple test code
16584  ac_outfile=conftest.$ac_objext
16585echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16586eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16587_lt_compiler_boilerplate=`cat conftest.err`
16588$RM conftest*
16589
16590  ac_outfile=conftest.$ac_objext
16591echo "$lt_simple_link_test_code" >conftest.$ac_ext
16592eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16593_lt_linker_boilerplate=`cat conftest.err`
16594$RM -r conftest*
16595
16596
16597  # Allow CC to be a program name with arguments.
16598  lt_save_CC=$CC
16599  lt_save_CFLAGS=$CFLAGS
16600  lt_save_LD=$LD
16601  lt_save_GCC=$GCC
16602  GCC=$GXX
16603  lt_save_with_gnu_ld=$with_gnu_ld
16604  lt_save_path_LD=$lt_cv_path_LD
16605  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16606    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16607  else
16608    $as_unset lt_cv_prog_gnu_ld
16609  fi
16610  if test -n "${lt_cv_path_LDCXX+set}"; then
16611    lt_cv_path_LD=$lt_cv_path_LDCXX
16612  else
16613    $as_unset lt_cv_path_LD
16614  fi
16615  test -z "${LDCXX+set}" || LD=$LDCXX
16616  CC=${CXX-"c++"}
16617  CFLAGS=$CXXFLAGS
16618  compiler=$CC
16619  compiler_CXX=$CC
16620  func_cc_basename $compiler
16621cc_basename=$func_cc_basename_result
16622
16623
16624  if test -n "$compiler"; then
16625    # We don't want -fno-exception when compiling C++ code, so set the
16626    # no_builtin_flag separately
16627    if test yes = "$GXX"; then
16628      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16629    else
16630      lt_prog_compiler_no_builtin_flag_CXX=
16631    fi
16632
16633    if test yes = "$GXX"; then
16634      # Set up default GNU C++ configuration
16635
16636
16637
16638# Check whether --with-gnu-ld was given.
16639if test ${with_gnu_ld+y}
16640then :
16641  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16642else $as_nop
16643  with_gnu_ld=no
16644fi
16645
16646ac_prog=ld
16647if test yes = "$GCC"; then
16648  # Check if gcc -print-prog-name=ld gives a path.
16649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16650printf %s "checking for ld used by $CC... " >&6; }
16651  case $host in
16652  *-*-mingw*)
16653    # gcc leaves a trailing carriage return, which upsets mingw
16654    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16655  *)
16656    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16657  esac
16658  case $ac_prog in
16659    # Accept absolute paths.
16660    [\\/]* | ?:[\\/]*)
16661      re_direlt='/[^/][^/]*/\.\./'
16662      # Canonicalize the pathname of ld
16663      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16664      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16665	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16666      done
16667      test -z "$LD" && LD=$ac_prog
16668      ;;
16669  "")
16670    # If it fails, then pretend we aren't using GCC.
16671    ac_prog=ld
16672    ;;
16673  *)
16674    # If it is relative, then search for the first ld in PATH.
16675    with_gnu_ld=unknown
16676    ;;
16677  esac
16678elif test yes = "$with_gnu_ld"; then
16679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16680printf %s "checking for GNU ld... " >&6; }
16681else
16682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16683printf %s "checking for non-GNU ld... " >&6; }
16684fi
16685if test ${lt_cv_path_LD+y}
16686then :
16687  printf %s "(cached) " >&6
16688else $as_nop
16689  if test -z "$LD"; then
16690  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16691  for ac_dir in $PATH; do
16692    IFS=$lt_save_ifs
16693    test -z "$ac_dir" && ac_dir=.
16694    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16695      lt_cv_path_LD=$ac_dir/$ac_prog
16696      # Check to see if the program is GNU ld.  I'd rather use --version,
16697      # but apparently some variants of GNU ld only accept -v.
16698      # Break only if it was the GNU/non-GNU ld that we prefer.
16699      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16700      *GNU* | *'with BFD'*)
16701	test no != "$with_gnu_ld" && break
16702	;;
16703      *)
16704	test yes != "$with_gnu_ld" && break
16705	;;
16706      esac
16707    fi
16708  done
16709  IFS=$lt_save_ifs
16710else
16711  lt_cv_path_LD=$LD # Let the user override the test with a path.
16712fi
16713fi
16714
16715LD=$lt_cv_path_LD
16716if test -n "$LD"; then
16717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16718printf "%s\n" "$LD" >&6; }
16719else
16720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16721printf "%s\n" "no" >&6; }
16722fi
16723test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16725printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16726if test ${lt_cv_prog_gnu_ld+y}
16727then :
16728  printf %s "(cached) " >&6
16729else $as_nop
16730  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16731case `$LD -v 2>&1 </dev/null` in
16732*GNU* | *'with BFD'*)
16733  lt_cv_prog_gnu_ld=yes
16734  ;;
16735*)
16736  lt_cv_prog_gnu_ld=no
16737  ;;
16738esac
16739fi
16740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16741printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
16742with_gnu_ld=$lt_cv_prog_gnu_ld
16743
16744
16745
16746
16747
16748
16749
16750      # Check if GNU C++ uses GNU ld as the underlying linker, since the
16751      # archiving commands below assume that GNU ld is being used.
16752      if test yes = "$with_gnu_ld"; then
16753        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16754        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'
16755
16756        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16757        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16758
16759        # If archive_cmds runs LD, not CC, wlarc should be empty
16760        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16761        #     investigate it a little bit more. (MM)
16762        wlarc='$wl'
16763
16764        # ancient GNU ld didn't support --whole-archive et. al.
16765        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16766	  $GREP 'no-whole-archive' > /dev/null; then
16767          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16768        else
16769          whole_archive_flag_spec_CXX=
16770        fi
16771      else
16772        with_gnu_ld=no
16773        wlarc=
16774
16775        # A generic and very simple default shared library creation
16776        # command for GNU C++ for the case where it uses the native
16777        # linker, instead of GNU ld.  If possible, this setting should
16778        # overridden to take advantage of the native linker features on
16779        # the platform it is being used on.
16780        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16781      fi
16782
16783      # Commands to make compiler produce verbose output that lists
16784      # what "hidden" libraries, object files and flags are used when
16785      # linking a shared library.
16786      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16787
16788    else
16789      GXX=no
16790      with_gnu_ld=no
16791      wlarc=
16792    fi
16793
16794    # PORTME: fill in a description of your system's C++ link characteristics
16795    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16796printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16797    ld_shlibs_CXX=yes
16798    case $host_os in
16799      aix3*)
16800        # FIXME: insert proper C++ library support
16801        ld_shlibs_CXX=no
16802        ;;
16803      aix[4-9]*)
16804        if test ia64 = "$host_cpu"; then
16805          # On IA64, the linker does run time linking by default, so we don't
16806          # have to do anything special.
16807          aix_use_runtimelinking=no
16808          exp_sym_flag='-Bexport'
16809          no_entry_flag=
16810        else
16811          aix_use_runtimelinking=no
16812
16813          # Test if we are trying to use run time linking or normal
16814          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16815          # have runtime linking enabled, and use it for executables.
16816          # For shared libraries, we enable/disable runtime linking
16817          # depending on the kind of the shared library created -
16818          # when "with_aix_soname,aix_use_runtimelinking" is:
16819          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16820          # "aix,yes"  lib.so          shared, rtl:yes, for executables
16821          #            lib.a           static archive
16822          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
16823          #            lib.a(lib.so.V) shared, rtl:no,  for executables
16824          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16825          #            lib.a(lib.so.V) shared, rtl:no
16826          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16827          #            lib.a           static archive
16828          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16829	    for ld_flag in $LDFLAGS; do
16830	      case $ld_flag in
16831	      *-brtl*)
16832	        aix_use_runtimelinking=yes
16833	        break
16834	        ;;
16835	      esac
16836	    done
16837	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16838	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
16839	      # so we don't have lib.a shared libs to link our executables.
16840	      # We have to force runtime linking in this case.
16841	      aix_use_runtimelinking=yes
16842	      LDFLAGS="$LDFLAGS -Wl,-brtl"
16843	    fi
16844	    ;;
16845          esac
16846
16847          exp_sym_flag='-bexport'
16848          no_entry_flag='-bnoentry'
16849        fi
16850
16851        # When large executables or shared objects are built, AIX ld can
16852        # have problems creating the table of contents.  If linking a library
16853        # or program results in "error TOC overflow" add -mminimal-toc to
16854        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16855        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16856
16857        archive_cmds_CXX=''
16858        hardcode_direct_CXX=yes
16859        hardcode_direct_absolute_CXX=yes
16860        hardcode_libdir_separator_CXX=':'
16861        link_all_deplibs_CXX=yes
16862        file_list_spec_CXX='$wl-f,'
16863        case $with_aix_soname,$aix_use_runtimelinking in
16864        aix,*) ;;	# no import file
16865        svr4,* | *,yes) # use import file
16866          # The Import File defines what to hardcode.
16867          hardcode_direct_CXX=no
16868          hardcode_direct_absolute_CXX=no
16869          ;;
16870        esac
16871
16872        if test yes = "$GXX"; then
16873          case $host_os in aix4.[012]|aix4.[012].*)
16874          # We only want to do this on AIX 4.2 and lower, the check
16875          # below for broken collect2 doesn't work under 4.3+
16876	  collect2name=`$CC -print-prog-name=collect2`
16877	  if test -f "$collect2name" &&
16878	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16879	  then
16880	    # We have reworked collect2
16881	    :
16882	  else
16883	    # We have old collect2
16884	    hardcode_direct_CXX=unsupported
16885	    # It fails to find uninstalled libraries when the uninstalled
16886	    # path is not listed in the libpath.  Setting hardcode_minus_L
16887	    # to unsupported forces relinking
16888	    hardcode_minus_L_CXX=yes
16889	    hardcode_libdir_flag_spec_CXX='-L$libdir'
16890	    hardcode_libdir_separator_CXX=
16891	  fi
16892          esac
16893          shared_flag='-shared'
16894	  if test yes = "$aix_use_runtimelinking"; then
16895	    shared_flag=$shared_flag' $wl-G'
16896	  fi
16897	  # Need to ensure runtime linking is disabled for the traditional
16898	  # shared library, or the linker may eventually find shared libraries
16899	  # /with/ Import File - we do not want to mix them.
16900	  shared_flag_aix='-shared'
16901	  shared_flag_svr4='-shared $wl-G'
16902        else
16903          # not using gcc
16904          if test ia64 = "$host_cpu"; then
16905	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16906	  # chokes on -Wl,-G. The following line is correct:
16907	  shared_flag='-G'
16908          else
16909	    if test yes = "$aix_use_runtimelinking"; then
16910	      shared_flag='$wl-G'
16911	    else
16912	      shared_flag='$wl-bM:SRE'
16913	    fi
16914	    shared_flag_aix='$wl-bM:SRE'
16915	    shared_flag_svr4='$wl-G'
16916          fi
16917        fi
16918
16919        export_dynamic_flag_spec_CXX='$wl-bexpall'
16920        # It seems that -bexpall does not export symbols beginning with
16921        # underscore (_), so it is better to generate a list of symbols to
16922	# export.
16923        always_export_symbols_CXX=yes
16924	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16925          # Warning - without using the other runtime loading flags (-brtl),
16926          # -berok will link without error, but may produce a broken library.
16927          # The "-G" linker flag allows undefined symbols.
16928          no_undefined_flag_CXX='-bernotok'
16929          # Determine the default libpath from the value encoded in an empty
16930          # executable.
16931          if test set = "${lt_cv_aix_libpath+set}"; then
16932  aix_libpath=$lt_cv_aix_libpath
16933else
16934  if test ${lt_cv_aix_libpath__CXX+y}
16935then :
16936  printf %s "(cached) " >&6
16937else $as_nop
16938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939/* end confdefs.h.  */
16940
16941int
16942main (void)
16943{
16944
16945  ;
16946  return 0;
16947}
16948_ACEOF
16949if ac_fn_cxx_try_link "$LINENO"
16950then :
16951
16952  lt_aix_libpath_sed='
16953      /Import File Strings/,/^$/ {
16954	  /^0/ {
16955	      s/^0  *\([^ ]*\) *$/\1/
16956	      p
16957	  }
16958      }'
16959  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16960  # Check for a 64-bit object if we didn't find anything.
16961  if test -z "$lt_cv_aix_libpath__CXX"; then
16962    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16963  fi
16964fi
16965rm -f core conftest.err conftest.$ac_objext conftest.beam \
16966    conftest$ac_exeext conftest.$ac_ext
16967  if test -z "$lt_cv_aix_libpath__CXX"; then
16968    lt_cv_aix_libpath__CXX=/usr/lib:/lib
16969  fi
16970
16971fi
16972
16973  aix_libpath=$lt_cv_aix_libpath__CXX
16974fi
16975
16976          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16977
16978          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
16979        else
16980          if test ia64 = "$host_cpu"; then
16981	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16982	    allow_undefined_flag_CXX="-z nodefs"
16983	    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"
16984          else
16985	    # Determine the default libpath from the value encoded in an
16986	    # empty executable.
16987	    if test set = "${lt_cv_aix_libpath+set}"; then
16988  aix_libpath=$lt_cv_aix_libpath
16989else
16990  if test ${lt_cv_aix_libpath__CXX+y}
16991then :
16992  printf %s "(cached) " >&6
16993else $as_nop
16994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995/* end confdefs.h.  */
16996
16997int
16998main (void)
16999{
17000
17001  ;
17002  return 0;
17003}
17004_ACEOF
17005if ac_fn_cxx_try_link "$LINENO"
17006then :
17007
17008  lt_aix_libpath_sed='
17009      /Import File Strings/,/^$/ {
17010	  /^0/ {
17011	      s/^0  *\([^ ]*\) *$/\1/
17012	      p
17013	  }
17014      }'
17015  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17016  # Check for a 64-bit object if we didn't find anything.
17017  if test -z "$lt_cv_aix_libpath__CXX"; then
17018    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17019  fi
17020fi
17021rm -f core conftest.err conftest.$ac_objext conftest.beam \
17022    conftest$ac_exeext conftest.$ac_ext
17023  if test -z "$lt_cv_aix_libpath__CXX"; then
17024    lt_cv_aix_libpath__CXX=/usr/lib:/lib
17025  fi
17026
17027fi
17028
17029  aix_libpath=$lt_cv_aix_libpath__CXX
17030fi
17031
17032	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17033	    # Warning - without using the other run time loading flags,
17034	    # -berok will link without error, but may produce a broken library.
17035	    no_undefined_flag_CXX=' $wl-bernotok'
17036	    allow_undefined_flag_CXX=' $wl-berok'
17037	    if test yes = "$with_gnu_ld"; then
17038	      # We only use this code for GNU lds that support --whole-archive.
17039	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17040	    else
17041	      # Exported symbols can be pulled into shared objects from archives
17042	      whole_archive_flag_spec_CXX='$convenience'
17043	    fi
17044	    archive_cmds_need_lc_CXX=yes
17045	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17046	    # -brtl affects multiple linker settings, -berok does not and is overridden later
17047	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17048	    if test svr4 != "$with_aix_soname"; then
17049	      # This is similar to how AIX traditionally builds its shared
17050	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17051	      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'
17052	    fi
17053	    if test aix != "$with_aix_soname"; then
17054	      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'
17055	    else
17056	      # used by -dlpreopen to get the symbols
17057	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17058	    fi
17059	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
17060          fi
17061        fi
17062        ;;
17063
17064      beos*)
17065	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17066	  allow_undefined_flag_CXX=unsupported
17067	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17068	  # support --undefined.  This deserves some investigation.  FIXME
17069	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17070	else
17071	  ld_shlibs_CXX=no
17072	fi
17073	;;
17074
17075      chorus*)
17076        case $cc_basename in
17077          *)
17078	  # FIXME: insert proper C++ library support
17079	  ld_shlibs_CXX=no
17080	  ;;
17081        esac
17082        ;;
17083
17084      cygwin* | mingw* | pw32* | cegcc*)
17085	case $GXX,$cc_basename in
17086	,cl* | no,cl*)
17087	  # Native MSVC
17088	  # hardcode_libdir_flag_spec is actually meaningless, as there is
17089	  # no search path for DLLs.
17090	  hardcode_libdir_flag_spec_CXX=' '
17091	  allow_undefined_flag_CXX=unsupported
17092	  always_export_symbols_CXX=yes
17093	  file_list_spec_CXX='@'
17094	  # Tell ltmain to make .lib files, not .a files.
17095	  libext=lib
17096	  # Tell ltmain to make .dll files, not .so files.
17097	  shrext_cmds=.dll
17098	  # FIXME: Setting linknames here is a bad hack.
17099	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17100	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17101              cp "$export_symbols" "$output_objdir/$soname.def";
17102              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17103            else
17104              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17105            fi~
17106            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17107            linknames='
17108	  # The linker will not automatically build a static lib if we build a DLL.
17109	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17110	  enable_shared_with_static_runtimes_CXX=yes
17111	  # Don't use ranlib
17112	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
17113	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17114            lt_tool_outputfile="@TOOL_OUTPUT@"~
17115            case $lt_outputfile in
17116              *.exe|*.EXE) ;;
17117              *)
17118                lt_outputfile=$lt_outputfile.exe
17119                lt_tool_outputfile=$lt_tool_outputfile.exe
17120                ;;
17121            esac~
17122            func_to_tool_file "$lt_outputfile"~
17123            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17124              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17125              $RM "$lt_outputfile.manifest";
17126            fi'
17127	  ;;
17128	*)
17129	  # g++
17130	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17131	  # as there is no search path for DLLs.
17132	  hardcode_libdir_flag_spec_CXX='-L$libdir'
17133	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17134	  allow_undefined_flag_CXX=unsupported
17135	  always_export_symbols_CXX=no
17136	  enable_shared_with_static_runtimes_CXX=yes
17137
17138	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17139	    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'
17140	    # If the export-symbols file already is a .def file, use it as
17141	    # is; otherwise, prepend EXPORTS...
17142	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17143              cp $export_symbols $output_objdir/$soname.def;
17144            else
17145              echo EXPORTS > $output_objdir/$soname.def;
17146              cat $export_symbols >> $output_objdir/$soname.def;
17147            fi~
17148            $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'
17149	  else
17150	    ld_shlibs_CXX=no
17151	  fi
17152	  ;;
17153	esac
17154	;;
17155      darwin* | rhapsody*)
17156
17157
17158  archive_cmds_need_lc_CXX=no
17159  hardcode_direct_CXX=no
17160  hardcode_automatic_CXX=yes
17161  hardcode_shlibpath_var_CXX=unsupported
17162  if test yes = "$lt_cv_ld_force_load"; then
17163    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\"`'
17164
17165  else
17166    whole_archive_flag_spec_CXX=''
17167  fi
17168  link_all_deplibs_CXX=yes
17169  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17170  case $cc_basename in
17171     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17172     *) _lt_dar_can_shared=$GCC ;;
17173  esac
17174  if test yes = "$_lt_dar_can_shared"; then
17175    output_verbose_link_cmd=func_echo_all
17176    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"
17177    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17178    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"
17179    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"
17180       if test yes != "$lt_cv_apple_cc_single_mod"; then
17181      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"
17182      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"
17183    fi
17184
17185  else
17186  ld_shlibs_CXX=no
17187  fi
17188
17189	;;
17190
17191      os2*)
17192	hardcode_libdir_flag_spec_CXX='-L$libdir'
17193	hardcode_minus_L_CXX=yes
17194	allow_undefined_flag_CXX=unsupported
17195	shrext_cmds=.dll
17196	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17197	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17198	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17199	  $ECHO EXPORTS >> $output_objdir/$libname.def~
17200	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17201	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17202	  emximp -o $lib $output_objdir/$libname.def'
17203	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17204	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17205	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17206	  $ECHO EXPORTS >> $output_objdir/$libname.def~
17207	  prefix_cmds="$SED"~
17208	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
17209	    prefix_cmds="$prefix_cmds -e 1d";
17210	  fi~
17211	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17212	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17213	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17214	  emximp -o $lib $output_objdir/$libname.def'
17215	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17216	enable_shared_with_static_runtimes_CXX=yes
17217	;;
17218
17219      dgux*)
17220        case $cc_basename in
17221          ec++*)
17222	    # FIXME: insert proper C++ library support
17223	    ld_shlibs_CXX=no
17224	    ;;
17225          ghcx*)
17226	    # Green Hills C++ Compiler
17227	    # FIXME: insert proper C++ library support
17228	    ld_shlibs_CXX=no
17229	    ;;
17230          *)
17231	    # FIXME: insert proper C++ library support
17232	    ld_shlibs_CXX=no
17233	    ;;
17234        esac
17235        ;;
17236
17237      freebsd2.*)
17238        # C++ shared libraries reported to be fairly broken before
17239	# switch to ELF
17240        ld_shlibs_CXX=no
17241        ;;
17242
17243      freebsd-elf*)
17244        archive_cmds_need_lc_CXX=no
17245        ;;
17246
17247      freebsd* | dragonfly*)
17248        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17249        # conventions
17250        ld_shlibs_CXX=yes
17251        ;;
17252
17253      haiku*)
17254        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17255        link_all_deplibs_CXX=yes
17256        ;;
17257
17258      hpux9*)
17259        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17260        hardcode_libdir_separator_CXX=:
17261        export_dynamic_flag_spec_CXX='$wl-E'
17262        hardcode_direct_CXX=yes
17263        hardcode_minus_L_CXX=yes # Not in the search PATH,
17264				             # but as the default
17265				             # location of the library.
17266
17267        case $cc_basename in
17268          CC*)
17269            # FIXME: insert proper C++ library support
17270            ld_shlibs_CXX=no
17271            ;;
17272          aCC*)
17273            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'
17274            # Commands to make compiler produce verbose output that lists
17275            # what "hidden" libraries, object files and flags are used when
17276            # linking a shared library.
17277            #
17278            # There doesn't appear to be a way to prevent this compiler from
17279            # explicitly linking system object files so we need to strip them
17280            # from the output so that they don't get included in the library
17281            # dependencies.
17282            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"'
17283            ;;
17284          *)
17285            if test yes = "$GXX"; then
17286              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'
17287            else
17288              # FIXME: insert proper C++ library support
17289              ld_shlibs_CXX=no
17290            fi
17291            ;;
17292        esac
17293        ;;
17294
17295      hpux10*|hpux11*)
17296        if test no = "$with_gnu_ld"; then
17297	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17298	  hardcode_libdir_separator_CXX=:
17299
17300          case $host_cpu in
17301            hppa*64*|ia64*)
17302              ;;
17303            *)
17304	      export_dynamic_flag_spec_CXX='$wl-E'
17305              ;;
17306          esac
17307        fi
17308        case $host_cpu in
17309          hppa*64*|ia64*)
17310            hardcode_direct_CXX=no
17311            hardcode_shlibpath_var_CXX=no
17312            ;;
17313          *)
17314            hardcode_direct_CXX=yes
17315            hardcode_direct_absolute_CXX=yes
17316            hardcode_minus_L_CXX=yes # Not in the search PATH,
17317					         # but as the default
17318					         # location of the library.
17319            ;;
17320        esac
17321
17322        case $cc_basename in
17323          CC*)
17324	    # FIXME: insert proper C++ library support
17325	    ld_shlibs_CXX=no
17326	    ;;
17327          aCC*)
17328	    case $host_cpu in
17329	      hppa*64*)
17330	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17331	        ;;
17332	      ia64*)
17333	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17334	        ;;
17335	      *)
17336	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17337	        ;;
17338	    esac
17339	    # Commands to make compiler produce verbose output that lists
17340	    # what "hidden" libraries, object files and flags are used when
17341	    # linking a shared library.
17342	    #
17343	    # There doesn't appear to be a way to prevent this compiler from
17344	    # explicitly linking system object files so we need to strip them
17345	    # from the output so that they don't get included in the library
17346	    # dependencies.
17347	    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"'
17348	    ;;
17349          *)
17350	    if test yes = "$GXX"; then
17351	      if test no = "$with_gnu_ld"; then
17352	        case $host_cpu in
17353	          hppa*64*)
17354	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17355	            ;;
17356	          ia64*)
17357	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17358	            ;;
17359	          *)
17360	            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'
17361	            ;;
17362	        esac
17363	      fi
17364	    else
17365	      # FIXME: insert proper C++ library support
17366	      ld_shlibs_CXX=no
17367	    fi
17368	    ;;
17369        esac
17370        ;;
17371
17372      interix[3-9]*)
17373	hardcode_direct_CXX=no
17374	hardcode_shlibpath_var_CXX=no
17375	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17376	export_dynamic_flag_spec_CXX='$wl-E'
17377	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17378	# Instead, shared libraries are loaded at an image base (0x10000000 by
17379	# default) and relocated if they conflict, which is a slow very memory
17380	# consuming and fragmenting process.  To avoid this, we pick a random,
17381	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17382	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17383	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'
17384	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'
17385	;;
17386      irix5* | irix6*)
17387        case $cc_basename in
17388          CC*)
17389	    # SGI C++
17390	    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'
17391
17392	    # Archives containing C++ object files must be created using
17393	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17394	    # necessary to make sure instantiated templates are included
17395	    # in the archive.
17396	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17397	    ;;
17398          *)
17399	    if test yes = "$GXX"; then
17400	      if test no = "$with_gnu_ld"; then
17401	        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'
17402	      else
17403	        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'
17404	      fi
17405	    fi
17406	    link_all_deplibs_CXX=yes
17407	    ;;
17408        esac
17409        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17410        hardcode_libdir_separator_CXX=:
17411        inherit_rpath_CXX=yes
17412        ;;
17413
17414      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17415        case $cc_basename in
17416          KCC*)
17417	    # Kuck and Associates, Inc. (KAI) C++ Compiler
17418
17419	    # KCC will only create a shared library if the output file
17420	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
17421	    # to its proper name (with version) after linking.
17422	    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'
17423	    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'
17424	    # Commands to make compiler produce verbose output that lists
17425	    # what "hidden" libraries, object files and flags are used when
17426	    # linking a shared library.
17427	    #
17428	    # There doesn't appear to be a way to prevent this compiler from
17429	    # explicitly linking system object files so we need to strip them
17430	    # from the output so that they don't get included in the library
17431	    # dependencies.
17432	    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"'
17433
17434	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17435	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17436
17437	    # Archives containing C++ object files must be created using
17438	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17439	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17440	    ;;
17441	  icpc* | ecpc* )
17442	    # Intel C++
17443	    with_gnu_ld=yes
17444	    # version 8.0 and above of icpc choke on multiply defined symbols
17445	    # if we add $predep_objects and $postdep_objects, however 7.1 and
17446	    # earlier do not add the objects themselves.
17447	    case `$CC -V 2>&1` in
17448	      *"Version 7."*)
17449	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17450		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'
17451		;;
17452	      *)  # Version 8.0 or newer
17453	        tmp_idyn=
17454	        case $host_cpu in
17455		  ia64*) tmp_idyn=' -i_dynamic';;
17456		esac
17457	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17458		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'
17459		;;
17460	    esac
17461	    archive_cmds_need_lc_CXX=no
17462	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17463	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17464	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17465	    ;;
17466          pgCC* | pgcpp*)
17467            # Portland Group C++ compiler
17468	    case `$CC -V` in
17469	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17470	      prelink_cmds_CXX='tpldir=Template.dir~
17471               rm -rf $tpldir~
17472               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17473               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17474	      old_archive_cmds_CXX='tpldir=Template.dir~
17475                rm -rf $tpldir~
17476                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17477                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17478                $RANLIB $oldlib'
17479	      archive_cmds_CXX='tpldir=Template.dir~
17480                rm -rf $tpldir~
17481                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17482                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17483	      archive_expsym_cmds_CXX='tpldir=Template.dir~
17484                rm -rf $tpldir~
17485                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17486                $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'
17487	      ;;
17488	    *) # Version 6 and above use weak symbols
17489	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17490	      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'
17491	      ;;
17492	    esac
17493
17494	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17495	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17496	    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'
17497            ;;
17498	  cxx*)
17499	    # Compaq C++
17500	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17501	    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'
17502
17503	    runpath_var=LD_RUN_PATH
17504	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17505	    hardcode_libdir_separator_CXX=:
17506
17507	    # Commands to make compiler produce verbose output that lists
17508	    # what "hidden" libraries, object files and flags are used when
17509	    # linking a shared library.
17510	    #
17511	    # There doesn't appear to be a way to prevent this compiler from
17512	    # explicitly linking system object files so we need to strip them
17513	    # from the output so that they don't get included in the library
17514	    # dependencies.
17515	    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'
17516	    ;;
17517	  xl* | mpixl* | bgxl*)
17518	    # IBM XL 8.0 on PPC, with GNU ld
17519	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17520	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17521	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17522	    if test yes = "$supports_anon_versioning"; then
17523	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17524                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17525                echo "local: *; };" >> $output_objdir/$libname.ver~
17526                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17527	    fi
17528	    ;;
17529	  *)
17530	    case `$CC -V 2>&1 | sed 5q` in
17531	    *Sun\ C*)
17532	      # Sun C++ 5.9
17533	      no_undefined_flag_CXX=' -zdefs'
17534	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17535	      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'
17536	      hardcode_libdir_flag_spec_CXX='-R$libdir'
17537	      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'
17538	      compiler_needs_object_CXX=yes
17539
17540	      # Not sure whether something based on
17541	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17542	      # would be better.
17543	      output_verbose_link_cmd='func_echo_all'
17544
17545	      # Archives containing C++ object files must be created using
17546	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17547	      # necessary to make sure instantiated templates are included
17548	      # in the archive.
17549	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17550	      ;;
17551	    esac
17552	    ;;
17553	esac
17554	;;
17555
17556      lynxos*)
17557        # FIXME: insert proper C++ library support
17558	ld_shlibs_CXX=no
17559	;;
17560
17561      m88k*)
17562        # FIXME: insert proper C++ library support
17563        ld_shlibs_CXX=no
17564	;;
17565
17566      mvs*)
17567        case $cc_basename in
17568          cxx*)
17569	    # FIXME: insert proper C++ library support
17570	    ld_shlibs_CXX=no
17571	    ;;
17572	  *)
17573	    # FIXME: insert proper C++ library support
17574	    ld_shlibs_CXX=no
17575	    ;;
17576	esac
17577	;;
17578
17579      netbsd*)
17580        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17581	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17582	  wlarc=
17583	  hardcode_libdir_flag_spec_CXX='-R$libdir'
17584	  hardcode_direct_CXX=yes
17585	  hardcode_shlibpath_var_CXX=no
17586	fi
17587	# Workaround some broken pre-1.5 toolchains
17588	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17589	;;
17590
17591      *nto* | *qnx*)
17592        ld_shlibs_CXX=yes
17593	;;
17594
17595      openbsd* | bitrig*)
17596	if test -f /usr/libexec/ld.so; then
17597	  hardcode_direct_CXX=yes
17598	  hardcode_shlibpath_var_CXX=no
17599	  hardcode_direct_absolute_CXX=yes
17600	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17601	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17602	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17603	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17604	    export_dynamic_flag_spec_CXX='$wl-E'
17605	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17606	  fi
17607	  output_verbose_link_cmd=func_echo_all
17608	else
17609	  ld_shlibs_CXX=no
17610	fi
17611	;;
17612
17613      osf3* | osf4* | osf5*)
17614        case $cc_basename in
17615          KCC*)
17616	    # Kuck and Associates, Inc. (KAI) C++ Compiler
17617
17618	    # KCC will only create a shared library if the output file
17619	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
17620	    # to its proper name (with version) after linking.
17621	    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'
17622
17623	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17624	    hardcode_libdir_separator_CXX=:
17625
17626	    # Archives containing C++ object files must be created using
17627	    # the KAI C++ compiler.
17628	    case $host in
17629	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17630	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17631	    esac
17632	    ;;
17633          RCC*)
17634	    # Rational C++ 2.4.1
17635	    # FIXME: insert proper C++ library support
17636	    ld_shlibs_CXX=no
17637	    ;;
17638          cxx*)
17639	    case $host in
17640	      osf3*)
17641	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17642	        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'
17643	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17644		;;
17645	      *)
17646	        allow_undefined_flag_CXX=' -expect_unresolved \*'
17647	        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'
17648	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17649                  echo "-hidden">> $lib.exp~
17650                  $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~
17651                  $RM $lib.exp'
17652	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17653		;;
17654	    esac
17655
17656	    hardcode_libdir_separator_CXX=:
17657
17658	    # Commands to make compiler produce verbose output that lists
17659	    # what "hidden" libraries, object files and flags are used when
17660	    # linking a shared library.
17661	    #
17662	    # There doesn't appear to be a way to prevent this compiler from
17663	    # explicitly linking system object files so we need to strip them
17664	    # from the output so that they don't get included in the library
17665	    # dependencies.
17666	    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"'
17667	    ;;
17668	  *)
17669	    if test yes,no = "$GXX,$with_gnu_ld"; then
17670	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17671	      case $host in
17672	        osf3*)
17673	          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'
17674		  ;;
17675	        *)
17676	          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'
17677		  ;;
17678	      esac
17679
17680	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17681	      hardcode_libdir_separator_CXX=:
17682
17683	      # Commands to make compiler produce verbose output that lists
17684	      # what "hidden" libraries, object files and flags are used when
17685	      # linking a shared library.
17686	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17687
17688	    else
17689	      # FIXME: insert proper C++ library support
17690	      ld_shlibs_CXX=no
17691	    fi
17692	    ;;
17693        esac
17694        ;;
17695
17696      psos*)
17697        # FIXME: insert proper C++ library support
17698        ld_shlibs_CXX=no
17699        ;;
17700
17701      sunos4*)
17702        case $cc_basename in
17703          CC*)
17704	    # Sun C++ 4.x
17705	    # FIXME: insert proper C++ library support
17706	    ld_shlibs_CXX=no
17707	    ;;
17708          lcc*)
17709	    # Lucid
17710	    # FIXME: insert proper C++ library support
17711	    ld_shlibs_CXX=no
17712	    ;;
17713          *)
17714	    # FIXME: insert proper C++ library support
17715	    ld_shlibs_CXX=no
17716	    ;;
17717        esac
17718        ;;
17719
17720      solaris*)
17721        case $cc_basename in
17722          CC* | sunCC*)
17723	    # Sun C++ 4.2, 5.x and Centerline C++
17724            archive_cmds_need_lc_CXX=yes
17725	    no_undefined_flag_CXX=' -zdefs'
17726	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17727	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17728              $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'
17729
17730	    hardcode_libdir_flag_spec_CXX='-R$libdir'
17731	    hardcode_shlibpath_var_CXX=no
17732	    case $host_os in
17733	      solaris2.[0-5] | solaris2.[0-5].*) ;;
17734	      *)
17735		# The compiler driver will combine and reorder linker options,
17736		# but understands '-z linker_flag'.
17737	        # Supported since Solaris 2.6 (maybe 2.5.1?)
17738		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17739	        ;;
17740	    esac
17741	    link_all_deplibs_CXX=yes
17742
17743	    output_verbose_link_cmd='func_echo_all'
17744
17745	    # Archives containing C++ object files must be created using
17746	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17747	    # necessary to make sure instantiated templates are included
17748	    # in the archive.
17749	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17750	    ;;
17751          gcx*)
17752	    # Green Hills C++ Compiler
17753	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17754
17755	    # The C++ compiler must be used to create the archive.
17756	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17757	    ;;
17758          *)
17759	    # GNU C++ compiler with Solaris linker
17760	    if test yes,no = "$GXX,$with_gnu_ld"; then
17761	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
17762	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17763	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17764	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17765                  $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'
17766
17767	        # Commands to make compiler produce verbose output that lists
17768	        # what "hidden" libraries, object files and flags are used when
17769	        # linking a shared library.
17770	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17771	      else
17772	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
17773	        # platform.
17774	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17775	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17776                  $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'
17777
17778	        # Commands to make compiler produce verbose output that lists
17779	        # what "hidden" libraries, object files and flags are used when
17780	        # linking a shared library.
17781	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17782	      fi
17783
17784	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17785	      case $host_os in
17786		solaris2.[0-5] | solaris2.[0-5].*) ;;
17787		*)
17788		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17789		  ;;
17790	      esac
17791	    fi
17792	    ;;
17793        esac
17794        ;;
17795
17796    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17797      no_undefined_flag_CXX='$wl-z,text'
17798      archive_cmds_need_lc_CXX=no
17799      hardcode_shlibpath_var_CXX=no
17800      runpath_var='LD_RUN_PATH'
17801
17802      case $cc_basename in
17803        CC*)
17804	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17805	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17806	  ;;
17807	*)
17808	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17809	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17810	  ;;
17811      esac
17812      ;;
17813
17814      sysv5* | sco3.2v5* | sco5v6*)
17815	# Note: We CANNOT use -z defs as we might desire, because we do not
17816	# link with -lc, and that would cause any symbols used from libc to
17817	# always be unresolved, which means just about no library would
17818	# ever link correctly.  If we're not using GNU ld we use -z text
17819	# though, which does catch some bad symbols but isn't as heavy-handed
17820	# as -z defs.
17821	no_undefined_flag_CXX='$wl-z,text'
17822	allow_undefined_flag_CXX='$wl-z,nodefs'
17823	archive_cmds_need_lc_CXX=no
17824	hardcode_shlibpath_var_CXX=no
17825	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17826	hardcode_libdir_separator_CXX=':'
17827	link_all_deplibs_CXX=yes
17828	export_dynamic_flag_spec_CXX='$wl-Bexport'
17829	runpath_var='LD_RUN_PATH'
17830
17831	case $cc_basename in
17832          CC*)
17833	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17834	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17835	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17836              '"$old_archive_cmds_CXX"
17837	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17838              '"$reload_cmds_CXX"
17839	    ;;
17840	  *)
17841	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17842	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843	    ;;
17844	esac
17845      ;;
17846
17847      tandem*)
17848        case $cc_basename in
17849          NCC*)
17850	    # NonStop-UX NCC 3.20
17851	    # FIXME: insert proper C++ library support
17852	    ld_shlibs_CXX=no
17853	    ;;
17854          *)
17855	    # FIXME: insert proper C++ library support
17856	    ld_shlibs_CXX=no
17857	    ;;
17858        esac
17859        ;;
17860
17861      vxworks*)
17862        # FIXME: insert proper C++ library support
17863        ld_shlibs_CXX=no
17864        ;;
17865
17866      *)
17867        # FIXME: insert proper C++ library support
17868        ld_shlibs_CXX=no
17869        ;;
17870    esac
17871
17872    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17873printf "%s\n" "$ld_shlibs_CXX" >&6; }
17874    test no = "$ld_shlibs_CXX" && can_build_shared=no
17875
17876    GCC_CXX=$GXX
17877    LD_CXX=$LD
17878
17879    ## CAVEAT EMPTOR:
17880    ## There is no encapsulation within the following macros, do not change
17881    ## the running order or otherwise move them around unless you know exactly
17882    ## what you are doing...
17883    # Dependencies to place before and after the object being linked:
17884predep_objects_CXX=
17885postdep_objects_CXX=
17886predeps_CXX=
17887postdeps_CXX=
17888compiler_lib_search_path_CXX=
17889
17890cat > conftest.$ac_ext <<_LT_EOF
17891class Foo
17892{
17893public:
17894  Foo (void) { a = 0; }
17895private:
17896  int a;
17897};
17898_LT_EOF
17899
17900
17901_lt_libdeps_save_CFLAGS=$CFLAGS
17902case "$CC $CFLAGS " in #(
17903*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17904*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17905*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17906esac
17907
17908if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17909  (eval $ac_compile) 2>&5
17910  ac_status=$?
17911  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17912  test $ac_status = 0; }; then
17913  # Parse the compiler output and extract the necessary
17914  # objects, libraries and library flags.
17915
17916  # Sentinel used to keep track of whether or not we are before
17917  # the conftest object file.
17918  pre_test_object_deps_done=no
17919
17920  for p in `eval "$output_verbose_link_cmd"`; do
17921    case $prev$p in
17922
17923    -L* | -R* | -l*)
17924       # Some compilers place space between "-{L,R}" and the path.
17925       # Remove the space.
17926       if test x-L = "$p" ||
17927          test x-R = "$p"; then
17928	 prev=$p
17929	 continue
17930       fi
17931
17932       # Expand the sysroot to ease extracting the directories later.
17933       if test -z "$prev"; then
17934         case $p in
17935         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17936         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17937         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17938         esac
17939       fi
17940       case $p in
17941       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17942       esac
17943       if test no = "$pre_test_object_deps_done"; then
17944	 case $prev in
17945	 -L | -R)
17946	   # Internal compiler library paths should come after those
17947	   # provided the user.  The postdeps already come after the
17948	   # user supplied libs so there is no need to process them.
17949	   if test -z "$compiler_lib_search_path_CXX"; then
17950	     compiler_lib_search_path_CXX=$prev$p
17951	   else
17952	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17953	   fi
17954	   ;;
17955	 # The "-l" case would never come before the object being
17956	 # linked, so don't bother handling this case.
17957	 esac
17958       else
17959	 if test -z "$postdeps_CXX"; then
17960	   postdeps_CXX=$prev$p
17961	 else
17962	   postdeps_CXX="${postdeps_CXX} $prev$p"
17963	 fi
17964       fi
17965       prev=
17966       ;;
17967
17968    *.lto.$objext) ;; # Ignore GCC LTO objects
17969    *.$objext)
17970       # This assumes that the test object file only shows up
17971       # once in the compiler output.
17972       if test "$p" = "conftest.$objext"; then
17973	 pre_test_object_deps_done=yes
17974	 continue
17975       fi
17976
17977       if test no = "$pre_test_object_deps_done"; then
17978	 if test -z "$predep_objects_CXX"; then
17979	   predep_objects_CXX=$p
17980	 else
17981	   predep_objects_CXX="$predep_objects_CXX $p"
17982	 fi
17983       else
17984	 if test -z "$postdep_objects_CXX"; then
17985	   postdep_objects_CXX=$p
17986	 else
17987	   postdep_objects_CXX="$postdep_objects_CXX $p"
17988	 fi
17989       fi
17990       ;;
17991
17992    *) ;; # Ignore the rest.
17993
17994    esac
17995  done
17996
17997  # Clean up.
17998  rm -f a.out a.exe
17999else
18000  echo "libtool.m4: error: problem compiling CXX test program"
18001fi
18002
18003$RM -f confest.$objext
18004CFLAGS=$_lt_libdeps_save_CFLAGS
18005
18006# PORTME: override above test on systems where it is broken
18007case $host_os in
18008interix[3-9]*)
18009  # Interix 3.5 installs completely hosed .la files for C++, so rather than
18010  # hack all around it, let's just trust "g++" to DTRT.
18011  predep_objects_CXX=
18012  postdep_objects_CXX=
18013  postdeps_CXX=
18014  ;;
18015esac
18016
18017
18018case " $postdeps_CXX " in
18019*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18020esac
18021 compiler_lib_search_dirs_CXX=
18022if test -n "${compiler_lib_search_path_CXX}"; then
18023 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
18024fi
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056    lt_prog_compiler_wl_CXX=
18057lt_prog_compiler_pic_CXX=
18058lt_prog_compiler_static_CXX=
18059
18060
18061  # C++ specific cases for pic, static, wl, etc.
18062  if test yes = "$GXX"; then
18063    lt_prog_compiler_wl_CXX='-Wl,'
18064    lt_prog_compiler_static_CXX='-static'
18065
18066    case $host_os in
18067    aix*)
18068      # All AIX code is PIC.
18069      if test ia64 = "$host_cpu"; then
18070	# AIX 5 now supports IA64 processor
18071	lt_prog_compiler_static_CXX='-Bstatic'
18072      fi
18073      lt_prog_compiler_pic_CXX='-fPIC'
18074      ;;
18075
18076    amigaos*)
18077      case $host_cpu in
18078      powerpc)
18079            # see comment about AmigaOS4 .so support
18080            lt_prog_compiler_pic_CXX='-fPIC'
18081        ;;
18082      m68k)
18083            # FIXME: we need at least 68020 code to build shared libraries, but
18084            # adding the '-m68020' flag to GCC prevents building anything better,
18085            # like '-m68040'.
18086            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18087        ;;
18088      esac
18089      ;;
18090
18091    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18092      # PIC is the default for these OSes.
18093      ;;
18094    mingw* | cygwin* | os2* | pw32* | cegcc*)
18095      # This hack is so that the source file can tell whether it is being
18096      # built for inclusion in a dll (and should export symbols for example).
18097      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18098      # (--disable-auto-import) libraries
18099      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18100      case $host_os in
18101      os2*)
18102	lt_prog_compiler_static_CXX='$wl-static'
18103	;;
18104      esac
18105      ;;
18106    darwin* | rhapsody*)
18107      # PIC is the default on this platform
18108      # Common symbols not allowed in MH_DYLIB files
18109      lt_prog_compiler_pic_CXX='-fno-common'
18110      ;;
18111    *djgpp*)
18112      # DJGPP does not support shared libraries at all
18113      lt_prog_compiler_pic_CXX=
18114      ;;
18115    haiku*)
18116      # PIC is the default for Haiku.
18117      # The "-static" flag exists, but is broken.
18118      lt_prog_compiler_static_CXX=
18119      ;;
18120    interix[3-9]*)
18121      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18122      # Instead, we relocate shared libraries at runtime.
18123      ;;
18124    sysv4*MP*)
18125      if test -d /usr/nec; then
18126	lt_prog_compiler_pic_CXX=-Kconform_pic
18127      fi
18128      ;;
18129    hpux*)
18130      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18131      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18132      # sets the default TLS model and affects inlining.
18133      case $host_cpu in
18134      hppa*64*)
18135	;;
18136      *)
18137	lt_prog_compiler_pic_CXX='-fPIC'
18138	;;
18139      esac
18140      ;;
18141    *qnx* | *nto*)
18142      # QNX uses GNU C++, but need to define -shared option too, otherwise
18143      # it will coredump.
18144      lt_prog_compiler_pic_CXX='-fPIC -shared'
18145      ;;
18146    *)
18147      lt_prog_compiler_pic_CXX='-fPIC'
18148      ;;
18149    esac
18150  else
18151    case $host_os in
18152      aix[4-9]*)
18153	# All AIX code is PIC.
18154	if test ia64 = "$host_cpu"; then
18155	  # AIX 5 now supports IA64 processor
18156	  lt_prog_compiler_static_CXX='-Bstatic'
18157	else
18158	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18159	fi
18160	;;
18161      chorus*)
18162	case $cc_basename in
18163	cxch68*)
18164	  # Green Hills C++ Compiler
18165	  # _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"
18166	  ;;
18167	esac
18168	;;
18169      mingw* | cygwin* | os2* | pw32* | cegcc*)
18170	# This hack is so that the source file can tell whether it is being
18171	# built for inclusion in a dll (and should export symbols for example).
18172	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18173	;;
18174      dgux*)
18175	case $cc_basename in
18176	  ec++*)
18177	    lt_prog_compiler_pic_CXX='-KPIC'
18178	    ;;
18179	  ghcx*)
18180	    # Green Hills C++ Compiler
18181	    lt_prog_compiler_pic_CXX='-pic'
18182	    ;;
18183	  *)
18184	    ;;
18185	esac
18186	;;
18187      freebsd* | dragonfly*)
18188	# FreeBSD uses GNU C++
18189	;;
18190      hpux9* | hpux10* | hpux11*)
18191	case $cc_basename in
18192	  CC*)
18193	    lt_prog_compiler_wl_CXX='-Wl,'
18194	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18195	    if test ia64 != "$host_cpu"; then
18196	      lt_prog_compiler_pic_CXX='+Z'
18197	    fi
18198	    ;;
18199	  aCC*)
18200	    lt_prog_compiler_wl_CXX='-Wl,'
18201	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18202	    case $host_cpu in
18203	    hppa*64*|ia64*)
18204	      # +Z the default
18205	      ;;
18206	    *)
18207	      lt_prog_compiler_pic_CXX='+Z'
18208	      ;;
18209	    esac
18210	    ;;
18211	  *)
18212	    ;;
18213	esac
18214	;;
18215      interix*)
18216	# This is c89, which is MS Visual C++ (no shared libs)
18217	# Anyone wants to do a port?
18218	;;
18219      irix5* | irix6* | nonstopux*)
18220	case $cc_basename in
18221	  CC*)
18222	    lt_prog_compiler_wl_CXX='-Wl,'
18223	    lt_prog_compiler_static_CXX='-non_shared'
18224	    # CC pic flag -KPIC is the default.
18225	    ;;
18226	  *)
18227	    ;;
18228	esac
18229	;;
18230      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18231	case $cc_basename in
18232	  KCC*)
18233	    # KAI C++ Compiler
18234	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18235	    lt_prog_compiler_pic_CXX='-fPIC'
18236	    ;;
18237	  ecpc* )
18238	    # old Intel C++ for x86_64, which still supported -KPIC.
18239	    lt_prog_compiler_wl_CXX='-Wl,'
18240	    lt_prog_compiler_pic_CXX='-KPIC'
18241	    lt_prog_compiler_static_CXX='-static'
18242	    ;;
18243	  icpc* )
18244	    # Intel C++, used to be incompatible with GCC.
18245	    # ICC 10 doesn't accept -KPIC any more.
18246	    lt_prog_compiler_wl_CXX='-Wl,'
18247	    lt_prog_compiler_pic_CXX='-fPIC'
18248	    lt_prog_compiler_static_CXX='-static'
18249	    ;;
18250	  pgCC* | pgcpp*)
18251	    # Portland Group C++ compiler
18252	    lt_prog_compiler_wl_CXX='-Wl,'
18253	    lt_prog_compiler_pic_CXX='-fpic'
18254	    lt_prog_compiler_static_CXX='-Bstatic'
18255	    ;;
18256	  cxx*)
18257	    # Compaq C++
18258	    # Make sure the PIC flag is empty.  It appears that all Alpha
18259	    # Linux and Compaq Tru64 Unix objects are PIC.
18260	    lt_prog_compiler_pic_CXX=
18261	    lt_prog_compiler_static_CXX='-non_shared'
18262	    ;;
18263	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18264	    # IBM XL 8.0, 9.0 on PPC and BlueGene
18265	    lt_prog_compiler_wl_CXX='-Wl,'
18266	    lt_prog_compiler_pic_CXX='-qpic'
18267	    lt_prog_compiler_static_CXX='-qstaticlink'
18268	    ;;
18269	  *)
18270	    case `$CC -V 2>&1 | sed 5q` in
18271	    *Sun\ C*)
18272	      # Sun C++ 5.9
18273	      lt_prog_compiler_pic_CXX='-KPIC'
18274	      lt_prog_compiler_static_CXX='-Bstatic'
18275	      lt_prog_compiler_wl_CXX='-Qoption ld '
18276	      ;;
18277	    esac
18278	    ;;
18279	esac
18280	;;
18281      lynxos*)
18282	;;
18283      m88k*)
18284	;;
18285      mvs*)
18286	case $cc_basename in
18287	  cxx*)
18288	    lt_prog_compiler_pic_CXX='-W c,exportall'
18289	    ;;
18290	  *)
18291	    ;;
18292	esac
18293	;;
18294      netbsd* | netbsdelf*-gnu)
18295	;;
18296      *qnx* | *nto*)
18297        # QNX uses GNU C++, but need to define -shared option too, otherwise
18298        # it will coredump.
18299        lt_prog_compiler_pic_CXX='-fPIC -shared'
18300        ;;
18301      osf3* | osf4* | osf5*)
18302	case $cc_basename in
18303	  KCC*)
18304	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18305	    ;;
18306	  RCC*)
18307	    # Rational C++ 2.4.1
18308	    lt_prog_compiler_pic_CXX='-pic'
18309	    ;;
18310	  cxx*)
18311	    # Digital/Compaq C++
18312	    lt_prog_compiler_wl_CXX='-Wl,'
18313	    # Make sure the PIC flag is empty.  It appears that all Alpha
18314	    # Linux and Compaq Tru64 Unix objects are PIC.
18315	    lt_prog_compiler_pic_CXX=
18316	    lt_prog_compiler_static_CXX='-non_shared'
18317	    ;;
18318	  *)
18319	    ;;
18320	esac
18321	;;
18322      psos*)
18323	;;
18324      solaris*)
18325	case $cc_basename in
18326	  CC* | sunCC*)
18327	    # Sun C++ 4.2, 5.x and Centerline C++
18328	    lt_prog_compiler_pic_CXX='-KPIC'
18329	    lt_prog_compiler_static_CXX='-Bstatic'
18330	    lt_prog_compiler_wl_CXX='-Qoption ld '
18331	    ;;
18332	  gcx*)
18333	    # Green Hills C++ Compiler
18334	    lt_prog_compiler_pic_CXX='-PIC'
18335	    ;;
18336	  *)
18337	    ;;
18338	esac
18339	;;
18340      sunos4*)
18341	case $cc_basename in
18342	  CC*)
18343	    # Sun C++ 4.x
18344	    lt_prog_compiler_pic_CXX='-pic'
18345	    lt_prog_compiler_static_CXX='-Bstatic'
18346	    ;;
18347	  lcc*)
18348	    # Lucid
18349	    lt_prog_compiler_pic_CXX='-pic'
18350	    ;;
18351	  *)
18352	    ;;
18353	esac
18354	;;
18355      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18356	case $cc_basename in
18357	  CC*)
18358	    lt_prog_compiler_wl_CXX='-Wl,'
18359	    lt_prog_compiler_pic_CXX='-KPIC'
18360	    lt_prog_compiler_static_CXX='-Bstatic'
18361	    ;;
18362	esac
18363	;;
18364      tandem*)
18365	case $cc_basename in
18366	  NCC*)
18367	    # NonStop-UX NCC 3.20
18368	    lt_prog_compiler_pic_CXX='-KPIC'
18369	    ;;
18370	  *)
18371	    ;;
18372	esac
18373	;;
18374      vxworks*)
18375	;;
18376      *)
18377	lt_prog_compiler_can_build_shared_CXX=no
18378	;;
18379    esac
18380  fi
18381
18382case $host_os in
18383  # For platforms that do not support PIC, -DPIC is meaningless:
18384  *djgpp*)
18385    lt_prog_compiler_pic_CXX=
18386    ;;
18387  *)
18388    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18389    ;;
18390esac
18391
18392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18393printf %s "checking for $compiler option to produce PIC... " >&6; }
18394if test ${lt_cv_prog_compiler_pic_CXX+y}
18395then :
18396  printf %s "(cached) " >&6
18397else $as_nop
18398  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18399fi
18400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18401printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18402lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18403
18404#
18405# Check to make sure the PIC flag actually works.
18406#
18407if test -n "$lt_prog_compiler_pic_CXX"; then
18408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18409printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18410if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18411then :
18412  printf %s "(cached) " >&6
18413else $as_nop
18414  lt_cv_prog_compiler_pic_works_CXX=no
18415   ac_outfile=conftest.$ac_objext
18416   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18417   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
18418   # Insert the option either (1) after the last *FLAGS variable, or
18419   # (2) before a word containing "conftest.", or (3) at the end.
18420   # Note that $ac_compile itself does not contain backslashes and begins
18421   # with a dollar sign (not a hyphen), so the echo should work correctly.
18422   # The option is referenced via a variable to avoid confusing sed.
18423   lt_compile=`echo "$ac_compile" | $SED \
18424   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18425   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18426   -e 's:$: $lt_compiler_flag:'`
18427   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18428   (eval "$lt_compile" 2>conftest.err)
18429   ac_status=$?
18430   cat conftest.err >&5
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   if (exit $ac_status) && test -s "$ac_outfile"; then
18433     # The compiler can only warn and ignore the option if not recognized
18434     # So say no if there are warnings other than the usual output.
18435     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18436     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18437     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18438       lt_cv_prog_compiler_pic_works_CXX=yes
18439     fi
18440   fi
18441   $RM conftest*
18442
18443fi
18444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18445printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18446
18447if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18448    case $lt_prog_compiler_pic_CXX in
18449     "" | " "*) ;;
18450     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18451     esac
18452else
18453    lt_prog_compiler_pic_CXX=
18454     lt_prog_compiler_can_build_shared_CXX=no
18455fi
18456
18457fi
18458
18459
18460
18461
18462
18463#
18464# Check to make sure the static flag actually works.
18465#
18466wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18468printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18469if test ${lt_cv_prog_compiler_static_works_CXX+y}
18470then :
18471  printf %s "(cached) " >&6
18472else $as_nop
18473  lt_cv_prog_compiler_static_works_CXX=no
18474   save_LDFLAGS=$LDFLAGS
18475   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18476   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18477   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18478     # The linker can only warn and ignore the option if not recognized
18479     # So say no if there are warnings
18480     if test -s conftest.err; then
18481       # Append any errors to the config.log.
18482       cat conftest.err 1>&5
18483       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18484       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18485       if diff conftest.exp conftest.er2 >/dev/null; then
18486         lt_cv_prog_compiler_static_works_CXX=yes
18487       fi
18488     else
18489       lt_cv_prog_compiler_static_works_CXX=yes
18490     fi
18491   fi
18492   $RM -r conftest*
18493   LDFLAGS=$save_LDFLAGS
18494
18495fi
18496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18497printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18498
18499if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18500    :
18501else
18502    lt_prog_compiler_static_CXX=
18503fi
18504
18505
18506
18507
18508    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18509printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18510if test ${lt_cv_prog_compiler_c_o_CXX+y}
18511then :
18512  printf %s "(cached) " >&6
18513else $as_nop
18514  lt_cv_prog_compiler_c_o_CXX=no
18515   $RM -r conftest 2>/dev/null
18516   mkdir conftest
18517   cd conftest
18518   mkdir out
18519   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18520
18521   lt_compiler_flag="-o out/conftest2.$ac_objext"
18522   # Insert the option either (1) after the last *FLAGS variable, or
18523   # (2) before a word containing "conftest.", or (3) at the end.
18524   # Note that $ac_compile itself does not contain backslashes and begins
18525   # with a dollar sign (not a hyphen), so the echo should work correctly.
18526   lt_compile=`echo "$ac_compile" | $SED \
18527   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18528   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18529   -e 's:$: $lt_compiler_flag:'`
18530   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18531   (eval "$lt_compile" 2>out/conftest.err)
18532   ac_status=$?
18533   cat out/conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18536   then
18537     # The compiler can only warn and ignore the option if not recognized
18538     # So say no if there are warnings
18539     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18540     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18541     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18542       lt_cv_prog_compiler_c_o_CXX=yes
18543     fi
18544   fi
18545   chmod u+w . 2>&5
18546   $RM conftest*
18547   # SGI C++ compiler will create directory out/ii_files/ for
18548   # template instantiation
18549   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18550   $RM out/* && rmdir out
18551   cd ..
18552   $RM -r conftest
18553   $RM conftest*
18554
18555fi
18556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18557printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18558
18559
18560
18561    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18562printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18563if test ${lt_cv_prog_compiler_c_o_CXX+y}
18564then :
18565  printf %s "(cached) " >&6
18566else $as_nop
18567  lt_cv_prog_compiler_c_o_CXX=no
18568   $RM -r conftest 2>/dev/null
18569   mkdir conftest
18570   cd conftest
18571   mkdir out
18572   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18573
18574   lt_compiler_flag="-o out/conftest2.$ac_objext"
18575   # Insert the option either (1) after the last *FLAGS variable, or
18576   # (2) before a word containing "conftest.", or (3) at the end.
18577   # Note that $ac_compile itself does not contain backslashes and begins
18578   # with a dollar sign (not a hyphen), so the echo should work correctly.
18579   lt_compile=`echo "$ac_compile" | $SED \
18580   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18582   -e 's:$: $lt_compiler_flag:'`
18583   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18584   (eval "$lt_compile" 2>out/conftest.err)
18585   ac_status=$?
18586   cat out/conftest.err >&5
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18589   then
18590     # The compiler can only warn and ignore the option if not recognized
18591     # So say no if there are warnings
18592     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18593     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18594     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18595       lt_cv_prog_compiler_c_o_CXX=yes
18596     fi
18597   fi
18598   chmod u+w . 2>&5
18599   $RM conftest*
18600   # SGI C++ compiler will create directory out/ii_files/ for
18601   # template instantiation
18602   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18603   $RM out/* && rmdir out
18604   cd ..
18605   $RM -r conftest
18606   $RM conftest*
18607
18608fi
18609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18610printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18611
18612
18613
18614
18615hard_links=nottested
18616if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18617  # do not overwrite the value of need_locks provided by the user
18618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18619printf %s "checking if we can lock with hard links... " >&6; }
18620  hard_links=yes
18621  $RM conftest*
18622  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18623  touch conftest.a
18624  ln conftest.a conftest.b 2>&5 || hard_links=no
18625  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18627printf "%s\n" "$hard_links" >&6; }
18628  if test no = "$hard_links"; then
18629    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18630printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18631    need_locks=warn
18632  fi
18633else
18634  need_locks=no
18635fi
18636
18637
18638
18639    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18640printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18641
18642  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18643  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18644  case $host_os in
18645  aix[4-9]*)
18646    # If we're using GNU nm, then we don't want the "-C" option.
18647    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18648    # Without the "-l" option, or with the "-B" option, AIX nm treats
18649    # weak defined symbols like other global defined symbols, whereas
18650    # GNU nm marks them as "W".
18651    # While the 'weak' keyword is ignored in the Export File, we need
18652    # it in the Import File for the 'aix-soname' feature, so we have
18653    # to replace the "-B" option with "-P" for AIX nm.
18654    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18655      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'
18656    else
18657      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
18658    fi
18659    ;;
18660  pw32*)
18661    export_symbols_cmds_CXX=$ltdll_cmds
18662    ;;
18663  cygwin* | mingw* | cegcc*)
18664    case $cc_basename in
18665    cl*)
18666      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18667      ;;
18668    *)
18669      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'
18670      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18671      ;;
18672    esac
18673    ;;
18674  linux* | k*bsd*-gnu | gnu*)
18675    link_all_deplibs_CXX=no
18676    ;;
18677  *)
18678    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18679    ;;
18680  esac
18681
18682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18683printf "%s\n" "$ld_shlibs_CXX" >&6; }
18684test no = "$ld_shlibs_CXX" && can_build_shared=no
18685
18686with_gnu_ld_CXX=$with_gnu_ld
18687
18688
18689
18690
18691
18692
18693#
18694# Do we need to explicitly link libc?
18695#
18696case "x$archive_cmds_need_lc_CXX" in
18697x|xyes)
18698  # Assume -lc should be added
18699  archive_cmds_need_lc_CXX=yes
18700
18701  if test yes,yes = "$GCC,$enable_shared"; then
18702    case $archive_cmds_CXX in
18703    *'~'*)
18704      # FIXME: we may have to deal with multi-command sequences.
18705      ;;
18706    '$CC '*)
18707      # Test whether the compiler implicitly links with -lc since on some
18708      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18709      # to ld, don't add -lc before -lgcc.
18710      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18711printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18712if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18713then :
18714  printf %s "(cached) " >&6
18715else $as_nop
18716  $RM conftest*
18717	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18718
18719	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18720  (eval $ac_compile) 2>&5
18721  ac_status=$?
18722  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18723  test $ac_status = 0; } 2>conftest.err; then
18724	  soname=conftest
18725	  lib=conftest
18726	  libobjs=conftest.$ac_objext
18727	  deplibs=
18728	  wl=$lt_prog_compiler_wl_CXX
18729	  pic_flag=$lt_prog_compiler_pic_CXX
18730	  compiler_flags=-v
18731	  linker_flags=-v
18732	  verstring=
18733	  output_objdir=.
18734	  libname=conftest
18735	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18736	  allow_undefined_flag_CXX=
18737	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18738  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18739  ac_status=$?
18740  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18741  test $ac_status = 0; }
18742	  then
18743	    lt_cv_archive_cmds_need_lc_CXX=no
18744	  else
18745	    lt_cv_archive_cmds_need_lc_CXX=yes
18746	  fi
18747	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18748	else
18749	  cat conftest.err 1>&5
18750	fi
18751	$RM conftest*
18752
18753fi
18754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18755printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18756      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18757      ;;
18758    esac
18759  fi
18760  ;;
18761esac
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18825printf %s "checking dynamic linker characteristics... " >&6; }
18826
18827library_names_spec=
18828libname_spec='lib$name'
18829soname_spec=
18830shrext_cmds=.so
18831postinstall_cmds=
18832postuninstall_cmds=
18833finish_cmds=
18834finish_eval=
18835shlibpath_var=
18836shlibpath_overrides_runpath=unknown
18837version_type=none
18838dynamic_linker="$host_os ld.so"
18839sys_lib_dlsearch_path_spec="/lib /usr/lib"
18840need_lib_prefix=unknown
18841hardcode_into_libs=no
18842
18843# when you set need_version to no, make sure it does not cause -set_version
18844# flags to be left without arguments
18845need_version=unknown
18846
18847
18848
18849case $host_os in
18850aix3*)
18851  version_type=linux # correct to gnu/linux during the next big refactor
18852  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18853  shlibpath_var=LIBPATH
18854
18855  # AIX 3 has no versioning support, so we append a major version to the name.
18856  soname_spec='$libname$release$shared_ext$major'
18857  ;;
18858
18859aix[4-9]*)
18860  version_type=linux # correct to gnu/linux during the next big refactor
18861  need_lib_prefix=no
18862  need_version=no
18863  hardcode_into_libs=yes
18864  if test ia64 = "$host_cpu"; then
18865    # AIX 5 supports IA64
18866    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18867    shlibpath_var=LD_LIBRARY_PATH
18868  else
18869    # With GCC up to 2.95.x, collect2 would create an import file
18870    # for dependence libraries.  The import file would start with
18871    # the line '#! .'.  This would cause the generated library to
18872    # depend on '.', always an invalid library.  This was fixed in
18873    # development snapshots of GCC prior to 3.0.
18874    case $host_os in
18875      aix4 | aix4.[01] | aix4.[01].*)
18876      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18877	   echo ' yes '
18878	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18879	:
18880      else
18881	can_build_shared=no
18882      fi
18883      ;;
18884    esac
18885    # Using Import Files as archive members, it is possible to support
18886    # filename-based versioning of shared library archives on AIX. While
18887    # this would work for both with and without runtime linking, it will
18888    # prevent static linking of such archives. So we do filename-based
18889    # shared library versioning with .so extension only, which is used
18890    # when both runtime linking and shared linking is enabled.
18891    # Unfortunately, runtime linking may impact performance, so we do
18892    # not want this to be the default eventually. Also, we use the
18893    # versioned .so libs for executables only if there is the -brtl
18894    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18895    # To allow for filename-based versioning support, we need to create
18896    # libNAME.so.V as an archive file, containing:
18897    # *) an Import File, referring to the versioned filename of the
18898    #    archive as well as the shared archive member, telling the
18899    #    bitwidth (32 or 64) of that shared object, and providing the
18900    #    list of exported symbols of that shared object, eventually
18901    #    decorated with the 'weak' keyword
18902    # *) the shared object with the F_LOADONLY flag set, to really avoid
18903    #    it being seen by the linker.
18904    # At run time we better use the real file rather than another symlink,
18905    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18906
18907    case $with_aix_soname,$aix_use_runtimelinking in
18908    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18909    # soname into executable. Probably we can add versioning support to
18910    # collect2, so additional links can be useful in future.
18911    aix,yes) # traditional libtool
18912      dynamic_linker='AIX unversionable lib.so'
18913      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18914      # instead of lib<name>.a to let people know that these are not
18915      # typical AIX shared libraries.
18916      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18917      ;;
18918    aix,no) # traditional AIX only
18919      dynamic_linker='AIX lib.a(lib.so.V)'
18920      # We preserve .a as extension for shared libraries through AIX4.2
18921      # and later when we are not doing run time linking.
18922      library_names_spec='$libname$release.a $libname.a'
18923      soname_spec='$libname$release$shared_ext$major'
18924      ;;
18925    svr4,*) # full svr4 only
18926      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18927      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18928      # We do not specify a path in Import Files, so LIBPATH fires.
18929      shlibpath_overrides_runpath=yes
18930      ;;
18931    *,yes) # both, prefer svr4
18932      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18933      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18934      # unpreferred sharedlib libNAME.a needs extra handling
18935      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"'
18936      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"'
18937      # We do not specify a path in Import Files, so LIBPATH fires.
18938      shlibpath_overrides_runpath=yes
18939      ;;
18940    *,no) # both, prefer aix
18941      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18942      library_names_spec='$libname$release.a $libname.a'
18943      soname_spec='$libname$release$shared_ext$major'
18944      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18945      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)'
18946      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"'
18947      ;;
18948    esac
18949    shlibpath_var=LIBPATH
18950  fi
18951  ;;
18952
18953amigaos*)
18954  case $host_cpu in
18955  powerpc)
18956    # Since July 2007 AmigaOS4 officially supports .so libraries.
18957    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18958    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18959    ;;
18960  m68k)
18961    library_names_spec='$libname.ixlibrary $libname.a'
18962    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18963    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'
18964    ;;
18965  esac
18966  ;;
18967
18968beos*)
18969  library_names_spec='$libname$shared_ext'
18970  dynamic_linker="$host_os ld.so"
18971  shlibpath_var=LIBRARY_PATH
18972  ;;
18973
18974bsdi[45]*)
18975  version_type=linux # correct to gnu/linux during the next big refactor
18976  need_version=no
18977  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18978  soname_spec='$libname$release$shared_ext$major'
18979  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18980  shlibpath_var=LD_LIBRARY_PATH
18981  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18982  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18983  # the default ld.so.conf also contains /usr/contrib/lib and
18984  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18985  # libtool to hard-code these into programs
18986  ;;
18987
18988cygwin* | mingw* | pw32* | cegcc*)
18989  version_type=windows
18990  shrext_cmds=.dll
18991  need_version=no
18992  need_lib_prefix=no
18993
18994  case $GCC,$cc_basename in
18995  yes,*)
18996    # gcc
18997    library_names_spec='$libname.dll.a'
18998    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18999    postinstall_cmds='base_file=`basename \$file`~
19000      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19001      dldir=$destdir/`dirname \$dlpath`~
19002      test -d \$dldir || mkdir -p \$dldir~
19003      $install_prog $dir/$dlname \$dldir/$dlname~
19004      chmod a+x \$dldir/$dlname~
19005      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19006        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19007      fi'
19008    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19009      dlpath=$dir/\$dldll~
19010       $RM \$dlpath'
19011    shlibpath_overrides_runpath=yes
19012
19013    case $host_os in
19014    cygwin*)
19015      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19016      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19017
19018      ;;
19019    mingw* | cegcc*)
19020      # MinGW DLLs use traditional 'lib' prefix
19021      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19022      ;;
19023    pw32*)
19024      # pw32 DLLs use 'pw' prefix rather than 'lib'
19025      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19026      ;;
19027    esac
19028    dynamic_linker='Win32 ld.exe'
19029    ;;
19030
19031  *,cl*)
19032    # Native MSVC
19033    libname_spec='$name'
19034    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19035    library_names_spec='$libname.dll.lib'
19036
19037    case $build_os in
19038    mingw*)
19039      sys_lib_search_path_spec=
19040      lt_save_ifs=$IFS
19041      IFS=';'
19042      for lt_path in $LIB
19043      do
19044        IFS=$lt_save_ifs
19045        # Let DOS variable expansion print the short 8.3 style file name.
19046        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19047        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19048      done
19049      IFS=$lt_save_ifs
19050      # Convert to MSYS style.
19051      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19052      ;;
19053    cygwin*)
19054      # Convert to unix form, then to dos form, then back to unix form
19055      # but this time dos style (no spaces!) so that the unix form looks
19056      # like /cygdrive/c/PROGRA~1:/cygdr...
19057      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19058      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19059      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19060      ;;
19061    *)
19062      sys_lib_search_path_spec=$LIB
19063      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19064        # It is most probably a Windows format PATH.
19065        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19066      else
19067        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19068      fi
19069      # FIXME: find the short name or the path components, as spaces are
19070      # common. (e.g. "Program Files" -> "PROGRA~1")
19071      ;;
19072    esac
19073
19074    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19075    postinstall_cmds='base_file=`basename \$file`~
19076      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19077      dldir=$destdir/`dirname \$dlpath`~
19078      test -d \$dldir || mkdir -p \$dldir~
19079      $install_prog $dir/$dlname \$dldir/$dlname'
19080    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19081      dlpath=$dir/\$dldll~
19082       $RM \$dlpath'
19083    shlibpath_overrides_runpath=yes
19084    dynamic_linker='Win32 link.exe'
19085    ;;
19086
19087  *)
19088    # Assume MSVC wrapper
19089    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19090    dynamic_linker='Win32 ld.exe'
19091    ;;
19092  esac
19093  # FIXME: first we should search . and the directory the executable is in
19094  shlibpath_var=PATH
19095  ;;
19096
19097darwin* | rhapsody*)
19098  dynamic_linker="$host_os dyld"
19099  version_type=darwin
19100  need_lib_prefix=no
19101  need_version=no
19102  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19103  soname_spec='$libname$release$major$shared_ext'
19104  shlibpath_overrides_runpath=yes
19105  shlibpath_var=DYLD_LIBRARY_PATH
19106  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19107
19108  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19109  ;;
19110
19111dgux*)
19112  version_type=linux # correct to gnu/linux during the next big refactor
19113  need_lib_prefix=no
19114  need_version=no
19115  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19116  soname_spec='$libname$release$shared_ext$major'
19117  shlibpath_var=LD_LIBRARY_PATH
19118  ;;
19119
19120freebsd* | dragonfly*)
19121  # DragonFly does not have aout.  When/if they implement a new
19122  # versioning mechanism, adjust this.
19123  if test -x /usr/bin/objformat; then
19124    objformat=`/usr/bin/objformat`
19125  else
19126    case $host_os in
19127    freebsd[23].*) objformat=aout ;;
19128    *) objformat=elf ;;
19129    esac
19130  fi
19131  version_type=freebsd-$objformat
19132  case $version_type in
19133    freebsd-elf*)
19134      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19135      soname_spec='$libname$release$shared_ext$major'
19136      need_version=no
19137      need_lib_prefix=no
19138      ;;
19139    freebsd-*)
19140      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19141      need_version=yes
19142      ;;
19143  esac
19144  shlibpath_var=LD_LIBRARY_PATH
19145  case $host_os in
19146  freebsd2.*)
19147    shlibpath_overrides_runpath=yes
19148    ;;
19149  freebsd3.[01]* | freebsdelf3.[01]*)
19150    shlibpath_overrides_runpath=yes
19151    hardcode_into_libs=yes
19152    ;;
19153  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19154  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19155    shlibpath_overrides_runpath=no
19156    hardcode_into_libs=yes
19157    ;;
19158  *) # from 4.6 on, and DragonFly
19159    shlibpath_overrides_runpath=yes
19160    hardcode_into_libs=yes
19161    ;;
19162  esac
19163  ;;
19164
19165haiku*)
19166  version_type=linux # correct to gnu/linux during the next big refactor
19167  need_lib_prefix=no
19168  need_version=no
19169  dynamic_linker="$host_os runtime_loader"
19170  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19171  soname_spec='$libname$release$shared_ext$major'
19172  shlibpath_var=LIBRARY_PATH
19173  shlibpath_overrides_runpath=no
19174  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19175  hardcode_into_libs=yes
19176  ;;
19177
19178hpux9* | hpux10* | hpux11*)
19179  # Give a soname corresponding to the major version so that dld.sl refuses to
19180  # link against other versions.
19181  version_type=sunos
19182  need_lib_prefix=no
19183  need_version=no
19184  case $host_cpu in
19185  ia64*)
19186    shrext_cmds='.so'
19187    hardcode_into_libs=yes
19188    dynamic_linker="$host_os dld.so"
19189    shlibpath_var=LD_LIBRARY_PATH
19190    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19191    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19192    soname_spec='$libname$release$shared_ext$major'
19193    if test 32 = "$HPUX_IA64_MODE"; then
19194      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19195      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19196    else
19197      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19198      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19199    fi
19200    ;;
19201  hppa*64*)
19202    shrext_cmds='.sl'
19203    hardcode_into_libs=yes
19204    dynamic_linker="$host_os dld.sl"
19205    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19206    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19207    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19208    soname_spec='$libname$release$shared_ext$major'
19209    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19210    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19211    ;;
19212  *)
19213    shrext_cmds='.sl'
19214    dynamic_linker="$host_os dld.sl"
19215    shlibpath_var=SHLIB_PATH
19216    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19217    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19218    soname_spec='$libname$release$shared_ext$major'
19219    ;;
19220  esac
19221  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19222  postinstall_cmds='chmod 555 $lib'
19223  # or fails outright, so override atomically:
19224  install_override_mode=555
19225  ;;
19226
19227interix[3-9]*)
19228  version_type=linux # correct to gnu/linux during the next big refactor
19229  need_lib_prefix=no
19230  need_version=no
19231  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19232  soname_spec='$libname$release$shared_ext$major'
19233  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19234  shlibpath_var=LD_LIBRARY_PATH
19235  shlibpath_overrides_runpath=no
19236  hardcode_into_libs=yes
19237  ;;
19238
19239irix5* | irix6* | nonstopux*)
19240  case $host_os in
19241    nonstopux*) version_type=nonstopux ;;
19242    *)
19243	if test yes = "$lt_cv_prog_gnu_ld"; then
19244		version_type=linux # correct to gnu/linux during the next big refactor
19245	else
19246		version_type=irix
19247	fi ;;
19248  esac
19249  need_lib_prefix=no
19250  need_version=no
19251  soname_spec='$libname$release$shared_ext$major'
19252  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19253  case $host_os in
19254  irix5* | nonstopux*)
19255    libsuff= shlibsuff=
19256    ;;
19257  *)
19258    case $LD in # libtool.m4 will add one of these switches to LD
19259    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19260      libsuff= shlibsuff= libmagic=32-bit;;
19261    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19262      libsuff=32 shlibsuff=N32 libmagic=N32;;
19263    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19264      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19265    *) libsuff= shlibsuff= libmagic=never-match;;
19266    esac
19267    ;;
19268  esac
19269  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19270  shlibpath_overrides_runpath=no
19271  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19272  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19273  hardcode_into_libs=yes
19274  ;;
19275
19276# No shared lib support for Linux oldld, aout, or coff.
19277linux*oldld* | linux*aout* | linux*coff*)
19278  dynamic_linker=no
19279  ;;
19280
19281linux*android*)
19282  version_type=none # Android doesn't support versioned libraries.
19283  need_lib_prefix=no
19284  need_version=no
19285  library_names_spec='$libname$release$shared_ext'
19286  soname_spec='$libname$release$shared_ext'
19287  finish_cmds=
19288  shlibpath_var=LD_LIBRARY_PATH
19289  shlibpath_overrides_runpath=yes
19290
19291  # This implies no fast_install, which is unacceptable.
19292  # Some rework will be needed to allow for fast_install
19293  # before this can be enabled.
19294  hardcode_into_libs=yes
19295
19296  dynamic_linker='Android linker'
19297  # Don't embed -rpath directories since the linker doesn't support them.
19298  hardcode_libdir_flag_spec_CXX='-L$libdir'
19299  ;;
19300
19301# This must be glibc/ELF.
19302linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19303  version_type=linux # correct to gnu/linux during the next big refactor
19304  need_lib_prefix=no
19305  need_version=no
19306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19307  soname_spec='$libname$release$shared_ext$major'
19308  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19309  shlibpath_var=LD_LIBRARY_PATH
19310  shlibpath_overrides_runpath=no
19311
19312  # Some binutils ld are patched to set DT_RUNPATH
19313  if test ${lt_cv_shlibpath_overrides_runpath+y}
19314then :
19315  printf %s "(cached) " >&6
19316else $as_nop
19317  lt_cv_shlibpath_overrides_runpath=no
19318    save_LDFLAGS=$LDFLAGS
19319    save_libdir=$libdir
19320    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19321	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19322    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19323/* end confdefs.h.  */
19324
19325int
19326main (void)
19327{
19328
19329  ;
19330  return 0;
19331}
19332_ACEOF
19333if ac_fn_cxx_try_link "$LINENO"
19334then :
19335  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19336then :
19337  lt_cv_shlibpath_overrides_runpath=yes
19338fi
19339fi
19340rm -f core conftest.err conftest.$ac_objext conftest.beam \
19341    conftest$ac_exeext conftest.$ac_ext
19342    LDFLAGS=$save_LDFLAGS
19343    libdir=$save_libdir
19344
19345fi
19346
19347  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19348
19349  # This implies no fast_install, which is unacceptable.
19350  # Some rework will be needed to allow for fast_install
19351  # before this can be enabled.
19352  hardcode_into_libs=yes
19353
19354  # Ideally, we could use ldconfig to report *all* directores which are
19355  # searched for libraries, however this is still not possible.  Aside from not
19356  # being certain /sbin/ldconfig is available, command
19357  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19358  # even though it is searched at run-time.  Try to do the best guess by
19359  # appending ld.so.conf contents (and includes) to the search path.
19360  if test -f /etc/ld.so.conf; then
19361    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' ' '`
19362    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19363  fi
19364
19365  # We used to test for /lib/ld.so.1 and disable shared libraries on
19366  # powerpc, because MkLinux only supported shared libraries with the
19367  # GNU dynamic linker.  Since this was broken with cross compilers,
19368  # most powerpc-linux boxes support dynamic linking these days and
19369  # people can always --disable-shared, the test was removed, and we
19370  # assume the GNU/Linux dynamic linker is in use.
19371  dynamic_linker='GNU/Linux ld.so'
19372  ;;
19373
19374netbsdelf*-gnu)
19375  version_type=linux
19376  need_lib_prefix=no
19377  need_version=no
19378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19379  soname_spec='${libname}${release}${shared_ext}$major'
19380  shlibpath_var=LD_LIBRARY_PATH
19381  shlibpath_overrides_runpath=no
19382  hardcode_into_libs=yes
19383  dynamic_linker='NetBSD ld.elf_so'
19384  ;;
19385
19386netbsd*)
19387  version_type=sunos
19388  need_lib_prefix=no
19389  need_version=no
19390  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19391    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19392    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19393    dynamic_linker='NetBSD (a.out) ld.so'
19394  else
19395    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19396    soname_spec='$libname$release$shared_ext$major'
19397    dynamic_linker='NetBSD ld.elf_so'
19398  fi
19399  shlibpath_var=LD_LIBRARY_PATH
19400  shlibpath_overrides_runpath=yes
19401  hardcode_into_libs=yes
19402  ;;
19403
19404newsos6)
19405  version_type=linux # correct to gnu/linux during the next big refactor
19406  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19407  shlibpath_var=LD_LIBRARY_PATH
19408  shlibpath_overrides_runpath=yes
19409  ;;
19410
19411*nto* | *qnx*)
19412  version_type=qnx
19413  need_lib_prefix=no
19414  need_version=no
19415  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19416  soname_spec='$libname$release$shared_ext$major'
19417  shlibpath_var=LD_LIBRARY_PATH
19418  shlibpath_overrides_runpath=no
19419  hardcode_into_libs=yes
19420  dynamic_linker='ldqnx.so'
19421  ;;
19422
19423openbsd* | bitrig*)
19424  version_type=sunos
19425  sys_lib_dlsearch_path_spec=/usr/lib
19426  need_lib_prefix=no
19427  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19428    need_version=no
19429  else
19430    need_version=yes
19431  fi
19432  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19433  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19434  shlibpath_var=LD_LIBRARY_PATH
19435  shlibpath_overrides_runpath=yes
19436  ;;
19437
19438os2*)
19439  libname_spec='$name'
19440  version_type=windows
19441  shrext_cmds=.dll
19442  need_version=no
19443  need_lib_prefix=no
19444  # OS/2 can only load a DLL with a base name of 8 characters or less.
19445  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19446    v=$($ECHO $release$versuffix | tr -d .-);
19447    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19448    $ECHO $n$v`$shared_ext'
19449  library_names_spec='${libname}_dll.$libext'
19450  dynamic_linker='OS/2 ld.exe'
19451  shlibpath_var=BEGINLIBPATH
19452  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19453  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19454  postinstall_cmds='base_file=`basename \$file`~
19455    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19456    dldir=$destdir/`dirname \$dlpath`~
19457    test -d \$dldir || mkdir -p \$dldir~
19458    $install_prog $dir/$dlname \$dldir/$dlname~
19459    chmod a+x \$dldir/$dlname~
19460    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19461      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19462    fi'
19463  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19464    dlpath=$dir/\$dldll~
19465    $RM \$dlpath'
19466  ;;
19467
19468osf3* | osf4* | osf5*)
19469  version_type=osf
19470  need_lib_prefix=no
19471  need_version=no
19472  soname_spec='$libname$release$shared_ext$major'
19473  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19474  shlibpath_var=LD_LIBRARY_PATH
19475  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19476  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19477  ;;
19478
19479rdos*)
19480  dynamic_linker=no
19481  ;;
19482
19483solaris*)
19484  version_type=linux # correct to gnu/linux during the next big refactor
19485  need_lib_prefix=no
19486  need_version=no
19487  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19488  soname_spec='$libname$release$shared_ext$major'
19489  shlibpath_var=LD_LIBRARY_PATH
19490  shlibpath_overrides_runpath=yes
19491  hardcode_into_libs=yes
19492  # ldd complains unless libraries are executable
19493  postinstall_cmds='chmod +x $lib'
19494  ;;
19495
19496sunos4*)
19497  version_type=sunos
19498  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19499  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19500  shlibpath_var=LD_LIBRARY_PATH
19501  shlibpath_overrides_runpath=yes
19502  if test yes = "$with_gnu_ld"; then
19503    need_lib_prefix=no
19504  fi
19505  need_version=yes
19506  ;;
19507
19508sysv4 | sysv4.3*)
19509  version_type=linux # correct to gnu/linux during the next big refactor
19510  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19511  soname_spec='$libname$release$shared_ext$major'
19512  shlibpath_var=LD_LIBRARY_PATH
19513  case $host_vendor in
19514    sni)
19515      shlibpath_overrides_runpath=no
19516      need_lib_prefix=no
19517      runpath_var=LD_RUN_PATH
19518      ;;
19519    siemens)
19520      need_lib_prefix=no
19521      ;;
19522    motorola)
19523      need_lib_prefix=no
19524      need_version=no
19525      shlibpath_overrides_runpath=no
19526      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19527      ;;
19528  esac
19529  ;;
19530
19531sysv4*MP*)
19532  if test -d /usr/nec; then
19533    version_type=linux # correct to gnu/linux during the next big refactor
19534    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19535    soname_spec='$libname$shared_ext.$major'
19536    shlibpath_var=LD_LIBRARY_PATH
19537  fi
19538  ;;
19539
19540sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19541  version_type=sco
19542  need_lib_prefix=no
19543  need_version=no
19544  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19545  soname_spec='$libname$release$shared_ext$major'
19546  shlibpath_var=LD_LIBRARY_PATH
19547  shlibpath_overrides_runpath=yes
19548  hardcode_into_libs=yes
19549  if test yes = "$with_gnu_ld"; then
19550    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19551  else
19552    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19553    case $host_os in
19554      sco3.2v5*)
19555        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19556	;;
19557    esac
19558  fi
19559  sys_lib_dlsearch_path_spec='/usr/lib'
19560  ;;
19561
19562tpf*)
19563  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19564  version_type=linux # correct to gnu/linux during the next big refactor
19565  need_lib_prefix=no
19566  need_version=no
19567  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19568  shlibpath_var=LD_LIBRARY_PATH
19569  shlibpath_overrides_runpath=no
19570  hardcode_into_libs=yes
19571  ;;
19572
19573uts4*)
19574  version_type=linux # correct to gnu/linux during the next big refactor
19575  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19576  soname_spec='$libname$release$shared_ext$major'
19577  shlibpath_var=LD_LIBRARY_PATH
19578  ;;
19579
19580*)
19581  dynamic_linker=no
19582  ;;
19583esac
19584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19585printf "%s\n" "$dynamic_linker" >&6; }
19586test no = "$dynamic_linker" && can_build_shared=no
19587
19588variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19589if test yes = "$GCC"; then
19590  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19591fi
19592
19593if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19594  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19595fi
19596
19597if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19598  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19599fi
19600
19601# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19602configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19603
19604# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19605func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19606
19607# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19608configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19650printf %s "checking how to hardcode library paths into programs... " >&6; }
19651hardcode_action_CXX=
19652if test -n "$hardcode_libdir_flag_spec_CXX" ||
19653   test -n "$runpath_var_CXX" ||
19654   test yes = "$hardcode_automatic_CXX"; then
19655
19656  # We can hardcode non-existent directories.
19657  if test no != "$hardcode_direct_CXX" &&
19658     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19659     # have to relink, otherwise we might link with an installed library
19660     # when we should be linking with a yet-to-be-installed one
19661     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19662     test no != "$hardcode_minus_L_CXX"; then
19663    # Linking always hardcodes the temporary library directory.
19664    hardcode_action_CXX=relink
19665  else
19666    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19667    hardcode_action_CXX=immediate
19668  fi
19669else
19670  # We cannot hardcode anything, or else we can only hardcode existing
19671  # directories.
19672  hardcode_action_CXX=unsupported
19673fi
19674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19675printf "%s\n" "$hardcode_action_CXX" >&6; }
19676
19677if test relink = "$hardcode_action_CXX" ||
19678   test yes = "$inherit_rpath_CXX"; then
19679  # Fast installation is not supported
19680  enable_fast_install=no
19681elif test yes = "$shlibpath_overrides_runpath" ||
19682     test no = "$enable_shared"; then
19683  # Fast installation is not necessary
19684  enable_fast_install=needless
19685fi
19686
19687
19688
19689
19690
19691
19692
19693  fi # test -n "$compiler"
19694
19695  CC=$lt_save_CC
19696  CFLAGS=$lt_save_CFLAGS
19697  LDCXX=$LD
19698  LD=$lt_save_LD
19699  GCC=$lt_save_GCC
19700  with_gnu_ld=$lt_save_with_gnu_ld
19701  lt_cv_path_LDCXX=$lt_cv_path_LD
19702  lt_cv_path_LD=$lt_save_path_LD
19703  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19704  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19705fi # test yes != "$_lt_caught_CXX_error"
19706
19707ac_ext=c
19708ac_cpp='$CPP $CPPFLAGS'
19709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19711ac_compiler_gnu=$ac_cv_c_compiler_gnu
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727        ac_config_commands="$ac_config_commands libtool"
19728
19729
19730
19731
19732# Only expand once:
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
19743printf %s "checking for grep that handles long lines and -e... " >&6; }
19744if test ${ac_cv_path_GREP+y}
19745then :
19746  printf %s "(cached) " >&6
19747else $as_nop
19748  if test -z "$GREP"; then
19749  ac_path_GREP_found=false
19750  # Loop through the user's path and test for each of PROGNAME-LIST
19751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
19753do
19754  IFS=$as_save_IFS
19755  case $as_dir in #(((
19756    '') as_dir=./ ;;
19757    */) ;;
19758    *) as_dir=$as_dir/ ;;
19759  esac
19760    for ac_prog in grep ggrep
19761   do
19762    for ac_exec_ext in '' $ac_executable_extensions; do
19763      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
19764      as_fn_executable_p "$ac_path_GREP" || continue
19765# Check for GNU ac_path_GREP and select it if it is found.
19766  # Check for GNU $ac_path_GREP
19767case `"$ac_path_GREP" --version 2>&1` in
19768*GNU*)
19769  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
19770*)
19771  ac_count=0
19772  printf %s 0123456789 >"conftest.in"
19773  while :
19774  do
19775    cat "conftest.in" "conftest.in" >"conftest.tmp"
19776    mv "conftest.tmp" "conftest.in"
19777    cp "conftest.in" "conftest.nl"
19778    printf "%s\n" 'GREP' >> "conftest.nl"
19779    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
19780    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19781    as_fn_arith $ac_count + 1 && ac_count=$as_val
19782    if test $ac_count -gt ${ac_path_GREP_max-0}; then
19783      # Best one so far, save it but keep looking for a better one
19784      ac_cv_path_GREP="$ac_path_GREP"
19785      ac_path_GREP_max=$ac_count
19786    fi
19787    # 10*(2^10) chars as input seems more than enough
19788    test $ac_count -gt 10 && break
19789  done
19790  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19791esac
19792
19793      $ac_path_GREP_found && break 3
19794    done
19795  done
19796  done
19797IFS=$as_save_IFS
19798  if test -z "$ac_cv_path_GREP"; then
19799    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
19800  fi
19801else
19802  ac_cv_path_GREP=$GREP
19803fi
19804
19805fi
19806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
19807printf "%s\n" "$ac_cv_path_GREP" >&6; }
19808 GREP="$ac_cv_path_GREP"
19809
19810
19811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19812printf %s "checking for a sed that does not truncate output... " >&6; }
19813if test ${ac_cv_path_SED+y}
19814then :
19815  printf %s "(cached) " >&6
19816else $as_nop
19817            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19818     for ac_i in 1 2 3 4 5 6 7; do
19819       ac_script="$ac_script$as_nl$ac_script"
19820     done
19821     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19822     { ac_script=; unset ac_script;}
19823     if test -z "$SED"; then
19824  ac_path_SED_found=false
19825  # Loop through the user's path and test for each of PROGNAME-LIST
19826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19827for as_dir in $PATH
19828do
19829  IFS=$as_save_IFS
19830  case $as_dir in #(((
19831    '') as_dir=./ ;;
19832    */) ;;
19833    *) as_dir=$as_dir/ ;;
19834  esac
19835    for ac_prog in sed gsed
19836   do
19837    for ac_exec_ext in '' $ac_executable_extensions; do
19838      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
19839      as_fn_executable_p "$ac_path_SED" || continue
19840# Check for GNU ac_path_SED and select it if it is found.
19841  # Check for GNU $ac_path_SED
19842case `"$ac_path_SED" --version 2>&1` in
19843*GNU*)
19844  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19845*)
19846  ac_count=0
19847  printf %s 0123456789 >"conftest.in"
19848  while :
19849  do
19850    cat "conftest.in" "conftest.in" >"conftest.tmp"
19851    mv "conftest.tmp" "conftest.in"
19852    cp "conftest.in" "conftest.nl"
19853    printf "%s\n" '' >> "conftest.nl"
19854    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19855    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19856    as_fn_arith $ac_count + 1 && ac_count=$as_val
19857    if test $ac_count -gt ${ac_path_SED_max-0}; then
19858      # Best one so far, save it but keep looking for a better one
19859      ac_cv_path_SED="$ac_path_SED"
19860      ac_path_SED_max=$ac_count
19861    fi
19862    # 10*(2^10) chars as input seems more than enough
19863    test $ac_count -gt 10 && break
19864  done
19865  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19866esac
19867
19868      $ac_path_SED_found && break 3
19869    done
19870  done
19871  done
19872IFS=$as_save_IFS
19873  if test -z "$ac_cv_path_SED"; then
19874    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19875  fi
19876else
19877  ac_cv_path_SED=$SED
19878fi
19879
19880fi
19881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19882printf "%s\n" "$ac_cv_path_SED" >&6; }
19883 SED="$ac_cv_path_SED"
19884  rm -f conftest.sed
19885
19886if test "x$with_clang_prefix" != "x"; then
19887	LLVM_CONFIG="$with_clang_prefix/bin/llvm-config"
19888fi
19889# Extract the first word of ""llvm-config"", so it can be a program name with args.
19890set dummy "llvm-config"; ac_word=$2
19891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19892printf %s "checking for $ac_word... " >&6; }
19893if test ${ac_cv_path_LLVM_CONFIG+y}
19894then :
19895  printf %s "(cached) " >&6
19896else $as_nop
19897  case $LLVM_CONFIG in
19898  [\\/]* | ?:[\\/]*)
19899  ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
19900  ;;
19901  *)
19902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19903for as_dir in $PATH
19904do
19905  IFS=$as_save_IFS
19906  case $as_dir in #(((
19907    '') as_dir=./ ;;
19908    */) ;;
19909    *) as_dir=$as_dir/ ;;
19910  esac
19911    for ac_exec_ext in '' $ac_executable_extensions; do
19912  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19913    ac_cv_path_LLVM_CONFIG="$as_dir$ac_word$ac_exec_ext"
19914    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19915    break 2
19916  fi
19917done
19918  done
19919IFS=$as_save_IFS
19920
19921  ;;
19922esac
19923fi
19924LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
19925if test -n "$LLVM_CONFIG"; then
19926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
19927printf "%s\n" "$LLVM_CONFIG" >&6; }
19928else
19929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19930printf "%s\n" "no" >&6; }
19931fi
19932
19933
19934if test -z "$LLVM_CONFIG" || test ! -x "$LLVM_CONFIG"; then
19935	as_fn_error $? "llvm-config not found" "$LINENO" 5
19936fi
19937CLANG_CXXFLAGS=`$LLVM_CONFIG --cxxflags | \
19938	$SED -e 's/-Wcovered-switch-default//;s/-gsplit-dwarf//'`
19939CLANG_LDFLAGS=`$LLVM_CONFIG --ldflags`
19940# Construct a -R argument for libtool.
19941# This is needed in case some of the clang libraries are shared libraries.
19942CLANG_RFLAG=`echo "$CLANG_LDFLAGS" | $SED -e 's/-L/-R/g'`
19943targets=`$LLVM_CONFIG --targets-built`
19944components="$targets asmparser bitreader support mc"
19945# Link in option and frontendopenmp components when available
19946# since they may be used by the clang libraries.
19947for c in option frontendopenmp; do
19948	$LLVM_CONFIG --components | $GREP $c > /dev/null 2> /dev/null
19949	if test $? -eq 0; then
19950		components="$components $c"
19951	fi
19952done
19953CLANG_LIBS=`$LLVM_CONFIG --libs $components`
19954systemlibs=`$LLVM_CONFIG --system-libs 2> /dev/null | tail -1`
19955if test $? -eq 0; then
19956	CLANG_LIBS="$CLANG_LIBS $systemlibs"
19957fi
19958CLANG_PREFIX=`$LLVM_CONFIG --prefix`
19959
19960printf "%s\n" "#define CLANG_PREFIX \"$CLANG_PREFIX\"" >>confdefs.h
19961
19962
19963# If $CLANG_PREFIX/bin/clang cannot find the standard include files,
19964# then see if setting sysroot to `xcode-select -p`/SDKs/MacOSX.sdk helps.
19965# This may be required on some versions of OS X since they lack /usr/include.
19966# If so, set CLANG_SYSROOT accordingly.
19967SAVE_CC="$CC"
19968CC="$CLANG_PREFIX/bin/clang"
19969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CLANG_PREFIX/bin/clang can find standard include files" >&5
19970printf %s "checking whether $CLANG_PREFIX/bin/clang can find standard include files... " >&6; }
19971found_header=no
19972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973/* end confdefs.h.  */
19974#include <stdio.h>
19975int
19976main (void)
19977{
19978
19979  ;
19980  return 0;
19981}
19982_ACEOF
19983if ac_fn_c_try_compile "$LINENO"
19984then :
19985  found_header=yes
19986fi
19987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_header" >&5
19989printf "%s\n" "$found_header" >&6; }
19990if test "x$found_header" != "xyes"; then
19991	# Extract the first word of "xcode-select", so it can be a program name with args.
19992set dummy xcode-select; ac_word=$2
19993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19994printf %s "checking for $ac_word... " >&6; }
19995if test ${ac_cv_prog_XCODE_SELECT+y}
19996then :
19997  printf %s "(cached) " >&6
19998else $as_nop
19999  if test -n "$XCODE_SELECT"; then
20000  ac_cv_prog_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test.
20001else
20002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20003for as_dir in $PATH
20004do
20005  IFS=$as_save_IFS
20006  case $as_dir in #(((
20007    '') as_dir=./ ;;
20008    */) ;;
20009    *) as_dir=$as_dir/ ;;
20010  esac
20011    for ac_exec_ext in '' $ac_executable_extensions; do
20012  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20013    ac_cv_prog_XCODE_SELECT="xcode-select"
20014    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20015    break 2
20016  fi
20017done
20018  done
20019IFS=$as_save_IFS
20020
20021fi
20022fi
20023XCODE_SELECT=$ac_cv_prog_XCODE_SELECT
20024if test -n "$XCODE_SELECT"; then
20025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
20026printf "%s\n" "$XCODE_SELECT" >&6; }
20027else
20028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029printf "%s\n" "no" >&6; }
20030fi
20031
20032
20033	if test -z "$XCODE_SELECT"; then
20034		as_fn_error $? "Cannot find xcode-select" "$LINENO" 5
20035	fi
20036	sysroot=`$XCODE_SELECT -p`/SDKs/MacOSX.sdk
20037	SAVE_CPPFLAGS="$CPPFLAGS"
20038	CPPFLAGS="$CPPFLAGS -isysroot $sysroot"
20039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether standard include files can be found with sysroot set" >&5
20040printf %s "checking whether standard include files can be found with sysroot set... " >&6; }
20041	found_header=no
20042	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20043/* end confdefs.h.  */
20044#include <stdio.h>
20045int
20046main (void)
20047{
20048
20049  ;
20050  return 0;
20051}
20052_ACEOF
20053if ac_fn_c_try_compile "$LINENO"
20054then :
20055  found_header=yes
20056fi
20057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20058	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $found_header" >&5
20059printf "%s\n" "$found_header" >&6; }
20060	CPPFLAGS="$SAVE_CPPFLAGS"
20061	if test "x$found_header" != "xyes"; then
20062		as_fn_error $? "Cannot find standard include files" "$LINENO" 5
20063	else
20064
20065printf "%s\n" "#define CLANG_SYSROOT \"$sysroot\"" >>confdefs.h
20066
20067	fi
20068fi
20069CC="$SAVE_CC"
20070
20071ac_ext=cpp
20072ac_cpp='$CXXCPP $CPPFLAGS'
20073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20076
20077
20078SAVE_CPPFLAGS="$CPPFLAGS"
20079SAVE_LDFLAGS="$LDFLAGS"
20080SAVE_LIBS="$LIBS"
20081
20082CPPFLAGS="$CLANG_CXXFLAGS -I$srcdir $CPPFLAGS"
20083ac_fn_cxx_check_header_compile "$LINENO" "clang/Basic/SourceLocation.h" "ac_cv_header_clang_Basic_SourceLocation_h" "$ac_includes_default"
20084if test "x$ac_cv_header_clang_Basic_SourceLocation_h" = xyes
20085then :
20086
20087else $as_nop
20088  as_fn_error $? "clang header file not found" "$LINENO" 5
20089fi
20090
20091ac_fn_cxx_check_header_compile "$LINENO" "llvm/TargetParser/Host.h" "ac_cv_header_llvm_TargetParser_Host_h" "$ac_includes_default"
20092if test "x$ac_cv_header_llvm_TargetParser_Host_h" = xyes
20093then :
20094
20095printf "%s\n" "#define HAVE_TARGETPARSER_HOST_H /**/" >>confdefs.h
20096
20097else $as_nop
20098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099/* end confdefs.h.  */
20100#include <llvm/Support/Host.h>
20101
20102_ACEOF
20103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20104  $EGREP "getDefaultTargetTriple" >/dev/null 2>&1
20105then :
20106
20107else $as_nop
20108
20109printf "%s\n" "#define getDefaultTargetTriple getHostTriple" >>confdefs.h
20110
20111fi
20112rm -rf conftest*
20113
20114
20115fi
20116
20117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118/* end confdefs.h.  */
20119#include <clang/Basic/SourceLocation.h>
20120
20121_ACEOF
20122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20123  $EGREP "getExpansionLineNumber" >/dev/null 2>&1
20124then :
20125
20126else $as_nop
20127
20128printf "%s\n" "#define getExpansionLineNumber getInstantiationLineNumber" >>confdefs.h
20129
20130fi
20131rm -rf conftest*
20132
20133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134/* end confdefs.h.  */
20135#include <clang/Basic/SourceManager.h>
20136
20137_ACEOF
20138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20139  $EGREP "getImmediateExpansionRange" >/dev/null 2>&1
20140then :
20141
20142else $as_nop
20143
20144printf "%s\n" "#define getImmediateExpansionRange getImmediateInstantiationRange" >>confdefs.h
20145
20146
20147fi
20148rm -rf conftest*
20149
20150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151/* end confdefs.h.  */
20152#include <clang/Basic/Diagnostic.h>
20153
20154_ACEOF
20155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20156  $EGREP "DiagnosticsEngine" >/dev/null 2>&1
20157then :
20158
20159else $as_nop
20160
20161printf "%s\n" "#define DiagnosticsEngine Diagnostic" >>confdefs.h
20162
20163fi
20164rm -rf conftest*
20165
20166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20167/* end confdefs.h.  */
20168#include <clang/Driver/Driver.h>
20169
20170_ACEOF
20171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20172  $EGREP "ArrayRef" >/dev/null 2>&1
20173then :
20174
20175printf "%s\n" "#define USE_ARRAYREF /**/" >>confdefs.h
20176
20177	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20178/* end confdefs.h.  */
20179#include <clang/Frontend/CompilerInvocation.h>
20180
20181_ACEOF
20182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20183  $EGREP "ArrayRef.*CommandLineArgs" >/dev/null 2>&1
20184then :
20185
20186printf "%s\n" "#define CREATE_FROM_ARGS_TAKES_ARRAYREF /**/" >>confdefs.h
20187
20188
20189fi
20190rm -rf conftest*
20191
20192
20193fi
20194rm -rf conftest*
20195
20196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197/* end confdefs.h.  */
20198#include <clang/Driver/Driver.h>
20199
20200_ACEOF
20201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20202  $EGREP "CXXIsProduction" >/dev/null 2>&1
20203then :
20204
20205printf "%s\n" "#define HAVE_CXXISPRODUCTION /**/" >>confdefs.h
20206
20207fi
20208rm -rf conftest*
20209
20210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20211/* end confdefs.h.  */
20212#include <clang/Driver/Driver.h>
20213
20214_ACEOF
20215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20216  $EGREP " IsProduction" >/dev/null 2>&1
20217then :
20218
20219printf "%s\n" "#define HAVE_ISPRODUCTION /**/" >>confdefs.h
20220
20221fi
20222rm -rf conftest*
20223
20224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20225/* end confdefs.h.  */
20226#include <clang/Driver/Driver.h>
20227int
20228main (void)
20229{
20230
20231	using namespace clang;
20232	DiagnosticsEngine *Diags;
20233	new driver::Driver("", "", "", *Diags);
20234
20235  ;
20236  return 0;
20237}
20238_ACEOF
20239if ac_fn_cxx_try_compile "$LINENO"
20240then :
20241
20242printf "%s\n" "#define DRIVER_CTOR_TAKES_DEFAULTIMAGENAME /**/" >>confdefs.h
20243
20244fi
20245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247/* end confdefs.h.  */
20248#include <clang/AST/ASTConsumer.h>
20249
20250_ACEOF
20251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20252  $EGREP "void HandleTopLevelDecl\(" >/dev/null 2>&1
20253then :
20254
20255printf "%s\n" "#define HandleTopLevelDeclReturn void" >>confdefs.h
20256
20257
20258printf "%s\n" "#define HandleTopLevelDeclContinue /**/" >>confdefs.h
20259
20260else $as_nop
20261
20262printf "%s\n" "#define HandleTopLevelDeclReturn bool" >>confdefs.h
20263
20264
20265printf "%s\n" "#define HandleTopLevelDeclContinue true" >>confdefs.h
20266
20267fi
20268rm -rf conftest*
20269
20270ac_fn_cxx_check_header_compile "$LINENO" "clang/Basic/DiagnosticOptions.h" "ac_cv_header_clang_Basic_DiagnosticOptions_h" "$ac_includes_default"
20271if test "x$ac_cv_header_clang_Basic_DiagnosticOptions_h" = xyes
20272then :
20273
20274printf "%s\n" "#define HAVE_BASIC_DIAGNOSTICOPTIONS_H /**/" >>confdefs.h
20275
20276fi
20277
20278ac_fn_cxx_check_header_compile "$LINENO" "clang/Lex/PreprocessorOptions.h" "ac_cv_header_clang_Lex_PreprocessorOptions_h" "#include <clang/Basic/LLVM.h>
20279"
20280if test "x$ac_cv_header_clang_Lex_PreprocessorOptions_h" = xyes
20281then :
20282
20283printf "%s\n" "#define HAVE_LEX_PREPROCESSOROPTIONS_H /**/" >>confdefs.h
20284
20285fi
20286
20287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288/* end confdefs.h.  */
20289#include <clang/Basic/TargetInfo.h>
20290int
20291main (void)
20292{
20293
20294	using namespace clang;
20295	std::shared_ptr<TargetOptions> TO;
20296	DiagnosticsEngine *Diags;
20297	TargetInfo::CreateTargetInfo(*Diags, TO);
20298
20299  ;
20300  return 0;
20301}
20302_ACEOF
20303if ac_fn_cxx_try_compile "$LINENO"
20304then :
20305
20306printf "%s\n" "#define CREATETARGETINFO_TAKES_SHARED_PTR /**/" >>confdefs.h
20307
20308fi
20309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311/* end confdefs.h.  */
20312#include <clang/Basic/TargetInfo.h>
20313int
20314main (void)
20315{
20316
20317	using namespace clang;
20318	TargetOptions *TO;
20319	DiagnosticsEngine *Diags;
20320	TargetInfo::CreateTargetInfo(*Diags, TO);
20321
20322  ;
20323  return 0;
20324}
20325_ACEOF
20326if ac_fn_cxx_try_compile "$LINENO"
20327then :
20328
20329printf "%s\n" "#define CREATETARGETINFO_TAKES_POINTER /**/" >>confdefs.h
20330
20331fi
20332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20334/* end confdefs.h.  */
20335#include <clang/Frontend/CompilerInstance.h>
20336int
20337main (void)
20338{
20339
20340	using namespace clang;
20341	DiagnosticConsumer *client;
20342	CompilerInstance *Clang;
20343	Clang->createDiagnostics(client);
20344
20345  ;
20346  return 0;
20347}
20348_ACEOF
20349if ac_fn_cxx_try_compile "$LINENO"
20350then :
20351
20352else $as_nop
20353
20354printf "%s\n" "#define CREATEDIAGNOSTICS_TAKES_ARG /**/" >>confdefs.h
20355
20356fi
20357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359/* end confdefs.h.  */
20360#include <clang/Lex/HeaderSearchOptions.h>
20361int
20362main (void)
20363{
20364
20365	using namespace clang;
20366	HeaderSearchOptions HSO;
20367	HSO.AddPath("", frontend::Angled, false, false);
20368
20369  ;
20370  return 0;
20371}
20372_ACEOF
20373if ac_fn_cxx_try_compile "$LINENO"
20374then :
20375
20376printf "%s\n" "#define ADDPATH_TAKES_4_ARGUMENTS /**/" >>confdefs.h
20377
20378fi
20379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381/* end confdefs.h.  */
20382#include <clang/AST/CanonicalType.h>
20383
20384_ACEOF
20385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20386  $EGREP "getNumParams" >/dev/null 2>&1
20387then :
20388
20389printf "%s\n" "#define getNumArgs getNumParams" >>confdefs.h
20390
20391
20392printf "%s\n" "#define getArgType getParamType" >>confdefs.h
20393
20394fi
20395rm -rf conftest*
20396
20397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398/* end confdefs.h.  */
20399#include <clang/AST/CanonicalType.h>
20400
20401_ACEOF
20402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20403  $EGREP "getReturnType" >/dev/null 2>&1
20404then :
20405
20406else $as_nop
20407
20408printf "%s\n" "#define getReturnType getResultType" >>confdefs.h
20409
20410fi
20411rm -rf conftest*
20412
20413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20414/* end confdefs.h.  */
20415#include <clang/Frontend/CompilerInstance.h>
20416int
20417main (void)
20418{
20419
20420	using namespace clang;
20421	CompilerInstance *Clang;
20422	Clang->createPreprocessor(TU_Complete);
20423
20424  ;
20425  return 0;
20426}
20427_ACEOF
20428if ac_fn_cxx_try_compile "$LINENO"
20429then :
20430
20431printf "%s\n" "#define CREATEPREPROCESSOR_TAKES_TUKIND /**/" >>confdefs.h
20432
20433fi
20434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20436/* end confdefs.h.  */
20437#include <clang/Basic/SourceManager.h>
20438
20439_ACEOF
20440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20441  $EGREP "setMainFileID" >/dev/null 2>&1
20442then :
20443
20444printf "%s\n" "#define HAVE_SETMAINFILEID /**/" >>confdefs.h
20445
20446fi
20447rm -rf conftest*
20448
20449ac_fn_cxx_check_header_compile "$LINENO" "llvm/ADT/OwningPtr.h" "ac_cv_header_llvm_ADT_OwningPtr_h" "$ac_includes_default"
20450if test "x$ac_cv_header_llvm_ADT_OwningPtr_h" = xyes
20451then :
20452
20453printf "%s\n" "#define HAVE_ADT_OWNINGPTR_H /**/" >>confdefs.h
20454
20455fi
20456
20457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458/* end confdefs.h.  */
20459#include <clang/Basic/Builtins.h>
20460
20461_ACEOF
20462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20463  $EGREP "initializeBuiltins" >/dev/null 2>&1
20464then :
20465
20466else $as_nop
20467
20468printf "%s\n" "#define initializeBuiltins InitializeBuiltins" >>confdefs.h
20469
20470fi
20471rm -rf conftest*
20472
20473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474/* end confdefs.h.  */
20475#include <clang/Frontend/FrontendOptions.h>
20476
20477_ACEOF
20478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20479  $EGREP "IK_C" >/dev/null 2>&1
20480then :
20481
20482else $as_nop
20483  ac_fn_cxx_check_header_compile "$LINENO" "clang/Basic/LangStandard.h" "ac_cv_header_clang_Basic_LangStandard_h" "$ac_includes_default"
20484if test "x$ac_cv_header_clang_Basic_LangStandard_h" = xyes
20485then :
20486  IK_C=Language::C
20487else $as_nop
20488  IK_C=InputKind::C
20489fi
20490
20491
20492printf "%s\n" "#define IK_C $IK_C" >>confdefs.h
20493
20494
20495fi
20496rm -rf conftest*
20497
20498# llvmorg-15-init-7544-g93471e65df48
20499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20500/* end confdefs.h.  */
20501#include <clang/Basic/LangOptions.h>
20502
20503_ACEOF
20504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20505  $EGREP "setLangDefaults" >/dev/null 2>&1
20506then :
20507  SETLANGDEFAULTS=LangOptions
20508else $as_nop
20509  SETLANGDEFAULTS=CompilerInvocation
20510fi
20511rm -rf conftest*
20512
20513
20514printf "%s\n" "#define SETLANGDEFAULTS $SETLANGDEFAULTS" >>confdefs.h
20515
20516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20517/* end confdefs.h.  */
20518
20519	#include <clang/Basic/TargetOptions.h>
20520	#include <clang/Lex/PreprocessorOptions.h>
20521	#include <clang/Frontend/CompilerInstance.h>
20522
20523	#include "set_lang_defaults_arg4.h"
20524
20525int
20526main (void)
20527{
20528
20529	using namespace clang;
20530	CompilerInstance *Clang;
20531	TargetOptions TO;
20532	llvm::Triple T(TO.Triple);
20533	PreprocessorOptions PO;
20534	SETLANGDEFAULTS::setLangDefaults(Clang->getLangOpts(), IK_C,
20535			T, setLangDefaultsArg4(PO),
20536			LangStandard::lang_unspecified);
20537
20538  ;
20539  return 0;
20540}
20541_ACEOF
20542if ac_fn_cxx_try_compile "$LINENO"
20543then :
20544
20545printf "%s\n" "#define SETLANGDEFAULTS_TAKES_5_ARGUMENTS /**/" >>confdefs.h
20546
20547fi
20548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20550/* end confdefs.h.  */
20551
20552	#include <clang/Frontend/CompilerInstance.h>
20553	#include <clang/Frontend/CompilerInvocation.h>
20554
20555int
20556main (void)
20557{
20558
20559	using namespace clang;
20560	CompilerInvocation *invocation;
20561	CompilerInstance *Clang;
20562	Clang->setInvocation(std::make_shared<CompilerInvocation>(*invocation));
20563
20564  ;
20565  return 0;
20566}
20567_ACEOF
20568if ac_fn_cxx_try_compile "$LINENO"
20569then :
20570
20571printf "%s\n" "#define SETINVOCATION_TAKES_SHARED_PTR /**/" >>confdefs.h
20572
20573fi
20574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20575ac_fn_cxx_check_header_compile "$LINENO" "llvm/Option/Arg.h" "ac_cv_header_llvm_Option_Arg_h" "$ac_includes_default"
20576if test "x$ac_cv_header_llvm_Option_Arg_h" = xyes
20577then :
20578
20579printf "%s\n" "#define HAVE_LLVM_OPTION_ARG_H /**/" >>confdefs.h
20580
20581fi
20582
20583
20584LDFLAGS="$CLANG_LDFLAGS $LDFLAGS"
20585
20586# A test program for checking whether linking against libclang-cpp works.
20587
20588
20589# Use single libclang-cpp shared library when available.
20590# Otherwise, use a selection of clang libraries that appears to work.
20591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lclang-cpp" >&5
20592printf %s "checking for main in -lclang-cpp... " >&6; }
20593if test ${ac_cv_lib_clang_cpp_main+y}
20594then :
20595  printf %s "(cached) " >&6
20596else $as_nop
20597  ac_check_lib_save_LIBS=$LIBS
20598LIBS="-lclang-cpp  $LIBS"
20599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20600/* end confdefs.h.  */
20601
20602namespace conftest {
20603  extern "C" int main ();
20604}
20605int
20606main (void)
20607{
20608return conftest::main ();
20609  ;
20610  return 0;
20611}
20612_ACEOF
20613if ac_fn_cxx_try_link "$LINENO"
20614then :
20615  ac_cv_lib_clang_cpp_main=yes
20616else $as_nop
20617  ac_cv_lib_clang_cpp_main=no
20618fi
20619rm -f core conftest.err conftest.$ac_objext conftest.beam \
20620    conftest$ac_exeext conftest.$ac_ext
20621LIBS=$ac_check_lib_save_LIBS
20622fi
20623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_cpp_main" >&5
20624printf "%s\n" "$ac_cv_lib_clang_cpp_main" >&6; }
20625if test "x$ac_cv_lib_clang_cpp_main" = xyes
20626then :
20627  have_lib_clang=yes
20628else $as_nop
20629  have_lib_clang=no
20630fi
20631
20632if test "$have_lib_clang" = yes; then
20633	# The LLVM libraries may be linked into libclang-cpp already.
20634	# Linking against them again can cause errors about options
20635	# being registered more than once.
20636	# Check whether linking against libclang-cpp requires
20637	# linking against the LLVM libraries as well.
20638	# Fail if linking fails with or without the LLVM libraries.
20639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libclang-cpp needs LLVM libraries" >&5
20640printf %s "checking whether libclang-cpp needs LLVM libraries... " >&6; }
20641	LIBS="-lclang-cpp $SAVE_LIBS"
20642	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20643/* end confdefs.h.  */
20644#include <clang/Frontend/CompilerInstance.h>
20645int
20646main (void)
20647{
20648
20649		new clang::CompilerInstance();
20650
20651  ;
20652  return 0;
20653}
20654_ACEOF
20655if ac_fn_cxx_try_link "$LINENO"
20656then :
20657  clangcpp_needs_llvm=no
20658else $as_nop
20659
20660		LIBS="-lclang-cpp $CLANG_LIBS $SAVE_LIBS"
20661		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20662/* end confdefs.h.  */
20663#include <clang/Frontend/CompilerInstance.h>
20664int
20665main (void)
20666{
20667
20668		new clang::CompilerInstance();
20669
20670  ;
20671  return 0;
20672}
20673_ACEOF
20674if ac_fn_cxx_try_link "$LINENO"
20675then :
20676  clangcpp_needs_llvm=yes
20677else $as_nop
20678  clangcpp_needs_llvm=unknown
20679fi
20680rm -f core conftest.err conftest.$ac_objext conftest.beam \
20681    conftest$ac_exeext conftest.$ac_ext
20682
20683fi
20684rm -f core conftest.err conftest.$ac_objext conftest.beam \
20685    conftest$ac_exeext conftest.$ac_ext
20686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $clangcpp_needs_llvm" >&5
20687printf "%s\n" "$clangcpp_needs_llvm" >&6; }
20688	if test "$clangcpp_needs_llvm" = "no"
20689then :
20690  CLANG_LIBS="-lclang-cpp"
20691elif test "$clangcpp_needs_llvm" = "yes"
20692then :
20693  CLANG_LIBS="-lclang-cpp $CLANG_LIBS"
20694else $as_nop
20695  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20696printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20697as_fn_error $? "unable to link against libclang-cpp
20698See \`config.log' for more details" "$LINENO" 5; }
20699fi
20700else
20701	CLANG_LIBS="-lclangBasic -lclangDriver $CLANG_LIBS"
20702	CLANG_LIBS="-lclangAnalysis -lclangAST -lclangLex $CLANG_LIBS"
20703	LDFLAGS="$CLANG_LDFLAGS $CLANG_LIBS $SAVE_LDFLAGS"
20704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lclangEdit" >&5
20705printf %s "checking for main in -lclangEdit... " >&6; }
20706if test ${ac_cv_lib_clangEdit_main+y}
20707then :
20708  printf %s "(cached) " >&6
20709else $as_nop
20710  ac_check_lib_save_LIBS=$LIBS
20711LIBS="-lclangEdit  $LIBS"
20712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20713/* end confdefs.h.  */
20714
20715namespace conftest {
20716  extern "C" int main ();
20717}
20718int
20719main (void)
20720{
20721return conftest::main ();
20722  ;
20723  return 0;
20724}
20725_ACEOF
20726if ac_fn_cxx_try_link "$LINENO"
20727then :
20728  ac_cv_lib_clangEdit_main=yes
20729else $as_nop
20730  ac_cv_lib_clangEdit_main=no
20731fi
20732rm -f core conftest.err conftest.$ac_objext conftest.beam \
20733    conftest$ac_exeext conftest.$ac_ext
20734LIBS=$ac_check_lib_save_LIBS
20735fi
20736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangEdit_main" >&5
20737printf "%s\n" "$ac_cv_lib_clangEdit_main" >&6; }
20738if test "x$ac_cv_lib_clangEdit_main" = xyes
20739then :
20740  LIB_CLANG_EDIT=-lclangEdit
20741fi
20742
20743	CLANG_LIBS="$LIB_CLANG_EDIT $CLANG_LIBS"
20744	CLANG_LIBS="-lclangParse -lclangSema $CLANG_LIBS"
20745	CLANG_LIBS="-lclangFrontend -lclangSerialization $CLANG_LIBS"
20746fi
20747
20748CPPFLAGS="$SAVE_CPPFLAGS"
20749LDFLAGS="$SAVE_LDFLAGS"
20750LIBS="$SAVE_LIBS"
20751
20752ac_ext=c
20753ac_cpp='$CPP $CPPFLAGS'
20754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756ac_compiler_gnu=$ac_cv_c_compiler_gnu
20757
20758
20759
20760CONFIG_STATUS_DEPENDENCIES=$LLVM_CONFIG
20761
20762ac_config_headers="$ac_config_headers isl_config.h"
20763
20764ac_config_files="$ac_config_files Makefile"
20765
20766
20767cat >confcache <<\_ACEOF
20768# This file is a shell script that caches the results of configure
20769# tests run on this system so they can be shared between configure
20770# scripts and configure runs, see configure's option --config-cache.
20771# It is not useful on other systems.  If it contains results you don't
20772# want to keep, you may remove or edit it.
20773#
20774# config.status only pays attention to the cache file if you give it
20775# the --recheck option to rerun configure.
20776#
20777# `ac_cv_env_foo' variables (set or unset) will be overridden when
20778# loading this file, other *unset* `ac_cv_foo' will be assigned the
20779# following values.
20780
20781_ACEOF
20782
20783# The following way of writing the cache mishandles newlines in values,
20784# but we know of no workaround that is simple, portable, and efficient.
20785# So, we kill variables containing newlines.
20786# Ultrix sh set writes to stderr and can't be redirected directly,
20787# and sets the high bit in the cache file unless we assign to the vars.
20788(
20789  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20790    eval ac_val=\$$ac_var
20791    case $ac_val in #(
20792    *${as_nl}*)
20793      case $ac_var in #(
20794      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20795printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20796      esac
20797      case $ac_var in #(
20798      _ | IFS | as_nl) ;; #(
20799      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20800      *) { eval $ac_var=; unset $ac_var;} ;;
20801      esac ;;
20802    esac
20803  done
20804
20805  (set) 2>&1 |
20806    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20807    *${as_nl}ac_space=\ *)
20808      # `set' does not quote correctly, so add quotes: double-quote
20809      # substitution turns \\\\ into \\, and sed turns \\ into \.
20810      sed -n \
20811	"s/'/'\\\\''/g;
20812	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20813      ;; #(
20814    *)
20815      # `set' quotes correctly as required by POSIX, so do not add quotes.
20816      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20817      ;;
20818    esac |
20819    sort
20820) |
20821  sed '
20822     /^ac_cv_env_/b end
20823     t clear
20824     :clear
20825     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20826     t end
20827     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20828     :end' >>confcache
20829if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20830  if test -w "$cache_file"; then
20831    if test "x$cache_file" != "x/dev/null"; then
20832      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20833printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20834      if test ! -f "$cache_file" || test -h "$cache_file"; then
20835	cat confcache >"$cache_file"
20836      else
20837        case $cache_file in #(
20838        */* | ?:*)
20839	  mv -f confcache "$cache_file"$$ &&
20840	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20841        *)
20842	  mv -f confcache "$cache_file" ;;
20843	esac
20844      fi
20845    fi
20846  else
20847    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20848printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20849  fi
20850fi
20851rm -f confcache
20852
20853test "x$prefix" = xNONE && prefix=$ac_default_prefix
20854# Let make expand exec_prefix.
20855test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20856
20857DEFS=-DHAVE_CONFIG_H
20858
20859ac_libobjs=
20860ac_ltlibobjs=
20861U=
20862for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20863  # 1. Remove the extension, and $U if already installed.
20864  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20865  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20866  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20867  #    will be set to the directory where LIBOBJS objects are built.
20868  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20869  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20870done
20871LIBOBJS=$ac_libobjs
20872
20873LTLIBOBJS=$ac_ltlibobjs
20874
20875
20876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20877printf %s "checking that generated files are newer than configure... " >&6; }
20878   if test -n "$am_sleep_pid"; then
20879     # Hide warnings about reused PIDs.
20880     wait $am_sleep_pid 2>/dev/null
20881   fi
20882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20883printf "%s\n" "done" >&6; }
20884 if test -n "$EXEEXT"; then
20885  am__EXEEXT_TRUE=
20886  am__EXEEXT_FALSE='#'
20887else
20888  am__EXEEXT_TRUE='#'
20889  am__EXEEXT_FALSE=
20890fi
20891
20892if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20893  as_fn_error $? "conditional \"AMDEP\" was never defined.
20894Usually this means the macro was only invoked conditionally." "$LINENO" 5
20895fi
20896if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20897  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20898Usually this means the macro was only invoked conditionally." "$LINENO" 5
20899fi
20900if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20901  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20902Usually this means the macro was only invoked conditionally." "$LINENO" 5
20903fi
20904if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20905  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20906Usually this means the macro was only invoked conditionally." "$LINENO" 5
20907fi
20908if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20909  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20910Usually this means the macro was only invoked conditionally." "$LINENO" 5
20911fi
20912
20913: "${CONFIG_STATUS=./config.status}"
20914ac_write_fail=0
20915ac_clean_files_save=$ac_clean_files
20916ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20918printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20919as_write_fail=0
20920cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20921#! $SHELL
20922# Generated by $as_me.
20923# Run this file to recreate the current configuration.
20924# Compiler output produced by configure, useful for debugging
20925# configure, is in config.log if it exists.
20926
20927debug=false
20928ac_cs_recheck=false
20929ac_cs_silent=false
20930
20931SHELL=\${CONFIG_SHELL-$SHELL}
20932export SHELL
20933_ASEOF
20934cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20935## -------------------- ##
20936## M4sh Initialization. ##
20937## -------------------- ##
20938
20939# Be more Bourne compatible
20940DUALCASE=1; export DUALCASE # for MKS sh
20941as_nop=:
20942if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20943then :
20944  emulate sh
20945  NULLCMD=:
20946  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20947  # is contrary to our usage.  Disable this feature.
20948  alias -g '${1+"$@"}'='"$@"'
20949  setopt NO_GLOB_SUBST
20950else $as_nop
20951  case `(set -o) 2>/dev/null` in #(
20952  *posix*) :
20953    set -o posix ;; #(
20954  *) :
20955     ;;
20956esac
20957fi
20958
20959
20960
20961# Reset variables that may have inherited troublesome values from
20962# the environment.
20963
20964# IFS needs to be set, to space, tab, and newline, in precisely that order.
20965# (If _AS_PATH_WALK were called with IFS unset, it would have the
20966# side effect of setting IFS to empty, thus disabling word splitting.)
20967# Quoting is to prevent editors from complaining about space-tab.
20968as_nl='
20969'
20970export as_nl
20971IFS=" ""	$as_nl"
20972
20973PS1='$ '
20974PS2='> '
20975PS4='+ '
20976
20977# Ensure predictable behavior from utilities with locale-dependent output.
20978LC_ALL=C
20979export LC_ALL
20980LANGUAGE=C
20981export LANGUAGE
20982
20983# We cannot yet rely on "unset" to work, but we need these variables
20984# to be unset--not just set to an empty or harmless value--now, to
20985# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20986# also avoids known problems related to "unset" and subshell syntax
20987# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20988for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20989do eval test \${$as_var+y} \
20990  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20991done
20992
20993# Ensure that fds 0, 1, and 2 are open.
20994if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20995if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20996if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20997
20998# The user is always right.
20999if ${PATH_SEPARATOR+false} :; then
21000  PATH_SEPARATOR=:
21001  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21002    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21003      PATH_SEPARATOR=';'
21004  }
21005fi
21006
21007
21008# Find who we are.  Look in the path if we contain no directory separator.
21009as_myself=
21010case $0 in #((
21011  *[\\/]* ) as_myself=$0 ;;
21012  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21013for as_dir in $PATH
21014do
21015  IFS=$as_save_IFS
21016  case $as_dir in #(((
21017    '') as_dir=./ ;;
21018    */) ;;
21019    *) as_dir=$as_dir/ ;;
21020  esac
21021    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21022  done
21023IFS=$as_save_IFS
21024
21025     ;;
21026esac
21027# We did not find ourselves, most probably we were run as `sh COMMAND'
21028# in which case we are not to be found in the path.
21029if test "x$as_myself" = x; then
21030  as_myself=$0
21031fi
21032if test ! -f "$as_myself"; then
21033  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21034  exit 1
21035fi
21036
21037
21038
21039# as_fn_error STATUS ERROR [LINENO LOG_FD]
21040# ----------------------------------------
21041# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21042# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21043# script with STATUS, using 1 if that was 0.
21044as_fn_error ()
21045{
21046  as_status=$1; test $as_status -eq 0 && as_status=1
21047  if test "$4"; then
21048    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21049    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21050  fi
21051  printf "%s\n" "$as_me: error: $2" >&2
21052  as_fn_exit $as_status
21053} # as_fn_error
21054
21055
21056
21057# as_fn_set_status STATUS
21058# -----------------------
21059# Set $? to STATUS, without forking.
21060as_fn_set_status ()
21061{
21062  return $1
21063} # as_fn_set_status
21064
21065# as_fn_exit STATUS
21066# -----------------
21067# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21068as_fn_exit ()
21069{
21070  set +e
21071  as_fn_set_status $1
21072  exit $1
21073} # as_fn_exit
21074
21075# as_fn_unset VAR
21076# ---------------
21077# Portably unset VAR.
21078as_fn_unset ()
21079{
21080  { eval $1=; unset $1;}
21081}
21082as_unset=as_fn_unset
21083
21084# as_fn_append VAR VALUE
21085# ----------------------
21086# Append the text in VALUE to the end of the definition contained in VAR. Take
21087# advantage of any shell optimizations that allow amortized linear growth over
21088# repeated appends, instead of the typical quadratic growth present in naive
21089# implementations.
21090if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21091then :
21092  eval 'as_fn_append ()
21093  {
21094    eval $1+=\$2
21095  }'
21096else $as_nop
21097  as_fn_append ()
21098  {
21099    eval $1=\$$1\$2
21100  }
21101fi # as_fn_append
21102
21103# as_fn_arith ARG...
21104# ------------------
21105# Perform arithmetic evaluation on the ARGs, and store the result in the
21106# global $as_val. Take advantage of shells that can avoid forks. The arguments
21107# must be portable across $(()) and expr.
21108if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21109then :
21110  eval 'as_fn_arith ()
21111  {
21112    as_val=$(( $* ))
21113  }'
21114else $as_nop
21115  as_fn_arith ()
21116  {
21117    as_val=`expr "$@" || test $? -eq 1`
21118  }
21119fi # as_fn_arith
21120
21121
21122if expr a : '\(a\)' >/dev/null 2>&1 &&
21123   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21124  as_expr=expr
21125else
21126  as_expr=false
21127fi
21128
21129if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21130  as_basename=basename
21131else
21132  as_basename=false
21133fi
21134
21135if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21136  as_dirname=dirname
21137else
21138  as_dirname=false
21139fi
21140
21141as_me=`$as_basename -- "$0" ||
21142$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21143	 X"$0" : 'X\(//\)$' \| \
21144	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21145printf "%s\n" X/"$0" |
21146    sed '/^.*\/\([^/][^/]*\)\/*$/{
21147	    s//\1/
21148	    q
21149	  }
21150	  /^X\/\(\/\/\)$/{
21151	    s//\1/
21152	    q
21153	  }
21154	  /^X\/\(\/\).*/{
21155	    s//\1/
21156	    q
21157	  }
21158	  s/.*/./; q'`
21159
21160# Avoid depending upon Character Ranges.
21161as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21162as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21163as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21164as_cr_digits='0123456789'
21165as_cr_alnum=$as_cr_Letters$as_cr_digits
21166
21167
21168# Determine whether it's possible to make 'echo' print without a newline.
21169# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21170# for compatibility with existing Makefiles.
21171ECHO_C= ECHO_N= ECHO_T=
21172case `echo -n x` in #(((((
21173-n*)
21174  case `echo 'xy\c'` in
21175  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21176  xy)  ECHO_C='\c';;
21177  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21178       ECHO_T='	';;
21179  esac;;
21180*)
21181  ECHO_N='-n';;
21182esac
21183
21184# For backward compatibility with old third-party macros, we provide
21185# the shell variables $as_echo and $as_echo_n.  New code should use
21186# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21187as_echo='printf %s\n'
21188as_echo_n='printf %s'
21189
21190rm -f conf$$ conf$$.exe conf$$.file
21191if test -d conf$$.dir; then
21192  rm -f conf$$.dir/conf$$.file
21193else
21194  rm -f conf$$.dir
21195  mkdir conf$$.dir 2>/dev/null
21196fi
21197if (echo >conf$$.file) 2>/dev/null; then
21198  if ln -s conf$$.file conf$$ 2>/dev/null; then
21199    as_ln_s='ln -s'
21200    # ... but there are two gotchas:
21201    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21202    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21203    # In both cases, we have to default to `cp -pR'.
21204    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21205      as_ln_s='cp -pR'
21206  elif ln conf$$.file conf$$ 2>/dev/null; then
21207    as_ln_s=ln
21208  else
21209    as_ln_s='cp -pR'
21210  fi
21211else
21212  as_ln_s='cp -pR'
21213fi
21214rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21215rmdir conf$$.dir 2>/dev/null
21216
21217
21218# as_fn_mkdir_p
21219# -------------
21220# Create "$as_dir" as a directory, including parents if necessary.
21221as_fn_mkdir_p ()
21222{
21223
21224  case $as_dir in #(
21225  -*) as_dir=./$as_dir;;
21226  esac
21227  test -d "$as_dir" || eval $as_mkdir_p || {
21228    as_dirs=
21229    while :; do
21230      case $as_dir in #(
21231      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21232      *) as_qdir=$as_dir;;
21233      esac
21234      as_dirs="'$as_qdir' $as_dirs"
21235      as_dir=`$as_dirname -- "$as_dir" ||
21236$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21237	 X"$as_dir" : 'X\(//\)[^/]' \| \
21238	 X"$as_dir" : 'X\(//\)$' \| \
21239	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21240printf "%s\n" X"$as_dir" |
21241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21242	    s//\1/
21243	    q
21244	  }
21245	  /^X\(\/\/\)[^/].*/{
21246	    s//\1/
21247	    q
21248	  }
21249	  /^X\(\/\/\)$/{
21250	    s//\1/
21251	    q
21252	  }
21253	  /^X\(\/\).*/{
21254	    s//\1/
21255	    q
21256	  }
21257	  s/.*/./; q'`
21258      test -d "$as_dir" && break
21259    done
21260    test -z "$as_dirs" || eval "mkdir $as_dirs"
21261  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21262
21263
21264} # as_fn_mkdir_p
21265if mkdir -p . 2>/dev/null; then
21266  as_mkdir_p='mkdir -p "$as_dir"'
21267else
21268  test -d ./-p && rmdir ./-p
21269  as_mkdir_p=false
21270fi
21271
21272
21273# as_fn_executable_p FILE
21274# -----------------------
21275# Test if FILE is an executable regular file.
21276as_fn_executable_p ()
21277{
21278  test -f "$1" && test -x "$1"
21279} # as_fn_executable_p
21280as_test_x='test -x'
21281as_executable_p=as_fn_executable_p
21282
21283# Sed expression to map a string onto a valid CPP name.
21284as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21285
21286# Sed expression to map a string onto a valid variable name.
21287as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21288
21289
21290exec 6>&1
21291## ----------------------------------- ##
21292## Main body of $CONFIG_STATUS script. ##
21293## ----------------------------------- ##
21294_ASEOF
21295test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21296
21297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21298# Save the log message, to keep $0 and so on meaningful, and to
21299# report actual input values of CONFIG_FILES etc. instead of their
21300# values after options handling.
21301ac_log="
21302This file was extended by isl-interface $as_me 0, which was
21303generated by GNU Autoconf 2.71.  Invocation command line was
21304
21305  CONFIG_FILES    = $CONFIG_FILES
21306  CONFIG_HEADERS  = $CONFIG_HEADERS
21307  CONFIG_LINKS    = $CONFIG_LINKS
21308  CONFIG_COMMANDS = $CONFIG_COMMANDS
21309  $ $0 $@
21310
21311on `(hostname || uname -n) 2>/dev/null | sed 1q`
21312"
21313
21314_ACEOF
21315
21316case $ac_config_files in *"
21317"*) set x $ac_config_files; shift; ac_config_files=$*;;
21318esac
21319
21320case $ac_config_headers in *"
21321"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21322esac
21323
21324
21325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21326# Files that config.status was made for.
21327config_files="$ac_config_files"
21328config_headers="$ac_config_headers"
21329config_commands="$ac_config_commands"
21330
21331_ACEOF
21332
21333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21334ac_cs_usage="\
21335\`$as_me' instantiates files and other configuration actions
21336from templates according to the current configuration.  Unless the files
21337and actions are specified as TAGs, all are instantiated by default.
21338
21339Usage: $0 [OPTION]... [TAG]...
21340
21341  -h, --help       print this help, then exit
21342  -V, --version    print version number and configuration settings, then exit
21343      --config     print configuration, then exit
21344  -q, --quiet, --silent
21345                   do not print progress messages
21346  -d, --debug      don't remove temporary files
21347      --recheck    update $as_me by reconfiguring in the same conditions
21348      --file=FILE[:TEMPLATE]
21349                   instantiate the configuration file FILE
21350      --header=FILE[:TEMPLATE]
21351                   instantiate the configuration header FILE
21352
21353Configuration files:
21354$config_files
21355
21356Configuration headers:
21357$config_headers
21358
21359Configuration commands:
21360$config_commands
21361
21362Report bugs to <isl-development@googlegroups.com>."
21363
21364_ACEOF
21365ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21366ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21368ac_cs_config='$ac_cs_config_escaped'
21369ac_cs_version="\\
21370isl-interface config.status 0
21371configured by $0, generated by GNU Autoconf 2.71,
21372  with options \\"\$ac_cs_config\\"
21373
21374Copyright (C) 2021 Free Software Foundation, Inc.
21375This config.status script is free software; the Free Software Foundation
21376gives unlimited permission to copy, distribute and modify it."
21377
21378ac_pwd='$ac_pwd'
21379srcdir='$srcdir'
21380INSTALL='$INSTALL'
21381MKDIR_P='$MKDIR_P'
21382AWK='$AWK'
21383test -n "\$AWK" || AWK=awk
21384_ACEOF
21385
21386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21387# The default lists apply if the user does not specify any file.
21388ac_need_defaults=:
21389while test $# != 0
21390do
21391  case $1 in
21392  --*=?*)
21393    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21394    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21395    ac_shift=:
21396    ;;
21397  --*=)
21398    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21399    ac_optarg=
21400    ac_shift=:
21401    ;;
21402  *)
21403    ac_option=$1
21404    ac_optarg=$2
21405    ac_shift=shift
21406    ;;
21407  esac
21408
21409  case $ac_option in
21410  # Handling of the options.
21411  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21412    ac_cs_recheck=: ;;
21413  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21414    printf "%s\n" "$ac_cs_version"; exit ;;
21415  --config | --confi | --conf | --con | --co | --c )
21416    printf "%s\n" "$ac_cs_config"; exit ;;
21417  --debug | --debu | --deb | --de | --d | -d )
21418    debug=: ;;
21419  --file | --fil | --fi | --f )
21420    $ac_shift
21421    case $ac_optarg in
21422    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21423    '') as_fn_error $? "missing file argument" ;;
21424    esac
21425    as_fn_append CONFIG_FILES " '$ac_optarg'"
21426    ac_need_defaults=false;;
21427  --header | --heade | --head | --hea )
21428    $ac_shift
21429    case $ac_optarg in
21430    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21431    esac
21432    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21433    ac_need_defaults=false;;
21434  --he | --h)
21435    # Conflict between --help and --header
21436    as_fn_error $? "ambiguous option: \`$1'
21437Try \`$0 --help' for more information.";;
21438  --help | --hel | -h )
21439    printf "%s\n" "$ac_cs_usage"; exit ;;
21440  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21441  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21442    ac_cs_silent=: ;;
21443
21444  # This is an error.
21445  -*) as_fn_error $? "unrecognized option: \`$1'
21446Try \`$0 --help' for more information." ;;
21447
21448  *) as_fn_append ac_config_targets " $1"
21449     ac_need_defaults=false ;;
21450
21451  esac
21452  shift
21453done
21454
21455ac_configure_extra_args=
21456
21457if $ac_cs_silent; then
21458  exec 6>/dev/null
21459  ac_configure_extra_args="$ac_configure_extra_args --silent"
21460fi
21461
21462_ACEOF
21463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21464if \$ac_cs_recheck; then
21465  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21466  shift
21467  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21468  CONFIG_SHELL='$SHELL'
21469  export CONFIG_SHELL
21470  exec "\$@"
21471fi
21472
21473_ACEOF
21474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21475exec 5>>config.log
21476{
21477  echo
21478  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21479## Running $as_me. ##
21480_ASBOX
21481  printf "%s\n" "$ac_log"
21482} >&5
21483
21484_ACEOF
21485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21486#
21487# INIT-COMMANDS
21488#
21489AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21490
21491
21492# The HP-UX ksh and POSIX shell print the target directory to stdout
21493# if CDPATH is set.
21494(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21495
21496sed_quote_subst='$sed_quote_subst'
21497double_quote_subst='$double_quote_subst'
21498delay_variable_subst='$delay_variable_subst'
21499enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21500macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21501macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21502enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21503pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21504enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21505shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21506SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21507ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21508PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21509host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21510host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21511host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21512build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21513build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21514build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21515SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21516Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21517GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21518EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21519FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21520LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21521NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21522LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21523max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21524ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21525exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21526lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21527lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21528lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21529lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21530lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21531reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21532reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21533OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21534deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21535file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21536file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21537want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21538DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21539sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21540AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21541AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21542archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21543STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21544RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21545old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21546old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21547old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21548lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21549CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21550CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21551compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21552GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21553lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21554lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21555lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21556lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21557lt_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"`'
21558lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21559nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21560lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21561lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21562objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21563MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21564lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21565lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21566lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21567lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21568lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21569need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21570MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21571DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21572NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21573LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21574OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21575OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21576libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21577shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21578extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21579archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21580enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21581export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21582whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21583compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21584old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21585old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21586archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21587archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21588module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21589module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21590with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21591allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21592no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21593hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21594hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21595hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21596hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21597hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21598hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21599hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21600inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21601link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21602always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21603export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21604exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21605include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21606prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21607postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21608file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21609variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21610need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21611need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21612version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21613runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21614shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21615shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21616libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21617library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21618soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21619install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21620postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21621postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21622finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21623finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21624hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21625sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21626configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21627configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21628hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21629enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21630enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21631enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21632old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21633striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21634compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21635predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21636postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21637predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21638postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21639compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21640LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21641reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21642reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21643old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21644compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21645GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21646lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21647lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21648lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21649lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21650lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21651archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21652enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21653export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21654whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21655compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21656old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21657old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21658archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21659archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21660module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21661module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21662with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21663allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21664no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21665hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21666hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21667hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21668hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21669hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21670hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21671hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21672inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21673link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21674always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21675export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21676exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21677include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21678prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21679postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21680file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21681hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21682compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21683predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21684postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21685predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21686postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21687compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21688
21689LTCC='$LTCC'
21690LTCFLAGS='$LTCFLAGS'
21691compiler='$compiler_DEFAULT'
21692
21693# A function that is used when there is no print builtin or printf.
21694func_fallback_echo ()
21695{
21696  eval 'cat <<_LTECHO_EOF
21697\$1
21698_LTECHO_EOF'
21699}
21700
21701# Quote evaled strings.
21702for var in SHELL \
21703ECHO \
21704PATH_SEPARATOR \
21705SED \
21706GREP \
21707EGREP \
21708FGREP \
21709LD \
21710NM \
21711LN_S \
21712lt_SP2NL \
21713lt_NL2SP \
21714reload_flag \
21715OBJDUMP \
21716deplibs_check_method \
21717file_magic_cmd \
21718file_magic_glob \
21719want_nocaseglob \
21720DLLTOOL \
21721sharedlib_from_linklib_cmd \
21722AR \
21723AR_FLAGS \
21724archiver_list_spec \
21725STRIP \
21726RANLIB \
21727CC \
21728CFLAGS \
21729compiler \
21730lt_cv_sys_global_symbol_pipe \
21731lt_cv_sys_global_symbol_to_cdecl \
21732lt_cv_sys_global_symbol_to_import \
21733lt_cv_sys_global_symbol_to_c_name_address \
21734lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21735lt_cv_nm_interface \
21736nm_file_list_spec \
21737lt_cv_truncate_bin \
21738lt_prog_compiler_no_builtin_flag \
21739lt_prog_compiler_pic \
21740lt_prog_compiler_wl \
21741lt_prog_compiler_static \
21742lt_cv_prog_compiler_c_o \
21743need_locks \
21744MANIFEST_TOOL \
21745DSYMUTIL \
21746NMEDIT \
21747LIPO \
21748OTOOL \
21749OTOOL64 \
21750shrext_cmds \
21751export_dynamic_flag_spec \
21752whole_archive_flag_spec \
21753compiler_needs_object \
21754with_gnu_ld \
21755allow_undefined_flag \
21756no_undefined_flag \
21757hardcode_libdir_flag_spec \
21758hardcode_libdir_separator \
21759exclude_expsyms \
21760include_expsyms \
21761file_list_spec \
21762variables_saved_for_relink \
21763libname_spec \
21764library_names_spec \
21765soname_spec \
21766install_override_mode \
21767finish_eval \
21768old_striplib \
21769striplib \
21770compiler_lib_search_dirs \
21771predep_objects \
21772postdep_objects \
21773predeps \
21774postdeps \
21775compiler_lib_search_path \
21776LD_CXX \
21777reload_flag_CXX \
21778compiler_CXX \
21779lt_prog_compiler_no_builtin_flag_CXX \
21780lt_prog_compiler_pic_CXX \
21781lt_prog_compiler_wl_CXX \
21782lt_prog_compiler_static_CXX \
21783lt_cv_prog_compiler_c_o_CXX \
21784export_dynamic_flag_spec_CXX \
21785whole_archive_flag_spec_CXX \
21786compiler_needs_object_CXX \
21787with_gnu_ld_CXX \
21788allow_undefined_flag_CXX \
21789no_undefined_flag_CXX \
21790hardcode_libdir_flag_spec_CXX \
21791hardcode_libdir_separator_CXX \
21792exclude_expsyms_CXX \
21793include_expsyms_CXX \
21794file_list_spec_CXX \
21795compiler_lib_search_dirs_CXX \
21796predep_objects_CXX \
21797postdep_objects_CXX \
21798predeps_CXX \
21799postdeps_CXX \
21800compiler_lib_search_path_CXX; do
21801    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21802    *[\\\\\\\`\\"\\\$]*)
21803      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21804      ;;
21805    *)
21806      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21807      ;;
21808    esac
21809done
21810
21811# Double-quote double-evaled strings.
21812for var in reload_cmds \
21813old_postinstall_cmds \
21814old_postuninstall_cmds \
21815old_archive_cmds \
21816extract_expsyms_cmds \
21817old_archive_from_new_cmds \
21818old_archive_from_expsyms_cmds \
21819archive_cmds \
21820archive_expsym_cmds \
21821module_cmds \
21822module_expsym_cmds \
21823export_symbols_cmds \
21824prelink_cmds \
21825postlink_cmds \
21826postinstall_cmds \
21827postuninstall_cmds \
21828finish_cmds \
21829sys_lib_search_path_spec \
21830configure_time_dlsearch_path \
21831configure_time_lt_sys_library_path \
21832reload_cmds_CXX \
21833old_archive_cmds_CXX \
21834old_archive_from_new_cmds_CXX \
21835old_archive_from_expsyms_cmds_CXX \
21836archive_cmds_CXX \
21837archive_expsym_cmds_CXX \
21838module_cmds_CXX \
21839module_expsym_cmds_CXX \
21840export_symbols_cmds_CXX \
21841prelink_cmds_CXX \
21842postlink_cmds_CXX; do
21843    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21844    *[\\\\\\\`\\"\\\$]*)
21845      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21846      ;;
21847    *)
21848      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21849      ;;
21850    esac
21851done
21852
21853ac_aux_dir='$ac_aux_dir'
21854
21855# See if we are running on zsh, and set the options that allow our
21856# commands through without removal of \ escapes INIT.
21857if test -n "\${ZSH_VERSION+set}"; then
21858   setopt NO_GLOB_SUBST
21859fi
21860
21861
21862    PACKAGE='$PACKAGE'
21863    VERSION='$VERSION'
21864    RM='$RM'
21865    ofile='$ofile'
21866
21867
21868
21869
21870
21871
21872_ACEOF
21873
21874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21875
21876# Handling of arguments.
21877for ac_config_target in $ac_config_targets
21878do
21879  case $ac_config_target in
21880    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21881    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21882    "isl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS isl_config.h" ;;
21883    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21884
21885  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21886  esac
21887done
21888
21889
21890# If the user did not use the arguments to specify the items to instantiate,
21891# then the envvar interface is used.  Set only those that are not.
21892# We use the long form for the default assignment because of an extremely
21893# bizarre bug on SunOS 4.1.3.
21894if $ac_need_defaults; then
21895  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21896  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21897  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21898fi
21899
21900# Have a temporary directory for convenience.  Make it in the build tree
21901# simply because there is no reason against having it here, and in addition,
21902# creating and moving files from /tmp can sometimes cause problems.
21903# Hook for its removal unless debugging.
21904# Note that there is a small window in which the directory will not be cleaned:
21905# after its creation but before its name has been assigned to `$tmp'.
21906$debug ||
21907{
21908  tmp= ac_tmp=
21909  trap 'exit_status=$?
21910  : "${ac_tmp:=$tmp}"
21911  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21912' 0
21913  trap 'as_fn_exit 1' 1 2 13 15
21914}
21915# Create a (secure) tmp directory for tmp files.
21916
21917{
21918  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21919  test -d "$tmp"
21920}  ||
21921{
21922  tmp=./conf$$-$RANDOM
21923  (umask 077 && mkdir "$tmp")
21924} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21925ac_tmp=$tmp
21926
21927# Set up the scripts for CONFIG_FILES section.
21928# No need to generate them if there are no CONFIG_FILES.
21929# This happens for instance with `./config.status config.h'.
21930if test -n "$CONFIG_FILES"; then
21931
21932
21933ac_cr=`echo X | tr X '\015'`
21934# On cygwin, bash can eat \r inside `` if the user requested igncr.
21935# But we know of no other shell where ac_cr would be empty at this
21936# point, so we can use a bashism as a fallback.
21937if test "x$ac_cr" = x; then
21938  eval ac_cr=\$\'\\r\'
21939fi
21940ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21941if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21942  ac_cs_awk_cr='\\r'
21943else
21944  ac_cs_awk_cr=$ac_cr
21945fi
21946
21947echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21948_ACEOF
21949
21950
21951{
21952  echo "cat >conf$$subs.awk <<_ACEOF" &&
21953  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21954  echo "_ACEOF"
21955} >conf$$subs.sh ||
21956  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21957ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21958ac_delim='%!_!# '
21959for ac_last_try in false false false false false :; do
21960  . ./conf$$subs.sh ||
21961    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21962
21963  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21964  if test $ac_delim_n = $ac_delim_num; then
21965    break
21966  elif $ac_last_try; then
21967    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21968  else
21969    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21970  fi
21971done
21972rm -f conf$$subs.sh
21973
21974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21975cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21976_ACEOF
21977sed -n '
21978h
21979s/^/S["/; s/!.*/"]=/
21980p
21981g
21982s/^[^!]*!//
21983:repl
21984t repl
21985s/'"$ac_delim"'$//
21986t delim
21987:nl
21988h
21989s/\(.\{148\}\)..*/\1/
21990t more1
21991s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21992p
21993n
21994b repl
21995:more1
21996s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21997p
21998g
21999s/.\{148\}//
22000t nl
22001:delim
22002h
22003s/\(.\{148\}\)..*/\1/
22004t more2
22005s/["\\]/\\&/g; s/^/"/; s/$/"/
22006p
22007b
22008:more2
22009s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22010p
22011g
22012s/.\{148\}//
22013t delim
22014' <conf$$subs.awk | sed '
22015/^[^""]/{
22016  N
22017  s/\n//
22018}
22019' >>$CONFIG_STATUS || ac_write_fail=1
22020rm -f conf$$subs.awk
22021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22022_ACAWK
22023cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22024  for (key in S) S_is_set[key] = 1
22025  FS = ""
22026
22027}
22028{
22029  line = $ 0
22030  nfields = split(line, field, "@")
22031  substed = 0
22032  len = length(field[1])
22033  for (i = 2; i < nfields; i++) {
22034    key = field[i]
22035    keylen = length(key)
22036    if (S_is_set[key]) {
22037      value = S[key]
22038      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22039      len += length(value) + length(field[++i])
22040      substed = 1
22041    } else
22042      len += 1 + keylen
22043  }
22044
22045  print line
22046}
22047
22048_ACAWK
22049_ACEOF
22050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22051if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22052  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22053else
22054  cat
22055fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22056  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22057_ACEOF
22058
22059# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22060# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22061# trailing colons and then remove the whole line if VPATH becomes empty
22062# (actually we leave an empty line to preserve line numbers).
22063if test "x$srcdir" = x.; then
22064  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22065h
22066s///
22067s/^/:/
22068s/[	 ]*$/:/
22069s/:\$(srcdir):/:/g
22070s/:\${srcdir}:/:/g
22071s/:@srcdir@:/:/g
22072s/^:*//
22073s/:*$//
22074x
22075s/\(=[	 ]*\).*/\1/
22076G
22077s/\n//
22078s/^[^=]*=[	 ]*$//
22079}'
22080fi
22081
22082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22083fi # test -n "$CONFIG_FILES"
22084
22085# Set up the scripts for CONFIG_HEADERS section.
22086# No need to generate them if there are no CONFIG_HEADERS.
22087# This happens for instance with `./config.status Makefile'.
22088if test -n "$CONFIG_HEADERS"; then
22089cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22090BEGIN {
22091_ACEOF
22092
22093# Transform confdefs.h into an awk script `defines.awk', embedded as
22094# here-document in config.status, that substitutes the proper values into
22095# config.h.in to produce config.h.
22096
22097# Create a delimiter string that does not exist in confdefs.h, to ease
22098# handling of long lines.
22099ac_delim='%!_!# '
22100for ac_last_try in false false :; do
22101  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22102  if test -z "$ac_tt"; then
22103    break
22104  elif $ac_last_try; then
22105    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22106  else
22107    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22108  fi
22109done
22110
22111# For the awk script, D is an array of macro values keyed by name,
22112# likewise P contains macro parameters if any.  Preserve backslash
22113# newline sequences.
22114
22115ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22116sed -n '
22117s/.\{148\}/&'"$ac_delim"'/g
22118t rset
22119:rset
22120s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22121t def
22122d
22123:def
22124s/\\$//
22125t bsnl
22126s/["\\]/\\&/g
22127s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22128D["\1"]=" \3"/p
22129s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22130d
22131:bsnl
22132s/["\\]/\\&/g
22133s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22134D["\1"]=" \3\\\\\\n"\\/p
22135t cont
22136s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22137t cont
22138d
22139:cont
22140n
22141s/.\{148\}/&'"$ac_delim"'/g
22142t clear
22143:clear
22144s/\\$//
22145t bsnlc
22146s/["\\]/\\&/g; s/^/"/; s/$/"/p
22147d
22148:bsnlc
22149s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22150b cont
22151' <confdefs.h | sed '
22152s/'"$ac_delim"'/"\\\
22153"/g' >>$CONFIG_STATUS || ac_write_fail=1
22154
22155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22156  for (key in D) D_is_set[key] = 1
22157  FS = ""
22158}
22159/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22160  line = \$ 0
22161  split(line, arg, " ")
22162  if (arg[1] == "#") {
22163    defundef = arg[2]
22164    mac1 = arg[3]
22165  } else {
22166    defundef = substr(arg[1], 2)
22167    mac1 = arg[2]
22168  }
22169  split(mac1, mac2, "(") #)
22170  macro = mac2[1]
22171  prefix = substr(line, 1, index(line, defundef) - 1)
22172  if (D_is_set[macro]) {
22173    # Preserve the white space surrounding the "#".
22174    print prefix "define", macro P[macro] D[macro]
22175    next
22176  } else {
22177    # Replace #undef with comments.  This is necessary, for example,
22178    # in the case of _POSIX_SOURCE, which is predefined and required
22179    # on some systems where configure will not decide to define it.
22180    if (defundef == "undef") {
22181      print "/*", prefix defundef, macro, "*/"
22182      next
22183    }
22184  }
22185}
22186{ print }
22187_ACAWK
22188_ACEOF
22189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22190  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22191fi # test -n "$CONFIG_HEADERS"
22192
22193
22194eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22195shift
22196for ac_tag
22197do
22198  case $ac_tag in
22199  :[FHLC]) ac_mode=$ac_tag; continue;;
22200  esac
22201  case $ac_mode$ac_tag in
22202  :[FHL]*:*);;
22203  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22204  :[FH]-) ac_tag=-:-;;
22205  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22206  esac
22207  ac_save_IFS=$IFS
22208  IFS=:
22209  set x $ac_tag
22210  IFS=$ac_save_IFS
22211  shift
22212  ac_file=$1
22213  shift
22214
22215  case $ac_mode in
22216  :L) ac_source=$1;;
22217  :[FH])
22218    ac_file_inputs=
22219    for ac_f
22220    do
22221      case $ac_f in
22222      -) ac_f="$ac_tmp/stdin";;
22223      *) # Look for the file first in the build tree, then in the source tree
22224	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22225	 # because $ac_f cannot contain `:'.
22226	 test -f "$ac_f" ||
22227	   case $ac_f in
22228	   [\\/$]*) false;;
22229	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22230	   esac ||
22231	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22232      esac
22233      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22234      as_fn_append ac_file_inputs " '$ac_f'"
22235    done
22236
22237    # Let's still pretend it is `configure' which instantiates (i.e., don't
22238    # use $as_me), people would be surprised to read:
22239    #    /* config.h.  Generated by config.status.  */
22240    configure_input='Generated from '`
22241	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22242	`' by configure.'
22243    if test x"$ac_file" != x-; then
22244      configure_input="$ac_file.  $configure_input"
22245      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22246printf "%s\n" "$as_me: creating $ac_file" >&6;}
22247    fi
22248    # Neutralize special characters interpreted by sed in replacement strings.
22249    case $configure_input in #(
22250    *\&* | *\|* | *\\* )
22251       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22252       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22253    *) ac_sed_conf_input=$configure_input;;
22254    esac
22255
22256    case $ac_tag in
22257    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22258      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22259    esac
22260    ;;
22261  esac
22262
22263  ac_dir=`$as_dirname -- "$ac_file" ||
22264$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22265	 X"$ac_file" : 'X\(//\)[^/]' \| \
22266	 X"$ac_file" : 'X\(//\)$' \| \
22267	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22268printf "%s\n" X"$ac_file" |
22269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22270	    s//\1/
22271	    q
22272	  }
22273	  /^X\(\/\/\)[^/].*/{
22274	    s//\1/
22275	    q
22276	  }
22277	  /^X\(\/\/\)$/{
22278	    s//\1/
22279	    q
22280	  }
22281	  /^X\(\/\).*/{
22282	    s//\1/
22283	    q
22284	  }
22285	  s/.*/./; q'`
22286  as_dir="$ac_dir"; as_fn_mkdir_p
22287  ac_builddir=.
22288
22289case "$ac_dir" in
22290.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22291*)
22292  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22293  # A ".." for each directory in $ac_dir_suffix.
22294  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22295  case $ac_top_builddir_sub in
22296  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22297  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22298  esac ;;
22299esac
22300ac_abs_top_builddir=$ac_pwd
22301ac_abs_builddir=$ac_pwd$ac_dir_suffix
22302# for backward compatibility:
22303ac_top_builddir=$ac_top_build_prefix
22304
22305case $srcdir in
22306  .)  # We are building in place.
22307    ac_srcdir=.
22308    ac_top_srcdir=$ac_top_builddir_sub
22309    ac_abs_top_srcdir=$ac_pwd ;;
22310  [\\/]* | ?:[\\/]* )  # Absolute name.
22311    ac_srcdir=$srcdir$ac_dir_suffix;
22312    ac_top_srcdir=$srcdir
22313    ac_abs_top_srcdir=$srcdir ;;
22314  *) # Relative name.
22315    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22316    ac_top_srcdir=$ac_top_build_prefix$srcdir
22317    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22318esac
22319ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22320
22321
22322  case $ac_mode in
22323  :F)
22324  #
22325  # CONFIG_FILE
22326  #
22327
22328  case $INSTALL in
22329  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22330  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22331  esac
22332  ac_MKDIR_P=$MKDIR_P
22333  case $MKDIR_P in
22334  [\\/$]* | ?:[\\/]* ) ;;
22335  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22336  esac
22337_ACEOF
22338
22339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22340# If the template does not know about datarootdir, expand it.
22341# FIXME: This hack should be removed a few years after 2.60.
22342ac_datarootdir_hack=; ac_datarootdir_seen=
22343ac_sed_dataroot='
22344/datarootdir/ {
22345  p
22346  q
22347}
22348/@datadir@/p
22349/@docdir@/p
22350/@infodir@/p
22351/@localedir@/p
22352/@mandir@/p'
22353case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22354*datarootdir*) ac_datarootdir_seen=yes;;
22355*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22357printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22358_ACEOF
22359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22360  ac_datarootdir_hack='
22361  s&@datadir@&$datadir&g
22362  s&@docdir@&$docdir&g
22363  s&@infodir@&$infodir&g
22364  s&@localedir@&$localedir&g
22365  s&@mandir@&$mandir&g
22366  s&\\\${datarootdir}&$datarootdir&g' ;;
22367esac
22368_ACEOF
22369
22370# Neutralize VPATH when `$srcdir' = `.'.
22371# Shell code in configure.ac might set extrasub.
22372# FIXME: do we really want to maintain this feature?
22373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22374ac_sed_extra="$ac_vpsub
22375$extrasub
22376_ACEOF
22377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22378:t
22379/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22380s|@configure_input@|$ac_sed_conf_input|;t t
22381s&@top_builddir@&$ac_top_builddir_sub&;t t
22382s&@top_build_prefix@&$ac_top_build_prefix&;t t
22383s&@srcdir@&$ac_srcdir&;t t
22384s&@abs_srcdir@&$ac_abs_srcdir&;t t
22385s&@top_srcdir@&$ac_top_srcdir&;t t
22386s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22387s&@builddir@&$ac_builddir&;t t
22388s&@abs_builddir@&$ac_abs_builddir&;t t
22389s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22390s&@INSTALL@&$ac_INSTALL&;t t
22391s&@MKDIR_P@&$ac_MKDIR_P&;t t
22392$ac_datarootdir_hack
22393"
22394eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22395  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22396
22397test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22398  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22399  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22400      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22402which seems to be undefined.  Please make sure it is defined" >&5
22403printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22404which seems to be undefined.  Please make sure it is defined" >&2;}
22405
22406  rm -f "$ac_tmp/stdin"
22407  case $ac_file in
22408  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22409  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22410  esac \
22411  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22412 ;;
22413  :H)
22414  #
22415  # CONFIG_HEADER
22416  #
22417  if test x"$ac_file" != x-; then
22418    {
22419      printf "%s\n" "/* $configure_input  */" >&1 \
22420      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22421    } >"$ac_tmp/config.h" \
22422      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22423    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22424      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22425printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22426    else
22427      rm -f "$ac_file"
22428      mv "$ac_tmp/config.h" "$ac_file" \
22429	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22430    fi
22431  else
22432    printf "%s\n" "/* $configure_input  */" >&1 \
22433      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22434      || as_fn_error $? "could not create -" "$LINENO" 5
22435  fi
22436# Compute "$ac_file"'s index in $config_headers.
22437_am_arg="$ac_file"
22438_am_stamp_count=1
22439for _am_header in $config_headers :; do
22440  case $_am_header in
22441    $_am_arg | $_am_arg:* )
22442      break ;;
22443    * )
22444      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22445  esac
22446done
22447echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22448$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22449	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22450	 X"$_am_arg" : 'X\(//\)$' \| \
22451	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22452printf "%s\n" X"$_am_arg" |
22453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22454	    s//\1/
22455	    q
22456	  }
22457	  /^X\(\/\/\)[^/].*/{
22458	    s//\1/
22459	    q
22460	  }
22461	  /^X\(\/\/\)$/{
22462	    s//\1/
22463	    q
22464	  }
22465	  /^X\(\/\).*/{
22466	    s//\1/
22467	    q
22468	  }
22469	  s/.*/./; q'`/stamp-h$_am_stamp_count
22470 ;;
22471
22472  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22473printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22474 ;;
22475  esac
22476
22477
22478  case $ac_file$ac_mode in
22479    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22480  # Older Autoconf quotes --file arguments for eval, but not when files
22481  # are listed without --file.  Let's play safe and only enable the eval
22482  # if we detect the quoting.
22483  # TODO: see whether this extra hack can be removed once we start
22484  # requiring Autoconf 2.70 or later.
22485  case $CONFIG_FILES in #(
22486  *\'*) :
22487    eval set x "$CONFIG_FILES" ;; #(
22488  *) :
22489    set x $CONFIG_FILES ;; #(
22490  *) :
22491     ;;
22492esac
22493  shift
22494  # Used to flag and report bootstrapping failures.
22495  am_rc=0
22496  for am_mf
22497  do
22498    # Strip MF so we end up with the name of the file.
22499    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22500    # Check whether this is an Automake generated Makefile which includes
22501    # dependency-tracking related rules and includes.
22502    # Grep'ing the whole file directly is not great: AIX grep has a line
22503    # limit of 2048, but all sed's we know have understand at least 4000.
22504    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22505      || continue
22506    am_dirpart=`$as_dirname -- "$am_mf" ||
22507$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22508	 X"$am_mf" : 'X\(//\)[^/]' \| \
22509	 X"$am_mf" : 'X\(//\)$' \| \
22510	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22511printf "%s\n" X"$am_mf" |
22512    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22513	    s//\1/
22514	    q
22515	  }
22516	  /^X\(\/\/\)[^/].*/{
22517	    s//\1/
22518	    q
22519	  }
22520	  /^X\(\/\/\)$/{
22521	    s//\1/
22522	    q
22523	  }
22524	  /^X\(\/\).*/{
22525	    s//\1/
22526	    q
22527	  }
22528	  s/.*/./; q'`
22529    am_filepart=`$as_basename -- "$am_mf" ||
22530$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22531	 X"$am_mf" : 'X\(//\)$' \| \
22532	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22533printf "%s\n" X/"$am_mf" |
22534    sed '/^.*\/\([^/][^/]*\)\/*$/{
22535	    s//\1/
22536	    q
22537	  }
22538	  /^X\/\(\/\/\)$/{
22539	    s//\1/
22540	    q
22541	  }
22542	  /^X\/\(\/\).*/{
22543	    s//\1/
22544	    q
22545	  }
22546	  s/.*/./; q'`
22547    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22548      && sed -e '/# am--include-marker/d' "$am_filepart" \
22549        | $MAKE -f - am--depfiles" >&5
22550   (cd "$am_dirpart" \
22551      && sed -e '/# am--include-marker/d' "$am_filepart" \
22552        | $MAKE -f - am--depfiles) >&5 2>&5
22553   ac_status=$?
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); } || am_rc=$?
22556  done
22557  if test $am_rc -ne 0; then
22558    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22559printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22560as_fn_error $? "Something went wrong bootstrapping makefile fragments
22561    for automatic dependency tracking.  If GNU make was not used, consider
22562    re-running the configure script with MAKE=\"gmake\" (or whatever is
22563    necessary).  You can also try re-running configure with the
22564    '--disable-dependency-tracking' option to at least be able to build
22565    the package (albeit without support for automatic dependency tracking).
22566See \`config.log' for more details" "$LINENO" 5; }
22567  fi
22568  { am_dirpart=; unset am_dirpart;}
22569  { am_filepart=; unset am_filepart;}
22570  { am_mf=; unset am_mf;}
22571  { am_rc=; unset am_rc;}
22572  rm -f conftest-deps.mk
22573}
22574 ;;
22575    "libtool":C)
22576
22577    # See if we are running on zsh, and set the options that allow our
22578    # commands through without removal of \ escapes.
22579    if test -n "${ZSH_VERSION+set}"; then
22580      setopt NO_GLOB_SUBST
22581    fi
22582
22583    cfgfile=${ofile}T
22584    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22585    $RM "$cfgfile"
22586
22587    cat <<_LT_EOF >> "$cfgfile"
22588#! $SHELL
22589# Generated automatically by $as_me ($PACKAGE) $VERSION
22590# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22591
22592# Provide generalized library-building support services.
22593# Written by Gordon Matzigkeit, 1996
22594
22595# Copyright (C) 2014 Free Software Foundation, Inc.
22596# This is free software; see the source for copying conditions.  There is NO
22597# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22598
22599# GNU Libtool is free software; you can redistribute it and/or modify
22600# it under the terms of the GNU General Public License as published by
22601# the Free Software Foundation; either version 2 of of the License, or
22602# (at your option) any later version.
22603#
22604# As a special exception to the GNU General Public License, if you
22605# distribute this file as part of a program or library that is built
22606# using GNU Libtool, you may include this file under the  same
22607# distribution terms that you use for the rest of that program.
22608#
22609# GNU Libtool is distributed in the hope that it will be useful, but
22610# WITHOUT ANY WARRANTY; without even the implied warranty of
22611# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22612# GNU General Public License for more details.
22613#
22614# You should have received a copy of the GNU General Public License
22615# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22616
22617
22618# The names of the tagged configurations supported by this script.
22619available_tags='CXX '
22620
22621# Configured defaults for sys_lib_dlsearch_path munging.
22622: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22623
22624# ### BEGIN LIBTOOL CONFIG
22625
22626# Whether or not to build shared libraries.
22627build_libtool_libs=$enable_shared
22628
22629# Which release of libtool.m4 was used?
22630macro_version=$macro_version
22631macro_revision=$macro_revision
22632
22633# Whether or not to build static libraries.
22634build_old_libs=$enable_static
22635
22636# What type of objects to build.
22637pic_mode=$pic_mode
22638
22639# Whether or not to optimize for fast installation.
22640fast_install=$enable_fast_install
22641
22642# Shared archive member basename,for filename based shared library versioning on AIX.
22643shared_archive_member_spec=$shared_archive_member_spec
22644
22645# Shell to use when invoking shell scripts.
22646SHELL=$lt_SHELL
22647
22648# An echo program that protects backslashes.
22649ECHO=$lt_ECHO
22650
22651# The PATH separator for the build system.
22652PATH_SEPARATOR=$lt_PATH_SEPARATOR
22653
22654# The host system.
22655host_alias=$host_alias
22656host=$host
22657host_os=$host_os
22658
22659# The build system.
22660build_alias=$build_alias
22661build=$build
22662build_os=$build_os
22663
22664# A sed program that does not truncate output.
22665SED=$lt_SED
22666
22667# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22668Xsed="\$SED -e 1s/^X//"
22669
22670# A grep program that handles long lines.
22671GREP=$lt_GREP
22672
22673# An ERE matcher.
22674EGREP=$lt_EGREP
22675
22676# A literal string matcher.
22677FGREP=$lt_FGREP
22678
22679# A BSD- or MS-compatible name lister.
22680NM=$lt_NM
22681
22682# Whether we need soft or hard links.
22683LN_S=$lt_LN_S
22684
22685# What is the maximum length of a command?
22686max_cmd_len=$max_cmd_len
22687
22688# Object file suffix (normally "o").
22689objext=$ac_objext
22690
22691# Executable file suffix (normally "").
22692exeext=$exeext
22693
22694# whether the shell understands "unset".
22695lt_unset=$lt_unset
22696
22697# turn spaces into newlines.
22698SP2NL=$lt_lt_SP2NL
22699
22700# turn newlines into spaces.
22701NL2SP=$lt_lt_NL2SP
22702
22703# convert \$build file names to \$host format.
22704to_host_file_cmd=$lt_cv_to_host_file_cmd
22705
22706# convert \$build files to toolchain format.
22707to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22708
22709# An object symbol dumper.
22710OBJDUMP=$lt_OBJDUMP
22711
22712# Method to check whether dependent libraries are shared objects.
22713deplibs_check_method=$lt_deplibs_check_method
22714
22715# Command to use when deplibs_check_method = "file_magic".
22716file_magic_cmd=$lt_file_magic_cmd
22717
22718# How to find potential files when deplibs_check_method = "file_magic".
22719file_magic_glob=$lt_file_magic_glob
22720
22721# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22722want_nocaseglob=$lt_want_nocaseglob
22723
22724# DLL creation program.
22725DLLTOOL=$lt_DLLTOOL
22726
22727# Command to associate shared and link libraries.
22728sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22729
22730# The archiver.
22731AR=$lt_AR
22732
22733# Flags to create an archive.
22734AR_FLAGS=$lt_AR_FLAGS
22735
22736# How to feed a file listing to the archiver.
22737archiver_list_spec=$lt_archiver_list_spec
22738
22739# A symbol stripping program.
22740STRIP=$lt_STRIP
22741
22742# Commands used to install an old-style archive.
22743RANLIB=$lt_RANLIB
22744old_postinstall_cmds=$lt_old_postinstall_cmds
22745old_postuninstall_cmds=$lt_old_postuninstall_cmds
22746
22747# Whether to use a lock for old archive extraction.
22748lock_old_archive_extraction=$lock_old_archive_extraction
22749
22750# A C compiler.
22751LTCC=$lt_CC
22752
22753# LTCC compiler flags.
22754LTCFLAGS=$lt_CFLAGS
22755
22756# Take the output of nm and produce a listing of raw symbols and C names.
22757global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22758
22759# Transform the output of nm in a proper C declaration.
22760global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22761
22762# Transform the output of nm into a list of symbols to manually relocate.
22763global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22764
22765# Transform the output of nm in a C name address pair.
22766global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22767
22768# Transform the output of nm in a C name address pair when lib prefix is needed.
22769global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22770
22771# The name lister interface.
22772nm_interface=$lt_lt_cv_nm_interface
22773
22774# Specify filename containing input files for \$NM.
22775nm_file_list_spec=$lt_nm_file_list_spec
22776
22777# The root where to search for dependent libraries,and where our libraries should be installed.
22778lt_sysroot=$lt_sysroot
22779
22780# Command to truncate a binary pipe.
22781lt_truncate_bin=$lt_lt_cv_truncate_bin
22782
22783# The name of the directory that contains temporary libtool files.
22784objdir=$objdir
22785
22786# Used to examine libraries when file_magic_cmd begins with "file".
22787MAGIC_CMD=$MAGIC_CMD
22788
22789# Must we lock files when doing compilation?
22790need_locks=$lt_need_locks
22791
22792# Manifest tool.
22793MANIFEST_TOOL=$lt_MANIFEST_TOOL
22794
22795# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22796DSYMUTIL=$lt_DSYMUTIL
22797
22798# Tool to change global to local symbols on Mac OS X.
22799NMEDIT=$lt_NMEDIT
22800
22801# Tool to manipulate fat objects and archives on Mac OS X.
22802LIPO=$lt_LIPO
22803
22804# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22805OTOOL=$lt_OTOOL
22806
22807# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22808OTOOL64=$lt_OTOOL64
22809
22810# Old archive suffix (normally "a").
22811libext=$libext
22812
22813# Shared library suffix (normally ".so").
22814shrext_cmds=$lt_shrext_cmds
22815
22816# The commands to extract the exported symbol list from a shared archive.
22817extract_expsyms_cmds=$lt_extract_expsyms_cmds
22818
22819# Variables whose values should be saved in libtool wrapper scripts and
22820# restored at link time.
22821variables_saved_for_relink=$lt_variables_saved_for_relink
22822
22823# Do we need the "lib" prefix for modules?
22824need_lib_prefix=$need_lib_prefix
22825
22826# Do we need a version for libraries?
22827need_version=$need_version
22828
22829# Library versioning type.
22830version_type=$version_type
22831
22832# Shared library runtime path variable.
22833runpath_var=$runpath_var
22834
22835# Shared library path variable.
22836shlibpath_var=$shlibpath_var
22837
22838# Is shlibpath searched before the hard-coded library search path?
22839shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22840
22841# Format of library name prefix.
22842libname_spec=$lt_libname_spec
22843
22844# List of archive names.  First name is the real one, the rest are links.
22845# The last name is the one that the linker finds with -lNAME
22846library_names_spec=$lt_library_names_spec
22847
22848# The coded name of the library, if different from the real name.
22849soname_spec=$lt_soname_spec
22850
22851# Permission mode override for installation of shared libraries.
22852install_override_mode=$lt_install_override_mode
22853
22854# Command to use after installation of a shared archive.
22855postinstall_cmds=$lt_postinstall_cmds
22856
22857# Command to use after uninstallation of a shared archive.
22858postuninstall_cmds=$lt_postuninstall_cmds
22859
22860# Commands used to finish a libtool library installation in a directory.
22861finish_cmds=$lt_finish_cmds
22862
22863# As "finish_cmds", except a single script fragment to be evaled but
22864# not shown.
22865finish_eval=$lt_finish_eval
22866
22867# Whether we should hardcode library paths into libraries.
22868hardcode_into_libs=$hardcode_into_libs
22869
22870# Compile-time system search path for libraries.
22871sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22872
22873# Detected run-time system search path for libraries.
22874sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22875
22876# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22877configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22878
22879# Whether dlopen is supported.
22880dlopen_support=$enable_dlopen
22881
22882# Whether dlopen of programs is supported.
22883dlopen_self=$enable_dlopen_self
22884
22885# Whether dlopen of statically linked programs is supported.
22886dlopen_self_static=$enable_dlopen_self_static
22887
22888# Commands to strip libraries.
22889old_striplib=$lt_old_striplib
22890striplib=$lt_striplib
22891
22892
22893# The linker used to build libraries.
22894LD=$lt_LD
22895
22896# How to create reloadable object files.
22897reload_flag=$lt_reload_flag
22898reload_cmds=$lt_reload_cmds
22899
22900# Commands used to build an old-style archive.
22901old_archive_cmds=$lt_old_archive_cmds
22902
22903# A language specific compiler.
22904CC=$lt_compiler
22905
22906# Is the compiler the GNU compiler?
22907with_gcc=$GCC
22908
22909# Compiler flag to turn off builtin functions.
22910no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22911
22912# Additional compiler flags for building library objects.
22913pic_flag=$lt_lt_prog_compiler_pic
22914
22915# How to pass a linker flag through the compiler.
22916wl=$lt_lt_prog_compiler_wl
22917
22918# Compiler flag to prevent dynamic linking.
22919link_static_flag=$lt_lt_prog_compiler_static
22920
22921# Does compiler simultaneously support -c and -o options?
22922compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22923
22924# Whether or not to add -lc for building shared libraries.
22925build_libtool_need_lc=$archive_cmds_need_lc
22926
22927# Whether or not to disallow shared libs when runtime libs are static.
22928allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22929
22930# Compiler flag to allow reflexive dlopens.
22931export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22932
22933# Compiler flag to generate shared objects directly from archives.
22934whole_archive_flag_spec=$lt_whole_archive_flag_spec
22935
22936# Whether the compiler copes with passing no objects directly.
22937compiler_needs_object=$lt_compiler_needs_object
22938
22939# Create an old-style archive from a shared archive.
22940old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22941
22942# Create a temporary old-style archive to link instead of a shared archive.
22943old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22944
22945# Commands used to build a shared archive.
22946archive_cmds=$lt_archive_cmds
22947archive_expsym_cmds=$lt_archive_expsym_cmds
22948
22949# Commands used to build a loadable module if different from building
22950# a shared archive.
22951module_cmds=$lt_module_cmds
22952module_expsym_cmds=$lt_module_expsym_cmds
22953
22954# Whether we are building with GNU ld or not.
22955with_gnu_ld=$lt_with_gnu_ld
22956
22957# Flag that allows shared libraries with undefined symbols to be built.
22958allow_undefined_flag=$lt_allow_undefined_flag
22959
22960# Flag that enforces no undefined symbols.
22961no_undefined_flag=$lt_no_undefined_flag
22962
22963# Flag to hardcode \$libdir into a binary during linking.
22964# This must work even if \$libdir does not exist
22965hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22966
22967# Whether we need a single "-rpath" flag with a separated argument.
22968hardcode_libdir_separator=$lt_hardcode_libdir_separator
22969
22970# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22971# DIR into the resulting binary.
22972hardcode_direct=$hardcode_direct
22973
22974# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22975# DIR into the resulting binary and the resulting library dependency is
22976# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22977# library is relocated.
22978hardcode_direct_absolute=$hardcode_direct_absolute
22979
22980# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22981# into the resulting binary.
22982hardcode_minus_L=$hardcode_minus_L
22983
22984# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22985# into the resulting binary.
22986hardcode_shlibpath_var=$hardcode_shlibpath_var
22987
22988# Set to "yes" if building a shared library automatically hardcodes DIR
22989# into the library and all subsequent libraries and executables linked
22990# against it.
22991hardcode_automatic=$hardcode_automatic
22992
22993# Set to yes if linker adds runtime paths of dependent libraries
22994# to runtime path list.
22995inherit_rpath=$inherit_rpath
22996
22997# Whether libtool must link a program against all its dependency libraries.
22998link_all_deplibs=$link_all_deplibs
22999
23000# Set to "yes" if exported symbols are required.
23001always_export_symbols=$always_export_symbols
23002
23003# The commands to list exported symbols.
23004export_symbols_cmds=$lt_export_symbols_cmds
23005
23006# Symbols that should not be listed in the preloaded symbols.
23007exclude_expsyms=$lt_exclude_expsyms
23008
23009# Symbols that must always be exported.
23010include_expsyms=$lt_include_expsyms
23011
23012# Commands necessary for linking programs (against libraries) with templates.
23013prelink_cmds=$lt_prelink_cmds
23014
23015# Commands necessary for finishing linking programs.
23016postlink_cmds=$lt_postlink_cmds
23017
23018# Specify filename containing input files.
23019file_list_spec=$lt_file_list_spec
23020
23021# How to hardcode a shared library path into an executable.
23022hardcode_action=$hardcode_action
23023
23024# The directories searched by this compiler when creating a shared library.
23025compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23026
23027# Dependencies to place before and after the objects being linked to
23028# create a shared library.
23029predep_objects=$lt_predep_objects
23030postdep_objects=$lt_postdep_objects
23031predeps=$lt_predeps
23032postdeps=$lt_postdeps
23033
23034# The library search path used internally by the compiler when linking
23035# a shared library.
23036compiler_lib_search_path=$lt_compiler_lib_search_path
23037
23038# ### END LIBTOOL CONFIG
23039
23040_LT_EOF
23041
23042    cat <<'_LT_EOF' >> "$cfgfile"
23043
23044# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23045
23046# func_munge_path_list VARIABLE PATH
23047# -----------------------------------
23048# VARIABLE is name of variable containing _space_ separated list of
23049# directories to be munged by the contents of PATH, which is string
23050# having a format:
23051# "DIR[:DIR]:"
23052#       string "DIR[ DIR]" will be prepended to VARIABLE
23053# ":DIR[:DIR]"
23054#       string "DIR[ DIR]" will be appended to VARIABLE
23055# "DIRP[:DIRP]::[DIRA:]DIRA"
23056#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23057#       "DIRA[ DIRA]" will be appended to VARIABLE
23058# "DIR[:DIR]"
23059#       VARIABLE will be replaced by "DIR[ DIR]"
23060func_munge_path_list ()
23061{
23062    case x$2 in
23063    x)
23064        ;;
23065    *:)
23066        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23067        ;;
23068    x:*)
23069        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23070        ;;
23071    *::*)
23072        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23073        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23074        ;;
23075    *)
23076        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23077        ;;
23078    esac
23079}
23080
23081
23082# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23083func_cc_basename ()
23084{
23085    for cc_temp in $*""; do
23086      case $cc_temp in
23087        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23088        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23089        \-*) ;;
23090        *) break;;
23091      esac
23092    done
23093    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23094}
23095
23096
23097# ### END FUNCTIONS SHARED WITH CONFIGURE
23098
23099_LT_EOF
23100
23101  case $host_os in
23102  aix3*)
23103    cat <<\_LT_EOF >> "$cfgfile"
23104# AIX sometimes has problems with the GCC collect2 program.  For some
23105# reason, if we set the COLLECT_NAMES environment variable, the problems
23106# vanish in a puff of smoke.
23107if test set != "${COLLECT_NAMES+set}"; then
23108  COLLECT_NAMES=
23109  export COLLECT_NAMES
23110fi
23111_LT_EOF
23112    ;;
23113  esac
23114
23115
23116
23117ltmain=$ac_aux_dir/ltmain.sh
23118
23119
23120  # We use sed instead of cat because bash on DJGPP gets confused if
23121  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23122  # text mode, it properly converts lines to CR/LF.  This bash problem
23123  # is reportedly fixed, but why not run on old versions too?
23124  sed '$q' "$ltmain" >> "$cfgfile" \
23125     || (rm -f "$cfgfile"; exit 1)
23126
23127   mv -f "$cfgfile" "$ofile" ||
23128    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23129  chmod +x "$ofile"
23130
23131
23132    cat <<_LT_EOF >> "$ofile"
23133
23134# ### BEGIN LIBTOOL TAG CONFIG: CXX
23135
23136# The linker used to build libraries.
23137LD=$lt_LD_CXX
23138
23139# How to create reloadable object files.
23140reload_flag=$lt_reload_flag_CXX
23141reload_cmds=$lt_reload_cmds_CXX
23142
23143# Commands used to build an old-style archive.
23144old_archive_cmds=$lt_old_archive_cmds_CXX
23145
23146# A language specific compiler.
23147CC=$lt_compiler_CXX
23148
23149# Is the compiler the GNU compiler?
23150with_gcc=$GCC_CXX
23151
23152# Compiler flag to turn off builtin functions.
23153no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23154
23155# Additional compiler flags for building library objects.
23156pic_flag=$lt_lt_prog_compiler_pic_CXX
23157
23158# How to pass a linker flag through the compiler.
23159wl=$lt_lt_prog_compiler_wl_CXX
23160
23161# Compiler flag to prevent dynamic linking.
23162link_static_flag=$lt_lt_prog_compiler_static_CXX
23163
23164# Does compiler simultaneously support -c and -o options?
23165compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23166
23167# Whether or not to add -lc for building shared libraries.
23168build_libtool_need_lc=$archive_cmds_need_lc_CXX
23169
23170# Whether or not to disallow shared libs when runtime libs are static.
23171allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23172
23173# Compiler flag to allow reflexive dlopens.
23174export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23175
23176# Compiler flag to generate shared objects directly from archives.
23177whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23178
23179# Whether the compiler copes with passing no objects directly.
23180compiler_needs_object=$lt_compiler_needs_object_CXX
23181
23182# Create an old-style archive from a shared archive.
23183old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23184
23185# Create a temporary old-style archive to link instead of a shared archive.
23186old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23187
23188# Commands used to build a shared archive.
23189archive_cmds=$lt_archive_cmds_CXX
23190archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23191
23192# Commands used to build a loadable module if different from building
23193# a shared archive.
23194module_cmds=$lt_module_cmds_CXX
23195module_expsym_cmds=$lt_module_expsym_cmds_CXX
23196
23197# Whether we are building with GNU ld or not.
23198with_gnu_ld=$lt_with_gnu_ld_CXX
23199
23200# Flag that allows shared libraries with undefined symbols to be built.
23201allow_undefined_flag=$lt_allow_undefined_flag_CXX
23202
23203# Flag that enforces no undefined symbols.
23204no_undefined_flag=$lt_no_undefined_flag_CXX
23205
23206# Flag to hardcode \$libdir into a binary during linking.
23207# This must work even if \$libdir does not exist
23208hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23209
23210# Whether we need a single "-rpath" flag with a separated argument.
23211hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23212
23213# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23214# DIR into the resulting binary.
23215hardcode_direct=$hardcode_direct_CXX
23216
23217# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23218# DIR into the resulting binary and the resulting library dependency is
23219# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23220# library is relocated.
23221hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23222
23223# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23224# into the resulting binary.
23225hardcode_minus_L=$hardcode_minus_L_CXX
23226
23227# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23228# into the resulting binary.
23229hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23230
23231# Set to "yes" if building a shared library automatically hardcodes DIR
23232# into the library and all subsequent libraries and executables linked
23233# against it.
23234hardcode_automatic=$hardcode_automatic_CXX
23235
23236# Set to yes if linker adds runtime paths of dependent libraries
23237# to runtime path list.
23238inherit_rpath=$inherit_rpath_CXX
23239
23240# Whether libtool must link a program against all its dependency libraries.
23241link_all_deplibs=$link_all_deplibs_CXX
23242
23243# Set to "yes" if exported symbols are required.
23244always_export_symbols=$always_export_symbols_CXX
23245
23246# The commands to list exported symbols.
23247export_symbols_cmds=$lt_export_symbols_cmds_CXX
23248
23249# Symbols that should not be listed in the preloaded symbols.
23250exclude_expsyms=$lt_exclude_expsyms_CXX
23251
23252# Symbols that must always be exported.
23253include_expsyms=$lt_include_expsyms_CXX
23254
23255# Commands necessary for linking programs (against libraries) with templates.
23256prelink_cmds=$lt_prelink_cmds_CXX
23257
23258# Commands necessary for finishing linking programs.
23259postlink_cmds=$lt_postlink_cmds_CXX
23260
23261# Specify filename containing input files.
23262file_list_spec=$lt_file_list_spec_CXX
23263
23264# How to hardcode a shared library path into an executable.
23265hardcode_action=$hardcode_action_CXX
23266
23267# The directories searched by this compiler when creating a shared library.
23268compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23269
23270# Dependencies to place before and after the objects being linked to
23271# create a shared library.
23272predep_objects=$lt_predep_objects_CXX
23273postdep_objects=$lt_postdep_objects_CXX
23274predeps=$lt_predeps_CXX
23275postdeps=$lt_postdeps_CXX
23276
23277# The library search path used internally by the compiler when linking
23278# a shared library.
23279compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23280
23281# ### END LIBTOOL TAG CONFIG: CXX
23282_LT_EOF
23283
23284 ;;
23285
23286  esac
23287done # for ac_tag
23288
23289
23290as_fn_exit 0
23291_ACEOF
23292ac_clean_files=$ac_clean_files_save
23293
23294test $ac_write_fail = 0 ||
23295  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23296
23297
23298# configure is writing to config.log, and then calls config.status.
23299# config.status does its own redirection, appending to config.log.
23300# Unfortunately, on DOS this fails, as config.log is still kept open
23301# by configure, so config.status won't be able to write to it; its
23302# output is simply discarded.  So we exec the FD to /dev/null,
23303# effectively closing config.log, so it can be properly (re)opened and
23304# appended to by config.status.  When coming back to configure, we
23305# need to make the FD available again.
23306if test "$no_create" != yes; then
23307  ac_cs_success=:
23308  ac_config_status_args=
23309  test "$silent" = yes &&
23310    ac_config_status_args="$ac_config_status_args --quiet"
23311  exec 5>/dev/null
23312  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23313  exec 5>>config.log
23314  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23315  # would make configure fail if this is the last instruction.
23316  $ac_cs_success || as_fn_exit 1
23317fi
23318if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23320printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23321fi
23322
23323
23324