1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for Cilk Runtime Library 2.0.
4#
5# Report bugs to <cilk@intel.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1
175
176  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    PATH=/empty FPATH=/empty; export PATH FPATH
181    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183  if (eval "$as_required") 2>/dev/null; then :
184  as_have_required=yes
185else
186  as_have_required=no
187fi
188  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194do
195  IFS=$as_save_IFS
196  test -z "$as_dir" && as_dir=.
197  as_found=:
198  case $as_dir in #(
199	 /*)
200	   for as_base in sh bash ksh sh5; do
201	     # Try only shells that exist, to save several forks.
202	     as_shell=$as_dir/$as_base
203	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  CONFIG_SHELL=$as_shell as_have_required=yes
206		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  break 2
208fi
209fi
210	   done;;
211       esac
212  as_found=false
213done
214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216  CONFIG_SHELL=$SHELL as_have_required=yes
217fi; }
218IFS=$as_save_IFS
219
220
221      if test "x$CONFIG_SHELL" != x; then :
222  # We cannot yet assume a decent shell, so we have to provide a
223	# neutralization value for shells without unset; and this also
224	# works around shells that cannot unset nonexistent variables.
225	BASH_ENV=/dev/null
226	ENV=/dev/null
227	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228	export CONFIG_SHELL
229	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi
231
232    if test x$as_have_required = xno; then :
233  $as_echo "$0: This script requires a shell more modern than all"
234  $as_echo "$0: the shells that I found on your system."
235  if test x${ZSH_VERSION+set} = xset ; then
236    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238  else
239    $as_echo "$0: Please tell bug-autoconf@gnu.org and cilk@intel.com
240$0: about your system, including any error possibly output
241$0: before this message. Then install a modern shell, or
242$0: manually run the script under such a shell if you do
243$0: have one."
244  fi
245  exit 1
246fi
247fi
248fi
249SHELL=${CONFIG_SHELL-/bin/sh}
250export SHELL
251# Unset more variables known to interfere with behavior of common tools.
252CLICOLOR_FORCE= GREP_OPTIONS=
253unset CLICOLOR_FORCE GREP_OPTIONS
254
255## --------------------- ##
256## M4sh Shell Functions. ##
257## --------------------- ##
258# as_fn_unset VAR
259# ---------------
260# Portably unset VAR.
261as_fn_unset ()
262{
263  { eval $1=; unset $1;}
264}
265as_unset=as_fn_unset
266
267# as_fn_set_status STATUS
268# -----------------------
269# Set $? to STATUS, without forking.
270as_fn_set_status ()
271{
272  return $1
273} # as_fn_set_status
274
275# as_fn_exit STATUS
276# -----------------
277# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278as_fn_exit ()
279{
280  set +e
281  as_fn_set_status $1
282  exit $1
283} # as_fn_exit
284
285# as_fn_mkdir_p
286# -------------
287# Create "$as_dir" as a directory, including parents if necessary.
288as_fn_mkdir_p ()
289{
290
291  case $as_dir in #(
292  -*) as_dir=./$as_dir;;
293  esac
294  test -d "$as_dir" || eval $as_mkdir_p || {
295    as_dirs=
296    while :; do
297      case $as_dir in #(
298      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299      *) as_qdir=$as_dir;;
300      esac
301      as_dirs="'$as_qdir' $as_dirs"
302      as_dir=`$as_dirname -- "$as_dir" ||
303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304	 X"$as_dir" : 'X\(//\)[^/]' \| \
305	 X"$as_dir" : 'X\(//\)$' \| \
306	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307$as_echo X"$as_dir" |
308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309	    s//\1/
310	    q
311	  }
312	  /^X\(\/\/\)[^/].*/{
313	    s//\1/
314	    q
315	  }
316	  /^X\(\/\/\)$/{
317	    s//\1/
318	    q
319	  }
320	  /^X\(\/\).*/{
321	    s//\1/
322	    q
323	  }
324	  s/.*/./; q'`
325      test -d "$as_dir" && break
326    done
327    test -z "$as_dirs" || eval "mkdir $as_dirs"
328  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331} # as_fn_mkdir_p
332# as_fn_append VAR VALUE
333# ----------------------
334# Append the text in VALUE to the end of the definition contained in VAR. Take
335# advantage of any shell optimizations that allow amortized linear growth over
336# repeated appends, instead of the typical quadratic growth present in naive
337# implementations.
338if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339  eval 'as_fn_append ()
340  {
341    eval $1+=\$2
342  }'
343else
344  as_fn_append ()
345  {
346    eval $1=\$$1\$2
347  }
348fi # as_fn_append
349
350# as_fn_arith ARG...
351# ------------------
352# Perform arithmetic evaluation on the ARGs, and store the result in the
353# global $as_val. Take advantage of shells that can avoid forks. The arguments
354# must be portable across $(()) and expr.
355if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356  eval 'as_fn_arith ()
357  {
358    as_val=$(( $* ))
359  }'
360else
361  as_fn_arith ()
362  {
363    as_val=`expr "$@" || test $? -eq 1`
364  }
365fi # as_fn_arith
366
367
368# as_fn_error ERROR [LINENO LOG_FD]
369# ---------------------------------
370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372# script with status $?, using 1 if that was 0.
373as_fn_error ()
374{
375  as_status=$?; test $as_status -eq 0 && as_status=1
376  if test "$3"; then
377    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379  fi
380  $as_echo "$as_me: error: $1" >&2
381  as_fn_exit $as_status
382} # as_fn_error
383
384if expr a : '\(a\)' >/dev/null 2>&1 &&
385   test "X`expr 00001 : '.*\(...\)'`" = X001; then
386  as_expr=expr
387else
388  as_expr=false
389fi
390
391if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392  as_basename=basename
393else
394  as_basename=false
395fi
396
397if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398  as_dirname=dirname
399else
400  as_dirname=false
401fi
402
403as_me=`$as_basename -- "$0" ||
404$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405	 X"$0" : 'X\(//\)$' \| \
406	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407$as_echo X/"$0" |
408    sed '/^.*\/\([^/][^/]*\)\/*$/{
409	    s//\1/
410	    q
411	  }
412	  /^X\/\(\/\/\)$/{
413	    s//\1/
414	    q
415	  }
416	  /^X\/\(\/\).*/{
417	    s//\1/
418	    q
419	  }
420	  s/.*/./; q'`
421
422# Avoid depending upon Character Ranges.
423as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426as_cr_digits='0123456789'
427as_cr_alnum=$as_cr_Letters$as_cr_digits
428
429
430  as_lineno_1=$LINENO as_lineno_1a=$LINENO
431  as_lineno_2=$LINENO as_lineno_2a=$LINENO
432  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
435  sed -n '
436    p
437    /[$]LINENO/=
438  ' <$as_myself |
439    sed '
440      s/[$]LINENO.*/&-/
441      t lineno
442      b
443      :lineno
444      N
445      :loop
446      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447      t loop
448      s/-\n.*//
449    ' >$as_me.lineno &&
450  chmod +x "$as_me.lineno" ||
451    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452
453  # Don't try to exec as it changes $[0], causing all sort of problems
454  # (the dirname of $[0] is not the place where we might find the
455  # original and so on.  Autoconf is especially sensitive to this).
456  . "./$as_me.lineno"
457  # Exit status is that of the last command.
458  exit
459}
460
461ECHO_C= ECHO_N= ECHO_T=
462case `echo -n x` in #(((((
463-n*)
464  case `echo 'xy\c'` in
465  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
466  xy)  ECHO_C='\c';;
467  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
468       ECHO_T='	';;
469  esac;;
470*)
471  ECHO_N='-n';;
472esac
473
474rm -f conf$$ conf$$.exe conf$$.file
475if test -d conf$$.dir; then
476  rm -f conf$$.dir/conf$$.file
477else
478  rm -f conf$$.dir
479  mkdir conf$$.dir 2>/dev/null
480fi
481if (echo >conf$$.file) 2>/dev/null; then
482  if ln -s conf$$.file conf$$ 2>/dev/null; then
483    as_ln_s='ln -s'
484    # ... but there are two gotchas:
485    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487    # In both cases, we have to default to `cp -p'.
488    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489      as_ln_s='cp -p'
490  elif ln conf$$.file conf$$ 2>/dev/null; then
491    as_ln_s=ln
492  else
493    as_ln_s='cp -p'
494  fi
495else
496  as_ln_s='cp -p'
497fi
498rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499rmdir conf$$.dir 2>/dev/null
500
501if mkdir -p . 2>/dev/null; then
502  as_mkdir_p='mkdir -p "$as_dir"'
503else
504  test -d ./-p && rmdir ./-p
505  as_mkdir_p=false
506fi
507
508if test -x / >/dev/null 2>&1; then
509  as_test_x='test -x'
510else
511  if ls -dL / >/dev/null 2>&1; then
512    as_ls_L_option=L
513  else
514    as_ls_L_option=
515  fi
516  as_test_x='
517    eval sh -c '\''
518      if test -d "$1"; then
519	test -d "$1/.";
520      else
521	case $1 in #(
522	-*)set "./$1";;
523	esac;
524	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525	???[sx]*):;;*)false;;esac;fi
526    '\'' sh
527  '
528fi
529as_executable_p=$as_test_x
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537SHELL=${CONFIG_SHELL-/bin/sh}
538
539
540exec 7<&0 </dev/null 6>&1
541
542# Name of the host.
543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
551ac_clean_files=
552ac_config_libobj_dir=.
553LIBOBJS=
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
558
559# Identity of this package.
560PACKAGE_NAME='Cilk Runtime Library'
561PACKAGE_TARNAME='cilk-runtime-library'
562PACKAGE_VERSION='2.0'
563PACKAGE_STRING='Cilk Runtime Library 2.0'
564PACKAGE_BUGREPORT='cilk@intel.com'
565PACKAGE_URL=''
566
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#ifdef HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#ifdef HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#ifdef STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# ifdef HAVE_STDLIB_H
581#  include <stdlib.h>
582# endif
583#endif
584#ifdef HAVE_STRING_H
585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586#  include <memory.h>
587# endif
588# include <string.h>
589#endif
590#ifdef HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#ifdef HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#ifdef HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#ifdef HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_subst_vars='am__EXEEXT_FALSE
604am__EXEEXT_TRUE
605LTLIBOBJS
606LIBOBJS
607link_cilkrts
608XLDFLAGS
609XCFLAGS
610lt_cv_dlopen_libs
611toolexeclibdir
612toolexecdir
613CXXCPP
614OTOOL64
615OTOOL
616LIPO
617NMEDIT
618DSYMUTIL
619RANLIB
620AR
621OBJDUMP
622LN_S
623NM
624ac_ct_DUMPBIN
625DUMPBIN
626LD
627FGREP
628SED
629LIBTOOL
630MAC_LINKER_SCRIPT_FALSE
631MAC_LINKER_SCRIPT_TRUE
632LINUX_LINKER_SCRIPT_FALSE
633LINUX_LINKER_SCRIPT_TRUE
634config_dir
635EGREP
636GREP
637CPP
638ALLOCA
639am__fastdepCXX_FALSE
640am__fastdepCXX_TRUE
641CXXDEPMODE
642ac_ct_CXX
643CXXFLAGS
644CXX
645am__fastdepCC_FALSE
646am__fastdepCC_TRUE
647CCDEPMODE
648am__nodep
649AMDEPBACKSLASH
650AMDEP_FALSE
651AMDEP_TRUE
652am__quote
653am__include
654DEPDIR
655OBJEXT
656EXEEXT
657ac_ct_CC
658CPPFLAGS
659LDFLAGS
660CFLAGS
661CC
662multi_basedir
663MAINT
664MAINTAINER_MODE_FALSE
665MAINTAINER_MODE_TRUE
666am__untar
667am__tar
668AMTAR
669am__leading_dot
670SET_MAKE
671AWK
672mkdir_p
673MKDIR_P
674INSTALL_STRIP_PROGRAM
675STRIP
676install_sh
677MAKEINFO
678AUTOHEADER
679AUTOMAKE
680AUTOCONF
681ACLOCAL
682VERSION
683PACKAGE
684CYGPATH_W
685am__isrc
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files=''
740ac_user_opts='
741enable_option_checking
742enable_maintainer_mode
743enable_multilib
744enable_dependency_tracking
745enable_version_specific_runtime_libs
746enable_shared
747enable_static
748with_pic
749enable_fast_install
750with_gnu_ld
751enable_libtool_lock
752'
753      ac_precious_vars='build_alias
754host_alias
755target_alias
756CC
757CFLAGS
758LDFLAGS
759LIBS
760CPPFLAGS
761CXX
762CXXFLAGS
763CCC
764CPP
765CXXCPP'
766
767
768# Initialize some variables set by options.
769ac_init_help=
770ac_init_version=false
771ac_unrecognized_opts=
772ac_unrecognized_sep=
773# The variables have the same names as the options, with
774# dashes changed to underlines.
775cache_file=/dev/null
776exec_prefix=NONE
777no_create=
778no_recursion=
779prefix=NONE
780program_prefix=NONE
781program_suffix=NONE
782program_transform_name=s,x,x,
783silent=
784site=
785srcdir=
786verbose=
787x_includes=NONE
788x_libraries=NONE
789
790# Installation directory options.
791# These are left unexpanded so users can "make install exec_prefix=/foo"
792# and all the variables that are supposed to be based on exec_prefix
793# by default will actually change.
794# Use braces instead of parens because sh, perl, etc. also accept them.
795# (The list follows the same order as the GNU Coding Standards.)
796bindir='${exec_prefix}/bin'
797sbindir='${exec_prefix}/sbin'
798libexecdir='${exec_prefix}/libexec'
799datarootdir='${prefix}/share'
800datadir='${datarootdir}'
801sysconfdir='${prefix}/etc'
802sharedstatedir='${prefix}/com'
803localstatedir='${prefix}/var'
804includedir='${prefix}/include'
805oldincludedir='/usr/include'
806docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807infodir='${datarootdir}/info'
808htmldir='${docdir}'
809dvidir='${docdir}'
810pdfdir='${docdir}'
811psdir='${docdir}'
812libdir='${exec_prefix}/lib'
813localedir='${datarootdir}/locale'
814mandir='${datarootdir}/man'
815
816ac_prev=
817ac_dashdash=
818for ac_option
819do
820  # If the previous option needs an argument, assign it.
821  if test -n "$ac_prev"; then
822    eval $ac_prev=\$ac_option
823    ac_prev=
824    continue
825  fi
826
827  case $ac_option in
828  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829  *)	ac_optarg=yes ;;
830  esac
831
832  # Accept the important Cygnus configure options, so we can diagnose typos.
833
834  case $ac_dashdash$ac_option in
835  --)
836    ac_dashdash=yes ;;
837
838  -bindir | --bindir | --bindi | --bind | --bin | --bi)
839    ac_prev=bindir ;;
840  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841    bindir=$ac_optarg ;;
842
843  -build | --build | --buil | --bui | --bu)
844    ac_prev=build_alias ;;
845  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846    build_alias=$ac_optarg ;;
847
848  -cache-file | --cache-file | --cache-fil | --cache-fi \
849  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850    ac_prev=cache_file ;;
851  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853    cache_file=$ac_optarg ;;
854
855  --config-cache | -C)
856    cache_file=config.cache ;;
857
858  -datadir | --datadir | --datadi | --datad)
859    ac_prev=datadir ;;
860  -datadir=* | --datadir=* | --datadi=* | --datad=*)
861    datadir=$ac_optarg ;;
862
863  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864  | --dataroo | --dataro | --datar)
865    ac_prev=datarootdir ;;
866  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868    datarootdir=$ac_optarg ;;
869
870  -disable-* | --disable-*)
871    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872    # Reject names that are not valid shell variable names.
873    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874      as_fn_error "invalid feature name: $ac_useropt"
875    ac_useropt_orig=$ac_useropt
876    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877    case $ac_user_opts in
878      *"
879"enable_$ac_useropt"
880"*) ;;
881      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882	 ac_unrecognized_sep=', ';;
883    esac
884    eval enable_$ac_useropt=no ;;
885
886  -docdir | --docdir | --docdi | --doc | --do)
887    ac_prev=docdir ;;
888  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889    docdir=$ac_optarg ;;
890
891  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892    ac_prev=dvidir ;;
893  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894    dvidir=$ac_optarg ;;
895
896  -enable-* | --enable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error "invalid feature name: $ac_useropt"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=\$ac_optarg ;;
911
912  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914  | --exec | --exe | --ex)
915    ac_prev=exec_prefix ;;
916  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918  | --exec=* | --exe=* | --ex=*)
919    exec_prefix=$ac_optarg ;;
920
921  -gas | --gas | --ga | --g)
922    # Obsolete; use --with-gas.
923    with_gas=yes ;;
924
925  -help | --help | --hel | --he | -h)
926    ac_init_help=long ;;
927  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928    ac_init_help=recursive ;;
929  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930    ac_init_help=short ;;
931
932  -host | --host | --hos | --ho)
933    ac_prev=host_alias ;;
934  -host=* | --host=* | --hos=* | --ho=*)
935    host_alias=$ac_optarg ;;
936
937  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938    ac_prev=htmldir ;;
939  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940  | --ht=*)
941    htmldir=$ac_optarg ;;
942
943  -includedir | --includedir | --includedi | --included | --include \
944  | --includ | --inclu | --incl | --inc)
945    ac_prev=includedir ;;
946  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947  | --includ=* | --inclu=* | --incl=* | --inc=*)
948    includedir=$ac_optarg ;;
949
950  -infodir | --infodir | --infodi | --infod | --info | --inf)
951    ac_prev=infodir ;;
952  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953    infodir=$ac_optarg ;;
954
955  -libdir | --libdir | --libdi | --libd)
956    ac_prev=libdir ;;
957  -libdir=* | --libdir=* | --libdi=* | --libd=*)
958    libdir=$ac_optarg ;;
959
960  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961  | --libexe | --libex | --libe)
962    ac_prev=libexecdir ;;
963  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964  | --libexe=* | --libex=* | --libe=*)
965    libexecdir=$ac_optarg ;;
966
967  -localedir | --localedir | --localedi | --localed | --locale)
968    ac_prev=localedir ;;
969  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970    localedir=$ac_optarg ;;
971
972  -localstatedir | --localstatedir | --localstatedi | --localstated \
973  | --localstate | --localstat | --localsta | --localst | --locals)
974    ac_prev=localstatedir ;;
975  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977    localstatedir=$ac_optarg ;;
978
979  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980    ac_prev=mandir ;;
981  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982    mandir=$ac_optarg ;;
983
984  -nfp | --nfp | --nf)
985    # Obsolete; use --without-fp.
986    with_fp=no ;;
987
988  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989  | --no-cr | --no-c | -n)
990    no_create=yes ;;
991
992  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994    no_recursion=yes ;;
995
996  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998  | --oldin | --oldi | --old | --ol | --o)
999    ac_prev=oldincludedir ;;
1000  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003    oldincludedir=$ac_optarg ;;
1004
1005  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006    ac_prev=prefix ;;
1007  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008    prefix=$ac_optarg ;;
1009
1010  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011  | --program-pre | --program-pr | --program-p)
1012    ac_prev=program_prefix ;;
1013  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015    program_prefix=$ac_optarg ;;
1016
1017  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018  | --program-suf | --program-su | --program-s)
1019    ac_prev=program_suffix ;;
1020  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022    program_suffix=$ac_optarg ;;
1023
1024  -program-transform-name | --program-transform-name \
1025  | --program-transform-nam | --program-transform-na \
1026  | --program-transform-n | --program-transform- \
1027  | --program-transform | --program-transfor \
1028  | --program-transfo | --program-transf \
1029  | --program-trans | --program-tran \
1030  | --progr-tra | --program-tr | --program-t)
1031    ac_prev=program_transform_name ;;
1032  -program-transform-name=* | --program-transform-name=* \
1033  | --program-transform-nam=* | --program-transform-na=* \
1034  | --program-transform-n=* | --program-transform-=* \
1035  | --program-transform=* | --program-transfor=* \
1036  | --program-transfo=* | --program-transf=* \
1037  | --program-trans=* | --program-tran=* \
1038  | --progr-tra=* | --program-tr=* | --program-t=*)
1039    program_transform_name=$ac_optarg ;;
1040
1041  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042    ac_prev=pdfdir ;;
1043  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044    pdfdir=$ac_optarg ;;
1045
1046  -psdir | --psdir | --psdi | --psd | --ps)
1047    ac_prev=psdir ;;
1048  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049    psdir=$ac_optarg ;;
1050
1051  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052  | -silent | --silent | --silen | --sile | --sil)
1053    silent=yes ;;
1054
1055  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056    ac_prev=sbindir ;;
1057  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058  | --sbi=* | --sb=*)
1059    sbindir=$ac_optarg ;;
1060
1061  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063  | --sharedst | --shareds | --shared | --share | --shar \
1064  | --sha | --sh)
1065    ac_prev=sharedstatedir ;;
1066  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069  | --sha=* | --sh=*)
1070    sharedstatedir=$ac_optarg ;;
1071
1072  -site | --site | --sit)
1073    ac_prev=site ;;
1074  -site=* | --site=* | --sit=*)
1075    site=$ac_optarg ;;
1076
1077  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078    ac_prev=srcdir ;;
1079  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080    srcdir=$ac_optarg ;;
1081
1082  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083  | --syscon | --sysco | --sysc | --sys | --sy)
1084    ac_prev=sysconfdir ;;
1085  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087    sysconfdir=$ac_optarg ;;
1088
1089  -target | --target | --targe | --targ | --tar | --ta | --t)
1090    ac_prev=target_alias ;;
1091  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092    target_alias=$ac_optarg ;;
1093
1094  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095    verbose=yes ;;
1096
1097  -version | --version | --versio | --versi | --vers | -V)
1098    ac_init_version=: ;;
1099
1100  -with-* | --with-*)
1101    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102    # Reject names that are not valid shell variable names.
1103    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104      as_fn_error "invalid package name: $ac_useropt"
1105    ac_useropt_orig=$ac_useropt
1106    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107    case $ac_user_opts in
1108      *"
1109"with_$ac_useropt"
1110"*) ;;
1111      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112	 ac_unrecognized_sep=', ';;
1113    esac
1114    eval with_$ac_useropt=\$ac_optarg ;;
1115
1116  -without-* | --without-*)
1117    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118    # Reject names that are not valid shell variable names.
1119    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120      as_fn_error "invalid package name: $ac_useropt"
1121    ac_useropt_orig=$ac_useropt
1122    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123    case $ac_user_opts in
1124      *"
1125"with_$ac_useropt"
1126"*) ;;
1127      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128	 ac_unrecognized_sep=', ';;
1129    esac
1130    eval with_$ac_useropt=no ;;
1131
1132  --x)
1133    # Obsolete; use --with-x.
1134    with_x=yes ;;
1135
1136  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137  | --x-incl | --x-inc | --x-in | --x-i)
1138    ac_prev=x_includes ;;
1139  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141    x_includes=$ac_optarg ;;
1142
1143  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145    ac_prev=x_libraries ;;
1146  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148    x_libraries=$ac_optarg ;;
1149
1150  -*) as_fn_error "unrecognized option: \`$ac_option'
1151Try \`$0 --help' for more information."
1152    ;;
1153
1154  *=*)
1155    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156    # Reject names that are not valid shell variable names.
1157    case $ac_envvar in #(
1158      '' | [0-9]* | *[!_$as_cr_alnum]* )
1159      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1160    esac
1161    eval $ac_envvar=\$ac_optarg
1162    export $ac_envvar ;;
1163
1164  *)
1165    # FIXME: should be removed in autoconf 3.0.
1166    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170    ;;
1171
1172  esac
1173done
1174
1175if test -n "$ac_prev"; then
1176  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177  as_fn_error "missing argument to $ac_option"
1178fi
1179
1180if test -n "$ac_unrecognized_opts"; then
1181  case $enable_option_checking in
1182    no) ;;
1183    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1184    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185  esac
1186fi
1187
1188# Check all directory arguments for consistency.
1189for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190		datadir sysconfdir sharedstatedir localstatedir includedir \
1191		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192		libdir localedir mandir
1193do
1194  eval ac_val=\$$ac_var
1195  # Remove trailing slashes.
1196  case $ac_val in
1197    */ )
1198      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199      eval $ac_var=\$ac_val;;
1200  esac
1201  # Be sure to have absolute directory names.
1202  case $ac_val in
1203    [\\/$]* | ?:[\\/]* )  continue;;
1204    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205  esac
1206  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1207done
1208
1209# There might be people who depend on the old broken behavior: `$host'
1210# used to hold the argument of --host etc.
1211# FIXME: To remove some day.
1212build=$build_alias
1213host=$host_alias
1214target=$target_alias
1215
1216# FIXME: To remove some day.
1217if test "x$host_alias" != x; then
1218  if test "x$build_alias" = x; then
1219    cross_compiling=maybe
1220    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221    If a cross compiler is detected then cross compile mode will be used." >&2
1222  elif test "x$build_alias" != "x$host_alias"; then
1223    cross_compiling=yes
1224  fi
1225fi
1226
1227ac_tool_prefix=
1228test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230test "$silent" = yes && exec 6>/dev/null
1231
1232
1233ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234ac_ls_di=`ls -di .` &&
1235ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236  as_fn_error "working directory cannot be determined"
1237test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238  as_fn_error "pwd does not report name of working directory"
1239
1240
1241# Find the source files, if location was not specified.
1242if test -z "$srcdir"; then
1243  ac_srcdir_defaulted=yes
1244  # Try the directory containing this script, then the parent directory.
1245  ac_confdir=`$as_dirname -- "$as_myself" ||
1246$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247	 X"$as_myself" : 'X\(//\)[^/]' \| \
1248	 X"$as_myself" : 'X\(//\)$' \| \
1249	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250$as_echo X"$as_myself" |
1251    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252	    s//\1/
1253	    q
1254	  }
1255	  /^X\(\/\/\)[^/].*/{
1256	    s//\1/
1257	    q
1258	  }
1259	  /^X\(\/\/\)$/{
1260	    s//\1/
1261	    q
1262	  }
1263	  /^X\(\/\).*/{
1264	    s//\1/
1265	    q
1266	  }
1267	  s/.*/./; q'`
1268  srcdir=$ac_confdir
1269  if test ! -r "$srcdir/$ac_unique_file"; then
1270    srcdir=..
1271  fi
1272else
1273  ac_srcdir_defaulted=no
1274fi
1275if test ! -r "$srcdir/$ac_unique_file"; then
1276  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1278fi
1279ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280ac_abs_confdir=`(
1281	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1282	pwd)`
1283# When building in place, set srcdir=.
1284if test "$ac_abs_confdir" = "$ac_pwd"; then
1285  srcdir=.
1286fi
1287# Remove unnecessary trailing slashes from srcdir.
1288# Double slashes in file names in object file debugging info
1289# mess up M-x gdb in Emacs.
1290case $srcdir in
1291*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292esac
1293for ac_var in $ac_precious_vars; do
1294  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295  eval ac_env_${ac_var}_value=\$${ac_var}
1296  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298done
1299
1300#
1301# Report the --help message.
1302#
1303if test "$ac_init_help" = "long"; then
1304  # Omit some internal or obsolete options to make the list less imposing.
1305  # This message is too long to be a string in the A/UX 3.1 sh.
1306  cat <<_ACEOF
1307\`configure' configures Cilk Runtime Library 2.0 to adapt to many kinds of systems.
1308
1309Usage: $0 [OPTION]... [VAR=VALUE]...
1310
1311To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312VAR=VALUE.  See below for descriptions of some of the useful variables.
1313
1314Defaults for the options are specified in brackets.
1315
1316Configuration:
1317  -h, --help              display this help and exit
1318      --help=short        display options specific to this package
1319      --help=recursive    display the short help of all the included packages
1320  -V, --version           display version information and exit
1321  -q, --quiet, --silent   do not print \`checking...' messages
1322      --cache-file=FILE   cache test results in FILE [disabled]
1323  -C, --config-cache      alias for \`--cache-file=config.cache'
1324  -n, --no-create         do not create output files
1325      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1326
1327Installation directories:
1328  --prefix=PREFIX         install architecture-independent files in PREFIX
1329                          [$ac_default_prefix]
1330  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1331                          [PREFIX]
1332
1333By default, \`make install' will install all the files in
1334\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1335an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336for instance \`--prefix=\$HOME'.
1337
1338For better control, use the options below.
1339
1340Fine tuning of the installation directories:
1341  --bindir=DIR            user executables [EPREFIX/bin]
1342  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1343  --libexecdir=DIR        program executables [EPREFIX/libexec]
1344  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1345  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1346  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1347  --libdir=DIR            object code libraries [EPREFIX/lib]
1348  --includedir=DIR        C header files [PREFIX/include]
1349  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1350  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1351  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1352  --infodir=DIR           info documentation [DATAROOTDIR/info]
1353  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1354  --mandir=DIR            man documentation [DATAROOTDIR/man]
1355  --docdir=DIR            documentation root
1356                          [DATAROOTDIR/doc/cilk-runtime-library]
1357  --htmldir=DIR           html documentation [DOCDIR]
1358  --dvidir=DIR            dvi documentation [DOCDIR]
1359  --pdfdir=DIR            pdf documentation [DOCDIR]
1360  --psdir=DIR             ps documentation [DOCDIR]
1361_ACEOF
1362
1363  cat <<\_ACEOF
1364
1365Program names:
1366  --program-prefix=PREFIX            prepend PREFIX to installed program names
1367  --program-suffix=SUFFIX            append SUFFIX to installed program names
1368  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1369
1370System types:
1371  --build=BUILD     configure for building on BUILD [guessed]
1372  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1373  --target=TARGET   configure for building compilers for TARGET [HOST]
1374_ACEOF
1375fi
1376
1377if test -n "$ac_init_help"; then
1378  case $ac_init_help in
1379     short | recursive ) echo "Configuration of Cilk Runtime Library 2.0:";;
1380   esac
1381  cat <<\_ACEOF
1382
1383Optional Features:
1384  --disable-option-checking  ignore unrecognized --enable/--with options
1385  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1386  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1387  --enable-maintainer-mode  enable make rules and dependencies not useful
1388			  (and sometimes confusing) to the casual installer
1389  --enable-multilib       build many library versions (default)
1390  --disable-dependency-tracking  speeds up one-time build
1391  --enable-dependency-tracking   do not reject slow dependency extractors
1392  --enable-version-specific-runtime-libs
1393                          Specify that runtime libraries should be installed
1394                          in a compi ler-specific directory
1395  --enable-shared[=PKGS]  build shared libraries [default=yes]
1396  --enable-static[=PKGS]  build static libraries [default=yes]
1397  --enable-fast-install[=PKGS]
1398                          optimize for fast installation [default=yes]
1399  --disable-libtool-lock  avoid locking (might break parallel builds)
1400
1401Optional Packages:
1402  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1403  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1404  --with-pic              try to use only PIC/non-PIC objects [default=use
1405                          both]
1406  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1407
1408Some influential environment variables:
1409  CC          C compiler command
1410  CFLAGS      C compiler flags
1411  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1412              nonstandard directory <lib dir>
1413  LIBS        libraries to pass to the linker, e.g. -l<library>
1414  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415              you have headers in a nonstandard directory <include dir>
1416  CXX         C++ compiler command
1417  CXXFLAGS    C++ compiler flags
1418  CPP         C preprocessor
1419  CXXCPP      C++ preprocessor
1420
1421Use these variables to override the choices made by `configure' or to help
1422it to find libraries and programs with nonstandard names/locations.
1423
1424Report bugs to <cilk@intel.com>.
1425_ACEOF
1426ac_status=$?
1427fi
1428
1429if test "$ac_init_help" = "recursive"; then
1430  # If there are subdirs, report their specific --help.
1431  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432    test -d "$ac_dir" ||
1433      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434      continue
1435    ac_builddir=.
1436
1437case "$ac_dir" in
1438.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439*)
1440  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441  # A ".." for each directory in $ac_dir_suffix.
1442  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443  case $ac_top_builddir_sub in
1444  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446  esac ;;
1447esac
1448ac_abs_top_builddir=$ac_pwd
1449ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450# for backward compatibility:
1451ac_top_builddir=$ac_top_build_prefix
1452
1453case $srcdir in
1454  .)  # We are building in place.
1455    ac_srcdir=.
1456    ac_top_srcdir=$ac_top_builddir_sub
1457    ac_abs_top_srcdir=$ac_pwd ;;
1458  [\\/]* | ?:[\\/]* )  # Absolute name.
1459    ac_srcdir=$srcdir$ac_dir_suffix;
1460    ac_top_srcdir=$srcdir
1461    ac_abs_top_srcdir=$srcdir ;;
1462  *) # Relative name.
1463    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464    ac_top_srcdir=$ac_top_build_prefix$srcdir
1465    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466esac
1467ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468
1469    cd "$ac_dir" || { ac_status=$?; continue; }
1470    # Check for guested configure.
1471    if test -f "$ac_srcdir/configure.gnu"; then
1472      echo &&
1473      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474    elif test -f "$ac_srcdir/configure"; then
1475      echo &&
1476      $SHELL "$ac_srcdir/configure" --help=recursive
1477    else
1478      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479    fi || ac_status=$?
1480    cd "$ac_pwd" || { ac_status=$?; break; }
1481  done
1482fi
1483
1484test -n "$ac_init_help" && exit $ac_status
1485if $ac_init_version; then
1486  cat <<\_ACEOF
1487Cilk Runtime Library configure 2.0
1488generated by GNU Autoconf 2.64
1489
1490Copyright (C) 2009 Free Software Foundation, Inc.
1491This configure script is free software; the Free Software Foundation
1492gives unlimited permission to copy, distribute and modify it.
1493_ACEOF
1494  exit
1495fi
1496
1497## ------------------------ ##
1498## Autoconf initialization. ##
1499## ------------------------ ##
1500
1501# ac_fn_c_try_compile LINENO
1502# --------------------------
1503# Try to compile conftest.$ac_ext, and return whether this succeeded.
1504ac_fn_c_try_compile ()
1505{
1506  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507  rm -f conftest.$ac_objext
1508  if { { ac_try="$ac_compile"
1509case "(($ac_try" in
1510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511  *) ac_try_echo=$ac_try;;
1512esac
1513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514$as_echo "$ac_try_echo"; } >&5
1515  (eval "$ac_compile") 2>conftest.err
1516  ac_status=$?
1517  if test -s conftest.err; then
1518    grep -v '^ *+' conftest.err >conftest.er1
1519    cat conftest.er1 >&5
1520    mv -f conftest.er1 conftest.err
1521  fi
1522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523  test $ac_status = 0; } && {
1524	 test -z "$ac_c_werror_flag" ||
1525	 test ! -s conftest.err
1526       } && test -s conftest.$ac_objext; then :
1527  ac_retval=0
1528else
1529  $as_echo "$as_me: failed program was:" >&5
1530sed 's/^/| /' conftest.$ac_ext >&5
1531
1532	ac_retval=1
1533fi
1534  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1535  return $ac_retval
1536
1537} # ac_fn_c_try_compile
1538
1539# ac_fn_cxx_try_compile LINENO
1540# ----------------------------
1541# Try to compile conftest.$ac_ext, and return whether this succeeded.
1542ac_fn_cxx_try_compile ()
1543{
1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545  rm -f conftest.$ac_objext
1546  if { { ac_try="$ac_compile"
1547case "(($ac_try" in
1548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549  *) ac_try_echo=$ac_try;;
1550esac
1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552$as_echo "$ac_try_echo"; } >&5
1553  (eval "$ac_compile") 2>conftest.err
1554  ac_status=$?
1555  if test -s conftest.err; then
1556    grep -v '^ *+' conftest.err >conftest.er1
1557    cat conftest.er1 >&5
1558    mv -f conftest.er1 conftest.err
1559  fi
1560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561  test $ac_status = 0; } && {
1562	 test -z "$ac_cxx_werror_flag" ||
1563	 test ! -s conftest.err
1564       } && test -s conftest.$ac_objext; then :
1565  ac_retval=0
1566else
1567  $as_echo "$as_me: failed program was:" >&5
1568sed 's/^/| /' conftest.$ac_ext >&5
1569
1570	ac_retval=1
1571fi
1572  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573  return $ac_retval
1574
1575} # ac_fn_cxx_try_compile
1576
1577# ac_fn_c_try_link LINENO
1578# -----------------------
1579# Try to link conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_c_try_link ()
1581{
1582  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583  rm -f conftest.$ac_objext conftest$ac_exeext
1584  if { { ac_try="$ac_link"
1585case "(($ac_try" in
1586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587  *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591  (eval "$ac_link") 2>conftest.err
1592  ac_status=$?
1593  if test -s conftest.err; then
1594    grep -v '^ *+' conftest.err >conftest.er1
1595    cat conftest.er1 >&5
1596    mv -f conftest.er1 conftest.err
1597  fi
1598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599  test $ac_status = 0; } && {
1600	 test -z "$ac_c_werror_flag" ||
1601	 test ! -s conftest.err
1602       } && test -s conftest$ac_exeext && {
1603	 test "$cross_compiling" = yes ||
1604	 $as_test_x conftest$ac_exeext
1605       }; then :
1606  ac_retval=0
1607else
1608  $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611	ac_retval=1
1612fi
1613  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615  # interfere with the next link command; also delete a directory that is
1616  # left behind by Apple's compiler.  We do this before executing the actions.
1617  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1619  return $ac_retval
1620
1621} # ac_fn_c_try_link
1622
1623# ac_fn_c_try_cpp LINENO
1624# ----------------------
1625# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1626ac_fn_c_try_cpp ()
1627{
1628  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629  if { { ac_try="$ac_cpp conftest.$ac_ext"
1630case "(($ac_try" in
1631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632  *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1637  ac_status=$?
1638  if test -s conftest.err; then
1639    grep -v '^ *+' conftest.err >conftest.er1
1640    cat conftest.er1 >&5
1641    mv -f conftest.er1 conftest.err
1642  fi
1643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644  test $ac_status = 0; } >/dev/null && {
1645	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1646	 test ! -s conftest.err
1647       }; then :
1648  ac_retval=0
1649else
1650  $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653    ac_retval=1
1654fi
1655  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656  return $ac_retval
1657
1658} # ac_fn_c_try_cpp
1659
1660# ac_fn_c_check_func LINENO FUNC VAR
1661# ----------------------------------
1662# Tests whether FUNC exists, setting the cache variable VAR accordingly
1663ac_fn_c_check_func ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667$as_echo_n "checking for $2... " >&6; }
1668if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1669  $as_echo_n "(cached) " >&6
1670else
1671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h.  */
1673/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1674   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1675#define $2 innocuous_$2
1676
1677/* System header to define __stub macros and hopefully few prototypes,
1678    which can conflict with char $2 (); below.
1679    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1680    <limits.h> exists even on freestanding compilers.  */
1681
1682#ifdef __STDC__
1683# include <limits.h>
1684#else
1685# include <assert.h>
1686#endif
1687
1688#undef $2
1689
1690/* Override any GCC internal prototype to avoid an error.
1691   Use char because int might match the return type of a GCC
1692   builtin and then its argument prototype would still apply.  */
1693#ifdef __cplusplus
1694extern "C"
1695#endif
1696char $2 ();
1697/* The GNU C library defines this for functions which it implements
1698    to always fail with ENOSYS.  Some functions are actually named
1699    something starting with __ and the normal name is an alias.  */
1700#if defined __stub_$2 || defined __stub___$2
1701choke me
1702#endif
1703
1704int
1705main ()
1706{
1707return $2 ();
1708  ;
1709  return 0;
1710}
1711_ACEOF
1712if ac_fn_c_try_link "$LINENO"; then :
1713  eval "$3=yes"
1714else
1715  eval "$3=no"
1716fi
1717rm -f core conftest.err conftest.$ac_objext \
1718    conftest$ac_exeext conftest.$ac_ext
1719fi
1720eval ac_res=\$$3
1721	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722$as_echo "$ac_res" >&6; }
1723  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724
1725} # ac_fn_c_check_func
1726
1727# ac_fn_c_try_run LINENO
1728# ----------------------
1729# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1730# that executables *can* be run.
1731ac_fn_c_try_run ()
1732{
1733  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734  if { { ac_try="$ac_link"
1735case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741  (eval "$ac_link") 2>&5
1742  ac_status=$?
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1745  { { case "(($ac_try" in
1746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747  *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751  (eval "$ac_try") 2>&5
1752  ac_status=$?
1753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754  test $ac_status = 0; }; }; then :
1755  ac_retval=0
1756else
1757  $as_echo "$as_me: program exited with status $ac_status" >&5
1758       $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
1760
1761       ac_retval=$ac_status
1762fi
1763  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765  return $ac_retval
1766
1767} # ac_fn_c_try_run
1768
1769# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1770# -------------------------------------------------------
1771# Tests whether HEADER exists and can be compiled using the include files in
1772# INCLUDES, setting the cache variable VAR accordingly.
1773ac_fn_c_check_header_compile ()
1774{
1775  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777$as_echo_n "checking for $2... " >&6; }
1778if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779  $as_echo_n "(cached) " >&6
1780else
1781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783$4
1784#include <$2>
1785_ACEOF
1786if ac_fn_c_try_compile "$LINENO"; then :
1787  eval "$3=yes"
1788else
1789  eval "$3=no"
1790fi
1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792fi
1793eval ac_res=\$$3
1794	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797
1798} # ac_fn_c_check_header_compile
1799
1800# ac_fn_cxx_try_cpp LINENO
1801# ------------------------
1802# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_cxx_try_cpp ()
1804{
1805  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806  if { { ac_try="$ac_cpp conftest.$ac_ext"
1807case "(($ac_try" in
1808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809  *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814  ac_status=$?
1815  if test -s conftest.err; then
1816    grep -v '^ *+' conftest.err >conftest.er1
1817    cat conftest.er1 >&5
1818    mv -f conftest.er1 conftest.err
1819  fi
1820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821  test $ac_status = 0; } >/dev/null && {
1822	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1823	 test ! -s conftest.err
1824       }; then :
1825  ac_retval=0
1826else
1827  $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830    ac_retval=1
1831fi
1832  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833  return $ac_retval
1834
1835} # ac_fn_cxx_try_cpp
1836
1837# ac_fn_cxx_try_link LINENO
1838# -------------------------
1839# Try to link conftest.$ac_ext, and return whether this succeeded.
1840ac_fn_cxx_try_link ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  rm -f conftest.$ac_objext conftest$ac_exeext
1844  if { { ac_try="$ac_link"
1845case "(($ac_try" in
1846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847  *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851  (eval "$ac_link") 2>conftest.err
1852  ac_status=$?
1853  if test -s conftest.err; then
1854    grep -v '^ *+' conftest.err >conftest.er1
1855    cat conftest.er1 >&5
1856    mv -f conftest.er1 conftest.err
1857  fi
1858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859  test $ac_status = 0; } && {
1860	 test -z "$ac_cxx_werror_flag" ||
1861	 test ! -s conftest.err
1862       } && test -s conftest$ac_exeext && {
1863	 test "$cross_compiling" = yes ||
1864	 $as_test_x conftest$ac_exeext
1865       }; then :
1866  ac_retval=0
1867else
1868  $as_echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871	ac_retval=1
1872fi
1873  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875  # interfere with the next link command; also delete a directory that is
1876  # left behind by Apple's compiler.  We do this before executing the actions.
1877  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879  return $ac_retval
1880
1881} # ac_fn_cxx_try_link
1882cat >config.log <<_ACEOF
1883This file contains any messages produced by compilers while
1884running configure, to aid debugging if configure makes a mistake.
1885
1886It was created by Cilk Runtime Library $as_me 2.0, which was
1887generated by GNU Autoconf 2.64.  Invocation command line was
1888
1889  $ $0 $@
1890
1891_ACEOF
1892exec 5>>config.log
1893{
1894cat <<_ASUNAME
1895## --------- ##
1896## Platform. ##
1897## --------- ##
1898
1899hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1907
1908/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1909/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1910/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1912/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1913/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1914/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1915
1916_ASUNAME
1917
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921  IFS=$as_save_IFS
1922  test -z "$as_dir" && as_dir=.
1923    $as_echo "PATH: $as_dir"
1924  done
1925IFS=$as_save_IFS
1926
1927} >&5
1928
1929cat >&5 <<_ACEOF
1930
1931
1932## ----------- ##
1933## Core tests. ##
1934## ----------- ##
1935
1936_ACEOF
1937
1938
1939# Keep a trace of the command line.
1940# Strip out --no-create and --no-recursion so they do not pile up.
1941# Strip out --silent because we don't want to record it for future runs.
1942# Also quote any args containing shell meta-characters.
1943# Make two passes to allow for proper duplicate-argument suppression.
1944ac_configure_args=
1945ac_configure_args0=
1946ac_configure_args1=
1947ac_must_keep_next=false
1948for ac_pass in 1 2
1949do
1950  for ac_arg
1951  do
1952    case $ac_arg in
1953    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955    | -silent | --silent | --silen | --sile | --sil)
1956      continue ;;
1957    *\'*)
1958      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959    esac
1960    case $ac_pass in
1961    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962    2)
1963      as_fn_append ac_configure_args1 " '$ac_arg'"
1964      if test $ac_must_keep_next = true; then
1965	ac_must_keep_next=false # Got value, back to normal.
1966      else
1967	case $ac_arg in
1968	  *=* | --config-cache | -C | -disable-* | --disable-* \
1969	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971	  | -with-* | --with-* | -without-* | --without-* | --x)
1972	    case "$ac_configure_args0 " in
1973	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974	    esac
1975	    ;;
1976	  -* ) ac_must_keep_next=true ;;
1977	esac
1978      fi
1979      as_fn_append ac_configure_args " '$ac_arg'"
1980      ;;
1981    esac
1982  done
1983done
1984{ ac_configure_args0=; unset ac_configure_args0;}
1985{ ac_configure_args1=; unset ac_configure_args1;}
1986
1987# When interrupted or exit'd, cleanup temporary files, and complete
1988# config.log.  We remove comments because anyway the quotes in there
1989# would cause problems or look ugly.
1990# WARNING: Use '\'' to represent an apostrophe within the trap.
1991# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992trap 'exit_status=$?
1993  # Save into config.log some information that might help in debugging.
1994  {
1995    echo
1996
1997    cat <<\_ASBOX
1998## ---------------- ##
1999## Cache variables. ##
2000## ---------------- ##
2001_ASBOX
2002    echo
2003    # The following way of writing the cache mishandles newlines in values,
2004(
2005  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006    eval ac_val=\$$ac_var
2007    case $ac_val in #(
2008    *${as_nl}*)
2009      case $ac_var in #(
2010      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012      esac
2013      case $ac_var in #(
2014      _ | IFS | as_nl) ;; #(
2015      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016      *) { eval $ac_var=; unset $ac_var;} ;;
2017      esac ;;
2018    esac
2019  done
2020  (set) 2>&1 |
2021    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022    *${as_nl}ac_space=\ *)
2023      sed -n \
2024	"s/'\''/'\''\\\\'\'''\''/g;
2025	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026      ;; #(
2027    *)
2028      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029      ;;
2030    esac |
2031    sort
2032)
2033    echo
2034
2035    cat <<\_ASBOX
2036## ----------------- ##
2037## Output variables. ##
2038## ----------------- ##
2039_ASBOX
2040    echo
2041    for ac_var in $ac_subst_vars
2042    do
2043      eval ac_val=\$$ac_var
2044      case $ac_val in
2045      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046      esac
2047      $as_echo "$ac_var='\''$ac_val'\''"
2048    done | sort
2049    echo
2050
2051    if test -n "$ac_subst_files"; then
2052      cat <<\_ASBOX
2053## ------------------- ##
2054## File substitutions. ##
2055## ------------------- ##
2056_ASBOX
2057      echo
2058      for ac_var in $ac_subst_files
2059      do
2060	eval ac_val=\$$ac_var
2061	case $ac_val in
2062	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063	esac
2064	$as_echo "$ac_var='\''$ac_val'\''"
2065      done | sort
2066      echo
2067    fi
2068
2069    if test -s confdefs.h; then
2070      cat <<\_ASBOX
2071## ----------- ##
2072## confdefs.h. ##
2073## ----------- ##
2074_ASBOX
2075      echo
2076      cat confdefs.h
2077      echo
2078    fi
2079    test "$ac_signal" != 0 &&
2080      $as_echo "$as_me: caught signal $ac_signal"
2081    $as_echo "$as_me: exit $exit_status"
2082  } >&5
2083  rm -f core *.core core.conftest.* &&
2084    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085    exit $exit_status
2086' 0
2087for ac_signal in 1 2 13 15; do
2088  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089done
2090ac_signal=0
2091
2092# confdefs.h avoids OS command line length limits that DEFS can exceed.
2093rm -f -r conftest* confdefs.h
2094
2095$as_echo "/* confdefs.h */" > confdefs.h
2096
2097# Predefined preprocessor variables.
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_NAME "$PACKAGE_NAME"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_VERSION "$PACKAGE_VERSION"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_STRING "$PACKAGE_STRING"
2113_ACEOF
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117_ACEOF
2118
2119cat >>confdefs.h <<_ACEOF
2120#define PACKAGE_URL "$PACKAGE_URL"
2121_ACEOF
2122
2123
2124# Let the site file select an alternate cache file if it wants to.
2125# Prefer an explicitly selected file to automatically selected ones.
2126ac_site_file1=NONE
2127ac_site_file2=NONE
2128if test -n "$CONFIG_SITE"; then
2129  ac_site_file1=$CONFIG_SITE
2130elif test "x$prefix" != xNONE; then
2131  ac_site_file1=$prefix/share/config.site
2132  ac_site_file2=$prefix/etc/config.site
2133else
2134  ac_site_file1=$ac_default_prefix/share/config.site
2135  ac_site_file2=$ac_default_prefix/etc/config.site
2136fi
2137for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2138do
2139  test "x$ac_site_file" = xNONE && continue
2140  if test -r "$ac_site_file"; then
2141    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2142$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2143    sed 's/^/| /' "$ac_site_file" >&5
2144    . "$ac_site_file"
2145  fi
2146done
2147
2148if test -r "$cache_file"; then
2149  # Some versions of bash will fail to source /dev/null (special
2150  # files actually), so we avoid doing that.
2151  if test -f "$cache_file"; then
2152    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153$as_echo "$as_me: loading cache $cache_file" >&6;}
2154    case $cache_file in
2155      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156      *)                      . "./$cache_file";;
2157    esac
2158  fi
2159else
2160  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161$as_echo "$as_me: creating cache $cache_file" >&6;}
2162  >$cache_file
2163fi
2164
2165# Check that the precious variables saved in the cache have kept the same
2166# value.
2167ac_cache_corrupted=false
2168for ac_var in $ac_precious_vars; do
2169  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170  eval ac_new_set=\$ac_env_${ac_var}_set
2171  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172  eval ac_new_val=\$ac_env_${ac_var}_value
2173  case $ac_old_set,$ac_new_set in
2174    set,)
2175      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177      ac_cache_corrupted=: ;;
2178    ,set)
2179      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181      ac_cache_corrupted=: ;;
2182    ,);;
2183    *)
2184      if test "x$ac_old_val" != "x$ac_new_val"; then
2185	# differences in whitespace do not lead to failure.
2186	ac_old_val_w=`echo x $ac_old_val`
2187	ac_new_val_w=`echo x $ac_new_val`
2188	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191	  ac_cache_corrupted=:
2192	else
2193	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195	  eval $ac_var=\$ac_old_val
2196	fi
2197	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2198$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2199	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2200$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2201      fi;;
2202  esac
2203  # Pass precious variables to config.status.
2204  if test "$ac_new_set" = set; then
2205    case $ac_new_val in
2206    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207    *) ac_arg=$ac_var=$ac_new_val ;;
2208    esac
2209    case " $ac_configure_args " in
2210      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2211      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212    esac
2213  fi
2214done
2215if $ac_cache_corrupted; then
2216  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221fi
2222## -------------------- ##
2223## Main body of script. ##
2224## -------------------- ##
2225
2226ac_ext=c
2227ac_cpp='$CPP $CPPFLAGS'
2228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231
2232
2233
2234
2235
2236
2237
2238# Needed to define ${target}.  Needs to be very early to avoid annoying
2239# warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2240ac_aux_dir=
2241for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2242  for ac_t in install-sh install.sh shtool; do
2243    if test -f "$ac_dir/$ac_t"; then
2244      ac_aux_dir=$ac_dir
2245      ac_install_sh="$ac_aux_dir/$ac_t -c"
2246      break 2
2247    fi
2248  done
2249done
2250if test -z "$ac_aux_dir"; then
2251  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2252fi
2253
2254# These three variables are undocumented and unsupported,
2255# and are intended to be withdrawn in a future Autoconf release.
2256# They can cause serious problems if a builder's source tree is in a directory
2257# whose full name contains unusual characters.
2258ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2259ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2260ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2261
2262
2263# Make sure we can run config.sub.
2264$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2265  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2266
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2268$as_echo_n "checking build system type... " >&6; }
2269if test "${ac_cv_build+set}" = set; then :
2270  $as_echo_n "(cached) " >&6
2271else
2272  ac_build_alias=$build_alias
2273test "x$ac_build_alias" = x &&
2274  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2275test "x$ac_build_alias" = x &&
2276  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2277ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2278  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2279
2280fi
2281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2282$as_echo "$ac_cv_build" >&6; }
2283case $ac_cv_build in
2284*-*-*) ;;
2285*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2286esac
2287build=$ac_cv_build
2288ac_save_IFS=$IFS; IFS='-'
2289set x $ac_cv_build
2290shift
2291build_cpu=$1
2292build_vendor=$2
2293shift; shift
2294# Remember, the first character of IFS is used to create $*,
2295# except with old shells:
2296build_os=$*
2297IFS=$ac_save_IFS
2298case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2299
2300
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2302$as_echo_n "checking host system type... " >&6; }
2303if test "${ac_cv_host+set}" = set; then :
2304  $as_echo_n "(cached) " >&6
2305else
2306  if test "x$host_alias" = x; then
2307  ac_cv_host=$ac_cv_build
2308else
2309  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2310    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2311fi
2312
2313fi
2314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2315$as_echo "$ac_cv_host" >&6; }
2316case $ac_cv_host in
2317*-*-*) ;;
2318*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2319esac
2320host=$ac_cv_host
2321ac_save_IFS=$IFS; IFS='-'
2322set x $ac_cv_host
2323shift
2324host_cpu=$1
2325host_vendor=$2
2326shift; shift
2327# Remember, the first character of IFS is used to create $*,
2328# except with old shells:
2329host_os=$*
2330IFS=$ac_save_IFS
2331case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2332
2333
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2335$as_echo_n "checking target system type... " >&6; }
2336if test "${ac_cv_target+set}" = set; then :
2337  $as_echo_n "(cached) " >&6
2338else
2339  if test "x$target_alias" = x; then
2340  ac_cv_target=$ac_cv_host
2341else
2342  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2343    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2344fi
2345
2346fi
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2348$as_echo "$ac_cv_target" >&6; }
2349case $ac_cv_target in
2350*-*-*) ;;
2351*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2352esac
2353target=$ac_cv_target
2354ac_save_IFS=$IFS; IFS='-'
2355set x $ac_cv_target
2356shift
2357target_cpu=$1
2358target_vendor=$2
2359shift; shift
2360# Remember, the first character of IFS is used to create $*,
2361# except with old shells:
2362target_os=$*
2363IFS=$ac_save_IFS
2364case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2365
2366
2367# The aliases save the names the user supplied, while $host etc.
2368# will get canonicalized.
2369test -n "$target_alias" &&
2370  test "$program_prefix$program_suffix$program_transform_name" = \
2371    NONENONEs,x,x, &&
2372  program_prefix=${target_alias}-
2373
2374target_alias=${target_alias-$host_alias}
2375
2376am__api_version='1.11'
2377
2378# Find a good install program.  We prefer a C program (faster),
2379# so one script is as good as another.  But avoid the broken or
2380# incompatible versions:
2381# SysV /etc/install, /usr/sbin/install
2382# SunOS /usr/etc/install
2383# IRIX /sbin/install
2384# AIX /bin/install
2385# AmigaOS /C/install, which installs bootblocks on floppy discs
2386# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2387# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2389# OS/2's system install, which has a completely different semantic
2390# ./install, which can be erroneously created by make from ./install.sh.
2391# Reject install programs that cannot install multiple files.
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2393$as_echo_n "checking for a BSD-compatible install... " >&6; }
2394if test -z "$INSTALL"; then
2395if test "${ac_cv_path_install+set}" = set; then :
2396  $as_echo_n "(cached) " >&6
2397else
2398  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401  IFS=$as_save_IFS
2402  test -z "$as_dir" && as_dir=.
2403    # Account for people who put trailing slashes in PATH elements.
2404case $as_dir/ in #((
2405  ./ | .// | /[cC]/* | \
2406  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2407  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2408  /usr/ucb/* ) ;;
2409  *)
2410    # OSF1 and SCO ODT 3.0 have their own names for install.
2411    # Don't use installbsd from OSF since it installs stuff as root
2412    # by default.
2413    for ac_prog in ginstall scoinst install; do
2414      for ac_exec_ext in '' $ac_executable_extensions; do
2415	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2416	  if test $ac_prog = install &&
2417	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418	    # AIX install.  It has an incompatible calling convention.
2419	    :
2420	  elif test $ac_prog = install &&
2421	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422	    # program-specific install script used by HP pwplus--don't use.
2423	    :
2424	  else
2425	    rm -rf conftest.one conftest.two conftest.dir
2426	    echo one > conftest.one
2427	    echo two > conftest.two
2428	    mkdir conftest.dir
2429	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2430	      test -s conftest.one && test -s conftest.two &&
2431	      test -s conftest.dir/conftest.one &&
2432	      test -s conftest.dir/conftest.two
2433	    then
2434	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435	      break 3
2436	    fi
2437	  fi
2438	fi
2439      done
2440    done
2441    ;;
2442esac
2443
2444  done
2445IFS=$as_save_IFS
2446
2447rm -rf conftest.one conftest.two conftest.dir
2448
2449fi
2450  if test "${ac_cv_path_install+set}" = set; then
2451    INSTALL=$ac_cv_path_install
2452  else
2453    # As a last resort, use the slow shell script.  Don't cache a
2454    # value for INSTALL within a source directory, because that will
2455    # break other packages using the cache if that directory is
2456    # removed, or if the value is a relative name.
2457    INSTALL=$ac_install_sh
2458  fi
2459fi
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2461$as_echo "$INSTALL" >&6; }
2462
2463# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2464# It thinks the first close brace ends the variable substitution.
2465test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2466
2467test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2468
2469test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2470
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2472$as_echo_n "checking whether build environment is sane... " >&6; }
2473# Just in case
2474sleep 1
2475echo timestamp > conftest.file
2476# Reject unsafe characters in $srcdir or the absolute working directory
2477# name.  Accept space and tab only in the latter.
2478am_lf='
2479'
2480case `pwd` in
2481  *[\\\"\#\$\&\'\`$am_lf]*)
2482    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2483esac
2484case $srcdir in
2485  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2486    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2487esac
2488
2489# Do `set' in a subshell so we don't clobber the current shell's
2490# arguments.  Must try -L first in case configure is actually a
2491# symlink; some systems play weird games with the mod time of symlinks
2492# (eg FreeBSD returns the mod time of the symlink's containing
2493# directory).
2494if (
2495   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2496   if test "$*" = "X"; then
2497      # -L didn't work.
2498      set X `ls -t "$srcdir/configure" conftest.file`
2499   fi
2500   rm -f conftest.file
2501   if test "$*" != "X $srcdir/configure conftest.file" \
2502      && test "$*" != "X conftest.file $srcdir/configure"; then
2503
2504      # If neither matched, then we have a broken ls.  This can happen
2505      # if, for instance, CONFIG_SHELL is bash and it inherits a
2506      # broken ls alias from the environment.  This has actually
2507      # happened.  Such a system could not be considered "sane".
2508      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2509alias in your environment" "$LINENO" 5
2510   fi
2511
2512   test "$2" = conftest.file
2513   )
2514then
2515   # Ok.
2516   :
2517else
2518   as_fn_error "newly created file is older than distributed files!
2519Check your system clock" "$LINENO" 5
2520fi
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522$as_echo "yes" >&6; }
2523test "$program_prefix" != NONE &&
2524  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2525# Use a double $ so make ignores it.
2526test "$program_suffix" != NONE &&
2527  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2528# Double any \ or $.
2529# By default was `s,x,x', remove it if useless.
2530ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2531program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2532
2533# expand $ac_aux_dir to an absolute path
2534am_aux_dir=`cd $ac_aux_dir && pwd`
2535
2536if test x"${MISSING+set}" != xset; then
2537  case $am_aux_dir in
2538  *\ * | *\	*)
2539    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2540  *)
2541    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2542  esac
2543fi
2544# Use eval to expand $SHELL
2545if eval "$MISSING --run true"; then
2546  am_missing_run="$MISSING --run "
2547else
2548  am_missing_run=
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2550$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2551fi
2552
2553if test x"${install_sh}" != xset; then
2554  case $am_aux_dir in
2555  *\ * | *\	*)
2556    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2557  *)
2558    install_sh="\${SHELL} $am_aux_dir/install-sh"
2559  esac
2560fi
2561
2562# Installed binaries are usually stripped using `strip' when the user
2563# run `make install-strip'.  However `strip' might not be the right
2564# tool to use in cross-compilation environments, therefore Automake
2565# will honor the `STRIP' environment variable to overrule this program.
2566if test "$cross_compiling" != no; then
2567  if test -n "$ac_tool_prefix"; then
2568  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2569set dummy ${ac_tool_prefix}strip; ac_word=$2
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
2572if test "${ac_cv_prog_STRIP+set}" = set; then :
2573  $as_echo_n "(cached) " >&6
2574else
2575  if test -n "$STRIP"; then
2576  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581  IFS=$as_save_IFS
2582  test -z "$as_dir" && as_dir=.
2583    for ac_exec_ext in '' $ac_executable_extensions; do
2584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587    break 2
2588  fi
2589done
2590  done
2591IFS=$as_save_IFS
2592
2593fi
2594fi
2595STRIP=$ac_cv_prog_STRIP
2596if test -n "$STRIP"; then
2597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2598$as_echo "$STRIP" >&6; }
2599else
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
2602fi
2603
2604
2605fi
2606if test -z "$ac_cv_prog_STRIP"; then
2607  ac_ct_STRIP=$STRIP
2608  # Extract the first word of "strip", so it can be a program name with args.
2609set dummy strip; ac_word=$2
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611$as_echo_n "checking for $ac_word... " >&6; }
2612if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2613  $as_echo_n "(cached) " >&6
2614else
2615  if test -n "$ac_ct_STRIP"; then
2616  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621  IFS=$as_save_IFS
2622  test -z "$as_dir" && as_dir=.
2623    for ac_exec_ext in '' $ac_executable_extensions; do
2624  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625    ac_cv_prog_ac_ct_STRIP="strip"
2626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627    break 2
2628  fi
2629done
2630  done
2631IFS=$as_save_IFS
2632
2633fi
2634fi
2635ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2636if test -n "$ac_ct_STRIP"; then
2637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2638$as_echo "$ac_ct_STRIP" >&6; }
2639else
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641$as_echo "no" >&6; }
2642fi
2643
2644  if test "x$ac_ct_STRIP" = x; then
2645    STRIP=":"
2646  else
2647    case $cross_compiling:$ac_tool_warned in
2648yes:)
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2651ac_tool_warned=yes ;;
2652esac
2653    STRIP=$ac_ct_STRIP
2654  fi
2655else
2656  STRIP="$ac_cv_prog_STRIP"
2657fi
2658
2659fi
2660INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2661
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2663$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2664if test -z "$MKDIR_P"; then
2665  if test "${ac_cv_path_mkdir+set}" = set; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2670do
2671  IFS=$as_save_IFS
2672  test -z "$as_dir" && as_dir=.
2673    for ac_prog in mkdir gmkdir; do
2674	 for ac_exec_ext in '' $ac_executable_extensions; do
2675	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2676	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2677	     'mkdir (GNU coreutils) '* | \
2678	     'mkdir (coreutils) '* | \
2679	     'mkdir (fileutils) '4.1*)
2680	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2681	       break 3;;
2682	   esac
2683	 done
2684       done
2685  done
2686IFS=$as_save_IFS
2687
2688fi
2689
2690  if test "${ac_cv_path_mkdir+set}" = set; then
2691    MKDIR_P="$ac_cv_path_mkdir -p"
2692  else
2693    # As a last resort, use the slow shell script.  Don't cache a
2694    # value for MKDIR_P within a source directory, because that will
2695    # break other packages using the cache if that directory is
2696    # removed, or if the value is a relative name.
2697    test -d ./--version && rmdir ./--version
2698    MKDIR_P="$ac_install_sh -d"
2699  fi
2700fi
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2702$as_echo "$MKDIR_P" >&6; }
2703
2704mkdir_p="$MKDIR_P"
2705case $mkdir_p in
2706  [\\/$]* | ?:[\\/]*) ;;
2707  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2708esac
2709
2710for ac_prog in gawk mawk nawk awk
2711do
2712  # Extract the first word of "$ac_prog", so it can be a program name with args.
2713set dummy $ac_prog; ac_word=$2
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
2716if test "${ac_cv_prog_AWK+set}" = set; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  if test -n "$AWK"; then
2720  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725  IFS=$as_save_IFS
2726  test -z "$as_dir" && as_dir=.
2727    for ac_exec_ext in '' $ac_executable_extensions; do
2728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729    ac_cv_prog_AWK="$ac_prog"
2730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731    break 2
2732  fi
2733done
2734  done
2735IFS=$as_save_IFS
2736
2737fi
2738fi
2739AWK=$ac_cv_prog_AWK
2740if test -n "$AWK"; then
2741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742$as_echo "$AWK" >&6; }
2743else
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745$as_echo "no" >&6; }
2746fi
2747
2748
2749  test -n "$AWK" && break
2750done
2751
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2753$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2754set x ${MAKE-make}
2755ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2756if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2757  $as_echo_n "(cached) " >&6
2758else
2759  cat >conftest.make <<\_ACEOF
2760SHELL = /bin/sh
2761all:
2762	@echo '@@@%%%=$(MAKE)=@@@%%%'
2763_ACEOF
2764# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2765case `${MAKE-make} -f conftest.make 2>/dev/null` in
2766  *@@@%%%=?*=@@@%%%*)
2767    eval ac_cv_prog_make_${ac_make}_set=yes;;
2768  *)
2769    eval ac_cv_prog_make_${ac_make}_set=no;;
2770esac
2771rm -f conftest.make
2772fi
2773if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2775$as_echo "yes" >&6; }
2776  SET_MAKE=
2777else
2778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779$as_echo "no" >&6; }
2780  SET_MAKE="MAKE=${MAKE-make}"
2781fi
2782
2783rm -rf .tst 2>/dev/null
2784mkdir .tst 2>/dev/null
2785if test -d .tst; then
2786  am__leading_dot=.
2787else
2788  am__leading_dot=_
2789fi
2790rmdir .tst 2>/dev/null
2791
2792if test "`cd $srcdir && pwd`" != "`pwd`"; then
2793  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2794  # is not polluted with repeated "-I."
2795  am__isrc=' -I$(srcdir)'
2796  # test to see if srcdir already configured
2797  if test -f $srcdir/config.status; then
2798    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2799  fi
2800fi
2801
2802# test whether we have cygpath
2803if test -z "$CYGPATH_W"; then
2804  if (cygpath --version) >/dev/null 2>/dev/null; then
2805    CYGPATH_W='cygpath -w'
2806  else
2807    CYGPATH_W=echo
2808  fi
2809fi
2810
2811
2812# Define the identity of the package.
2813 PACKAGE='cilk-runtime-library'
2814 VERSION='2.0'
2815
2816
2817cat >>confdefs.h <<_ACEOF
2818#define PACKAGE "$PACKAGE"
2819_ACEOF
2820
2821
2822cat >>confdefs.h <<_ACEOF
2823#define VERSION "$VERSION"
2824_ACEOF
2825
2826# Some tools Automake needs.
2827
2828ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2829
2830
2831AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2832
2833
2834AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2835
2836
2837AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2838
2839
2840MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2841
2842# We need awk for the "check" target.  The system "awk" is bad on
2843# some platforms.
2844# Always define AMTAR for backward compatibility.  Yes, it's still used
2845# in the wild :-(  We should find a proper way to deprecate it ...
2846AMTAR='$${TAR-tar}'
2847
2848am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2849
2850
2851
2852
2853
2854
2855
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2857$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2858    # Check whether --enable-maintainer-mode was given.
2859if test "${enable_maintainer_mode+set}" = set; then :
2860  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2861else
2862  USE_MAINTAINER_MODE=no
2863fi
2864
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2866$as_echo "$USE_MAINTAINER_MODE" >&6; }
2867   if test $USE_MAINTAINER_MODE = yes; then
2868  MAINTAINER_MODE_TRUE=
2869  MAINTAINER_MODE_FALSE='#'
2870else
2871  MAINTAINER_MODE_TRUE='#'
2872  MAINTAINER_MODE_FALSE=
2873fi
2874
2875  MAINT=$MAINTAINER_MODE_TRUE
2876
2877
2878
2879# Default to --enable-multilib
2880# Check whether --enable-multilib was given.
2881if test "${enable_multilib+set}" = set; then :
2882  enableval=$enable_multilib; case "$enableval" in
2883  yes) multilib=yes ;;
2884  no)  multilib=no ;;
2885  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2886 esac
2887else
2888  multilib=yes
2889fi
2890
2891
2892# We may get other options which we leave undocumented:
2893# --with-target-subdir, --with-multisrctop, --with-multisubdir
2894# See config-ml.in if you want the gory details.
2895
2896if test "$srcdir" = "."; then
2897  if test "$with_target_subdir" != "."; then
2898    multi_basedir="$srcdir/$with_multisrctop../.."
2899  else
2900    multi_basedir="$srcdir/$with_multisrctop.."
2901  fi
2902else
2903  multi_basedir="$srcdir/.."
2904fi
2905
2906
2907# Even if the default multilib is not a cross compilation,
2908# it may be that some of the other multilibs are.
2909if test $cross_compiling = no && test $multilib = yes \
2910   && test "x${with_multisubdir}" != x ; then
2911   cross_compiling=maybe
2912fi
2913
2914ac_config_commands="$ac_config_commands default-1"
2915
2916
2917# Build a DLL on Windows
2918# AC_LIBTOOL_WIN32_DLL
2919ac_ext=c
2920ac_cpp='$CPP $CPPFLAGS'
2921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924if test -n "$ac_tool_prefix"; then
2925  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2926set dummy ${ac_tool_prefix}gcc; ac_word=$2
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928$as_echo_n "checking for $ac_word... " >&6; }
2929if test "${ac_cv_prog_CC+set}" = set; then :
2930  $as_echo_n "(cached) " >&6
2931else
2932  if test -n "$CC"; then
2933  ac_cv_prog_CC="$CC" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938  IFS=$as_save_IFS
2939  test -z "$as_dir" && as_dir=.
2940    for ac_exec_ext in '' $ac_executable_extensions; do
2941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944    break 2
2945  fi
2946done
2947  done
2948IFS=$as_save_IFS
2949
2950fi
2951fi
2952CC=$ac_cv_prog_CC
2953if test -n "$CC"; then
2954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955$as_echo "$CC" >&6; }
2956else
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958$as_echo "no" >&6; }
2959fi
2960
2961
2962fi
2963if test -z "$ac_cv_prog_CC"; then
2964  ac_ct_CC=$CC
2965  # Extract the first word of "gcc", so it can be a program name with args.
2966set dummy gcc; ac_word=$2
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968$as_echo_n "checking for $ac_word... " >&6; }
2969if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2970  $as_echo_n "(cached) " >&6
2971else
2972  if test -n "$ac_ct_CC"; then
2973  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974else
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978  IFS=$as_save_IFS
2979  test -z "$as_dir" && as_dir=.
2980    for ac_exec_ext in '' $ac_executable_extensions; do
2981  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982    ac_cv_prog_ac_ct_CC="gcc"
2983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984    break 2
2985  fi
2986done
2987  done
2988IFS=$as_save_IFS
2989
2990fi
2991fi
2992ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993if test -n "$ac_ct_CC"; then
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995$as_echo "$ac_ct_CC" >&6; }
2996else
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998$as_echo "no" >&6; }
2999fi
3000
3001  if test "x$ac_ct_CC" = x; then
3002    CC=""
3003  else
3004    case $cross_compiling:$ac_tool_warned in
3005yes:)
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008ac_tool_warned=yes ;;
3009esac
3010    CC=$ac_ct_CC
3011  fi
3012else
3013  CC="$ac_cv_prog_CC"
3014fi
3015
3016if test -z "$CC"; then
3017          if test -n "$ac_tool_prefix"; then
3018    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3019set dummy ${ac_tool_prefix}cc; ac_word=$2
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021$as_echo_n "checking for $ac_word... " >&6; }
3022if test "${ac_cv_prog_CC+set}" = set; then :
3023  $as_echo_n "(cached) " >&6
3024else
3025  if test -n "$CC"; then
3026  ac_cv_prog_CC="$CC" # Let the user override the test.
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031  IFS=$as_save_IFS
3032  test -z "$as_dir" && as_dir=.
3033    for ac_exec_ext in '' $ac_executable_extensions; do
3034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035    ac_cv_prog_CC="${ac_tool_prefix}cc"
3036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037    break 2
3038  fi
3039done
3040  done
3041IFS=$as_save_IFS
3042
3043fi
3044fi
3045CC=$ac_cv_prog_CC
3046if test -n "$CC"; then
3047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048$as_echo "$CC" >&6; }
3049else
3050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051$as_echo "no" >&6; }
3052fi
3053
3054
3055  fi
3056fi
3057if test -z "$CC"; then
3058  # Extract the first word of "cc", so it can be a program name with args.
3059set dummy cc; ac_word=$2
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061$as_echo_n "checking for $ac_word... " >&6; }
3062if test "${ac_cv_prog_CC+set}" = set; then :
3063  $as_echo_n "(cached) " >&6
3064else
3065  if test -n "$CC"; then
3066  ac_cv_prog_CC="$CC" # Let the user override the test.
3067else
3068  ac_prog_rejected=no
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072  IFS=$as_save_IFS
3073  test -z "$as_dir" && as_dir=.
3074    for ac_exec_ext in '' $ac_executable_extensions; do
3075  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3077       ac_prog_rejected=yes
3078       continue
3079     fi
3080    ac_cv_prog_CC="cc"
3081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082    break 2
3083  fi
3084done
3085  done
3086IFS=$as_save_IFS
3087
3088if test $ac_prog_rejected = yes; then
3089  # We found a bogon in the path, so make sure we never use it.
3090  set dummy $ac_cv_prog_CC
3091  shift
3092  if test $# != 0; then
3093    # We chose a different compiler from the bogus one.
3094    # However, it has the same basename, so the bogon will be chosen
3095    # first if we set CC to just the basename; use the full file name.
3096    shift
3097    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3098  fi
3099fi
3100fi
3101fi
3102CC=$ac_cv_prog_CC
3103if test -n "$CC"; then
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105$as_echo "$CC" >&6; }
3106else
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109fi
3110
3111
3112fi
3113if test -z "$CC"; then
3114  if test -n "$ac_tool_prefix"; then
3115  for ac_prog in cl.exe
3116  do
3117    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120$as_echo_n "checking for $ac_word... " >&6; }
3121if test "${ac_cv_prog_CC+set}" = set; then :
3122  $as_echo_n "(cached) " >&6
3123else
3124  if test -n "$CC"; then
3125  ac_cv_prog_CC="$CC" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130  IFS=$as_save_IFS
3131  test -z "$as_dir" && as_dir=.
3132    for ac_exec_ext in '' $ac_executable_extensions; do
3133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136    break 2
3137  fi
3138done
3139  done
3140IFS=$as_save_IFS
3141
3142fi
3143fi
3144CC=$ac_cv_prog_CC
3145if test -n "$CC"; then
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147$as_echo "$CC" >&6; }
3148else
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
3151fi
3152
3153
3154    test -n "$CC" && break
3155  done
3156fi
3157if test -z "$CC"; then
3158  ac_ct_CC=$CC
3159  for ac_prog in cl.exe
3160do
3161  # Extract the first word of "$ac_prog", so it can be a program name with args.
3162set dummy $ac_prog; ac_word=$2
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164$as_echo_n "checking for $ac_word... " >&6; }
3165if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3166  $as_echo_n "(cached) " >&6
3167else
3168  if test -n "$ac_ct_CC"; then
3169  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170else
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174  IFS=$as_save_IFS
3175  test -z "$as_dir" && as_dir=.
3176    for ac_exec_ext in '' $ac_executable_extensions; do
3177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178    ac_cv_prog_ac_ct_CC="$ac_prog"
3179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180    break 2
3181  fi
3182done
3183  done
3184IFS=$as_save_IFS
3185
3186fi
3187fi
3188ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189if test -n "$ac_ct_CC"; then
3190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191$as_echo "$ac_ct_CC" >&6; }
3192else
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194$as_echo "no" >&6; }
3195fi
3196
3197
3198  test -n "$ac_ct_CC" && break
3199done
3200
3201  if test "x$ac_ct_CC" = x; then
3202    CC=""
3203  else
3204    case $cross_compiling:$ac_tool_warned in
3205yes:)
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208ac_tool_warned=yes ;;
3209esac
3210    CC=$ac_ct_CC
3211  fi
3212fi
3213
3214fi
3215
3216
3217test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219as_fn_error "no acceptable C compiler found in \$PATH
3220See \`config.log' for more details." "$LINENO" 5; }
3221
3222# Provide some information about the compiler.
3223$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3224set X $ac_compile
3225ac_compiler=$2
3226for ac_option in --version -v -V -qversion; do
3227  { { ac_try="$ac_compiler $ac_option >&5"
3228case "(($ac_try" in
3229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230  *) ac_try_echo=$ac_try;;
3231esac
3232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233$as_echo "$ac_try_echo"; } >&5
3234  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3235  ac_status=$?
3236  if test -s conftest.err; then
3237    sed '10a\
3238... rest of stderr output deleted ...
3239         10q' conftest.err >conftest.er1
3240    cat conftest.er1 >&5
3241    rm -f conftest.er1 conftest.err
3242  fi
3243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244  test $ac_status = 0; }
3245done
3246
3247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248/* end confdefs.h.  */
3249
3250int
3251main ()
3252{
3253
3254  ;
3255  return 0;
3256}
3257_ACEOF
3258ac_clean_files_save=$ac_clean_files
3259ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3260# Try to create an executable without -o first, disregard a.out.
3261# It will help us diagnose broken compilers, and finding out an intuition
3262# of exeext.
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3264$as_echo_n "checking for C compiler default output file name... " >&6; }
3265ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3266
3267# The possible output files:
3268ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3269
3270ac_rmfiles=
3271for ac_file in $ac_files
3272do
3273  case $ac_file in
3274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3276  esac
3277done
3278rm -f $ac_rmfiles
3279
3280if { { ac_try="$ac_link_default"
3281case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286$as_echo "$ac_try_echo"; } >&5
3287  (eval "$ac_link_default") 2>&5
3288  ac_status=$?
3289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290  test $ac_status = 0; }; then :
3291  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3292# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3293# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3294# so that the user can short-circuit this test for compilers unknown to
3295# Autoconf.
3296for ac_file in $ac_files ''
3297do
3298  test -f "$ac_file" || continue
3299  case $ac_file in
3300    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3301	;;
3302    [ab].out )
3303	# We found the default executable, but exeext='' is most
3304	# certainly right.
3305	break;;
3306    *.* )
3307	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3308	then :; else
3309	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3310	fi
3311	# We set ac_cv_exeext here because the later test for it is not
3312	# safe: cross compilers may not add the suffix if given an `-o'
3313	# argument, so we may need to know it at that point already.
3314	# Even if this section looks crufty: it has the advantage of
3315	# actually working.
3316	break;;
3317    * )
3318	break;;
3319  esac
3320done
3321test "$ac_cv_exeext" = no && ac_cv_exeext=
3322
3323else
3324  ac_file=''
3325fi
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327$as_echo "$ac_file" >&6; }
3328if test -z "$ac_file"; then :
3329  $as_echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
3332{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334{ as_fn_set_status 77
3335as_fn_error "C compiler cannot create executables
3336See \`config.log' for more details." "$LINENO" 5; }; }
3337fi
3338ac_exeext=$ac_cv_exeext
3339
3340# Check that the compiler produces executables we can run.  If not, either
3341# the compiler is broken, or we cross compile.
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3343$as_echo_n "checking whether the C compiler works... " >&6; }
3344# If not cross compiling, check that we can run a simple program.
3345if test "$cross_compiling" != yes; then
3346  if { ac_try='./$ac_file'
3347  { { case "(($ac_try" in
3348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349  *) ac_try_echo=$ac_try;;
3350esac
3351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352$as_echo "$ac_try_echo"; } >&5
3353  (eval "$ac_try") 2>&5
3354  ac_status=$?
3355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356  test $ac_status = 0; }; }; then
3357    cross_compiling=no
3358  else
3359    if test "$cross_compiling" = maybe; then
3360	cross_compiling=yes
3361    else
3362	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364as_fn_error "cannot run C compiled programs.
3365If you meant to cross compile, use \`--host'.
3366See \`config.log' for more details." "$LINENO" 5; }
3367    fi
3368  fi
3369fi
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371$as_echo "yes" >&6; }
3372
3373rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3374ac_clean_files=$ac_clean_files_save
3375# Check that the compiler produces executables we can run.  If not, either
3376# the compiler is broken, or we cross compile.
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3378$as_echo_n "checking whether we are cross compiling... " >&6; }
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3380$as_echo "$cross_compiling" >&6; }
3381
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3383$as_echo_n "checking for suffix of executables... " >&6; }
3384if { { ac_try="$ac_link"
3385case "(($ac_try" in
3386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387  *) ac_try_echo=$ac_try;;
3388esac
3389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390$as_echo "$ac_try_echo"; } >&5
3391  (eval "$ac_link") 2>&5
3392  ac_status=$?
3393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394  test $ac_status = 0; }; then :
3395  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3396# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3397# work properly (i.e., refer to `conftest.exe'), while it won't with
3398# `rm'.
3399for ac_file in conftest.exe conftest conftest.*; do
3400  test -f "$ac_file" || continue
3401  case $ac_file in
3402    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404	  break;;
3405    * ) break;;
3406  esac
3407done
3408else
3409  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411as_fn_error "cannot compute suffix of executables: cannot compile and link
3412See \`config.log' for more details." "$LINENO" 5; }
3413fi
3414rm -f conftest$ac_cv_exeext
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3416$as_echo "$ac_cv_exeext" >&6; }
3417
3418rm -f conftest.$ac_ext
3419EXEEXT=$ac_cv_exeext
3420ac_exeext=$EXEEXT
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3422$as_echo_n "checking for suffix of object files... " >&6; }
3423if test "${ac_cv_objext+set}" = set; then :
3424  $as_echo_n "(cached) " >&6
3425else
3426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428
3429int
3430main ()
3431{
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437rm -f conftest.o conftest.obj
3438if { { ac_try="$ac_compile"
3439case "(($ac_try" in
3440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441  *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
3445  (eval "$ac_compile") 2>&5
3446  ac_status=$?
3447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448  test $ac_status = 0; }; then :
3449  for ac_file in conftest.o conftest.obj conftest.*; do
3450  test -f "$ac_file" || continue;
3451  case $ac_file in
3452    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3453    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3454       break;;
3455  esac
3456done
3457else
3458  $as_echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463as_fn_error "cannot compute suffix of object files: cannot compile
3464See \`config.log' for more details." "$LINENO" 5; }
3465fi
3466rm -f conftest.$ac_cv_objext conftest.$ac_ext
3467fi
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3469$as_echo "$ac_cv_objext" >&6; }
3470OBJEXT=$ac_cv_objext
3471ac_objext=$OBJEXT
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3473$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3474if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3475  $as_echo_n "(cached) " >&6
3476else
3477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h.  */
3479
3480int
3481main ()
3482{
3483#ifndef __GNUC__
3484       choke me
3485#endif
3486
3487  ;
3488  return 0;
3489}
3490_ACEOF
3491if ac_fn_c_try_compile "$LINENO"; then :
3492  ac_compiler_gnu=yes
3493else
3494  ac_compiler_gnu=no
3495fi
3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497ac_cv_c_compiler_gnu=$ac_compiler_gnu
3498
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3501$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3502if test $ac_compiler_gnu = yes; then
3503  GCC=yes
3504else
3505  GCC=
3506fi
3507ac_test_CFLAGS=${CFLAGS+set}
3508ac_save_CFLAGS=$CFLAGS
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3510$as_echo_n "checking whether $CC accepts -g... " >&6; }
3511if test "${ac_cv_prog_cc_g+set}" = set; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  ac_save_c_werror_flag=$ac_c_werror_flag
3515   ac_c_werror_flag=yes
3516   ac_cv_prog_cc_g=no
3517   CFLAGS="-g"
3518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529if ac_fn_c_try_compile "$LINENO"; then :
3530  ac_cv_prog_cc_g=yes
3531else
3532  CFLAGS=""
3533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h.  */
3535
3536int
3537main ()
3538{
3539
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544if ac_fn_c_try_compile "$LINENO"; then :
3545
3546else
3547  ac_c_werror_flag=$ac_save_c_werror_flag
3548	 CFLAGS="-g"
3549	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551
3552int
3553main ()
3554{
3555
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560if ac_fn_c_try_compile "$LINENO"; then :
3561  ac_cv_prog_cc_g=yes
3562fi
3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564fi
3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566fi
3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568   ac_c_werror_flag=$ac_save_c_werror_flag
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3571$as_echo "$ac_cv_prog_cc_g" >&6; }
3572if test "$ac_test_CFLAGS" = set; then
3573  CFLAGS=$ac_save_CFLAGS
3574elif test $ac_cv_prog_cc_g = yes; then
3575  if test "$GCC" = yes; then
3576    CFLAGS="-g -O2"
3577  else
3578    CFLAGS="-g"
3579  fi
3580else
3581  if test "$GCC" = yes; then
3582    CFLAGS="-O2"
3583  else
3584    CFLAGS=
3585  fi
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3588$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3589if test "${ac_cv_prog_cc_c89+set}" = set; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  ac_cv_prog_cc_c89=no
3593ac_save_CC=$CC
3594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595/* end confdefs.h.  */
3596#include <stdarg.h>
3597#include <stdio.h>
3598#include <sys/types.h>
3599#include <sys/stat.h>
3600/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3601struct buf { int x; };
3602FILE * (*rcsopen) (struct buf *, struct stat *, int);
3603static char *e (p, i)
3604     char **p;
3605     int i;
3606{
3607  return p[i];
3608}
3609static char *f (char * (*g) (char **, int), char **p, ...)
3610{
3611  char *s;
3612  va_list v;
3613  va_start (v,p);
3614  s = g (p, va_arg (v,int));
3615  va_end (v);
3616  return s;
3617}
3618
3619/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3620   function prototypes and stuff, but not '\xHH' hex character constants.
3621   These don't provoke an error unfortunately, instead are silently treated
3622   as 'x'.  The following induces an error, until -std is added to get
3623   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3624   array size at least.  It's necessary to write '\x00'==0 to get something
3625   that's true only with -std.  */
3626int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3627
3628/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3629   inside strings and character constants.  */
3630#define FOO(x) 'x'
3631int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3632
3633int test (int i, double x);
3634struct s1 {int (*f) (int a);};
3635struct s2 {int (*f) (double a);};
3636int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3637int argc;
3638char **argv;
3639int
3640main ()
3641{
3642return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3643  ;
3644  return 0;
3645}
3646_ACEOF
3647for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3648	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3649do
3650  CC="$ac_save_CC $ac_arg"
3651  if ac_fn_c_try_compile "$LINENO"; then :
3652  ac_cv_prog_cc_c89=$ac_arg
3653fi
3654rm -f core conftest.err conftest.$ac_objext
3655  test "x$ac_cv_prog_cc_c89" != "xno" && break
3656done
3657rm -f conftest.$ac_ext
3658CC=$ac_save_CC
3659
3660fi
3661# AC_CACHE_VAL
3662case "x$ac_cv_prog_cc_c89" in
3663  x)
3664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3665$as_echo "none needed" >&6; } ;;
3666  xno)
3667    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3668$as_echo "unsupported" >&6; } ;;
3669  *)
3670    CC="$CC $ac_cv_prog_cc_c89"
3671    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3673esac
3674if test "x$ac_cv_prog_cc_c89" != xno; then :
3675
3676fi
3677
3678ac_ext=c
3679ac_cpp='$CPP $CPPFLAGS'
3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683DEPDIR="${am__leading_dot}deps"
3684
3685ac_config_commands="$ac_config_commands depfiles"
3686
3687
3688am_make=${MAKE-make}
3689cat > confinc << 'END'
3690am__doit:
3691	@echo this is the am__doit target
3692.PHONY: am__doit
3693END
3694# If we don't find an include directive, just comment out the code.
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3696$as_echo_n "checking for style of include used by $am_make... " >&6; }
3697am__include="#"
3698am__quote=
3699_am_result=none
3700# First try GNU make style include.
3701echo "include confinc" > confmf
3702# Ignore all kinds of additional output from `make'.
3703case `$am_make -s -f confmf 2> /dev/null` in #(
3704*the\ am__doit\ target*)
3705  am__include=include
3706  am__quote=
3707  _am_result=GNU
3708  ;;
3709esac
3710# Now try BSD make style include.
3711if test "$am__include" = "#"; then
3712   echo '.include "confinc"' > confmf
3713   case `$am_make -s -f confmf 2> /dev/null` in #(
3714   *the\ am__doit\ target*)
3715     am__include=.include
3716     am__quote="\""
3717     _am_result=BSD
3718     ;;
3719   esac
3720fi
3721
3722
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3724$as_echo "$_am_result" >&6; }
3725rm -f confinc confmf
3726
3727# Check whether --enable-dependency-tracking was given.
3728if test "${enable_dependency_tracking+set}" = set; then :
3729  enableval=$enable_dependency_tracking;
3730fi
3731
3732if test "x$enable_dependency_tracking" != xno; then
3733  am_depcomp="$ac_aux_dir/depcomp"
3734  AMDEPBACKSLASH='\'
3735  am__nodep='_no'
3736fi
3737 if test "x$enable_dependency_tracking" != xno; then
3738  AMDEP_TRUE=
3739  AMDEP_FALSE='#'
3740else
3741  AMDEP_TRUE='#'
3742  AMDEP_FALSE=
3743fi
3744
3745
3746
3747depcc="$CC"   am_compiler_list=
3748
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3750$as_echo_n "checking dependency style of $depcc... " >&6; }
3751if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3755  # We make a subdir and do the tests there.  Otherwise we can end up
3756  # making bogus files that we don't know about and never remove.  For
3757  # instance it was reported that on HP-UX the gcc test will end up
3758  # making a dummy file named `D' -- because `-MD' means `put the output
3759  # in D'.
3760  rm -rf conftest.dir
3761  mkdir conftest.dir
3762  # Copy depcomp to subdir because otherwise we won't find it if we're
3763  # using a relative directory.
3764  cp "$am_depcomp" conftest.dir
3765  cd conftest.dir
3766  # We will build objects and dependencies in a subdirectory because
3767  # it helps to detect inapplicable dependency modes.  For instance
3768  # both Tru64's cc and ICC support -MD to output dependencies as a
3769  # side effect of compilation, but ICC will put the dependencies in
3770  # the current directory while Tru64 will put them in the object
3771  # directory.
3772  mkdir sub
3773
3774  am_cv_CC_dependencies_compiler_type=none
3775  if test "$am_compiler_list" = ""; then
3776     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3777  fi
3778  am__universal=false
3779  case " $depcc " in #(
3780     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3781     esac
3782
3783  for depmode in $am_compiler_list; do
3784    # Setup a source with many dependencies, because some compilers
3785    # like to wrap large dependency lists on column 80 (with \), and
3786    # we should not choose a depcomp mode which is confused by this.
3787    #
3788    # We need to recreate these files for each test, as the compiler may
3789    # overwrite some of them when testing with obscure command lines.
3790    # This happens at least with the AIX C compiler.
3791    : > sub/conftest.c
3792    for i in 1 2 3 4 5 6; do
3793      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3794      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3795      # Solaris 8's {/usr,}/bin/sh.
3796      touch sub/conftst$i.h
3797    done
3798    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3799
3800    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3801    # mode.  It turns out that the SunPro C++ compiler does not properly
3802    # handle `-M -o', and we need to detect this.  Also, some Intel
3803    # versions had trouble with output in subdirs
3804    am__obj=sub/conftest.${OBJEXT-o}
3805    am__minus_obj="-o $am__obj"
3806    case $depmode in
3807    gcc)
3808      # This depmode causes a compiler race in universal mode.
3809      test "$am__universal" = false || continue
3810      ;;
3811    nosideeffect)
3812      # after this tag, mechanisms are not by side-effect, so they'll
3813      # only be used when explicitly requested
3814      if test "x$enable_dependency_tracking" = xyes; then
3815	continue
3816      else
3817	break
3818      fi
3819      ;;
3820    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3821      # This compiler won't grok `-c -o', but also, the minuso test has
3822      # not run yet.  These depmodes are late enough in the game, and
3823      # so weak that their functioning should not be impacted.
3824      am__obj=conftest.${OBJEXT-o}
3825      am__minus_obj=
3826      ;;
3827    none) break ;;
3828    esac
3829    if depmode=$depmode \
3830       source=sub/conftest.c object=$am__obj \
3831       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3832       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3833         >/dev/null 2>conftest.err &&
3834       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3835       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3836       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3837       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3838      # icc doesn't choke on unknown options, it will just issue warnings
3839      # or remarks (even with -Werror).  So we grep stderr for any message
3840      # that says an option was ignored or not supported.
3841      # When given -MP, icc 7.0 and 7.1 complain thusly:
3842      #   icc: Command line warning: ignoring option '-M'; no argument required
3843      # The diagnosis changed in icc 8.0:
3844      #   icc: Command line remark: option '-MP' not supported
3845      if (grep 'ignoring option' conftest.err ||
3846          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3847        am_cv_CC_dependencies_compiler_type=$depmode
3848        break
3849      fi
3850    fi
3851  done
3852
3853  cd ..
3854  rm -rf conftest.dir
3855else
3856  am_cv_CC_dependencies_compiler_type=none
3857fi
3858
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3861$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3862CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3863
3864 if
3865  test "x$enable_dependency_tracking" != xno \
3866  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3867  am__fastdepCC_TRUE=
3868  am__fastdepCC_FALSE='#'
3869else
3870  am__fastdepCC_TRUE='#'
3871  am__fastdepCC_FALSE=
3872fi
3873
3874
3875ac_ext=cpp
3876ac_cpp='$CXXCPP $CPPFLAGS'
3877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3880if test -z "$CXX"; then
3881  if test -n "$CCC"; then
3882    CXX=$CCC
3883  else
3884    if test -n "$ac_tool_prefix"; then
3885  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3886  do
3887    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890$as_echo_n "checking for $ac_word... " >&6; }
3891if test "${ac_cv_prog_CXX+set}" = set; then :
3892  $as_echo_n "(cached) " >&6
3893else
3894  if test -n "$CXX"; then
3895  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900  IFS=$as_save_IFS
3901  test -z "$as_dir" && as_dir=.
3902    for ac_exec_ext in '' $ac_executable_extensions; do
3903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906    break 2
3907  fi
3908done
3909  done
3910IFS=$as_save_IFS
3911
3912fi
3913fi
3914CXX=$ac_cv_prog_CXX
3915if test -n "$CXX"; then
3916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3917$as_echo "$CXX" >&6; }
3918else
3919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920$as_echo "no" >&6; }
3921fi
3922
3923
3924    test -n "$CXX" && break
3925  done
3926fi
3927if test -z "$CXX"; then
3928  ac_ct_CXX=$CXX
3929  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3930do
3931  # Extract the first word of "$ac_prog", so it can be a program name with args.
3932set dummy $ac_prog; ac_word=$2
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
3935if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3936  $as_echo_n "(cached) " >&6
3937else
3938  if test -n "$ac_ct_CXX"; then
3939  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944  IFS=$as_save_IFS
3945  test -z "$as_dir" && as_dir=.
3946    for ac_exec_ext in '' $ac_executable_extensions; do
3947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948    ac_cv_prog_ac_ct_CXX="$ac_prog"
3949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950    break 2
3951  fi
3952done
3953  done
3954IFS=$as_save_IFS
3955
3956fi
3957fi
3958ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3959if test -n "$ac_ct_CXX"; then
3960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3961$as_echo "$ac_ct_CXX" >&6; }
3962else
3963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
3965fi
3966
3967
3968  test -n "$ac_ct_CXX" && break
3969done
3970
3971  if test "x$ac_ct_CXX" = x; then
3972    CXX="g++"
3973  else
3974    case $cross_compiling:$ac_tool_warned in
3975yes:)
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3978ac_tool_warned=yes ;;
3979esac
3980    CXX=$ac_ct_CXX
3981  fi
3982fi
3983
3984  fi
3985fi
3986# Provide some information about the compiler.
3987$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3988set X $ac_compile
3989ac_compiler=$2
3990for ac_option in --version -v -V -qversion; do
3991  { { ac_try="$ac_compiler $ac_option >&5"
3992case "(($ac_try" in
3993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994  *) ac_try_echo=$ac_try;;
3995esac
3996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997$as_echo "$ac_try_echo"; } >&5
3998  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3999  ac_status=$?
4000  if test -s conftest.err; then
4001    sed '10a\
4002... rest of stderr output deleted ...
4003         10q' conftest.err >conftest.er1
4004    cat conftest.er1 >&5
4005    rm -f conftest.er1 conftest.err
4006  fi
4007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008  test $ac_status = 0; }
4009done
4010
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4012$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4013if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4014  $as_echo_n "(cached) " >&6
4015else
4016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h.  */
4018
4019int
4020main ()
4021{
4022#ifndef __GNUC__
4023       choke me
4024#endif
4025
4026  ;
4027  return 0;
4028}
4029_ACEOF
4030if ac_fn_cxx_try_compile "$LINENO"; then :
4031  ac_compiler_gnu=yes
4032else
4033  ac_compiler_gnu=no
4034fi
4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4037
4038fi
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4040$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4041if test $ac_compiler_gnu = yes; then
4042  GXX=yes
4043else
4044  GXX=
4045fi
4046ac_test_CXXFLAGS=${CXXFLAGS+set}
4047ac_save_CXXFLAGS=$CXXFLAGS
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4049$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4050if test "${ac_cv_prog_cxx_g+set}" = set; then :
4051  $as_echo_n "(cached) " >&6
4052else
4053  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4054   ac_cxx_werror_flag=yes
4055   ac_cv_prog_cxx_g=no
4056   CXXFLAGS="-g"
4057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059
4060int
4061main ()
4062{
4063
4064  ;
4065  return 0;
4066}
4067_ACEOF
4068if ac_fn_cxx_try_compile "$LINENO"; then :
4069  ac_cv_prog_cxx_g=yes
4070else
4071  CXXFLAGS=""
4072      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073/* end confdefs.h.  */
4074
4075int
4076main ()
4077{
4078
4079  ;
4080  return 0;
4081}
4082_ACEOF
4083if ac_fn_cxx_try_compile "$LINENO"; then :
4084
4085else
4086  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4087	 CXXFLAGS="-g"
4088	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h.  */
4090
4091int
4092main ()
4093{
4094
4095  ;
4096  return 0;
4097}
4098_ACEOF
4099if ac_fn_cxx_try_compile "$LINENO"; then :
4100  ac_cv_prog_cxx_g=yes
4101fi
4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103fi
4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105fi
4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4110$as_echo "$ac_cv_prog_cxx_g" >&6; }
4111if test "$ac_test_CXXFLAGS" = set; then
4112  CXXFLAGS=$ac_save_CXXFLAGS
4113elif test $ac_cv_prog_cxx_g = yes; then
4114  if test "$GXX" = yes; then
4115    CXXFLAGS="-g -O2"
4116  else
4117    CXXFLAGS="-g"
4118  fi
4119else
4120  if test "$GXX" = yes; then
4121    CXXFLAGS="-O2"
4122  else
4123    CXXFLAGS=
4124  fi
4125fi
4126ac_ext=c
4127ac_cpp='$CPP $CPPFLAGS'
4128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131
4132depcc="$CXX"  am_compiler_list=
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4135$as_echo_n "checking dependency style of $depcc... " >&6; }
4136if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4137  $as_echo_n "(cached) " >&6
4138else
4139  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140  # We make a subdir and do the tests there.  Otherwise we can end up
4141  # making bogus files that we don't know about and never remove.  For
4142  # instance it was reported that on HP-UX the gcc test will end up
4143  # making a dummy file named `D' -- because `-MD' means `put the output
4144  # in D'.
4145  rm -rf conftest.dir
4146  mkdir conftest.dir
4147  # Copy depcomp to subdir because otherwise we won't find it if we're
4148  # using a relative directory.
4149  cp "$am_depcomp" conftest.dir
4150  cd conftest.dir
4151  # We will build objects and dependencies in a subdirectory because
4152  # it helps to detect inapplicable dependency modes.  For instance
4153  # both Tru64's cc and ICC support -MD to output dependencies as a
4154  # side effect of compilation, but ICC will put the dependencies in
4155  # the current directory while Tru64 will put them in the object
4156  # directory.
4157  mkdir sub
4158
4159  am_cv_CXX_dependencies_compiler_type=none
4160  if test "$am_compiler_list" = ""; then
4161     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4162  fi
4163  am__universal=false
4164  case " $depcc " in #(
4165     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4166     esac
4167
4168  for depmode in $am_compiler_list; do
4169    # Setup a source with many dependencies, because some compilers
4170    # like to wrap large dependency lists on column 80 (with \), and
4171    # we should not choose a depcomp mode which is confused by this.
4172    #
4173    # We need to recreate these files for each test, as the compiler may
4174    # overwrite some of them when testing with obscure command lines.
4175    # This happens at least with the AIX C compiler.
4176    : > sub/conftest.c
4177    for i in 1 2 3 4 5 6; do
4178      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4179      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4180      # Solaris 8's {/usr,}/bin/sh.
4181      touch sub/conftst$i.h
4182    done
4183    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4184
4185    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4186    # mode.  It turns out that the SunPro C++ compiler does not properly
4187    # handle `-M -o', and we need to detect this.  Also, some Intel
4188    # versions had trouble with output in subdirs
4189    am__obj=sub/conftest.${OBJEXT-o}
4190    am__minus_obj="-o $am__obj"
4191    case $depmode in
4192    gcc)
4193      # This depmode causes a compiler race in universal mode.
4194      test "$am__universal" = false || continue
4195      ;;
4196    nosideeffect)
4197      # after this tag, mechanisms are not by side-effect, so they'll
4198      # only be used when explicitly requested
4199      if test "x$enable_dependency_tracking" = xyes; then
4200	continue
4201      else
4202	break
4203      fi
4204      ;;
4205    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4206      # This compiler won't grok `-c -o', but also, the minuso test has
4207      # not run yet.  These depmodes are late enough in the game, and
4208      # so weak that their functioning should not be impacted.
4209      am__obj=conftest.${OBJEXT-o}
4210      am__minus_obj=
4211      ;;
4212    none) break ;;
4213    esac
4214    if depmode=$depmode \
4215       source=sub/conftest.c object=$am__obj \
4216       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4217       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4218         >/dev/null 2>conftest.err &&
4219       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4220       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4221       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4222       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4223      # icc doesn't choke on unknown options, it will just issue warnings
4224      # or remarks (even with -Werror).  So we grep stderr for any message
4225      # that says an option was ignored or not supported.
4226      # When given -MP, icc 7.0 and 7.1 complain thusly:
4227      #   icc: Command line warning: ignoring option '-M'; no argument required
4228      # The diagnosis changed in icc 8.0:
4229      #   icc: Command line remark: option '-MP' not supported
4230      if (grep 'ignoring option' conftest.err ||
4231          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4232        am_cv_CXX_dependencies_compiler_type=$depmode
4233        break
4234      fi
4235    fi
4236  done
4237
4238  cd ..
4239  rm -rf conftest.dir
4240else
4241  am_cv_CXX_dependencies_compiler_type=none
4242fi
4243
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4246$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4247CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4248
4249 if
4250  test "x$enable_dependency_tracking" != xno \
4251  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4252  am__fastdepCXX_TRUE=
4253  am__fastdepCXX_FALSE='#'
4254else
4255  am__fastdepCXX_TRUE='#'
4256  am__fastdepCXX_FALSE=
4257fi
4258
4259
4260# AC_PROG_LIBTOOL
4261# AC_CONFIG_MACRO_DIR([..])
4262ac_config_files="$ac_config_files Makefile libcilkrts.spec"
4263
4264
4265ac_ext=c
4266ac_cpp='$CPP $CPPFLAGS'
4267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4271$as_echo_n "checking how to run the C preprocessor... " >&6; }
4272# On Suns, sometimes $CPP names a directory.
4273if test -n "$CPP" && test -d "$CPP"; then
4274  CPP=
4275fi
4276if test -z "$CPP"; then
4277  if test "${ac_cv_prog_CPP+set}" = set; then :
4278  $as_echo_n "(cached) " >&6
4279else
4280      # Double quotes because CPP needs to be expanded
4281    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4282    do
4283      ac_preproc_ok=false
4284for ac_c_preproc_warn_flag in '' yes
4285do
4286  # Use a header file that comes with gcc, so configuring glibc
4287  # with a fresh cross-compiler works.
4288  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289  # <limits.h> exists even on freestanding compilers.
4290  # On the NeXT, cc -E runs the code through the compiler's parser,
4291  # not just through cpp. "Syntax error" is here to catch this case.
4292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294#ifdef __STDC__
4295# include <limits.h>
4296#else
4297# include <assert.h>
4298#endif
4299		     Syntax error
4300_ACEOF
4301if ac_fn_c_try_cpp "$LINENO"; then :
4302
4303else
4304  # Broken: fails on valid input.
4305continue
4306fi
4307rm -f conftest.err conftest.$ac_ext
4308
4309  # OK, works on sane cases.  Now check whether nonexistent headers
4310  # can be detected and how.
4311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h.  */
4313#include <ac_nonexistent.h>
4314_ACEOF
4315if ac_fn_c_try_cpp "$LINENO"; then :
4316  # Broken: success on invalid input.
4317continue
4318else
4319  # Passes both tests.
4320ac_preproc_ok=:
4321break
4322fi
4323rm -f conftest.err conftest.$ac_ext
4324
4325done
4326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4327rm -f conftest.err conftest.$ac_ext
4328if $ac_preproc_ok; then :
4329  break
4330fi
4331
4332    done
4333    ac_cv_prog_CPP=$CPP
4334
4335fi
4336  CPP=$ac_cv_prog_CPP
4337else
4338  ac_cv_prog_CPP=$CPP
4339fi
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4341$as_echo "$CPP" >&6; }
4342ac_preproc_ok=false
4343for ac_c_preproc_warn_flag in '' yes
4344do
4345  # Use a header file that comes with gcc, so configuring glibc
4346  # with a fresh cross-compiler works.
4347  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4348  # <limits.h> exists even on freestanding compilers.
4349  # On the NeXT, cc -E runs the code through the compiler's parser,
4350  # not just through cpp. "Syntax error" is here to catch this case.
4351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353#ifdef __STDC__
4354# include <limits.h>
4355#else
4356# include <assert.h>
4357#endif
4358		     Syntax error
4359_ACEOF
4360if ac_fn_c_try_cpp "$LINENO"; then :
4361
4362else
4363  # Broken: fails on valid input.
4364continue
4365fi
4366rm -f conftest.err conftest.$ac_ext
4367
4368  # OK, works on sane cases.  Now check whether nonexistent headers
4369  # can be detected and how.
4370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371/* end confdefs.h.  */
4372#include <ac_nonexistent.h>
4373_ACEOF
4374if ac_fn_c_try_cpp "$LINENO"; then :
4375  # Broken: success on invalid input.
4376continue
4377else
4378  # Passes both tests.
4379ac_preproc_ok=:
4380break
4381fi
4382rm -f conftest.err conftest.$ac_ext
4383
4384done
4385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4386rm -f conftest.err conftest.$ac_ext
4387if $ac_preproc_ok; then :
4388
4389else
4390  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392as_fn_error "C preprocessor \"$CPP\" fails sanity check
4393See \`config.log' for more details." "$LINENO" 5; }
4394fi
4395
4396ac_ext=c
4397ac_cpp='$CPP $CPPFLAGS'
4398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401
4402
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4404$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4405if test "${ac_cv_path_GREP+set}" = set; then :
4406  $as_echo_n "(cached) " >&6
4407else
4408  if test -z "$GREP"; then
4409  ac_path_GREP_found=false
4410  # Loop through the user's path and test for each of PROGNAME-LIST
4411  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4413do
4414  IFS=$as_save_IFS
4415  test -z "$as_dir" && as_dir=.
4416    for ac_prog in grep ggrep; do
4417    for ac_exec_ext in '' $ac_executable_extensions; do
4418      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4419      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4420# Check for GNU ac_path_GREP and select it if it is found.
4421  # Check for GNU $ac_path_GREP
4422case `"$ac_path_GREP" --version 2>&1` in
4423*GNU*)
4424  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4425*)
4426  ac_count=0
4427  $as_echo_n 0123456789 >"conftest.in"
4428  while :
4429  do
4430    cat "conftest.in" "conftest.in" >"conftest.tmp"
4431    mv "conftest.tmp" "conftest.in"
4432    cp "conftest.in" "conftest.nl"
4433    $as_echo 'GREP' >> "conftest.nl"
4434    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436    as_fn_arith $ac_count + 1 && ac_count=$as_val
4437    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4438      # Best one so far, save it but keep looking for a better one
4439      ac_cv_path_GREP="$ac_path_GREP"
4440      ac_path_GREP_max=$ac_count
4441    fi
4442    # 10*(2^10) chars as input seems more than enough
4443    test $ac_count -gt 10 && break
4444  done
4445  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4446esac
4447
4448      $ac_path_GREP_found && break 3
4449    done
4450  done
4451  done
4452IFS=$as_save_IFS
4453  if test -z "$ac_cv_path_GREP"; then
4454    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4455  fi
4456else
4457  ac_cv_path_GREP=$GREP
4458fi
4459
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4462$as_echo "$ac_cv_path_GREP" >&6; }
4463 GREP="$ac_cv_path_GREP"
4464
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4467$as_echo_n "checking for egrep... " >&6; }
4468if test "${ac_cv_path_EGREP+set}" = set; then :
4469  $as_echo_n "(cached) " >&6
4470else
4471  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4472   then ac_cv_path_EGREP="$GREP -E"
4473   else
4474     if test -z "$EGREP"; then
4475  ac_path_EGREP_found=false
4476  # Loop through the user's path and test for each of PROGNAME-LIST
4477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4479do
4480  IFS=$as_save_IFS
4481  test -z "$as_dir" && as_dir=.
4482    for ac_prog in egrep; do
4483    for ac_exec_ext in '' $ac_executable_extensions; do
4484      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4485      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4486# Check for GNU ac_path_EGREP and select it if it is found.
4487  # Check for GNU $ac_path_EGREP
4488case `"$ac_path_EGREP" --version 2>&1` in
4489*GNU*)
4490  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4491*)
4492  ac_count=0
4493  $as_echo_n 0123456789 >"conftest.in"
4494  while :
4495  do
4496    cat "conftest.in" "conftest.in" >"conftest.tmp"
4497    mv "conftest.tmp" "conftest.in"
4498    cp "conftest.in" "conftest.nl"
4499    $as_echo 'EGREP' >> "conftest.nl"
4500    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502    as_fn_arith $ac_count + 1 && ac_count=$as_val
4503    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4504      # Best one so far, save it but keep looking for a better one
4505      ac_cv_path_EGREP="$ac_path_EGREP"
4506      ac_path_EGREP_max=$ac_count
4507    fi
4508    # 10*(2^10) chars as input seems more than enough
4509    test $ac_count -gt 10 && break
4510  done
4511  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512esac
4513
4514      $ac_path_EGREP_found && break 3
4515    done
4516  done
4517  done
4518IFS=$as_save_IFS
4519  if test -z "$ac_cv_path_EGREP"; then
4520    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4521  fi
4522else
4523  ac_cv_path_EGREP=$EGREP
4524fi
4525
4526   fi
4527fi
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4529$as_echo "$ac_cv_path_EGREP" >&6; }
4530 EGREP="$ac_cv_path_EGREP"
4531
4532
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4534$as_echo_n "checking for ANSI C header files... " >&6; }
4535if test "${ac_cv_header_stdc+set}" = set; then :
4536  $as_echo_n "(cached) " >&6
4537else
4538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h.  */
4540#include <stdlib.h>
4541#include <stdarg.h>
4542#include <string.h>
4543#include <float.h>
4544
4545int
4546main ()
4547{
4548
4549  ;
4550  return 0;
4551}
4552_ACEOF
4553if ac_fn_c_try_compile "$LINENO"; then :
4554  ac_cv_header_stdc=yes
4555else
4556  ac_cv_header_stdc=no
4557fi
4558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559
4560if test $ac_cv_header_stdc = yes; then
4561  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563/* end confdefs.h.  */
4564#include <string.h>
4565
4566_ACEOF
4567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4568  $EGREP "memchr" >/dev/null 2>&1; then :
4569
4570else
4571  ac_cv_header_stdc=no
4572fi
4573rm -f conftest*
4574
4575fi
4576
4577if test $ac_cv_header_stdc = yes; then
4578  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h.  */
4581#include <stdlib.h>
4582
4583_ACEOF
4584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585  $EGREP "free" >/dev/null 2>&1; then :
4586
4587else
4588  ac_cv_header_stdc=no
4589fi
4590rm -f conftest*
4591
4592fi
4593
4594if test $ac_cv_header_stdc = yes; then
4595  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4596  if test "$cross_compiling" = yes; then :
4597  :
4598else
4599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h.  */
4601#include <ctype.h>
4602#include <stdlib.h>
4603#if ((' ' & 0x0FF) == 0x020)
4604# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4605# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4606#else
4607# define ISLOWER(c) \
4608		   (('a' <= (c) && (c) <= 'i') \
4609		     || ('j' <= (c) && (c) <= 'r') \
4610		     || ('s' <= (c) && (c) <= 'z'))
4611# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4612#endif
4613
4614#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4615int
4616main ()
4617{
4618  int i;
4619  for (i = 0; i < 256; i++)
4620    if (XOR (islower (i), ISLOWER (i))
4621	|| toupper (i) != TOUPPER (i))
4622      return 2;
4623  return 0;
4624}
4625_ACEOF
4626if ac_fn_c_try_run "$LINENO"; then :
4627
4628else
4629  ac_cv_header_stdc=no
4630fi
4631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4632  conftest.$ac_objext conftest.beam conftest.$ac_ext
4633fi
4634
4635fi
4636fi
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4638$as_echo "$ac_cv_header_stdc" >&6; }
4639if test $ac_cv_header_stdc = yes; then
4640
4641$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4642
4643fi
4644
4645# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4646for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4647		  inttypes.h stdint.h unistd.h
4648do :
4649  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4650ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4651"
4652eval as_val=\$$as_ac_Header
4653   if test "x$as_val" = x""yes; then :
4654  cat >>confdefs.h <<_ACEOF
4655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4656_ACEOF
4657
4658fi
4659
4660done
4661
4662
4663# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4664# for constant arguments.  Useless!
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4666$as_echo_n "checking for working alloca.h... " >&6; }
4667if test "${ac_cv_working_alloca_h+set}" = set; then :
4668  $as_echo_n "(cached) " >&6
4669else
4670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671/* end confdefs.h.  */
4672#include <alloca.h>
4673int
4674main ()
4675{
4676char *p = (char *) alloca (2 * sizeof (int));
4677			  if (p) return 0;
4678  ;
4679  return 0;
4680}
4681_ACEOF
4682if ac_fn_c_try_link "$LINENO"; then :
4683  ac_cv_working_alloca_h=yes
4684else
4685  ac_cv_working_alloca_h=no
4686fi
4687rm -f core conftest.err conftest.$ac_objext \
4688    conftest$ac_exeext conftest.$ac_ext
4689fi
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4691$as_echo "$ac_cv_working_alloca_h" >&6; }
4692if test $ac_cv_working_alloca_h = yes; then
4693
4694$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4695
4696fi
4697
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4699$as_echo_n "checking for alloca... " >&6; }
4700if test "${ac_cv_func_alloca_works+set}" = set; then :
4701  $as_echo_n "(cached) " >&6
4702else
4703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h.  */
4705#ifdef __GNUC__
4706# define alloca __builtin_alloca
4707#else
4708# ifdef _MSC_VER
4709#  include <malloc.h>
4710#  define alloca _alloca
4711# else
4712#  ifdef HAVE_ALLOCA_H
4713#   include <alloca.h>
4714#  else
4715#   ifdef _AIX
4716 #pragma alloca
4717#   else
4718#    ifndef alloca /* predefined by HP cc +Olibcalls */
4719char *alloca ();
4720#    endif
4721#   endif
4722#  endif
4723# endif
4724#endif
4725
4726int
4727main ()
4728{
4729char *p = (char *) alloca (1);
4730				    if (p) return 0;
4731  ;
4732  return 0;
4733}
4734_ACEOF
4735if ac_fn_c_try_link "$LINENO"; then :
4736  ac_cv_func_alloca_works=yes
4737else
4738  ac_cv_func_alloca_works=no
4739fi
4740rm -f core conftest.err conftest.$ac_objext \
4741    conftest$ac_exeext conftest.$ac_ext
4742fi
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4744$as_echo "$ac_cv_func_alloca_works" >&6; }
4745
4746if test $ac_cv_func_alloca_works = yes; then
4747
4748$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4749
4750else
4751  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4752# that cause trouble.  Some versions do not even contain alloca or
4753# contain a buggy version.  If you still want to use their alloca,
4754# use ar to extract alloca.o from them instead of compiling alloca.c.
4755
4756ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4757
4758$as_echo "#define C_ALLOCA 1" >>confdefs.h
4759
4760
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4762$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4763if test "${ac_cv_os_cray+set}" = set; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h.  */
4768#if defined CRAY && ! defined CRAY2
4769webecray
4770#else
4771wenotbecray
4772#endif
4773
4774_ACEOF
4775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776  $EGREP "webecray" >/dev/null 2>&1; then :
4777  ac_cv_os_cray=yes
4778else
4779  ac_cv_os_cray=no
4780fi
4781rm -f conftest*
4782
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4785$as_echo "$ac_cv_os_cray" >&6; }
4786if test $ac_cv_os_cray = yes; then
4787  for ac_func in _getb67 GETB67 getb67; do
4788    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4789ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4790eval as_val=\$$as_ac_var
4791   if test "x$as_val" = x""yes; then :
4792
4793cat >>confdefs.h <<_ACEOF
4794#define CRAY_STACKSEG_END $ac_func
4795_ACEOF
4796
4797    break
4798fi
4799
4800  done
4801fi
4802
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4804$as_echo_n "checking stack direction for C alloca... " >&6; }
4805if test "${ac_cv_c_stack_direction+set}" = set; then :
4806  $as_echo_n "(cached) " >&6
4807else
4808  if test "$cross_compiling" = yes; then :
4809  ac_cv_c_stack_direction=0
4810else
4811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h.  */
4813$ac_includes_default
4814int
4815find_stack_direction ()
4816{
4817  static char *addr = 0;
4818  auto char dummy;
4819  if (addr == 0)
4820    {
4821      addr = &dummy;
4822      return find_stack_direction ();
4823    }
4824  else
4825    return (&dummy > addr) ? 1 : -1;
4826}
4827
4828int
4829main ()
4830{
4831  return find_stack_direction () < 0;
4832}
4833_ACEOF
4834if ac_fn_c_try_run "$LINENO"; then :
4835  ac_cv_c_stack_direction=1
4836else
4837  ac_cv_c_stack_direction=-1
4838fi
4839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4840  conftest.$ac_objext conftest.beam conftest.$ac_ext
4841fi
4842
4843fi
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4845$as_echo "$ac_cv_c_stack_direction" >&6; }
4846cat >>confdefs.h <<_ACEOF
4847#define STACK_DIRECTION $ac_cv_c_stack_direction
4848_ACEOF
4849
4850
4851fi
4852
4853
4854# Check whether the target supports protected visibility.
4855save_CFLAGS="$CFLAGS"
4856CFLAGS="$CFLAGS -Werror"
4857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858/* end confdefs.h.  */
4859void __attribute__((visibility("protected"))) foo(void) { }
4860int
4861main ()
4862{
4863
4864  ;
4865  return 0;
4866}
4867_ACEOF
4868if ac_fn_c_try_compile "$LINENO"; then :
4869  libcilkrts_cv_have_attribute_visibility=yes
4870else
4871  libcilkrts_cv_have_attribute_visibility=no
4872fi
4873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874CFLAGS="$save_CFLAGS"
4875if test $libcilkrts_cv_have_attribute_visibility = yes; then
4876
4877$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
4878
4879fi
4880
4881# Get target configury.
4882. ${srcdir}/configure.tgt
4883if test -n "$UNSUPPORTED"; then
4884   as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
4885fi
4886
4887if test "${multilib}" = "yes"; then
4888  multilib_arg="--enable-multilib"
4889else
4890  multilib_arg=
4891fi
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4894$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4895# Check whether --enable-version-specific-runtime-libs was given.
4896if test "${enable_version_specific_runtime_libs+set}" = set; then :
4897  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4898    yes) enable_version_specific_runtime_libs=yes ;;
4899    no)  enable_version_specific_runtime_libs=no ;;
4900    *)   as_fn_error "Unknown argument to enable/disable version-specific libs
4901" "$LINENO" 5;;
4902   esac
4903else
4904  enable_version_specific_runtime_libs=no
4905fi
4906
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4908$as_echo "$enable_version_specific_runtime_libs" >&6; }
4909
4910
4911# Calculate toolexeclibdir
4912# Also toolexecdir, though it's only used in toolexeclibdir
4913case ${enable_version_specific_runtime_libs} in
4914  yes)
4915    # Need the gcc compiler version to know where to install libraries
4916    # and header files if --enable-version-specific-runtime-libs option
4917    # is selected.
4918    toolexecdir='$(libdir)/gcc/$(target_alias)'
4919    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4920    ;;
4921  no)
4922    if test -n "$with_cross_host" &&
4923       test x"$with_cross_host" != x"no"; then
4924      # Install a library built with a cross compiler in tooldir, not libdir.
4925      toolexecdir='$(exec_prefix)/$(target_alias)'
4926      toolexeclibdir='$(toolexecdir)/lib'
4927    else
4928      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4929      toolexeclibdir='$(libdir)'
4930    fi
4931    multi_os_directory=`$CC -print-multi-os-directory`
4932    case $multi_os_directory in
4933      .) ;; # Avoid trailing /.
4934      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4935    esac
4936    ;;
4937esac
4938
4939# Set config_dir based on the target.  config_dir specifies where to get
4940# target-specific files.  The generic implementation is incomplete, but
4941# contains information on what's needed
4942case "${target}" in
4943
4944  x86_64-*-*)
4945    config_dir="x86"
4946    ;;
4947
4948  i?86-*-*)
4949    config_dir="x86"
4950    ;;
4951
4952  *)
4953    config_dir="generic"
4954    ;;
4955
4956esac
4957
4958
4959# We have linker scripts for appropriate operating systems
4960linux_linker_script=no
4961case "${host}" in
4962    *-*-linux*)
4963        linux_linker_script=yes
4964        ;;
4965esac
4966 if test "$linux_linker_script" = "yes"; then
4967  LINUX_LINKER_SCRIPT_TRUE=
4968  LINUX_LINKER_SCRIPT_FALSE='#'
4969else
4970  LINUX_LINKER_SCRIPT_TRUE='#'
4971  LINUX_LINKER_SCRIPT_FALSE=
4972fi
4973
4974
4975mac_linker_script=no
4976case "${host}" in
4977    *-*-apple*)
4978        mac_linker_script=yes
4979        ;;
4980esac
4981 if test "$mac_linker_script" = "yes"; then
4982  MAC_LINKER_SCRIPT_TRUE=
4983  MAC_LINKER_SCRIPT_FALSE='#'
4984else
4985  MAC_LINKER_SCRIPT_TRUE='#'
4986  MAC_LINKER_SCRIPT_FALSE=
4987fi
4988
4989
4990enable_dlopen=yes
4991
4992
4993
4994case `pwd` in
4995  *\ * | *\	*)
4996    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4997$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4998esac
4999
5000
5001
5002macro_version='2.2.7a'
5003macro_revision='1.3134'
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017ltmain="$ac_aux_dir/ltmain.sh"
5018
5019# Backslashify metacharacters that are still active within
5020# double-quoted strings.
5021sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5022
5023# Same as above, but do not quote variable references.
5024double_quote_subst='s/\(["`\\]\)/\\\1/g'
5025
5026# Sed substitution to delay expansion of an escaped shell variable in a
5027# double_quote_subst'ed string.
5028delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5029
5030# Sed substitution to delay expansion of an escaped single quote.
5031delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5032
5033# Sed substitution to avoid accidental globbing in evaled expressions
5034no_glob_subst='s/\*/\\\*/g'
5035
5036ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5037ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5038ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5039
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5041$as_echo_n "checking how to print strings... " >&6; }
5042# Test print first, because it will be a builtin if present.
5043if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5044   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5045  ECHO='print -r --'
5046elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5047  ECHO='printf %s\n'
5048else
5049  # Use this function as a fallback that always works.
5050  func_fallback_echo ()
5051  {
5052    eval 'cat <<_LTECHO_EOF
5053$1
5054_LTECHO_EOF'
5055  }
5056  ECHO='func_fallback_echo'
5057fi
5058
5059# func_echo_all arg...
5060# Invoke $ECHO with all args, space-separated.
5061func_echo_all ()
5062{
5063    $ECHO ""
5064}
5065
5066case "$ECHO" in
5067  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5068$as_echo "printf" >&6; } ;;
5069  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5070$as_echo "print -r" >&6; } ;;
5071  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5072$as_echo "cat" >&6; } ;;
5073esac
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5089$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5090if test "${ac_cv_path_SED+set}" = set; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5094     for ac_i in 1 2 3 4 5 6 7; do
5095       ac_script="$ac_script$as_nl$ac_script"
5096     done
5097     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5098     { ac_script=; unset ac_script;}
5099     if test -z "$SED"; then
5100  ac_path_SED_found=false
5101  # Loop through the user's path and test for each of PROGNAME-LIST
5102  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
5104do
5105  IFS=$as_save_IFS
5106  test -z "$as_dir" && as_dir=.
5107    for ac_prog in sed gsed; do
5108    for ac_exec_ext in '' $ac_executable_extensions; do
5109      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5110      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5111# Check for GNU ac_path_SED and select it if it is found.
5112  # Check for GNU $ac_path_SED
5113case `"$ac_path_SED" --version 2>&1` in
5114*GNU*)
5115  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5116*)
5117  ac_count=0
5118  $as_echo_n 0123456789 >"conftest.in"
5119  while :
5120  do
5121    cat "conftest.in" "conftest.in" >"conftest.tmp"
5122    mv "conftest.tmp" "conftest.in"
5123    cp "conftest.in" "conftest.nl"
5124    $as_echo '' >> "conftest.nl"
5125    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127    as_fn_arith $ac_count + 1 && ac_count=$as_val
5128    if test $ac_count -gt ${ac_path_SED_max-0}; then
5129      # Best one so far, save it but keep looking for a better one
5130      ac_cv_path_SED="$ac_path_SED"
5131      ac_path_SED_max=$ac_count
5132    fi
5133    # 10*(2^10) chars as input seems more than enough
5134    test $ac_count -gt 10 && break
5135  done
5136  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137esac
5138
5139      $ac_path_SED_found && break 3
5140    done
5141  done
5142  done
5143IFS=$as_save_IFS
5144  if test -z "$ac_cv_path_SED"; then
5145    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5146  fi
5147else
5148  ac_cv_path_SED=$SED
5149fi
5150
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5153$as_echo "$ac_cv_path_SED" >&6; }
5154 SED="$ac_cv_path_SED"
5155  rm -f conftest.sed
5156
5157test -z "$SED" && SED=sed
5158Xsed="$SED -e 1s/^X//"
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5171$as_echo_n "checking for fgrep... " >&6; }
5172if test "${ac_cv_path_FGREP+set}" = set; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5176   then ac_cv_path_FGREP="$GREP -F"
5177   else
5178     if test -z "$FGREP"; then
5179  ac_path_FGREP_found=false
5180  # Loop through the user's path and test for each of PROGNAME-LIST
5181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186    for ac_prog in fgrep; do
5187    for ac_exec_ext in '' $ac_executable_extensions; do
5188      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5189      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5190# Check for GNU ac_path_FGREP and select it if it is found.
5191  # Check for GNU $ac_path_FGREP
5192case `"$ac_path_FGREP" --version 2>&1` in
5193*GNU*)
5194  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5195*)
5196  ac_count=0
5197  $as_echo_n 0123456789 >"conftest.in"
5198  while :
5199  do
5200    cat "conftest.in" "conftest.in" >"conftest.tmp"
5201    mv "conftest.tmp" "conftest.in"
5202    cp "conftest.in" "conftest.nl"
5203    $as_echo 'FGREP' >> "conftest.nl"
5204    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5205    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5206    as_fn_arith $ac_count + 1 && ac_count=$as_val
5207    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5208      # Best one so far, save it but keep looking for a better one
5209      ac_cv_path_FGREP="$ac_path_FGREP"
5210      ac_path_FGREP_max=$ac_count
5211    fi
5212    # 10*(2^10) chars as input seems more than enough
5213    test $ac_count -gt 10 && break
5214  done
5215  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5216esac
5217
5218      $ac_path_FGREP_found && break 3
5219    done
5220  done
5221  done
5222IFS=$as_save_IFS
5223  if test -z "$ac_cv_path_FGREP"; then
5224    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225  fi
5226else
5227  ac_cv_path_FGREP=$FGREP
5228fi
5229
5230   fi
5231fi
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5233$as_echo "$ac_cv_path_FGREP" >&6; }
5234 FGREP="$ac_cv_path_FGREP"
5235
5236
5237test -z "$GREP" && GREP=grep
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257# Check whether --with-gnu-ld was given.
5258if test "${with_gnu_ld+set}" = set; then :
5259  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5260else
5261  with_gnu_ld=no
5262fi
5263
5264ac_prog=ld
5265if test "$GCC" = yes; then
5266  # Check if gcc -print-prog-name=ld gives a path.
5267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5268$as_echo_n "checking for ld used by $CC... " >&6; }
5269  case $host in
5270  *-*-mingw*)
5271    # gcc leaves a trailing carriage return which upsets mingw
5272    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5273  *)
5274    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5275  esac
5276  case $ac_prog in
5277    # Accept absolute paths.
5278    [\\/]* | ?:[\\/]*)
5279      re_direlt='/[^/][^/]*/\.\./'
5280      # Canonicalize the pathname of ld
5281      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5282      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5283	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5284      done
5285      test -z "$LD" && LD="$ac_prog"
5286      ;;
5287  "")
5288    # If it fails, then pretend we aren't using GCC.
5289    ac_prog=ld
5290    ;;
5291  *)
5292    # If it is relative, then search for the first ld in PATH.
5293    with_gnu_ld=unknown
5294    ;;
5295  esac
5296elif test "$with_gnu_ld" = yes; then
5297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5298$as_echo_n "checking for GNU ld... " >&6; }
5299else
5300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5301$as_echo_n "checking for non-GNU ld... " >&6; }
5302fi
5303if test "${lt_cv_path_LD+set}" = set; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  if test -z "$LD"; then
5307  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5308  for ac_dir in $PATH; do
5309    IFS="$lt_save_ifs"
5310    test -z "$ac_dir" && ac_dir=.
5311    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5312      lt_cv_path_LD="$ac_dir/$ac_prog"
5313      # Check to see if the program is GNU ld.  I'd rather use --version,
5314      # but apparently some variants of GNU ld only accept -v.
5315      # Break only if it was the GNU/non-GNU ld that we prefer.
5316      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5317      *GNU* | *'with BFD'*)
5318	test "$with_gnu_ld" != no && break
5319	;;
5320      *)
5321	test "$with_gnu_ld" != yes && break
5322	;;
5323      esac
5324    fi
5325  done
5326  IFS="$lt_save_ifs"
5327else
5328  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5329fi
5330fi
5331
5332LD="$lt_cv_path_LD"
5333if test -n "$LD"; then
5334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5335$as_echo "$LD" >&6; }
5336else
5337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338$as_echo "no" >&6; }
5339fi
5340test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5342$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5343if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5347case `$LD -v 2>&1 </dev/null` in
5348*GNU* | *'with BFD'*)
5349  lt_cv_prog_gnu_ld=yes
5350  ;;
5351*)
5352  lt_cv_prog_gnu_ld=no
5353  ;;
5354esac
5355fi
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5357$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5358with_gnu_ld=$lt_cv_prog_gnu_ld
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5369$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5370if test "${lt_cv_path_NM+set}" = set; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373  if test -n "$NM"; then
5374  # Let the user override the test.
5375  lt_cv_path_NM="$NM"
5376else
5377  lt_nm_to_check="${ac_tool_prefix}nm"
5378  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5379    lt_nm_to_check="$lt_nm_to_check nm"
5380  fi
5381  for lt_tmp_nm in $lt_nm_to_check; do
5382    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5383    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5384      IFS="$lt_save_ifs"
5385      test -z "$ac_dir" && ac_dir=.
5386      tmp_nm="$ac_dir/$lt_tmp_nm"
5387      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5388	# Check to see if the nm accepts a BSD-compat flag.
5389	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5390	#   nm: unknown option "B" ignored
5391	# Tru64's nm complains that /dev/null is an invalid object file
5392	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5393	*/dev/null* | *'Invalid file or object type'*)
5394	  lt_cv_path_NM="$tmp_nm -B"
5395	  break
5396	  ;;
5397	*)
5398	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5399	  */dev/null*)
5400	    lt_cv_path_NM="$tmp_nm -p"
5401	    break
5402	    ;;
5403	  *)
5404	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5405	    continue # so that we can try to find one that supports BSD flags
5406	    ;;
5407	  esac
5408	  ;;
5409	esac
5410      fi
5411    done
5412    IFS="$lt_save_ifs"
5413  done
5414  : ${lt_cv_path_NM=no}
5415fi
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5418$as_echo "$lt_cv_path_NM" >&6; }
5419if test "$lt_cv_path_NM" != "no"; then
5420  NM="$lt_cv_path_NM"
5421else
5422  # Didn't find any BSD compatible name lister, look for dumpbin.
5423  if test -n "$DUMPBIN"; then :
5424    # Let the user override the test.
5425  else
5426    if test -n "$ac_tool_prefix"; then
5427  for ac_prog in dumpbin "link -dump"
5428  do
5429    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5430set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432$as_echo_n "checking for $ac_word... " >&6; }
5433if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436  if test -n "$DUMPBIN"; then
5437  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442  IFS=$as_save_IFS
5443  test -z "$as_dir" && as_dir=.
5444    for ac_exec_ext in '' $ac_executable_extensions; do
5445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448    break 2
5449  fi
5450done
5451  done
5452IFS=$as_save_IFS
5453
5454fi
5455fi
5456DUMPBIN=$ac_cv_prog_DUMPBIN
5457if test -n "$DUMPBIN"; then
5458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5459$as_echo "$DUMPBIN" >&6; }
5460else
5461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462$as_echo "no" >&6; }
5463fi
5464
5465
5466    test -n "$DUMPBIN" && break
5467  done
5468fi
5469if test -z "$DUMPBIN"; then
5470  ac_ct_DUMPBIN=$DUMPBIN
5471  for ac_prog in dumpbin "link -dump"
5472do
5473  # Extract the first word of "$ac_prog", so it can be a program name with args.
5474set dummy $ac_prog; ac_word=$2
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476$as_echo_n "checking for $ac_word... " >&6; }
5477if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5478  $as_echo_n "(cached) " >&6
5479else
5480  if test -n "$ac_ct_DUMPBIN"; then
5481  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5482else
5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486  IFS=$as_save_IFS
5487  test -z "$as_dir" && as_dir=.
5488    for ac_exec_ext in '' $ac_executable_extensions; do
5489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492    break 2
5493  fi
5494done
5495  done
5496IFS=$as_save_IFS
5497
5498fi
5499fi
5500ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5501if test -n "$ac_ct_DUMPBIN"; then
5502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5503$as_echo "$ac_ct_DUMPBIN" >&6; }
5504else
5505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506$as_echo "no" >&6; }
5507fi
5508
5509
5510  test -n "$ac_ct_DUMPBIN" && break
5511done
5512
5513  if test "x$ac_ct_DUMPBIN" = x; then
5514    DUMPBIN=":"
5515  else
5516    case $cross_compiling:$ac_tool_warned in
5517yes:)
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5520ac_tool_warned=yes ;;
5521esac
5522    DUMPBIN=$ac_ct_DUMPBIN
5523  fi
5524fi
5525
5526    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5527    *COFF*)
5528      DUMPBIN="$DUMPBIN -symbols"
5529      ;;
5530    *)
5531      DUMPBIN=:
5532      ;;
5533    esac
5534  fi
5535
5536  if test "$DUMPBIN" != ":"; then
5537    NM="$DUMPBIN"
5538  fi
5539fi
5540test -z "$NM" && NM=nm
5541
5542
5543
5544
5545
5546
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5548$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5549if test "${lt_cv_nm_interface+set}" = set; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  lt_cv_nm_interface="BSD nm"
5553  echo "int some_variable = 0;" > conftest.$ac_ext
5554  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5555  (eval "$ac_compile" 2>conftest.err)
5556  cat conftest.err >&5
5557  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5558  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5559  cat conftest.err >&5
5560  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5561  cat conftest.out >&5
5562  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5563    lt_cv_nm_interface="MS dumpbin"
5564  fi
5565  rm -f conftest*
5566fi
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5568$as_echo "$lt_cv_nm_interface" >&6; }
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5571$as_echo_n "checking whether ln -s works... " >&6; }
5572LN_S=$as_ln_s
5573if test "$LN_S" = "ln -s"; then
5574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5575$as_echo "yes" >&6; }
5576else
5577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5578$as_echo "no, using $LN_S" >&6; }
5579fi
5580
5581# find the maximum length of command line arguments
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5583$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5584if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587    i=0
5588  teststring="ABCD"
5589
5590  case $build_os in
5591  msdosdjgpp*)
5592    # On DJGPP, this test can blow up pretty badly due to problems in libc
5593    # (any single argument exceeding 2000 bytes causes a buffer overrun
5594    # during glob expansion).  Even if it were fixed, the result of this
5595    # check would be larger than it should be.
5596    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5597    ;;
5598
5599  gnu*)
5600    # Under GNU Hurd, this test is not required because there is
5601    # no limit to the length of command line arguments.
5602    # Libtool will interpret -1 as no limit whatsoever
5603    lt_cv_sys_max_cmd_len=-1;
5604    ;;
5605
5606  cygwin* | mingw* | cegcc*)
5607    # On Win9x/ME, this test blows up -- it succeeds, but takes
5608    # about 5 minutes as the teststring grows exponentially.
5609    # Worse, since 9x/ME are not pre-emptively multitasking,
5610    # you end up with a "frozen" computer, even though with patience
5611    # the test eventually succeeds (with a max line length of 256k).
5612    # Instead, let's just punt: use the minimum linelength reported by
5613    # all of the supported platforms: 8192 (on NT/2K/XP).
5614    lt_cv_sys_max_cmd_len=8192;
5615    ;;
5616
5617  mint*)
5618    # On MiNT this can take a long time and run out of memory.
5619    lt_cv_sys_max_cmd_len=8192;
5620    ;;
5621
5622  amigaos*)
5623    # On AmigaOS with pdksh, this test takes hours, literally.
5624    # So we just punt and use a minimum line length of 8192.
5625    lt_cv_sys_max_cmd_len=8192;
5626    ;;
5627
5628  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5629    # This has been around since 386BSD, at least.  Likely further.
5630    if test -x /sbin/sysctl; then
5631      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5632    elif test -x /usr/sbin/sysctl; then
5633      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5634    else
5635      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5636    fi
5637    # And add a safety zone
5638    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5639    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5640    ;;
5641
5642  interix*)
5643    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5644    lt_cv_sys_max_cmd_len=196608
5645    ;;
5646
5647  osf*)
5648    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5649    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5650    # nice to cause kernel panics so lets avoid the loop below.
5651    # First set a reasonable default.
5652    lt_cv_sys_max_cmd_len=16384
5653    #
5654    if test -x /sbin/sysconfig; then
5655      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5656        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5657      esac
5658    fi
5659    ;;
5660  sco3.2v5*)
5661    lt_cv_sys_max_cmd_len=102400
5662    ;;
5663  sysv5* | sco5v6* | sysv4.2uw2*)
5664    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5665    if test -n "$kargmax"; then
5666      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5667    else
5668      lt_cv_sys_max_cmd_len=32768
5669    fi
5670    ;;
5671  *)
5672    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5673    if test -n "$lt_cv_sys_max_cmd_len"; then
5674      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5675      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5676    else
5677      # Make teststring a little bigger before we do anything with it.
5678      # a 1K string should be a reasonable start.
5679      for i in 1 2 3 4 5 6 7 8 ; do
5680        teststring=$teststring$teststring
5681      done
5682      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5683      # If test is not a shell built-in, we'll probably end up computing a
5684      # maximum length that is only half of the actual maximum length, but
5685      # we can't tell.
5686      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5687	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5688	      test $i != 17 # 1/2 MB should be enough
5689      do
5690        i=`expr $i + 1`
5691        teststring=$teststring$teststring
5692      done
5693      # Only check the string length outside the loop.
5694      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5695      teststring=
5696      # Add a significant safety factor because C++ compilers can tack on
5697      # massive amounts of additional arguments before passing them to the
5698      # linker.  It appears as though 1/2 is a usable value.
5699      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5700    fi
5701    ;;
5702  esac
5703
5704fi
5705
5706if test -n $lt_cv_sys_max_cmd_len ; then
5707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5708$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5709else
5710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5711$as_echo "none" >&6; }
5712fi
5713max_cmd_len=$lt_cv_sys_max_cmd_len
5714
5715
5716
5717
5718
5719
5720: ${CP="cp -f"}
5721: ${MV="mv -f"}
5722: ${RM="rm -f"}
5723
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5725$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5726# Try some XSI features
5727xsi_shell=no
5728( _lt_dummy="a/b/c"
5729  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5730      = c,a/b,, \
5731    && eval 'test $(( 1 + 1 )) -eq 2 \
5732    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5733  && xsi_shell=yes
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5735$as_echo "$xsi_shell" >&6; }
5736
5737
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5739$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5740lt_shell_append=no
5741( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5742    >/dev/null 2>&1 \
5743  && lt_shell_append=yes
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5745$as_echo "$lt_shell_append" >&6; }
5746
5747
5748if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5749  lt_unset=unset
5750else
5751  lt_unset=false
5752fi
5753
5754
5755
5756
5757
5758# test EBCDIC or ASCII
5759case `echo X|tr X '\101'` in
5760 A) # ASCII based system
5761    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5762  lt_SP2NL='tr \040 \012'
5763  lt_NL2SP='tr \015\012 \040\040'
5764  ;;
5765 *) # EBCDIC based system
5766  lt_SP2NL='tr \100 \n'
5767  lt_NL2SP='tr \r\n \100\100'
5768  ;;
5769esac
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5780$as_echo_n "checking for $LD option to reload object files... " >&6; }
5781if test "${lt_cv_ld_reload_flag+set}" = set; then :
5782  $as_echo_n "(cached) " >&6
5783else
5784  lt_cv_ld_reload_flag='-r'
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5787$as_echo "$lt_cv_ld_reload_flag" >&6; }
5788reload_flag=$lt_cv_ld_reload_flag
5789case $reload_flag in
5790"" | " "*) ;;
5791*) reload_flag=" $reload_flag" ;;
5792esac
5793reload_cmds='$LD$reload_flag -o $output$reload_objs'
5794case $host_os in
5795  darwin*)
5796    if test "$GCC" = yes; then
5797      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5798    else
5799      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5800    fi
5801    ;;
5802esac
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812if test -n "$ac_tool_prefix"; then
5813  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5814set dummy ${ac_tool_prefix}objdump; ac_word=$2
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816$as_echo_n "checking for $ac_word... " >&6; }
5817if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820  if test -n "$OBJDUMP"; then
5821  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826  IFS=$as_save_IFS
5827  test -z "$as_dir" && as_dir=.
5828    for ac_exec_ext in '' $ac_executable_extensions; do
5829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832    break 2
5833  fi
5834done
5835  done
5836IFS=$as_save_IFS
5837
5838fi
5839fi
5840OBJDUMP=$ac_cv_prog_OBJDUMP
5841if test -n "$OBJDUMP"; then
5842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5843$as_echo "$OBJDUMP" >&6; }
5844else
5845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846$as_echo "no" >&6; }
5847fi
5848
5849
5850fi
5851if test -z "$ac_cv_prog_OBJDUMP"; then
5852  ac_ct_OBJDUMP=$OBJDUMP
5853  # Extract the first word of "objdump", so it can be a program name with args.
5854set dummy objdump; ac_word=$2
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856$as_echo_n "checking for $ac_word... " >&6; }
5857if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5858  $as_echo_n "(cached) " >&6
5859else
5860  if test -n "$ac_ct_OBJDUMP"; then
5861  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866  IFS=$as_save_IFS
5867  test -z "$as_dir" && as_dir=.
5868    for ac_exec_ext in '' $ac_executable_extensions; do
5869  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872    break 2
5873  fi
5874done
5875  done
5876IFS=$as_save_IFS
5877
5878fi
5879fi
5880ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5881if test -n "$ac_ct_OBJDUMP"; then
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5883$as_echo "$ac_ct_OBJDUMP" >&6; }
5884else
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886$as_echo "no" >&6; }
5887fi
5888
5889  if test "x$ac_ct_OBJDUMP" = x; then
5890    OBJDUMP="false"
5891  else
5892    case $cross_compiling:$ac_tool_warned in
5893yes:)
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5896ac_tool_warned=yes ;;
5897esac
5898    OBJDUMP=$ac_ct_OBJDUMP
5899  fi
5900else
5901  OBJDUMP="$ac_cv_prog_OBJDUMP"
5902fi
5903
5904test -z "$OBJDUMP" && OBJDUMP=objdump
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5915$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5916if test "${lt_cv_deplibs_check_method+set}" = set; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  lt_cv_file_magic_cmd='$MAGIC_CMD'
5920lt_cv_file_magic_test_file=
5921lt_cv_deplibs_check_method='unknown'
5922# Need to set the preceding variable on all platforms that support
5923# interlibrary dependencies.
5924# 'none' -- dependencies not supported.
5925# `unknown' -- same as none, but documents that we really don't know.
5926# 'pass_all' -- all dependencies passed with no checks.
5927# 'test_compile' -- check by making test program.
5928# 'file_magic [[regex]]' -- check by looking for files in library path
5929# which responds to the $file_magic_cmd with a given extended regex.
5930# If you have `file' or equivalent on your system and you're not sure
5931# whether `pass_all' will *always* work, you probably want this one.
5932
5933case $host_os in
5934aix[4-9]*)
5935  lt_cv_deplibs_check_method=pass_all
5936  ;;
5937
5938beos*)
5939  lt_cv_deplibs_check_method=pass_all
5940  ;;
5941
5942bsdi[45]*)
5943  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5944  lt_cv_file_magic_cmd='/usr/bin/file -L'
5945  lt_cv_file_magic_test_file=/shlib/libc.so
5946  ;;
5947
5948cygwin*)
5949  # func_win32_libid is a shell function defined in ltmain.sh
5950  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5951  lt_cv_file_magic_cmd='func_win32_libid'
5952  ;;
5953
5954mingw* | pw32*)
5955  # Base MSYS/MinGW do not provide the 'file' command needed by
5956  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5957  # unless we find 'file', for example because we are cross-compiling.
5958  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5959  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5960    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5961    lt_cv_file_magic_cmd='func_win32_libid'
5962  else
5963    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5964    lt_cv_file_magic_cmd='$OBJDUMP -f'
5965  fi
5966  ;;
5967
5968cegcc*)
5969  # use the weaker test based on 'objdump'. See mingw*.
5970  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5971  lt_cv_file_magic_cmd='$OBJDUMP -f'
5972  ;;
5973
5974darwin* | rhapsody*)
5975  lt_cv_deplibs_check_method=pass_all
5976  ;;
5977
5978freebsd* | dragonfly*)
5979  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5980    case $host_cpu in
5981    i*86 )
5982      # Not sure whether the presence of OpenBSD here was a mistake.
5983      # Let's accept both of them until this is cleared up.
5984      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5985      lt_cv_file_magic_cmd=/usr/bin/file
5986      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5987      ;;
5988    esac
5989  else
5990    lt_cv_deplibs_check_method=pass_all
5991  fi
5992  ;;
5993
5994gnu*)
5995  lt_cv_deplibs_check_method=pass_all
5996  ;;
5997
5998haiku*)
5999  lt_cv_deplibs_check_method=pass_all
6000  ;;
6001
6002hpux10.20* | hpux11*)
6003  lt_cv_file_magic_cmd=/usr/bin/file
6004  case $host_cpu in
6005  ia64*)
6006    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6007    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6008    ;;
6009  hppa*64*)
6010    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]'
6011    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6012    ;;
6013  *)
6014    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6015    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6016    ;;
6017  esac
6018  ;;
6019
6020interix[3-9]*)
6021  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6022  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6023  ;;
6024
6025irix5* | irix6* | nonstopux*)
6026  case $LD in
6027  *-32|*"-32 ") libmagic=32-bit;;
6028  *-n32|*"-n32 ") libmagic=N32;;
6029  *-64|*"-64 ") libmagic=64-bit;;
6030  *) libmagic=never-match;;
6031  esac
6032  lt_cv_deplibs_check_method=pass_all
6033  ;;
6034
6035# This must be Linux ELF.
6036linux* | k*bsd*-gnu | kopensolaris*-gnu)
6037  lt_cv_deplibs_check_method=pass_all
6038  ;;
6039
6040netbsd*)
6041  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6042    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6043  else
6044    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6045  fi
6046  ;;
6047
6048newos6*)
6049  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6050  lt_cv_file_magic_cmd=/usr/bin/file
6051  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6052  ;;
6053
6054*nto* | *qnx*)
6055  lt_cv_deplibs_check_method=pass_all
6056  ;;
6057
6058openbsd*)
6059  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6060    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6061  else
6062    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6063  fi
6064  ;;
6065
6066osf3* | osf4* | osf5*)
6067  lt_cv_deplibs_check_method=pass_all
6068  ;;
6069
6070rdos*)
6071  lt_cv_deplibs_check_method=pass_all
6072  ;;
6073
6074solaris*)
6075  lt_cv_deplibs_check_method=pass_all
6076  ;;
6077
6078sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6079  lt_cv_deplibs_check_method=pass_all
6080  ;;
6081
6082sysv4 | sysv4.3*)
6083  case $host_vendor in
6084  motorola)
6085    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]'
6086    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6087    ;;
6088  ncr)
6089    lt_cv_deplibs_check_method=pass_all
6090    ;;
6091  sequent)
6092    lt_cv_file_magic_cmd='/bin/file'
6093    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6094    ;;
6095  sni)
6096    lt_cv_file_magic_cmd='/bin/file'
6097    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6098    lt_cv_file_magic_test_file=/lib/libc.so
6099    ;;
6100  siemens)
6101    lt_cv_deplibs_check_method=pass_all
6102    ;;
6103  pc)
6104    lt_cv_deplibs_check_method=pass_all
6105    ;;
6106  esac
6107  ;;
6108
6109tpf*)
6110  lt_cv_deplibs_check_method=pass_all
6111  ;;
6112esac
6113
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6116$as_echo "$lt_cv_deplibs_check_method" >&6; }
6117file_magic_cmd=$lt_cv_file_magic_cmd
6118deplibs_check_method=$lt_cv_deplibs_check_method
6119test -z "$deplibs_check_method" && deplibs_check_method=unknown
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132if test -n "$ac_tool_prefix"; then
6133  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6134set dummy ${ac_tool_prefix}ar; ac_word=$2
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136$as_echo_n "checking for $ac_word... " >&6; }
6137if test "${ac_cv_prog_AR+set}" = set; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  if test -n "$AR"; then
6141  ac_cv_prog_AR="$AR" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146  IFS=$as_save_IFS
6147  test -z "$as_dir" && as_dir=.
6148    for ac_exec_ext in '' $ac_executable_extensions; do
6149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150    ac_cv_prog_AR="${ac_tool_prefix}ar"
6151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152    break 2
6153  fi
6154done
6155  done
6156IFS=$as_save_IFS
6157
6158fi
6159fi
6160AR=$ac_cv_prog_AR
6161if test -n "$AR"; then
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6163$as_echo "$AR" >&6; }
6164else
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
6168
6169
6170fi
6171if test -z "$ac_cv_prog_AR"; then
6172  ac_ct_AR=$AR
6173  # Extract the first word of "ar", so it can be a program name with args.
6174set dummy ar; ac_word=$2
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176$as_echo_n "checking for $ac_word... " >&6; }
6177if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6178  $as_echo_n "(cached) " >&6
6179else
6180  if test -n "$ac_ct_AR"; then
6181  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186  IFS=$as_save_IFS
6187  test -z "$as_dir" && as_dir=.
6188    for ac_exec_ext in '' $ac_executable_extensions; do
6189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6190    ac_cv_prog_ac_ct_AR="ar"
6191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192    break 2
6193  fi
6194done
6195  done
6196IFS=$as_save_IFS
6197
6198fi
6199fi
6200ac_ct_AR=$ac_cv_prog_ac_ct_AR
6201if test -n "$ac_ct_AR"; then
6202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6203$as_echo "$ac_ct_AR" >&6; }
6204else
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206$as_echo "no" >&6; }
6207fi
6208
6209  if test "x$ac_ct_AR" = x; then
6210    AR="false"
6211  else
6212    case $cross_compiling:$ac_tool_warned in
6213yes:)
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216ac_tool_warned=yes ;;
6217esac
6218    AR=$ac_ct_AR
6219  fi
6220else
6221  AR="$ac_cv_prog_AR"
6222fi
6223
6224test -z "$AR" && AR=ar
6225test -z "$AR_FLAGS" && AR_FLAGS=cru
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237if test -n "$ac_tool_prefix"; then
6238  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6239set dummy ${ac_tool_prefix}strip; ac_word=$2
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241$as_echo_n "checking for $ac_word... " >&6; }
6242if test "${ac_cv_prog_STRIP+set}" = set; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245  if test -n "$STRIP"; then
6246  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6247else
6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249for as_dir in $PATH
6250do
6251  IFS=$as_save_IFS
6252  test -z "$as_dir" && as_dir=.
6253    for ac_exec_ext in '' $ac_executable_extensions; do
6254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257    break 2
6258  fi
6259done
6260  done
6261IFS=$as_save_IFS
6262
6263fi
6264fi
6265STRIP=$ac_cv_prog_STRIP
6266if test -n "$STRIP"; then
6267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6268$as_echo "$STRIP" >&6; }
6269else
6270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271$as_echo "no" >&6; }
6272fi
6273
6274
6275fi
6276if test -z "$ac_cv_prog_STRIP"; then
6277  ac_ct_STRIP=$STRIP
6278  # Extract the first word of "strip", so it can be a program name with args.
6279set dummy strip; ac_word=$2
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281$as_echo_n "checking for $ac_word... " >&6; }
6282if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6283  $as_echo_n "(cached) " >&6
6284else
6285  if test -n "$ac_ct_STRIP"; then
6286  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291  IFS=$as_save_IFS
6292  test -z "$as_dir" && as_dir=.
6293    for ac_exec_ext in '' $ac_executable_extensions; do
6294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295    ac_cv_prog_ac_ct_STRIP="strip"
6296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300  done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6306if test -n "$ac_ct_STRIP"; then
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6308$as_echo "$ac_ct_STRIP" >&6; }
6309else
6310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311$as_echo "no" >&6; }
6312fi
6313
6314  if test "x$ac_ct_STRIP" = x; then
6315    STRIP=":"
6316  else
6317    case $cross_compiling:$ac_tool_warned in
6318yes:)
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6321ac_tool_warned=yes ;;
6322esac
6323    STRIP=$ac_ct_STRIP
6324  fi
6325else
6326  STRIP="$ac_cv_prog_STRIP"
6327fi
6328
6329test -z "$STRIP" && STRIP=:
6330
6331
6332
6333
6334
6335
6336if test -n "$ac_tool_prefix"; then
6337  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6338set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340$as_echo_n "checking for $ac_word... " >&6; }
6341if test "${ac_cv_prog_RANLIB+set}" = set; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  if test -n "$RANLIB"; then
6345  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350  IFS=$as_save_IFS
6351  test -z "$as_dir" && as_dir=.
6352    for ac_exec_ext in '' $ac_executable_extensions; do
6353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356    break 2
6357  fi
6358done
6359  done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364RANLIB=$ac_cv_prog_RANLIB
6365if test -n "$RANLIB"; then
6366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6367$as_echo "$RANLIB" >&6; }
6368else
6369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370$as_echo "no" >&6; }
6371fi
6372
6373
6374fi
6375if test -z "$ac_cv_prog_RANLIB"; then
6376  ac_ct_RANLIB=$RANLIB
6377  # Extract the first word of "ranlib", so it can be a program name with args.
6378set dummy ranlib; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6382  $as_echo_n "(cached) " >&6
6383else
6384  if test -n "$ac_ct_RANLIB"; then
6385  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390  IFS=$as_save_IFS
6391  test -z "$as_dir" && as_dir=.
6392    for ac_exec_ext in '' $ac_executable_extensions; do
6393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394    ac_cv_prog_ac_ct_RANLIB="ranlib"
6395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396    break 2
6397  fi
6398done
6399  done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6405if test -n "$ac_ct_RANLIB"; then
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6407$as_echo "$ac_ct_RANLIB" >&6; }
6408else
6409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413  if test "x$ac_ct_RANLIB" = x; then
6414    RANLIB=":"
6415  else
6416    case $cross_compiling:$ac_tool_warned in
6417yes:)
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420ac_tool_warned=yes ;;
6421esac
6422    RANLIB=$ac_ct_RANLIB
6423  fi
6424else
6425  RANLIB="$ac_cv_prog_RANLIB"
6426fi
6427
6428test -z "$RANLIB" && RANLIB=:
6429
6430
6431
6432
6433
6434
6435# Determine commands to create old-style static archives.
6436old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6437old_postinstall_cmds='chmod 644 $oldlib'
6438old_postuninstall_cmds=
6439
6440if test -n "$RANLIB"; then
6441  case $host_os in
6442  openbsd*)
6443    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6444    ;;
6445  *)
6446    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6447    ;;
6448  esac
6449  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6450fi
6451
6452case $host_os in
6453  darwin*)
6454    lock_old_archive_extraction=yes ;;
6455  *)
6456    lock_old_archive_extraction=no ;;
6457esac
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497# If no C compiler was specified, use CC.
6498LTCC=${LTCC-"$CC"}
6499
6500# If no C compiler flags were specified, use CFLAGS.
6501LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6502
6503# Allow CC to be a program name with arguments.
6504compiler=$CC
6505
6506
6507# Check for command to grab the raw symbol name followed by C symbol from nm.
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6509$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6510if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6511  $as_echo_n "(cached) " >&6
6512else
6513
6514# These are sane defaults that work on at least a few old systems.
6515# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6516
6517# Character class describing NM global symbol codes.
6518symcode='[BCDEGRST]'
6519
6520# Regexp to match symbols that can be accessed directly from C.
6521sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6522
6523# Define system-specific variables.
6524case $host_os in
6525aix*)
6526  symcode='[BCDT]'
6527  ;;
6528cygwin* | mingw* | pw32* | cegcc*)
6529  symcode='[ABCDGISTW]'
6530  ;;
6531hpux*)
6532  if test "$host_cpu" = ia64; then
6533    symcode='[ABCDEGRST]'
6534  fi
6535  ;;
6536irix* | nonstopux*)
6537  symcode='[BCDEGRST]'
6538  ;;
6539osf*)
6540  symcode='[BCDEGQRST]'
6541  ;;
6542solaris*)
6543  symcode='[BDRT]'
6544  ;;
6545sco3.2v5*)
6546  symcode='[DT]'
6547  ;;
6548sysv4.2uw2*)
6549  symcode='[DT]'
6550  ;;
6551sysv5* | sco5v6* | unixware* | OpenUNIX*)
6552  symcode='[ABDT]'
6553  ;;
6554sysv4)
6555  symcode='[DFNSTU]'
6556  ;;
6557esac
6558
6559# If we're using GNU nm, then use its standard symbol codes.
6560case `$NM -V 2>&1` in
6561*GNU* | *'with BFD'*)
6562  symcode='[ABCDGIRSTW]' ;;
6563esac
6564
6565# Transform an extracted symbol line into a proper C declaration.
6566# Some systems (esp. on ia64) link data and code symbols differently,
6567# so use this general approach.
6568lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6569
6570# Transform an extracted symbol line into symbol name and symbol address
6571lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6572lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6573
6574# Handle CRLF in mingw tool chain
6575opt_cr=
6576case $build_os in
6577mingw*)
6578  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6579  ;;
6580esac
6581
6582# Try without a prefix underscore, then with it.
6583for ac_symprfx in "" "_"; do
6584
6585  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6586  symxfrm="\\1 $ac_symprfx\\2 \\2"
6587
6588  # Write the raw and C identifiers.
6589  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6590    # Fake it for dumpbin and say T for any non-static function
6591    # and D for any global variable.
6592    # Also find C++ and __fastcall symbols from MSVC++,
6593    # which start with @ or ?.
6594    lt_cv_sys_global_symbol_pipe="$AWK '"\
6595"     {last_section=section; section=\$ 3};"\
6596"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6597"     \$ 0!~/External *\|/{next};"\
6598"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6599"     {if(hide[section]) next};"\
6600"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6601"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6602"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6603"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6604"     ' prfx=^$ac_symprfx"
6605  else
6606    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6607  fi
6608
6609  # Check to see that the pipe works correctly.
6610  pipe_works=no
6611
6612  rm -f conftest*
6613  cat > conftest.$ac_ext <<_LT_EOF
6614#ifdef __cplusplus
6615extern "C" {
6616#endif
6617char nm_test_var;
6618void nm_test_func(void);
6619void nm_test_func(void){}
6620#ifdef __cplusplus
6621}
6622#endif
6623int main(){nm_test_var='a';nm_test_func();return(0);}
6624_LT_EOF
6625
6626  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6627  (eval $ac_compile) 2>&5
6628  ac_status=$?
6629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630  test $ac_status = 0; }; then
6631    # Now try to grab the symbols.
6632    nlist=conftest.nm
6633    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6634  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6635  ac_status=$?
6636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637  test $ac_status = 0; } && test -s "$nlist"; then
6638      # Try sorting and uniquifying the output.
6639      if sort "$nlist" | uniq > "$nlist"T; then
6640	mv -f "$nlist"T "$nlist"
6641      else
6642	rm -f "$nlist"T
6643      fi
6644
6645      # Make sure that we snagged all the symbols we need.
6646      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6647	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6648	  cat <<_LT_EOF > conftest.$ac_ext
6649#ifdef __cplusplus
6650extern "C" {
6651#endif
6652
6653_LT_EOF
6654	  # Now generate the symbol file.
6655	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6656
6657	  cat <<_LT_EOF >> conftest.$ac_ext
6658
6659/* The mapping between symbol names and symbols.  */
6660const struct {
6661  const char *name;
6662  void       *address;
6663}
6664lt__PROGRAM__LTX_preloaded_symbols[] =
6665{
6666  { "@PROGRAM@", (void *) 0 },
6667_LT_EOF
6668	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6669	  cat <<\_LT_EOF >> conftest.$ac_ext
6670  {0, (void *) 0}
6671};
6672
6673/* This works around a problem in FreeBSD linker */
6674#ifdef FREEBSD_WORKAROUND
6675static const void *lt_preloaded_setup() {
6676  return lt__PROGRAM__LTX_preloaded_symbols;
6677}
6678#endif
6679
6680#ifdef __cplusplus
6681}
6682#endif
6683_LT_EOF
6684	  # Now try linking the two files.
6685	  mv conftest.$ac_objext conftstm.$ac_objext
6686	  lt_save_LIBS="$LIBS"
6687	  lt_save_CFLAGS="$CFLAGS"
6688	  LIBS="conftstm.$ac_objext"
6689	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6690	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6691  (eval $ac_link) 2>&5
6692  ac_status=$?
6693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6695	    pipe_works=yes
6696	  fi
6697	  LIBS="$lt_save_LIBS"
6698	  CFLAGS="$lt_save_CFLAGS"
6699	else
6700	  echo "cannot find nm_test_func in $nlist" >&5
6701	fi
6702      else
6703	echo "cannot find nm_test_var in $nlist" >&5
6704      fi
6705    else
6706      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6707    fi
6708  else
6709    echo "$progname: failed program was:" >&5
6710    cat conftest.$ac_ext >&5
6711  fi
6712  rm -rf conftest* conftst*
6713
6714  # Do not use the global_symbol_pipe unless it works.
6715  if test "$pipe_works" = yes; then
6716    break
6717  else
6718    lt_cv_sys_global_symbol_pipe=
6719  fi
6720done
6721
6722fi
6723
6724if test -z "$lt_cv_sys_global_symbol_pipe"; then
6725  lt_cv_sys_global_symbol_to_cdecl=
6726fi
6727if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6729$as_echo "failed" >&6; }
6730else
6731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6732$as_echo "ok" >&6; }
6733fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756# Check whether --enable-libtool-lock was given.
6757if test "${enable_libtool_lock+set}" = set; then :
6758  enableval=$enable_libtool_lock;
6759fi
6760
6761test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6762
6763# Some flags need to be propagated to the compiler or linker for good
6764# libtool support.
6765case $host in
6766ia64-*-hpux*)
6767  # Find out which ABI we are using.
6768  echo 'int i;' > conftest.$ac_ext
6769  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770  (eval $ac_compile) 2>&5
6771  ac_status=$?
6772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773  test $ac_status = 0; }; then
6774    case `/usr/bin/file conftest.$ac_objext` in
6775      *ELF-32*)
6776	HPUX_IA64_MODE="32"
6777	;;
6778      *ELF-64*)
6779	HPUX_IA64_MODE="64"
6780	;;
6781    esac
6782  fi
6783  rm -rf conftest*
6784  ;;
6785*-*-irix6*)
6786  # Find out which ABI we are using.
6787  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6788  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6789  (eval $ac_compile) 2>&5
6790  ac_status=$?
6791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792  test $ac_status = 0; }; then
6793    if test "$lt_cv_prog_gnu_ld" = yes; then
6794      case `/usr/bin/file conftest.$ac_objext` in
6795	*32-bit*)
6796	  LD="${LD-ld} -melf32bsmip"
6797	  ;;
6798	*N32*)
6799	  LD="${LD-ld} -melf32bmipn32"
6800	  ;;
6801	*64-bit*)
6802	  LD="${LD-ld} -melf64bmip"
6803	;;
6804      esac
6805    else
6806      case `/usr/bin/file conftest.$ac_objext` in
6807	*32-bit*)
6808	  LD="${LD-ld} -32"
6809	  ;;
6810	*N32*)
6811	  LD="${LD-ld} -n32"
6812	  ;;
6813	*64-bit*)
6814	  LD="${LD-ld} -64"
6815	  ;;
6816      esac
6817    fi
6818  fi
6819  rm -rf conftest*
6820  ;;
6821
6822x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6823s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6824  # Find out which ABI we are using.
6825  echo 'int i;' > conftest.$ac_ext
6826  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6827  (eval $ac_compile) 2>&5
6828  ac_status=$?
6829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830  test $ac_status = 0; }; then
6831    case `/usr/bin/file conftest.o` in
6832      *32-bit*)
6833	case $host in
6834	  x86_64-*kfreebsd*-gnu)
6835	    LD="${LD-ld} -m elf_i386_fbsd"
6836	    ;;
6837	  x86_64-*linux*)
6838	    case `/usr/bin/file conftest.o` in
6839	      *x86-64*)
6840		LD="${LD-ld} -m elf32_x86_64"
6841		;;
6842	      *)
6843		LD="${LD-ld} -m elf_i386"
6844		;;
6845	    esac
6846	    ;;
6847	  powerpc64le-*linux*)
6848	    LD="${LD-ld} -m elf32lppclinux"
6849	    ;;
6850	  powerpc64-*linux*)
6851	    LD="${LD-ld} -m elf32ppclinux"
6852	    ;;
6853	  s390x-*linux*)
6854	    LD="${LD-ld} -m elf_s390"
6855	    ;;
6856	  sparc64-*linux*)
6857	    LD="${LD-ld} -m elf32_sparc"
6858	    ;;
6859	esac
6860	;;
6861      *64-bit*)
6862	case $host in
6863	  x86_64-*kfreebsd*-gnu)
6864	    LD="${LD-ld} -m elf_x86_64_fbsd"
6865	    ;;
6866	  x86_64-*linux*)
6867	    LD="${LD-ld} -m elf_x86_64"
6868	    ;;
6869	  powerpcle-*linux*)
6870	    LD="${LD-ld} -m elf64lppc"
6871	    ;;
6872	  powerpc-*linux*)
6873	    LD="${LD-ld} -m elf64ppc"
6874	    ;;
6875	  s390*-*linux*|s390*-*tpf*)
6876	    LD="${LD-ld} -m elf64_s390"
6877	    ;;
6878	  sparc*-*linux*)
6879	    LD="${LD-ld} -m elf64_sparc"
6880	    ;;
6881	esac
6882	;;
6883    esac
6884  fi
6885  rm -rf conftest*
6886  ;;
6887
6888*-*-sco3.2v5*)
6889  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6890  SAVE_CFLAGS="$CFLAGS"
6891  CFLAGS="$CFLAGS -belf"
6892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6893$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6894if test "${lt_cv_cc_needs_belf+set}" = set; then :
6895  $as_echo_n "(cached) " >&6
6896else
6897  ac_ext=c
6898ac_cpp='$CPP $CPPFLAGS'
6899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6901ac_compiler_gnu=$ac_cv_c_compiler_gnu
6902
6903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h.  */
6905
6906int
6907main ()
6908{
6909
6910  ;
6911  return 0;
6912}
6913_ACEOF
6914if ac_fn_c_try_link "$LINENO"; then :
6915  lt_cv_cc_needs_belf=yes
6916else
6917  lt_cv_cc_needs_belf=no
6918fi
6919rm -f core conftest.err conftest.$ac_objext \
6920    conftest$ac_exeext conftest.$ac_ext
6921     ac_ext=c
6922ac_cpp='$CPP $CPPFLAGS'
6923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926
6927fi
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6929$as_echo "$lt_cv_cc_needs_belf" >&6; }
6930  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6931    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6932    CFLAGS="$SAVE_CFLAGS"
6933  fi
6934  ;;
6935sparc*-*solaris*)
6936  # Find out which ABI we are using.
6937  echo 'int i;' > conftest.$ac_ext
6938  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939  (eval $ac_compile) 2>&5
6940  ac_status=$?
6941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942  test $ac_status = 0; }; then
6943    case `/usr/bin/file conftest.o` in
6944    *64-bit*)
6945      case $lt_cv_prog_gnu_ld in
6946      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6947      *)
6948	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6949	  LD="${LD-ld} -64"
6950	fi
6951	;;
6952      esac
6953      ;;
6954    esac
6955  fi
6956  rm -rf conftest*
6957  ;;
6958esac
6959
6960need_locks="$enable_libtool_lock"
6961
6962
6963  case $host_os in
6964    rhapsody* | darwin*)
6965    if test -n "$ac_tool_prefix"; then
6966  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6967set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969$as_echo_n "checking for $ac_word... " >&6; }
6970if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  if test -n "$DSYMUTIL"; then
6974  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6975else
6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979  IFS=$as_save_IFS
6980  test -z "$as_dir" && as_dir=.
6981    for ac_exec_ext in '' $ac_executable_extensions; do
6982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6983    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985    break 2
6986  fi
6987done
6988  done
6989IFS=$as_save_IFS
6990
6991fi
6992fi
6993DSYMUTIL=$ac_cv_prog_DSYMUTIL
6994if test -n "$DSYMUTIL"; then
6995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6996$as_echo "$DSYMUTIL" >&6; }
6997else
6998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999$as_echo "no" >&6; }
7000fi
7001
7002
7003fi
7004if test -z "$ac_cv_prog_DSYMUTIL"; then
7005  ac_ct_DSYMUTIL=$DSYMUTIL
7006  # Extract the first word of "dsymutil", so it can be a program name with args.
7007set dummy dsymutil; ac_word=$2
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009$as_echo_n "checking for $ac_word... " >&6; }
7010if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013  if test -n "$ac_ct_DSYMUTIL"; then
7014  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019  IFS=$as_save_IFS
7020  test -z "$as_dir" && as_dir=.
7021    for ac_exec_ext in '' $ac_executable_extensions; do
7022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025    break 2
7026  fi
7027done
7028  done
7029IFS=$as_save_IFS
7030
7031fi
7032fi
7033ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7034if test -n "$ac_ct_DSYMUTIL"; then
7035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7036$as_echo "$ac_ct_DSYMUTIL" >&6; }
7037else
7038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040fi
7041
7042  if test "x$ac_ct_DSYMUTIL" = x; then
7043    DSYMUTIL=":"
7044  else
7045    case $cross_compiling:$ac_tool_warned in
7046yes:)
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049ac_tool_warned=yes ;;
7050esac
7051    DSYMUTIL=$ac_ct_DSYMUTIL
7052  fi
7053else
7054  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7055fi
7056
7057    if test -n "$ac_tool_prefix"; then
7058  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7059set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061$as_echo_n "checking for $ac_word... " >&6; }
7062if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  if test -n "$NMEDIT"; then
7066  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7067else
7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071  IFS=$as_save_IFS
7072  test -z "$as_dir" && as_dir=.
7073    for ac_exec_ext in '' $ac_executable_extensions; do
7074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077    break 2
7078  fi
7079done
7080  done
7081IFS=$as_save_IFS
7082
7083fi
7084fi
7085NMEDIT=$ac_cv_prog_NMEDIT
7086if test -n "$NMEDIT"; then
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7088$as_echo "$NMEDIT" >&6; }
7089else
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091$as_echo "no" >&6; }
7092fi
7093
7094
7095fi
7096if test -z "$ac_cv_prog_NMEDIT"; then
7097  ac_ct_NMEDIT=$NMEDIT
7098  # Extract the first word of "nmedit", so it can be a program name with args.
7099set dummy nmedit; ac_word=$2
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101$as_echo_n "checking for $ac_word... " >&6; }
7102if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  if test -n "$ac_ct_NMEDIT"; then
7106  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7107else
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111  IFS=$as_save_IFS
7112  test -z "$as_dir" && as_dir=.
7113    for ac_exec_ext in '' $ac_executable_extensions; do
7114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117    break 2
7118  fi
7119done
7120  done
7121IFS=$as_save_IFS
7122
7123fi
7124fi
7125ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7126if test -n "$ac_ct_NMEDIT"; then
7127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7128$as_echo "$ac_ct_NMEDIT" >&6; }
7129else
7130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131$as_echo "no" >&6; }
7132fi
7133
7134  if test "x$ac_ct_NMEDIT" = x; then
7135    NMEDIT=":"
7136  else
7137    case $cross_compiling:$ac_tool_warned in
7138yes:)
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141ac_tool_warned=yes ;;
7142esac
7143    NMEDIT=$ac_ct_NMEDIT
7144  fi
7145else
7146  NMEDIT="$ac_cv_prog_NMEDIT"
7147fi
7148
7149    if test -n "$ac_tool_prefix"; then
7150  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7151set dummy ${ac_tool_prefix}lipo; ac_word=$2
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153$as_echo_n "checking for $ac_word... " >&6; }
7154if test "${ac_cv_prog_LIPO+set}" = set; then :
7155  $as_echo_n "(cached) " >&6
7156else
7157  if test -n "$LIPO"; then
7158  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7159else
7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163  IFS=$as_save_IFS
7164  test -z "$as_dir" && as_dir=.
7165    for ac_exec_ext in '' $ac_executable_extensions; do
7166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169    break 2
7170  fi
7171done
7172  done
7173IFS=$as_save_IFS
7174
7175fi
7176fi
7177LIPO=$ac_cv_prog_LIPO
7178if test -n "$LIPO"; then
7179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7180$as_echo "$LIPO" >&6; }
7181else
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183$as_echo "no" >&6; }
7184fi
7185
7186
7187fi
7188if test -z "$ac_cv_prog_LIPO"; then
7189  ac_ct_LIPO=$LIPO
7190  # Extract the first word of "lipo", so it can be a program name with args.
7191set dummy lipo; ac_word=$2
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193$as_echo_n "checking for $ac_word... " >&6; }
7194if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7195  $as_echo_n "(cached) " >&6
7196else
7197  if test -n "$ac_ct_LIPO"; then
7198  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7199else
7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203  IFS=$as_save_IFS
7204  test -z "$as_dir" && as_dir=.
7205    for ac_exec_ext in '' $ac_executable_extensions; do
7206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207    ac_cv_prog_ac_ct_LIPO="lipo"
7208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209    break 2
7210  fi
7211done
7212  done
7213IFS=$as_save_IFS
7214
7215fi
7216fi
7217ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7218if test -n "$ac_ct_LIPO"; then
7219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7220$as_echo "$ac_ct_LIPO" >&6; }
7221else
7222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223$as_echo "no" >&6; }
7224fi
7225
7226  if test "x$ac_ct_LIPO" = x; then
7227    LIPO=":"
7228  else
7229    case $cross_compiling:$ac_tool_warned in
7230yes:)
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7233ac_tool_warned=yes ;;
7234esac
7235    LIPO=$ac_ct_LIPO
7236  fi
7237else
7238  LIPO="$ac_cv_prog_LIPO"
7239fi
7240
7241    if test -n "$ac_tool_prefix"; then
7242  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7243set dummy ${ac_tool_prefix}otool; ac_word=$2
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245$as_echo_n "checking for $ac_word... " >&6; }
7246if test "${ac_cv_prog_OTOOL+set}" = set; then :
7247  $as_echo_n "(cached) " >&6
7248else
7249  if test -n "$OTOOL"; then
7250  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7251else
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255  IFS=$as_save_IFS
7256  test -z "$as_dir" && as_dir=.
7257    for ac_exec_ext in '' $ac_executable_extensions; do
7258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261    break 2
7262  fi
7263done
7264  done
7265IFS=$as_save_IFS
7266
7267fi
7268fi
7269OTOOL=$ac_cv_prog_OTOOL
7270if test -n "$OTOOL"; then
7271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7272$as_echo "$OTOOL" >&6; }
7273else
7274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275$as_echo "no" >&6; }
7276fi
7277
7278
7279fi
7280if test -z "$ac_cv_prog_OTOOL"; then
7281  ac_ct_OTOOL=$OTOOL
7282  # Extract the first word of "otool", so it can be a program name with args.
7283set dummy otool; ac_word=$2
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285$as_echo_n "checking for $ac_word... " >&6; }
7286if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  if test -n "$ac_ct_OTOOL"; then
7290  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7291else
7292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295  IFS=$as_save_IFS
7296  test -z "$as_dir" && as_dir=.
7297    for ac_exec_ext in '' $ac_executable_extensions; do
7298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299    ac_cv_prog_ac_ct_OTOOL="otool"
7300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301    break 2
7302  fi
7303done
7304  done
7305IFS=$as_save_IFS
7306
7307fi
7308fi
7309ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7310if test -n "$ac_ct_OTOOL"; then
7311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7312$as_echo "$ac_ct_OTOOL" >&6; }
7313else
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315$as_echo "no" >&6; }
7316fi
7317
7318  if test "x$ac_ct_OTOOL" = x; then
7319    OTOOL=":"
7320  else
7321    case $cross_compiling:$ac_tool_warned in
7322yes:)
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325ac_tool_warned=yes ;;
7326esac
7327    OTOOL=$ac_ct_OTOOL
7328  fi
7329else
7330  OTOOL="$ac_cv_prog_OTOOL"
7331fi
7332
7333    if test -n "$ac_tool_prefix"; then
7334  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7335set dummy ${ac_tool_prefix}otool64; ac_word=$2
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337$as_echo_n "checking for $ac_word... " >&6; }
7338if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  if test -n "$OTOOL64"; then
7342  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7343else
7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347  IFS=$as_save_IFS
7348  test -z "$as_dir" && as_dir=.
7349    for ac_exec_ext in '' $ac_executable_extensions; do
7350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353    break 2
7354  fi
7355done
7356  done
7357IFS=$as_save_IFS
7358
7359fi
7360fi
7361OTOOL64=$ac_cv_prog_OTOOL64
7362if test -n "$OTOOL64"; then
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7364$as_echo "$OTOOL64" >&6; }
7365else
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367$as_echo "no" >&6; }
7368fi
7369
7370
7371fi
7372if test -z "$ac_cv_prog_OTOOL64"; then
7373  ac_ct_OTOOL64=$OTOOL64
7374  # Extract the first word of "otool64", so it can be a program name with args.
7375set dummy otool64; ac_word=$2
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377$as_echo_n "checking for $ac_word... " >&6; }
7378if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7379  $as_echo_n "(cached) " >&6
7380else
7381  if test -n "$ac_ct_OTOOL64"; then
7382  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7383else
7384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385for as_dir in $PATH
7386do
7387  IFS=$as_save_IFS
7388  test -z "$as_dir" && as_dir=.
7389    for ac_exec_ext in '' $ac_executable_extensions; do
7390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391    ac_cv_prog_ac_ct_OTOOL64="otool64"
7392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393    break 2
7394  fi
7395done
7396  done
7397IFS=$as_save_IFS
7398
7399fi
7400fi
7401ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7402if test -n "$ac_ct_OTOOL64"; then
7403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7404$as_echo "$ac_ct_OTOOL64" >&6; }
7405else
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407$as_echo "no" >&6; }
7408fi
7409
7410  if test "x$ac_ct_OTOOL64" = x; then
7411    OTOOL64=":"
7412  else
7413    case $cross_compiling:$ac_tool_warned in
7414yes:)
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417ac_tool_warned=yes ;;
7418esac
7419    OTOOL64=$ac_ct_OTOOL64
7420  fi
7421else
7422  OTOOL64="$ac_cv_prog_OTOOL64"
7423fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7452$as_echo_n "checking for -single_module linker flag... " >&6; }
7453if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7454  $as_echo_n "(cached) " >&6
7455else
7456  lt_cv_apple_cc_single_mod=no
7457      if test -z "${LT_MULTI_MODULE}"; then
7458	# By default we will add the -single_module flag. You can override
7459	# by either setting the environment variable LT_MULTI_MODULE
7460	# non-empty at configure time, or by adding -multi_module to the
7461	# link flags.
7462	rm -rf libconftest.dylib*
7463	echo "int foo(void){return 1;}" > conftest.c
7464	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7465-dynamiclib -Wl,-single_module conftest.c" >&5
7466	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7467	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7468        _lt_result=$?
7469	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7470	  lt_cv_apple_cc_single_mod=yes
7471	else
7472	  cat conftest.err >&5
7473	fi
7474	rm -rf libconftest.dylib*
7475	rm -f conftest.*
7476      fi
7477fi
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7479$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7480    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7481$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7482if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7483  $as_echo_n "(cached) " >&6
7484else
7485  lt_cv_ld_exported_symbols_list=no
7486      save_LDFLAGS=$LDFLAGS
7487      echo "_main" > conftest.sym
7488      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7489      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491
7492int
7493main ()
7494{
7495
7496  ;
7497  return 0;
7498}
7499_ACEOF
7500if ac_fn_c_try_link "$LINENO"; then :
7501  lt_cv_ld_exported_symbols_list=yes
7502else
7503  lt_cv_ld_exported_symbols_list=no
7504fi
7505rm -f core conftest.err conftest.$ac_objext \
7506    conftest$ac_exeext conftest.$ac_ext
7507	LDFLAGS="$save_LDFLAGS"
7508
7509fi
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7511$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7512    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7513$as_echo_n "checking for -force_load linker flag... " >&6; }
7514if test "${lt_cv_ld_force_load+set}" = set; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  lt_cv_ld_force_load=no
7518      cat > conftest.c << _LT_EOF
7519int forced_loaded() { return 2;}
7520_LT_EOF
7521      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7522      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7523      echo "$AR cru libconftest.a conftest.o" >&5
7524      $AR cru libconftest.a conftest.o 2>&5
7525      cat > conftest.c << _LT_EOF
7526int main() { return 0;}
7527_LT_EOF
7528      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7529      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7530      _lt_result=$?
7531      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7532	lt_cv_ld_force_load=yes
7533      else
7534	cat conftest.err >&5
7535      fi
7536        rm -f conftest.err libconftest.a conftest conftest.c
7537        rm -rf conftest.dSYM
7538
7539fi
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7541$as_echo "$lt_cv_ld_force_load" >&6; }
7542    case $host_os in
7543    rhapsody* | darwin1.[012])
7544      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7545    darwin1.*)
7546      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7547    darwin*) # darwin 5.x on
7548      # if running on 10.5 or later, the deployment target defaults
7549      # to the OS version, if on x86, and 10.4, the deployment
7550      # target defaults to 10.4. Don't you love it?
7551      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7552	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7553	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7554	10.[012][,.]*)
7555	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7556	10.*)
7557	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7558      esac
7559    ;;
7560  esac
7561    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7562      _lt_dar_single_mod='$single_module'
7563    fi
7564    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7565      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7566    else
7567      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7568    fi
7569    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7570      _lt_dsymutil='~$DSYMUTIL $lib || :'
7571    else
7572      _lt_dsymutil=
7573    fi
7574    ;;
7575  esac
7576
7577for ac_header in dlfcn.h
7578do :
7579  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7580"
7581if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7582  cat >>confdefs.h <<_ACEOF
7583#define HAVE_DLFCN_H 1
7584_ACEOF
7585
7586fi
7587
7588done
7589
7590
7591
7592
7593
7594
7595# Set options
7596
7597
7598
7599
7600  enable_win32_dll=no
7601
7602
7603            # Check whether --enable-shared was given.
7604if test "${enable_shared+set}" = set; then :
7605  enableval=$enable_shared; p=${PACKAGE-default}
7606    case $enableval in
7607    yes) enable_shared=yes ;;
7608    no) enable_shared=no ;;
7609    *)
7610      enable_shared=no
7611      # Look at the argument we got.  We use all the common list separators.
7612      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7613      for pkg in $enableval; do
7614	IFS="$lt_save_ifs"
7615	if test "X$pkg" = "X$p"; then
7616	  enable_shared=yes
7617	fi
7618      done
7619      IFS="$lt_save_ifs"
7620      ;;
7621    esac
7622else
7623  enable_shared=yes
7624fi
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634  # Check whether --enable-static was given.
7635if test "${enable_static+set}" = set; then :
7636  enableval=$enable_static; p=${PACKAGE-default}
7637    case $enableval in
7638    yes) enable_static=yes ;;
7639    no) enable_static=no ;;
7640    *)
7641     enable_static=no
7642      # Look at the argument we got.  We use all the common list separators.
7643      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7644      for pkg in $enableval; do
7645	IFS="$lt_save_ifs"
7646	if test "X$pkg" = "X$p"; then
7647	  enable_static=yes
7648	fi
7649      done
7650      IFS="$lt_save_ifs"
7651      ;;
7652    esac
7653else
7654  enable_static=yes
7655fi
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666# Check whether --with-pic was given.
7667if test "${with_pic+set}" = set; then :
7668  withval=$with_pic; pic_mode="$withval"
7669else
7670  pic_mode=default
7671fi
7672
7673
7674test -z "$pic_mode" && pic_mode=default
7675
7676
7677
7678
7679
7680
7681
7682  # Check whether --enable-fast-install was given.
7683if test "${enable_fast_install+set}" = set; then :
7684  enableval=$enable_fast_install; p=${PACKAGE-default}
7685    case $enableval in
7686    yes) enable_fast_install=yes ;;
7687    no) enable_fast_install=no ;;
7688    *)
7689      enable_fast_install=no
7690      # Look at the argument we got.  We use all the common list separators.
7691      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7692      for pkg in $enableval; do
7693	IFS="$lt_save_ifs"
7694	if test "X$pkg" = "X$p"; then
7695	  enable_fast_install=yes
7696	fi
7697      done
7698      IFS="$lt_save_ifs"
7699      ;;
7700    esac
7701else
7702  enable_fast_install=yes
7703fi
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715# This can be used to rebuild libtool when needed
7716LIBTOOL_DEPS="$ltmain"
7717
7718# Always use our own libtool.
7719LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746test -z "$LN_S" && LN_S="ln -s"
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761if test -n "${ZSH_VERSION+set}" ; then
7762   setopt NO_GLOB_SUBST
7763fi
7764
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7766$as_echo_n "checking for objdir... " >&6; }
7767if test "${lt_cv_objdir+set}" = set; then :
7768  $as_echo_n "(cached) " >&6
7769else
7770  rm -f .libs 2>/dev/null
7771mkdir .libs 2>/dev/null
7772if test -d .libs; then
7773  lt_cv_objdir=.libs
7774else
7775  # MS-DOS does not allow filenames that begin with a dot.
7776  lt_cv_objdir=_libs
7777fi
7778rmdir .libs 2>/dev/null
7779fi
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7781$as_echo "$lt_cv_objdir" >&6; }
7782objdir=$lt_cv_objdir
7783
7784
7785
7786
7787
7788cat >>confdefs.h <<_ACEOF
7789#define LT_OBJDIR "$lt_cv_objdir/"
7790_ACEOF
7791
7792
7793
7794
7795case $host_os in
7796aix3*)
7797  # AIX sometimes has problems with the GCC collect2 program.  For some
7798  # reason, if we set the COLLECT_NAMES environment variable, the problems
7799  # vanish in a puff of smoke.
7800  if test "X${COLLECT_NAMES+set}" != Xset; then
7801    COLLECT_NAMES=
7802    export COLLECT_NAMES
7803  fi
7804  ;;
7805esac
7806
7807# Global variables:
7808ofile=libtool
7809can_build_shared=yes
7810
7811# All known linkers require a `.a' archive for static linking (except MSVC,
7812# which needs '.lib').
7813libext=a
7814
7815with_gnu_ld="$lt_cv_prog_gnu_ld"
7816
7817old_CC="$CC"
7818old_CFLAGS="$CFLAGS"
7819
7820# Set sane defaults for various variables
7821test -z "$CC" && CC=cc
7822test -z "$LTCC" && LTCC=$CC
7823test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7824test -z "$LD" && LD=ld
7825test -z "$ac_objext" && ac_objext=o
7826
7827for cc_temp in $compiler""; do
7828  case $cc_temp in
7829    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7830    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7831    \-*) ;;
7832    *) break;;
7833  esac
7834done
7835cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7836
7837
7838# Only perform the check for file, if the check method requires it
7839test -z "$MAGIC_CMD" && MAGIC_CMD=file
7840case $deplibs_check_method in
7841file_magic*)
7842  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7844$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7845if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  case $MAGIC_CMD in
7849[\\/*] |  ?:[\\/]*)
7850  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7851  ;;
7852*)
7853  lt_save_MAGIC_CMD="$MAGIC_CMD"
7854  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7855  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7856  for ac_dir in $ac_dummy; do
7857    IFS="$lt_save_ifs"
7858    test -z "$ac_dir" && ac_dir=.
7859    if test -f $ac_dir/${ac_tool_prefix}file; then
7860      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7861      if test -n "$file_magic_test_file"; then
7862	case $deplibs_check_method in
7863	"file_magic "*)
7864	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7865	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7866	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7867	    $EGREP "$file_magic_regex" > /dev/null; then
7868	    :
7869	  else
7870	    cat <<_LT_EOF 1>&2
7871
7872*** Warning: the command libtool uses to detect shared libraries,
7873*** $file_magic_cmd, produces output that libtool cannot recognize.
7874*** The result is that libtool may fail to recognize shared libraries
7875*** as such.  This will affect the creation of libtool libraries that
7876*** depend on shared libraries, but programs linked with such libtool
7877*** libraries will work regardless of this problem.  Nevertheless, you
7878*** may want to report the problem to your system manager and/or to
7879*** bug-libtool@gnu.org
7880
7881_LT_EOF
7882	  fi ;;
7883	esac
7884      fi
7885      break
7886    fi
7887  done
7888  IFS="$lt_save_ifs"
7889  MAGIC_CMD="$lt_save_MAGIC_CMD"
7890  ;;
7891esac
7892fi
7893
7894MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7895if test -n "$MAGIC_CMD"; then
7896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7897$as_echo "$MAGIC_CMD" >&6; }
7898else
7899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900$as_echo "no" >&6; }
7901fi
7902
7903
7904
7905
7906
7907if test -z "$lt_cv_path_MAGIC_CMD"; then
7908  if test -n "$ac_tool_prefix"; then
7909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7910$as_echo_n "checking for file... " >&6; }
7911if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7912  $as_echo_n "(cached) " >&6
7913else
7914  case $MAGIC_CMD in
7915[\\/*] |  ?:[\\/]*)
7916  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7917  ;;
7918*)
7919  lt_save_MAGIC_CMD="$MAGIC_CMD"
7920  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7921  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7922  for ac_dir in $ac_dummy; do
7923    IFS="$lt_save_ifs"
7924    test -z "$ac_dir" && ac_dir=.
7925    if test -f $ac_dir/file; then
7926      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7927      if test -n "$file_magic_test_file"; then
7928	case $deplibs_check_method in
7929	"file_magic "*)
7930	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7931	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7932	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7933	    $EGREP "$file_magic_regex" > /dev/null; then
7934	    :
7935	  else
7936	    cat <<_LT_EOF 1>&2
7937
7938*** Warning: the command libtool uses to detect shared libraries,
7939*** $file_magic_cmd, produces output that libtool cannot recognize.
7940*** The result is that libtool may fail to recognize shared libraries
7941*** as such.  This will affect the creation of libtool libraries that
7942*** depend on shared libraries, but programs linked with such libtool
7943*** libraries will work regardless of this problem.  Nevertheless, you
7944*** may want to report the problem to your system manager and/or to
7945*** bug-libtool@gnu.org
7946
7947_LT_EOF
7948	  fi ;;
7949	esac
7950      fi
7951      break
7952    fi
7953  done
7954  IFS="$lt_save_ifs"
7955  MAGIC_CMD="$lt_save_MAGIC_CMD"
7956  ;;
7957esac
7958fi
7959
7960MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7961if test -n "$MAGIC_CMD"; then
7962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7963$as_echo "$MAGIC_CMD" >&6; }
7964else
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
7967fi
7968
7969
7970  else
7971    MAGIC_CMD=:
7972  fi
7973fi
7974
7975  fi
7976  ;;
7977esac
7978
7979# Use C for the default configuration in the libtool script
7980
7981lt_save_CC="$CC"
7982ac_ext=c
7983ac_cpp='$CPP $CPPFLAGS'
7984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7986ac_compiler_gnu=$ac_cv_c_compiler_gnu
7987
7988
7989# Source file extension for C test sources.
7990ac_ext=c
7991
7992# Object file extension for compiled C test sources.
7993objext=o
7994objext=$objext
7995
7996# Code to be used in simple compile tests
7997lt_simple_compile_test_code="int some_variable = 0;"
7998
7999# Code to be used in simple link tests
8000lt_simple_link_test_code='int main(){return(0);}'
8001
8002
8003
8004
8005
8006
8007
8008# If no C compiler was specified, use CC.
8009LTCC=${LTCC-"$CC"}
8010
8011# If no C compiler flags were specified, use CFLAGS.
8012LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8013
8014# Allow CC to be a program name with arguments.
8015compiler=$CC
8016
8017# Save the default compiler, since it gets overwritten when the other
8018# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8019compiler_DEFAULT=$CC
8020
8021# save warnings/boilerplate of simple test code
8022ac_outfile=conftest.$ac_objext
8023echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8024eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8025_lt_compiler_boilerplate=`cat conftest.err`
8026$RM conftest*
8027
8028ac_outfile=conftest.$ac_objext
8029echo "$lt_simple_link_test_code" >conftest.$ac_ext
8030eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8031_lt_linker_boilerplate=`cat conftest.err`
8032$RM -r conftest*
8033
8034
8035## CAVEAT EMPTOR:
8036## There is no encapsulation within the following macros, do not change
8037## the running order or otherwise move them around unless you know exactly
8038## what you are doing...
8039if test -n "$compiler"; then
8040
8041lt_prog_compiler_no_builtin_flag=
8042
8043if test "$GCC" = yes; then
8044  case $cc_basename in
8045  nvcc*)
8046    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8047  *)
8048    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8049  esac
8050
8051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8052$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8053if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8054  $as_echo_n "(cached) " >&6
8055else
8056  lt_cv_prog_compiler_rtti_exceptions=no
8057   ac_outfile=conftest.$ac_objext
8058   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8059   lt_compiler_flag="-fno-rtti -fno-exceptions"
8060   # Insert the option either (1) after the last *FLAGS variable, or
8061   # (2) before a word containing "conftest.", or (3) at the end.
8062   # Note that $ac_compile itself does not contain backslashes and begins
8063   # with a dollar sign (not a hyphen), so the echo should work correctly.
8064   # The option is referenced via a variable to avoid confusing sed.
8065   lt_compile=`echo "$ac_compile" | $SED \
8066   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8068   -e 's:$: $lt_compiler_flag:'`
8069   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8070   (eval "$lt_compile" 2>conftest.err)
8071   ac_status=$?
8072   cat conftest.err >&5
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   if (exit $ac_status) && test -s "$ac_outfile"; then
8075     # The compiler can only warn and ignore the option if not recognized
8076     # So say no if there are warnings other than the usual output.
8077     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8078     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8079     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8080       lt_cv_prog_compiler_rtti_exceptions=yes
8081     fi
8082   fi
8083   $RM conftest*
8084
8085fi
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8087$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8088
8089if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8090    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8091else
8092    :
8093fi
8094
8095fi
8096
8097
8098
8099
8100
8101
8102  lt_prog_compiler_wl=
8103lt_prog_compiler_pic=
8104lt_prog_compiler_static=
8105
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8107$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8108
8109  if test "$GCC" = yes; then
8110    lt_prog_compiler_wl='-Wl,'
8111    lt_prog_compiler_static='-static'
8112
8113    case $host_os in
8114      aix*)
8115      # All AIX code is PIC.
8116      if test "$host_cpu" = ia64; then
8117	# AIX 5 now supports IA64 processor
8118	lt_prog_compiler_static='-Bstatic'
8119      fi
8120      lt_prog_compiler_pic='-fPIC'
8121      ;;
8122
8123    amigaos*)
8124      case $host_cpu in
8125      powerpc)
8126            # see comment about AmigaOS4 .so support
8127            lt_prog_compiler_pic='-fPIC'
8128        ;;
8129      m68k)
8130            # FIXME: we need at least 68020 code to build shared libraries, but
8131            # adding the `-m68020' flag to GCC prevents building anything better,
8132            # like `-m68040'.
8133            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8134        ;;
8135      esac
8136      ;;
8137
8138    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8139      # PIC is the default for these OSes.
8140      ;;
8141
8142    mingw* | cygwin* | pw32* | os2* | cegcc*)
8143      # This hack is so that the source file can tell whether it is being
8144      # built for inclusion in a dll (and should export symbols for example).
8145      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8146      # (--disable-auto-import) libraries
8147      lt_prog_compiler_pic='-DDLL_EXPORT'
8148      ;;
8149
8150    darwin* | rhapsody*)
8151      # PIC is the default on this platform
8152      # Common symbols not allowed in MH_DYLIB files
8153      lt_prog_compiler_pic='-fno-common'
8154      ;;
8155
8156    haiku*)
8157      # PIC is the default for Haiku.
8158      # The "-static" flag exists, but is broken.
8159      lt_prog_compiler_static=
8160      ;;
8161
8162    hpux*)
8163      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8164      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8165      # sets the default TLS model and affects inlining.
8166      case $host_cpu in
8167      hppa*64*)
8168	# +Z the default
8169	;;
8170      *)
8171	lt_prog_compiler_pic='-fPIC'
8172	;;
8173      esac
8174      ;;
8175
8176    interix[3-9]*)
8177      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8178      # Instead, we relocate shared libraries at runtime.
8179      ;;
8180
8181    msdosdjgpp*)
8182      # Just because we use GCC doesn't mean we suddenly get shared libraries
8183      # on systems that don't support them.
8184      lt_prog_compiler_can_build_shared=no
8185      enable_shared=no
8186      ;;
8187
8188    *nto* | *qnx*)
8189      # QNX uses GNU C++, but need to define -shared option too, otherwise
8190      # it will coredump.
8191      lt_prog_compiler_pic='-fPIC -shared'
8192      ;;
8193
8194    sysv4*MP*)
8195      if test -d /usr/nec; then
8196	lt_prog_compiler_pic=-Kconform_pic
8197      fi
8198      ;;
8199
8200    *)
8201      lt_prog_compiler_pic='-fPIC'
8202      ;;
8203    esac
8204
8205    case $cc_basename in
8206    nvcc*) # Cuda Compiler Driver 2.2
8207      lt_prog_compiler_wl='-Xlinker '
8208      lt_prog_compiler_pic='-Xcompiler -fPIC'
8209      ;;
8210    esac
8211  else
8212    # PORTME Check for flag to pass linker flags through the system compiler.
8213    case $host_os in
8214    aix*)
8215      lt_prog_compiler_wl='-Wl,'
8216      if test "$host_cpu" = ia64; then
8217	# AIX 5 now supports IA64 processor
8218	lt_prog_compiler_static='-Bstatic'
8219      else
8220	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8221      fi
8222      ;;
8223
8224    mingw* | cygwin* | pw32* | os2* | cegcc*)
8225      # This hack is so that the source file can tell whether it is being
8226      # built for inclusion in a dll (and should export symbols for example).
8227      lt_prog_compiler_pic='-DDLL_EXPORT'
8228      ;;
8229
8230    hpux9* | hpux10* | hpux11*)
8231      lt_prog_compiler_wl='-Wl,'
8232      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8233      # not for PA HP-UX.
8234      case $host_cpu in
8235      hppa*64*|ia64*)
8236	# +Z the default
8237	;;
8238      *)
8239	lt_prog_compiler_pic='+Z'
8240	;;
8241      esac
8242      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8243      lt_prog_compiler_static='${wl}-a ${wl}archive'
8244      ;;
8245
8246    irix5* | irix6* | nonstopux*)
8247      lt_prog_compiler_wl='-Wl,'
8248      # PIC (with -KPIC) is the default.
8249      lt_prog_compiler_static='-non_shared'
8250      ;;
8251
8252    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8253      case $cc_basename in
8254      # old Intel for x86_64 which still supported -KPIC.
8255      ecc*)
8256	lt_prog_compiler_wl='-Wl,'
8257	lt_prog_compiler_pic='-KPIC'
8258	lt_prog_compiler_static='-static'
8259        ;;
8260      # icc used to be incompatible with GCC.
8261      # ICC 10 doesn't accept -KPIC any more.
8262      icc* | ifort*)
8263	lt_prog_compiler_wl='-Wl,'
8264	lt_prog_compiler_pic='-fPIC'
8265	lt_prog_compiler_static='-static'
8266        ;;
8267      # Lahey Fortran 8.1.
8268      lf95*)
8269	lt_prog_compiler_wl='-Wl,'
8270	lt_prog_compiler_pic='--shared'
8271	lt_prog_compiler_static='--static'
8272	;;
8273      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8274        # Portland Group compilers (*not* the Pentium gcc compiler,
8275	# which looks to be a dead project)
8276	lt_prog_compiler_wl='-Wl,'
8277	lt_prog_compiler_pic='-fpic'
8278	lt_prog_compiler_static='-Bstatic'
8279        ;;
8280      ccc*)
8281        lt_prog_compiler_wl='-Wl,'
8282        # All Alpha code is PIC.
8283        lt_prog_compiler_static='-non_shared'
8284        ;;
8285      xl* | bgxl* | bgf* | mpixl*)
8286	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8287	lt_prog_compiler_wl='-Wl,'
8288	lt_prog_compiler_pic='-qpic'
8289	lt_prog_compiler_static='-qstaticlink'
8290	;;
8291      *)
8292	case `$CC -V 2>&1 | sed 5q` in
8293	*Sun\ F* | *Sun*Fortran*)
8294	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8295	  lt_prog_compiler_pic='-KPIC'
8296	  lt_prog_compiler_static='-Bstatic'
8297	  lt_prog_compiler_wl=''
8298	  ;;
8299	*Sun\ C*)
8300	  # Sun C 5.9
8301	  lt_prog_compiler_pic='-KPIC'
8302	  lt_prog_compiler_static='-Bstatic'
8303	  lt_prog_compiler_wl='-Wl,'
8304	  ;;
8305	esac
8306	;;
8307      esac
8308      ;;
8309
8310    newsos6)
8311      lt_prog_compiler_pic='-KPIC'
8312      lt_prog_compiler_static='-Bstatic'
8313      ;;
8314
8315    *nto* | *qnx*)
8316      # QNX uses GNU C++, but need to define -shared option too, otherwise
8317      # it will coredump.
8318      lt_prog_compiler_pic='-fPIC -shared'
8319      ;;
8320
8321    osf3* | osf4* | osf5*)
8322      lt_prog_compiler_wl='-Wl,'
8323      # All OSF/1 code is PIC.
8324      lt_prog_compiler_static='-non_shared'
8325      ;;
8326
8327    rdos*)
8328      lt_prog_compiler_static='-non_shared'
8329      ;;
8330
8331    solaris*)
8332      lt_prog_compiler_pic='-KPIC'
8333      lt_prog_compiler_static='-Bstatic'
8334      case $cc_basename in
8335      f77* | f90* | f95*)
8336	lt_prog_compiler_wl='-Qoption ld ';;
8337      *)
8338	lt_prog_compiler_wl='-Wl,';;
8339      esac
8340      ;;
8341
8342    sunos4*)
8343      lt_prog_compiler_wl='-Qoption ld '
8344      lt_prog_compiler_pic='-PIC'
8345      lt_prog_compiler_static='-Bstatic'
8346      ;;
8347
8348    sysv4 | sysv4.2uw2* | sysv4.3*)
8349      lt_prog_compiler_wl='-Wl,'
8350      lt_prog_compiler_pic='-KPIC'
8351      lt_prog_compiler_static='-Bstatic'
8352      ;;
8353
8354    sysv4*MP*)
8355      if test -d /usr/nec ;then
8356	lt_prog_compiler_pic='-Kconform_pic'
8357	lt_prog_compiler_static='-Bstatic'
8358      fi
8359      ;;
8360
8361    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8362      lt_prog_compiler_wl='-Wl,'
8363      lt_prog_compiler_pic='-KPIC'
8364      lt_prog_compiler_static='-Bstatic'
8365      ;;
8366
8367    unicos*)
8368      lt_prog_compiler_wl='-Wl,'
8369      lt_prog_compiler_can_build_shared=no
8370      ;;
8371
8372    uts4*)
8373      lt_prog_compiler_pic='-pic'
8374      lt_prog_compiler_static='-Bstatic'
8375      ;;
8376
8377    *)
8378      lt_prog_compiler_can_build_shared=no
8379      ;;
8380    esac
8381  fi
8382
8383case $host_os in
8384  # For platforms which do not support PIC, -DPIC is meaningless:
8385  *djgpp*)
8386    lt_prog_compiler_pic=
8387    ;;
8388  *)
8389    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8390    ;;
8391esac
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8393$as_echo "$lt_prog_compiler_pic" >&6; }
8394
8395
8396
8397
8398
8399
8400#
8401# Check to make sure the PIC flag actually works.
8402#
8403if test -n "$lt_prog_compiler_pic"; then
8404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8405$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8406if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8407  $as_echo_n "(cached) " >&6
8408else
8409  lt_cv_prog_compiler_pic_works=no
8410   ac_outfile=conftest.$ac_objext
8411   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8412   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8413   # Insert the option either (1) after the last *FLAGS variable, or
8414   # (2) before a word containing "conftest.", or (3) at the end.
8415   # Note that $ac_compile itself does not contain backslashes and begins
8416   # with a dollar sign (not a hyphen), so the echo should work correctly.
8417   # The option is referenced via a variable to avoid confusing sed.
8418   lt_compile=`echo "$ac_compile" | $SED \
8419   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8420   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8421   -e 's:$: $lt_compiler_flag:'`
8422   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8423   (eval "$lt_compile" 2>conftest.err)
8424   ac_status=$?
8425   cat conftest.err >&5
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   if (exit $ac_status) && test -s "$ac_outfile"; then
8428     # The compiler can only warn and ignore the option if not recognized
8429     # So say no if there are warnings other than the usual output.
8430     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8431     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8432     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8433       lt_cv_prog_compiler_pic_works=yes
8434     fi
8435   fi
8436   $RM conftest*
8437
8438fi
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8440$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8441
8442if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8443    case $lt_prog_compiler_pic in
8444     "" | " "*) ;;
8445     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8446     esac
8447else
8448    lt_prog_compiler_pic=
8449     lt_prog_compiler_can_build_shared=no
8450fi
8451
8452fi
8453
8454
8455
8456
8457
8458
8459#
8460# Check to make sure the static flag actually works.
8461#
8462wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8464$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8465if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8466  $as_echo_n "(cached) " >&6
8467else
8468  lt_cv_prog_compiler_static_works=no
8469   save_LDFLAGS="$LDFLAGS"
8470   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8471   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8472   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8473     # The linker can only warn and ignore the option if not recognized
8474     # So say no if there are warnings
8475     if test -s conftest.err; then
8476       # Append any errors to the config.log.
8477       cat conftest.err 1>&5
8478       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8479       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8480       if diff conftest.exp conftest.er2 >/dev/null; then
8481         lt_cv_prog_compiler_static_works=yes
8482       fi
8483     else
8484       lt_cv_prog_compiler_static_works=yes
8485     fi
8486   fi
8487   $RM -r conftest*
8488   LDFLAGS="$save_LDFLAGS"
8489
8490fi
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8492$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8493
8494if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8495    :
8496else
8497    lt_prog_compiler_static=
8498fi
8499
8500
8501
8502
8503
8504
8505
8506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8507$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8508if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8509  $as_echo_n "(cached) " >&6
8510else
8511  lt_cv_prog_compiler_c_o=no
8512   $RM -r conftest 2>/dev/null
8513   mkdir conftest
8514   cd conftest
8515   mkdir out
8516   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8517
8518   lt_compiler_flag="-o out/conftest2.$ac_objext"
8519   # Insert the option either (1) after the last *FLAGS variable, or
8520   # (2) before a word containing "conftest.", or (3) at the end.
8521   # Note that $ac_compile itself does not contain backslashes and begins
8522   # with a dollar sign (not a hyphen), so the echo should work correctly.
8523   lt_compile=`echo "$ac_compile" | $SED \
8524   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8525   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8526   -e 's:$: $lt_compiler_flag:'`
8527   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8528   (eval "$lt_compile" 2>out/conftest.err)
8529   ac_status=$?
8530   cat out/conftest.err >&5
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8533   then
8534     # The compiler can only warn and ignore the option if not recognized
8535     # So say no if there are warnings
8536     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8537     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8538     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8539       lt_cv_prog_compiler_c_o=yes
8540     fi
8541   fi
8542   chmod u+w . 2>&5
8543   $RM conftest*
8544   # SGI C++ compiler will create directory out/ii_files/ for
8545   # template instantiation
8546   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8547   $RM out/* && rmdir out
8548   cd ..
8549   $RM -r conftest
8550   $RM conftest*
8551
8552fi
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8554$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8555
8556
8557
8558
8559
8560
8561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8562$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8563if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  lt_cv_prog_compiler_c_o=no
8567   $RM -r conftest 2>/dev/null
8568   mkdir conftest
8569   cd conftest
8570   mkdir out
8571   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8572
8573   lt_compiler_flag="-o out/conftest2.$ac_objext"
8574   # Insert the option either (1) after the last *FLAGS variable, or
8575   # (2) before a word containing "conftest.", or (3) at the end.
8576   # Note that $ac_compile itself does not contain backslashes and begins
8577   # with a dollar sign (not a hyphen), so the echo should work correctly.
8578   lt_compile=`echo "$ac_compile" | $SED \
8579   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8580   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8581   -e 's:$: $lt_compiler_flag:'`
8582   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8583   (eval "$lt_compile" 2>out/conftest.err)
8584   ac_status=$?
8585   cat out/conftest.err >&5
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8588   then
8589     # The compiler can only warn and ignore the option if not recognized
8590     # So say no if there are warnings
8591     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8592     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8593     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8594       lt_cv_prog_compiler_c_o=yes
8595     fi
8596   fi
8597   chmod u+w . 2>&5
8598   $RM conftest*
8599   # SGI C++ compiler will create directory out/ii_files/ for
8600   # template instantiation
8601   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8602   $RM out/* && rmdir out
8603   cd ..
8604   $RM -r conftest
8605   $RM conftest*
8606
8607fi
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8609$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8610
8611
8612
8613
8614hard_links="nottested"
8615if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8616  # do not overwrite the value of need_locks provided by the user
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8618$as_echo_n "checking if we can lock with hard links... " >&6; }
8619  hard_links=yes
8620  $RM conftest*
8621  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8622  touch conftest.a
8623  ln conftest.a conftest.b 2>&5 || hard_links=no
8624  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8626$as_echo "$hard_links" >&6; }
8627  if test "$hard_links" = no; then
8628    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8629$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8630    need_locks=warn
8631  fi
8632else
8633  need_locks=no
8634fi
8635
8636
8637
8638
8639
8640
8641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8642$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8643
8644  runpath_var=
8645  allow_undefined_flag=
8646  always_export_symbols=no
8647  archive_cmds=
8648  archive_expsym_cmds=
8649  compiler_needs_object=no
8650  enable_shared_with_static_runtimes=no
8651  export_dynamic_flag_spec=
8652  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8653  hardcode_automatic=no
8654  hardcode_direct=no
8655  hardcode_direct_absolute=no
8656  hardcode_libdir_flag_spec=
8657  hardcode_libdir_flag_spec_ld=
8658  hardcode_libdir_separator=
8659  hardcode_minus_L=no
8660  hardcode_shlibpath_var=unsupported
8661  inherit_rpath=no
8662  link_all_deplibs=unknown
8663  module_cmds=
8664  module_expsym_cmds=
8665  old_archive_from_new_cmds=
8666  old_archive_from_expsyms_cmds=
8667  thread_safe_flag_spec=
8668  whole_archive_flag_spec=
8669  # include_expsyms should be a list of space-separated symbols to be *always*
8670  # included in the symbol list
8671  include_expsyms=
8672  # exclude_expsyms can be an extended regexp of symbols to exclude
8673  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8674  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8675  # as well as any symbol that contains `d'.
8676  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8677  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8678  # platforms (ab)use it in PIC code, but their linkers get confused if
8679  # the symbol is explicitly referenced.  Since portable code cannot
8680  # rely on this symbol name, it's probably fine to never include it in
8681  # preloaded symbol tables.
8682  # Exclude shared library initialization/finalization symbols.
8683  extract_expsyms_cmds=
8684
8685  case $host_os in
8686  cygwin* | mingw* | pw32* | cegcc*)
8687    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8688    # When not using gcc, we currently assume that we are using
8689    # Microsoft Visual C++.
8690    if test "$GCC" != yes; then
8691      with_gnu_ld=no
8692    fi
8693    ;;
8694  interix*)
8695    # we just hope/assume this is gcc and not c89 (= MSVC++)
8696    with_gnu_ld=yes
8697    ;;
8698  openbsd*)
8699    with_gnu_ld=no
8700    ;;
8701  esac
8702
8703  ld_shlibs=yes
8704
8705  # On some targets, GNU ld is compatible enough with the native linker
8706  # that we're better off using the native interface for both.
8707  lt_use_gnu_ld_interface=no
8708  if test "$with_gnu_ld" = yes; then
8709    case $host_os in
8710      aix*)
8711	# The AIX port of GNU ld has always aspired to compatibility
8712	# with the native linker.  However, as the warning in the GNU ld
8713	# block says, versions before 2.19.5* couldn't really create working
8714	# shared libraries, regardless of the interface used.
8715	case `$LD -v 2>&1` in
8716	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8717	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8718	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8719	  *)
8720	    lt_use_gnu_ld_interface=yes
8721	    ;;
8722	esac
8723	;;
8724      *)
8725	lt_use_gnu_ld_interface=yes
8726	;;
8727    esac
8728  fi
8729
8730  if test "$lt_use_gnu_ld_interface" = yes; then
8731    # If archive_cmds runs LD, not CC, wlarc should be empty
8732    wlarc='${wl}'
8733
8734    # Set some defaults for GNU ld with shared library support. These
8735    # are reset later if shared libraries are not supported. Putting them
8736    # here allows them to be overridden if necessary.
8737    runpath_var=LD_RUN_PATH
8738    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8739    export_dynamic_flag_spec='${wl}--export-dynamic'
8740    # ancient GNU ld didn't support --whole-archive et. al.
8741    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8742      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8743    else
8744      whole_archive_flag_spec=
8745    fi
8746    supports_anon_versioning=no
8747    case `$LD -v 2>&1` in
8748      *GNU\ gold*) supports_anon_versioning=yes ;;
8749      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8750      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8751      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8752      *\ 2.11.*) ;; # other 2.11 versions
8753      *) supports_anon_versioning=yes ;;
8754    esac
8755
8756    # See if GNU ld supports shared libraries.
8757    case $host_os in
8758    aix[3-9]*)
8759      # On AIX/PPC, the GNU linker is very broken
8760      if test "$host_cpu" != ia64; then
8761	ld_shlibs=no
8762	cat <<_LT_EOF 1>&2
8763
8764*** Warning: the GNU linker, at least up to release 2.19, is reported
8765*** to be unable to reliably create shared libraries on AIX.
8766*** Therefore, libtool is disabling shared libraries support.  If you
8767*** really care for shared libraries, you may want to install binutils
8768*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8769*** You will then need to restart the configuration process.
8770
8771_LT_EOF
8772      fi
8773      ;;
8774
8775    amigaos*)
8776      case $host_cpu in
8777      powerpc)
8778            # see comment about AmigaOS4 .so support
8779            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780            archive_expsym_cmds=''
8781        ;;
8782      m68k)
8783            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)'
8784            hardcode_libdir_flag_spec='-L$libdir'
8785            hardcode_minus_L=yes
8786        ;;
8787      esac
8788      ;;
8789
8790    beos*)
8791      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792	allow_undefined_flag=unsupported
8793	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8794	# support --undefined.  This deserves some investigation.  FIXME
8795	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796      else
8797	ld_shlibs=no
8798      fi
8799      ;;
8800
8801    cygwin* | mingw* | pw32* | cegcc*)
8802      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8803      # as there is no search path for DLLs.
8804      hardcode_libdir_flag_spec='-L$libdir'
8805      export_dynamic_flag_spec='${wl}--export-all-symbols'
8806      allow_undefined_flag=unsupported
8807      always_export_symbols=no
8808      enable_shared_with_static_runtimes=yes
8809      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8810
8811      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8812        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8813	# If the export-symbols file already is a .def file (1st line
8814	# is EXPORTS), use it as is; otherwise, prepend...
8815	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8816	  cp $export_symbols $output_objdir/$soname.def;
8817	else
8818	  echo EXPORTS > $output_objdir/$soname.def;
8819	  cat $export_symbols >> $output_objdir/$soname.def;
8820	fi~
8821	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8822      else
8823	ld_shlibs=no
8824      fi
8825      ;;
8826
8827    haiku*)
8828      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829      link_all_deplibs=yes
8830      ;;
8831
8832    interix[3-9]*)
8833      hardcode_direct=no
8834      hardcode_shlibpath_var=no
8835      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8836      export_dynamic_flag_spec='${wl}-E'
8837      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8838      # Instead, shared libraries are loaded at an image base (0x10000000 by
8839      # default) and relocated if they conflict, which is a slow very memory
8840      # consuming and fragmenting process.  To avoid this, we pick a random,
8841      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8842      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8843      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8844      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'
8845      ;;
8846
8847    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8848      tmp_diet=no
8849      if test "$host_os" = linux-dietlibc; then
8850	case $cc_basename in
8851	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8852	esac
8853      fi
8854      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8855	 && test "$tmp_diet" = no
8856      then
8857	tmp_addflag=' $pic_flag'
8858	tmp_sharedflag='-shared'
8859	case $cc_basename,$host_cpu in
8860        pgcc*)				# Portland Group C compiler
8861	  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'
8862	  tmp_addflag=' $pic_flag'
8863	  ;;
8864	pgf77* | pgf90* | pgf95* | pgfortran*)
8865					# Portland Group f77 and f90 compilers
8866	  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'
8867	  tmp_addflag=' $pic_flag -Mnomain' ;;
8868	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8869	  tmp_addflag=' -i_dynamic' ;;
8870	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8871	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8872	ifc* | ifort*)			# Intel Fortran compiler
8873	  tmp_addflag=' -nofor_main' ;;
8874	lf95*)				# Lahey Fortran 8.1
8875	  whole_archive_flag_spec=
8876	  tmp_sharedflag='--shared' ;;
8877	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8878	  tmp_sharedflag='-qmkshrobj'
8879	  tmp_addflag= ;;
8880	nvcc*)	# Cuda Compiler Driver 2.2
8881	  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'
8882	  compiler_needs_object=yes
8883	  ;;
8884	esac
8885	case `$CC -V 2>&1 | sed 5q` in
8886	*Sun\ C*)			# Sun C 5.9
8887	  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'
8888	  compiler_needs_object=yes
8889	  tmp_sharedflag='-G' ;;
8890	*Sun\ F*)			# Sun Fortran 8.3
8891	  tmp_sharedflag='-G' ;;
8892	esac
8893	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8894
8895        if test "x$supports_anon_versioning" = xyes; then
8896          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8897	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8898	    echo "local: *; };" >> $output_objdir/$libname.ver~
8899	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8900        fi
8901
8902	case $cc_basename in
8903	xlf* | bgf* | bgxlf* | mpixlf*)
8904	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8905	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8906	  hardcode_libdir_flag_spec=
8907	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8908	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8909	  if test "x$supports_anon_versioning" = xyes; then
8910	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8911	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8912	      echo "local: *; };" >> $output_objdir/$libname.ver~
8913	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8914	  fi
8915	  ;;
8916	esac
8917      else
8918        ld_shlibs=no
8919      fi
8920      ;;
8921
8922    netbsd*)
8923      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8924	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8925	wlarc=
8926      else
8927	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8928	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8929      fi
8930      ;;
8931
8932    solaris*)
8933      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8934	ld_shlibs=no
8935	cat <<_LT_EOF 1>&2
8936
8937*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8938*** create shared libraries on Solaris systems.  Therefore, libtool
8939*** is disabling shared libraries support.  We urge you to upgrade GNU
8940*** binutils to release 2.9.1 or newer.  Another option is to modify
8941*** your PATH or compiler configuration so that the native linker is
8942*** used, and then restart.
8943
8944_LT_EOF
8945      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8946	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8947	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8948      else
8949	ld_shlibs=no
8950      fi
8951      ;;
8952
8953    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8954      case `$LD -v 2>&1` in
8955        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8956	ld_shlibs=no
8957	cat <<_LT_EOF 1>&2
8958
8959*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8960*** reliably create shared libraries on SCO systems.  Therefore, libtool
8961*** is disabling shared libraries support.  We urge you to upgrade GNU
8962*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8963*** your PATH or compiler configuration so that the native linker is
8964*** used, and then restart.
8965
8966_LT_EOF
8967	;;
8968	*)
8969	  # For security reasons, it is highly recommended that you always
8970	  # use absolute paths for naming shared libraries, and exclude the
8971	  # DT_RUNPATH tag from executables and libraries.  But doing so
8972	  # requires that you compile everything twice, which is a pain.
8973	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8974	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8977	  else
8978	    ld_shlibs=no
8979	  fi
8980	;;
8981      esac
8982      ;;
8983
8984    sunos4*)
8985      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8986      wlarc=
8987      hardcode_direct=yes
8988      hardcode_shlibpath_var=no
8989      ;;
8990
8991    *)
8992      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8993	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995      else
8996	ld_shlibs=no
8997      fi
8998      ;;
8999    esac
9000
9001    if test "$ld_shlibs" = no; then
9002      runpath_var=
9003      hardcode_libdir_flag_spec=
9004      export_dynamic_flag_spec=
9005      whole_archive_flag_spec=
9006    fi
9007  else
9008    # PORTME fill in a description of your system's linker (not GNU ld)
9009    case $host_os in
9010    aix3*)
9011      allow_undefined_flag=unsupported
9012      always_export_symbols=yes
9013      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'
9014      # Note: this linker hardcodes the directories in LIBPATH if there
9015      # are no directories specified by -L.
9016      hardcode_minus_L=yes
9017      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9018	# Neither direct hardcoding nor static linking is supported with a
9019	# broken collect2.
9020	hardcode_direct=unsupported
9021      fi
9022      ;;
9023
9024    aix[4-9]*)
9025      if test "$host_cpu" = ia64; then
9026	# On IA64, the linker does run time linking by default, so we don't
9027	# have to do anything special.
9028	aix_use_runtimelinking=no
9029	exp_sym_flag='-Bexport'
9030	no_entry_flag=""
9031      else
9032	# If we're using GNU nm, then we don't want the "-C" option.
9033	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9034	# Also, AIX nm treats weak defined symbols like other global
9035	# defined symbols, whereas GNU nm marks them as "W".
9036	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9037	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9038	else
9039	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9040	fi
9041	aix_use_runtimelinking=no
9042
9043	# Test if we are trying to use run time linking or normal
9044	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9045	# need to do runtime linking.
9046	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9047	  for ld_flag in $LDFLAGS; do
9048	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9049	    aix_use_runtimelinking=yes
9050	    break
9051	  fi
9052	  done
9053	  ;;
9054	esac
9055
9056	exp_sym_flag='-bexport'
9057	no_entry_flag='-bnoentry'
9058      fi
9059
9060      # When large executables or shared objects are built, AIX ld can
9061      # have problems creating the table of contents.  If linking a library
9062      # or program results in "error TOC overflow" add -mminimal-toc to
9063      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9064      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9065
9066      archive_cmds=''
9067      hardcode_direct=yes
9068      hardcode_direct_absolute=yes
9069      hardcode_libdir_separator=':'
9070      link_all_deplibs=yes
9071      file_list_spec='${wl}-f,'
9072
9073      if test "$GCC" = yes; then
9074	case $host_os in aix4.[012]|aix4.[012].*)
9075	# We only want to do this on AIX 4.2 and lower, the check
9076	# below for broken collect2 doesn't work under 4.3+
9077	  collect2name=`${CC} -print-prog-name=collect2`
9078	  if test -f "$collect2name" &&
9079	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9080	  then
9081	  # We have reworked collect2
9082	  :
9083	  else
9084	  # We have old collect2
9085	  hardcode_direct=unsupported
9086	  # It fails to find uninstalled libraries when the uninstalled
9087	  # path is not listed in the libpath.  Setting hardcode_minus_L
9088	  # to unsupported forces relinking
9089	  hardcode_minus_L=yes
9090	  hardcode_libdir_flag_spec='-L$libdir'
9091	  hardcode_libdir_separator=
9092	  fi
9093	  ;;
9094	esac
9095	shared_flag='-shared'
9096	if test "$aix_use_runtimelinking" = yes; then
9097	  shared_flag="$shared_flag "'${wl}-G'
9098	fi
9099      else
9100	# not using gcc
9101	if test "$host_cpu" = ia64; then
9102	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9103	# chokes on -Wl,-G. The following line is correct:
9104	  shared_flag='-G'
9105	else
9106	  if test "$aix_use_runtimelinking" = yes; then
9107	    shared_flag='${wl}-G'
9108	  else
9109	    shared_flag='${wl}-bM:SRE'
9110	  fi
9111	fi
9112      fi
9113
9114      export_dynamic_flag_spec='${wl}-bexpall'
9115      # It seems that -bexpall does not export symbols beginning with
9116      # underscore (_), so it is better to generate a list of symbols to export.
9117      always_export_symbols=yes
9118      if test "$aix_use_runtimelinking" = yes; then
9119	# Warning - without using the other runtime loading flags (-brtl),
9120	# -berok will link without error, but may produce a broken library.
9121	allow_undefined_flag='-berok'
9122        # Determine the default libpath from the value encoded in an
9123        # empty executable.
9124        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126
9127int
9128main ()
9129{
9130
9131  ;
9132  return 0;
9133}
9134_ACEOF
9135if ac_fn_c_try_link "$LINENO"; then :
9136
9137lt_aix_libpath_sed='
9138    /Import File Strings/,/^$/ {
9139	/^0/ {
9140	    s/^0  *\(.*\)$/\1/
9141	    p
9142	}
9143    }'
9144aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9145# Check for a 64-bit object if we didn't find anything.
9146if test -z "$aix_libpath"; then
9147  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9148fi
9149fi
9150rm -f core conftest.err conftest.$ac_objext \
9151    conftest$ac_exeext conftest.$ac_ext
9152if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9153
9154        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9155        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9156      else
9157	if test "$host_cpu" = ia64; then
9158	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9159	  allow_undefined_flag="-z nodefs"
9160	  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"
9161	else
9162	 # Determine the default libpath from the value encoded in an
9163	 # empty executable.
9164	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h.  */
9166
9167int
9168main ()
9169{
9170
9171  ;
9172  return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_link "$LINENO"; then :
9176
9177lt_aix_libpath_sed='
9178    /Import File Strings/,/^$/ {
9179	/^0/ {
9180	    s/^0  *\(.*\)$/\1/
9181	    p
9182	}
9183    }'
9184aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185# Check for a 64-bit object if we didn't find anything.
9186if test -z "$aix_libpath"; then
9187  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9188fi
9189fi
9190rm -f core conftest.err conftest.$ac_objext \
9191    conftest$ac_exeext conftest.$ac_ext
9192if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9193
9194	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9195	  # Warning - without using the other run time loading flags,
9196	  # -berok will link without error, but may produce a broken library.
9197	  no_undefined_flag=' ${wl}-bernotok'
9198	  allow_undefined_flag=' ${wl}-berok'
9199	  if test "$with_gnu_ld" = yes; then
9200	    # We only use this code for GNU lds that support --whole-archive.
9201	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9202	  else
9203	    # Exported symbols can be pulled into shared objects from archives
9204	    whole_archive_flag_spec='$convenience'
9205	  fi
9206	  archive_cmds_need_lc=yes
9207	  # This is similar to how AIX traditionally builds its shared libraries.
9208	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9209	fi
9210      fi
9211      ;;
9212
9213    amigaos*)
9214      case $host_cpu in
9215      powerpc)
9216            # see comment about AmigaOS4 .so support
9217            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218            archive_expsym_cmds=''
9219        ;;
9220      m68k)
9221            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)'
9222            hardcode_libdir_flag_spec='-L$libdir'
9223            hardcode_minus_L=yes
9224        ;;
9225      esac
9226      ;;
9227
9228    bsdi[45]*)
9229      export_dynamic_flag_spec=-rdynamic
9230      ;;
9231
9232    cygwin* | mingw* | pw32* | cegcc*)
9233      # When not using gcc, we currently assume that we are using
9234      # Microsoft Visual C++.
9235      # hardcode_libdir_flag_spec is actually meaningless, as there is
9236      # no search path for DLLs.
9237      hardcode_libdir_flag_spec=' '
9238      allow_undefined_flag=unsupported
9239      # Tell ltmain to make .lib files, not .a files.
9240      libext=lib
9241      # Tell ltmain to make .dll files, not .so files.
9242      shrext_cmds=".dll"
9243      # FIXME: Setting linknames here is a bad hack.
9244      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9245      # The linker will automatically build a .lib file if we build a DLL.
9246      old_archive_from_new_cmds='true'
9247      # FIXME: Should let the user specify the lib program.
9248      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9249      fix_srcfile_path='`cygpath -w "$srcfile"`'
9250      enable_shared_with_static_runtimes=yes
9251      ;;
9252
9253    darwin* | rhapsody*)
9254
9255
9256  archive_cmds_need_lc=no
9257  hardcode_direct=no
9258  hardcode_automatic=yes
9259  hardcode_shlibpath_var=unsupported
9260  if test "$lt_cv_ld_force_load" = "yes"; then
9261    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\"`'
9262  else
9263    whole_archive_flag_spec=''
9264  fi
9265  link_all_deplibs=yes
9266  allow_undefined_flag="$_lt_dar_allow_undefined"
9267  case $cc_basename in
9268     ifort*) _lt_dar_can_shared=yes ;;
9269     *) _lt_dar_can_shared=$GCC ;;
9270  esac
9271  if test "$_lt_dar_can_shared" = "yes"; then
9272    output_verbose_link_cmd=func_echo_all
9273    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9274    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9275    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}"
9276    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}"
9277
9278  else
9279  ld_shlibs=no
9280  fi
9281
9282      ;;
9283
9284    dgux*)
9285      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9286      hardcode_libdir_flag_spec='-L$libdir'
9287      hardcode_shlibpath_var=no
9288      ;;
9289
9290    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9291    # support.  Future versions do this automatically, but an explicit c++rt0.o
9292    # does not break anything, and helps significantly (at the cost of a little
9293    # extra space).
9294    freebsd2.2*)
9295      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9296      hardcode_libdir_flag_spec='-R$libdir'
9297      hardcode_direct=yes
9298      hardcode_shlibpath_var=no
9299      ;;
9300
9301    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9302    freebsd2.*)
9303      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9304      hardcode_direct=yes
9305      hardcode_minus_L=yes
9306      hardcode_shlibpath_var=no
9307      ;;
9308
9309    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9310    freebsd* | dragonfly*)
9311      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9312      hardcode_libdir_flag_spec='-R$libdir'
9313      hardcode_direct=yes
9314      hardcode_shlibpath_var=no
9315      ;;
9316
9317    hpux9*)
9318      if test "$GCC" = yes; then
9319	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9320      else
9321	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9322      fi
9323      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9324      hardcode_libdir_separator=:
9325      hardcode_direct=yes
9326
9327      # hardcode_minus_L: Not really in the search PATH,
9328      # but as the default location of the library.
9329      hardcode_minus_L=yes
9330      export_dynamic_flag_spec='${wl}-E'
9331      ;;
9332
9333    hpux10*)
9334      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9335	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9336      else
9337	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9338      fi
9339      if test "$with_gnu_ld" = no; then
9340	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9341	hardcode_libdir_flag_spec_ld='+b $libdir'
9342	hardcode_libdir_separator=:
9343	hardcode_direct=yes
9344	hardcode_direct_absolute=yes
9345	export_dynamic_flag_spec='${wl}-E'
9346	# hardcode_minus_L: Not really in the search PATH,
9347	# but as the default location of the library.
9348	hardcode_minus_L=yes
9349      fi
9350      ;;
9351
9352    hpux11*)
9353      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9354	case $host_cpu in
9355	hppa*64*)
9356	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9357	  ;;
9358	ia64*)
9359	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9360	  ;;
9361	*)
9362	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9363	  ;;
9364	esac
9365      else
9366	case $host_cpu in
9367	hppa*64*)
9368	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9369	  ;;
9370	ia64*)
9371	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9372	  ;;
9373	*)
9374
9375	  # Older versions of the 11.00 compiler do not understand -b yet
9376	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9377	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9378$as_echo_n "checking if $CC understands -b... " >&6; }
9379if test "${lt_cv_prog_compiler__b+set}" = set; then :
9380  $as_echo_n "(cached) " >&6
9381else
9382  lt_cv_prog_compiler__b=no
9383   save_LDFLAGS="$LDFLAGS"
9384   LDFLAGS="$LDFLAGS -b"
9385   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9386   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9387     # The linker can only warn and ignore the option if not recognized
9388     # So say no if there are warnings
9389     if test -s conftest.err; then
9390       # Append any errors to the config.log.
9391       cat conftest.err 1>&5
9392       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9393       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9394       if diff conftest.exp conftest.er2 >/dev/null; then
9395         lt_cv_prog_compiler__b=yes
9396       fi
9397     else
9398       lt_cv_prog_compiler__b=yes
9399     fi
9400   fi
9401   $RM -r conftest*
9402   LDFLAGS="$save_LDFLAGS"
9403
9404fi
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9406$as_echo "$lt_cv_prog_compiler__b" >&6; }
9407
9408if test x"$lt_cv_prog_compiler__b" = xyes; then
9409    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9410else
9411    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9412fi
9413
9414	  ;;
9415	esac
9416      fi
9417      if test "$with_gnu_ld" = no; then
9418	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9419	hardcode_libdir_separator=:
9420
9421	case $host_cpu in
9422	hppa*64*|ia64*)
9423	  hardcode_direct=no
9424	  hardcode_shlibpath_var=no
9425	  ;;
9426	*)
9427	  hardcode_direct=yes
9428	  hardcode_direct_absolute=yes
9429	  export_dynamic_flag_spec='${wl}-E'
9430
9431	  # hardcode_minus_L: Not really in the search PATH,
9432	  # but as the default location of the library.
9433	  hardcode_minus_L=yes
9434	  ;;
9435	esac
9436      fi
9437      ;;
9438
9439    irix5* | irix6* | nonstopux*)
9440      if test "$GCC" = yes; then
9441	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9442	# Try to use the -exported_symbol ld option, if it does not
9443	# work, assume that -exports_file does not work either and
9444	# implicitly export all symbols.
9445        save_LDFLAGS="$LDFLAGS"
9446        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9447        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448/* end confdefs.h.  */
9449int foo(void) {}
9450_ACEOF
9451if ac_fn_c_try_link "$LINENO"; then :
9452  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9453
9454fi
9455rm -f core conftest.err conftest.$ac_objext \
9456    conftest$ac_exeext conftest.$ac_ext
9457        LDFLAGS="$save_LDFLAGS"
9458      else
9459	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'
9460	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'
9461      fi
9462      archive_cmds_need_lc='no'
9463      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9464      hardcode_libdir_separator=:
9465      inherit_rpath=yes
9466      link_all_deplibs=yes
9467      ;;
9468
9469    netbsd*)
9470      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9471	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9472      else
9473	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9474      fi
9475      hardcode_libdir_flag_spec='-R$libdir'
9476      hardcode_direct=yes
9477      hardcode_shlibpath_var=no
9478      ;;
9479
9480    newsos6)
9481      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9482      hardcode_direct=yes
9483      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9484      hardcode_libdir_separator=:
9485      hardcode_shlibpath_var=no
9486      ;;
9487
9488    *nto* | *qnx*)
9489      ;;
9490
9491    openbsd*)
9492      if test -f /usr/libexec/ld.so; then
9493	hardcode_direct=yes
9494	hardcode_shlibpath_var=no
9495	hardcode_direct_absolute=yes
9496	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9497	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9498	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9499	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9500	  export_dynamic_flag_spec='${wl}-E'
9501	else
9502	  case $host_os in
9503	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9504	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9505	     hardcode_libdir_flag_spec='-R$libdir'
9506	     ;;
9507	   *)
9508	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9509	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9510	     ;;
9511	  esac
9512	fi
9513      else
9514	ld_shlibs=no
9515      fi
9516      ;;
9517
9518    os2*)
9519      hardcode_libdir_flag_spec='-L$libdir'
9520      hardcode_minus_L=yes
9521      allow_undefined_flag=unsupported
9522      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9523      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9524      ;;
9525
9526    osf3*)
9527      if test "$GCC" = yes; then
9528	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9529	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'
9530      else
9531	allow_undefined_flag=' -expect_unresolved \*'
9532	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'
9533      fi
9534      archive_cmds_need_lc='no'
9535      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9536      hardcode_libdir_separator=:
9537      ;;
9538
9539    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9540      if test "$GCC" = yes; then
9541	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9542	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9543	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9544      else
9545	allow_undefined_flag=' -expect_unresolved \*'
9546	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'
9547	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~
9548	$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'
9549
9550	# Both c and cxx compiler support -rpath directly
9551	hardcode_libdir_flag_spec='-rpath $libdir'
9552      fi
9553      archive_cmds_need_lc='no'
9554      hardcode_libdir_separator=:
9555      ;;
9556
9557    solaris*)
9558      no_undefined_flag=' -z defs'
9559      if test "$GCC" = yes; then
9560	wlarc='${wl}'
9561	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9562	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9563	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9564      else
9565	case `$CC -V 2>&1` in
9566	*"Compilers 5.0"*)
9567	  wlarc=''
9568	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9569	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9570	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9571	  ;;
9572	*)
9573	  wlarc='${wl}'
9574	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9575	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9576	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9577	  ;;
9578	esac
9579      fi
9580      hardcode_libdir_flag_spec='-R$libdir'
9581      hardcode_shlibpath_var=no
9582      case $host_os in
9583      solaris2.[0-5] | solaris2.[0-5].*) ;;
9584      *)
9585	# The compiler driver will combine and reorder linker options,
9586	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9587	# but is careful enough not to reorder.
9588	# Supported since Solaris 2.6 (maybe 2.5.1?)
9589	if test "$GCC" = yes; then
9590	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9591	else
9592	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9593	fi
9594	;;
9595      esac
9596      link_all_deplibs=yes
9597      ;;
9598
9599    sunos4*)
9600      if test "x$host_vendor" = xsequent; then
9601	# Use $CC to link under sequent, because it throws in some extra .o
9602	# files that make .init and .fini sections work.
9603	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9604      else
9605	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9606      fi
9607      hardcode_libdir_flag_spec='-L$libdir'
9608      hardcode_direct=yes
9609      hardcode_minus_L=yes
9610      hardcode_shlibpath_var=no
9611      ;;
9612
9613    sysv4)
9614      case $host_vendor in
9615	sni)
9616	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9617	  hardcode_direct=yes # is this really true???
9618	;;
9619	siemens)
9620	  ## LD is ld it makes a PLAMLIB
9621	  ## CC just makes a GrossModule.
9622	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9623	  reload_cmds='$CC -r -o $output$reload_objs'
9624	  hardcode_direct=no
9625        ;;
9626	motorola)
9627	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9629	;;
9630      esac
9631      runpath_var='LD_RUN_PATH'
9632      hardcode_shlibpath_var=no
9633      ;;
9634
9635    sysv4.3*)
9636      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637      hardcode_shlibpath_var=no
9638      export_dynamic_flag_spec='-Bexport'
9639      ;;
9640
9641    sysv4*MP*)
9642      if test -d /usr/nec; then
9643	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644	hardcode_shlibpath_var=no
9645	runpath_var=LD_RUN_PATH
9646	hardcode_runpath_var=yes
9647	ld_shlibs=yes
9648      fi
9649      ;;
9650
9651    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9652      no_undefined_flag='${wl}-z,text'
9653      archive_cmds_need_lc=no
9654      hardcode_shlibpath_var=no
9655      runpath_var='LD_RUN_PATH'
9656
9657      if test "$GCC" = yes; then
9658	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9659	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9660      else
9661	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9662	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9663      fi
9664      ;;
9665
9666    sysv5* | sco3.2v5* | sco5v6*)
9667      # Note: We can NOT use -z defs as we might desire, because we do not
9668      # link with -lc, and that would cause any symbols used from libc to
9669      # always be unresolved, which means just about no library would
9670      # ever link correctly.  If we're not using GNU ld we use -z text
9671      # though, which does catch some bad symbols but isn't as heavy-handed
9672      # as -z defs.
9673      no_undefined_flag='${wl}-z,text'
9674      allow_undefined_flag='${wl}-z,nodefs'
9675      archive_cmds_need_lc=no
9676      hardcode_shlibpath_var=no
9677      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9678      hardcode_libdir_separator=':'
9679      link_all_deplibs=yes
9680      export_dynamic_flag_spec='${wl}-Bexport'
9681      runpath_var='LD_RUN_PATH'
9682
9683      if test "$GCC" = yes; then
9684	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9686      else
9687	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9688	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689      fi
9690      ;;
9691
9692    uts4*)
9693      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694      hardcode_libdir_flag_spec='-L$libdir'
9695      hardcode_shlibpath_var=no
9696      ;;
9697
9698    *)
9699      ld_shlibs=no
9700      ;;
9701    esac
9702
9703    if test x$host_vendor = xsni; then
9704      case $host in
9705      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9706	export_dynamic_flag_spec='${wl}-Blargedynsym'
9707	;;
9708      esac
9709    fi
9710  fi
9711
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9713$as_echo "$ld_shlibs" >&6; }
9714test "$ld_shlibs" = no && can_build_shared=no
9715
9716with_gnu_ld=$with_gnu_ld
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732#
9733# Do we need to explicitly link libc?
9734#
9735case "x$archive_cmds_need_lc" in
9736x|xyes)
9737  # Assume -lc should be added
9738  archive_cmds_need_lc=yes
9739
9740  if test "$enable_shared" = yes && test "$GCC" = yes; then
9741    case $archive_cmds in
9742    *'~'*)
9743      # FIXME: we may have to deal with multi-command sequences.
9744      ;;
9745    '$CC '*)
9746      # Test whether the compiler implicitly links with -lc since on some
9747      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9748      # to ld, don't add -lc before -lgcc.
9749      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9750$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9751if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9752  $as_echo_n "(cached) " >&6
9753else
9754  $RM conftest*
9755	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9756
9757	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9758  (eval $ac_compile) 2>&5
9759  ac_status=$?
9760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9761  test $ac_status = 0; } 2>conftest.err; then
9762	  soname=conftest
9763	  lib=conftest
9764	  libobjs=conftest.$ac_objext
9765	  deplibs=
9766	  wl=$lt_prog_compiler_wl
9767	  pic_flag=$lt_prog_compiler_pic
9768	  compiler_flags=-v
9769	  linker_flags=-v
9770	  verstring=
9771	  output_objdir=.
9772	  libname=conftest
9773	  lt_save_allow_undefined_flag=$allow_undefined_flag
9774	  allow_undefined_flag=
9775	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9776  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9777  ac_status=$?
9778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9779  test $ac_status = 0; }
9780	  then
9781	    lt_cv_archive_cmds_need_lc=no
9782	  else
9783	    lt_cv_archive_cmds_need_lc=yes
9784	  fi
9785	  allow_undefined_flag=$lt_save_allow_undefined_flag
9786	else
9787	  cat conftest.err 1>&5
9788	fi
9789	$RM conftest*
9790
9791fi
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9793$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9794      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9795      ;;
9796    esac
9797  fi
9798  ;;
9799esac
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9958$as_echo_n "checking dynamic linker characteristics... " >&6; }
9959
9960if test "$GCC" = yes; then
9961  case $host_os in
9962    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9963    *) lt_awk_arg="/^libraries:/" ;;
9964  esac
9965  case $host_os in
9966    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9967    *) lt_sed_strip_eq="s,=/,/,g" ;;
9968  esac
9969  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9970  case $lt_search_path_spec in
9971  *\;*)
9972    # if the path contains ";" then we assume it to be the separator
9973    # otherwise default to the standard path separator (i.e. ":") - it is
9974    # assumed that no part of a normal pathname contains ";" but that should
9975    # okay in the real world where ";" in dirpaths is itself problematic.
9976    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9977    ;;
9978  *)
9979    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9980    ;;
9981  esac
9982  # Ok, now we have the path, separated by spaces, we can step through it
9983  # and add multilib dir if necessary.
9984  lt_tmp_lt_search_path_spec=
9985  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9986  for lt_sys_path in $lt_search_path_spec; do
9987    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9988      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9989    else
9990      test -d "$lt_sys_path" && \
9991	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9992    fi
9993  done
9994  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9995BEGIN {RS=" "; FS="/|\n";} {
9996  lt_foo="";
9997  lt_count=0;
9998  for (lt_i = NF; lt_i > 0; lt_i--) {
9999    if ($lt_i != "" && $lt_i != ".") {
10000      if ($lt_i == "..") {
10001        lt_count++;
10002      } else {
10003        if (lt_count == 0) {
10004          lt_foo="/" $lt_i lt_foo;
10005        } else {
10006          lt_count--;
10007        }
10008      }
10009    }
10010  }
10011  if (lt_foo != "") { lt_freq[lt_foo]++; }
10012  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10013}'`
10014  # AWK program above erroneously prepends '/' to C:/dos/paths
10015  # for these hosts.
10016  case $host_os in
10017    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10018      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10019  esac
10020  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10021else
10022  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10023fi
10024library_names_spec=
10025libname_spec='lib$name'
10026soname_spec=
10027shrext_cmds=".so"
10028postinstall_cmds=
10029postuninstall_cmds=
10030finish_cmds=
10031finish_eval=
10032shlibpath_var=
10033shlibpath_overrides_runpath=unknown
10034version_type=none
10035dynamic_linker="$host_os ld.so"
10036sys_lib_dlsearch_path_spec="/lib /usr/lib"
10037need_lib_prefix=unknown
10038hardcode_into_libs=no
10039
10040# when you set need_version to no, make sure it does not cause -set_version
10041# flags to be left without arguments
10042need_version=unknown
10043
10044case $host_os in
10045aix3*)
10046  version_type=linux
10047  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10048  shlibpath_var=LIBPATH
10049
10050  # AIX 3 has no versioning support, so we append a major version to the name.
10051  soname_spec='${libname}${release}${shared_ext}$major'
10052  ;;
10053
10054aix[4-9]*)
10055  version_type=linux
10056  need_lib_prefix=no
10057  need_version=no
10058  hardcode_into_libs=yes
10059  if test "$host_cpu" = ia64; then
10060    # AIX 5 supports IA64
10061    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10062    shlibpath_var=LD_LIBRARY_PATH
10063  else
10064    # With GCC up to 2.95.x, collect2 would create an import file
10065    # for dependence libraries.  The import file would start with
10066    # the line `#! .'.  This would cause the generated library to
10067    # depend on `.', always an invalid library.  This was fixed in
10068    # development snapshots of GCC prior to 3.0.
10069    case $host_os in
10070      aix4 | aix4.[01] | aix4.[01].*)
10071      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10072	   echo ' yes '
10073	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10074	:
10075      else
10076	can_build_shared=no
10077      fi
10078      ;;
10079    esac
10080    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10081    # soname into executable. Probably we can add versioning support to
10082    # collect2, so additional links can be useful in future.
10083    if test "$aix_use_runtimelinking" = yes; then
10084      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10085      # instead of lib<name>.a to let people know that these are not
10086      # typical AIX shared libraries.
10087      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10088    else
10089      # We preserve .a as extension for shared libraries through AIX4.2
10090      # and later when we are not doing run time linking.
10091      library_names_spec='${libname}${release}.a $libname.a'
10092      soname_spec='${libname}${release}${shared_ext}$major'
10093    fi
10094    shlibpath_var=LIBPATH
10095  fi
10096  ;;
10097
10098amigaos*)
10099  case $host_cpu in
10100  powerpc)
10101    # Since July 2007 AmigaOS4 officially supports .so libraries.
10102    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10103    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104    ;;
10105  m68k)
10106    library_names_spec='$libname.ixlibrary $libname.a'
10107    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10108    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10109    ;;
10110  esac
10111  ;;
10112
10113beos*)
10114  library_names_spec='${libname}${shared_ext}'
10115  dynamic_linker="$host_os ld.so"
10116  shlibpath_var=LIBRARY_PATH
10117  ;;
10118
10119bsdi[45]*)
10120  version_type=linux
10121  need_version=no
10122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123  soname_spec='${libname}${release}${shared_ext}$major'
10124  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10125  shlibpath_var=LD_LIBRARY_PATH
10126  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10127  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10128  # the default ld.so.conf also contains /usr/contrib/lib and
10129  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10130  # libtool to hard-code these into programs
10131  ;;
10132
10133cygwin* | mingw* | pw32* | cegcc*)
10134  version_type=windows
10135  shrext_cmds=".dll"
10136  need_version=no
10137  need_lib_prefix=no
10138
10139  case $GCC,$host_os in
10140  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10141    library_names_spec='$libname.dll.a'
10142    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10143    postinstall_cmds='base_file=`basename \${file}`~
10144      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10145      dldir=$destdir/`dirname \$dlpath`~
10146      test -d \$dldir || mkdir -p \$dldir~
10147      $install_prog $dir/$dlname \$dldir/$dlname~
10148      chmod a+x \$dldir/$dlname~
10149      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10150        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10151      fi'
10152    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10153      dlpath=$dir/\$dldll~
10154       $RM \$dlpath'
10155    shlibpath_overrides_runpath=yes
10156
10157    case $host_os in
10158    cygwin*)
10159      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10160      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10161
10162      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10163      ;;
10164    mingw* | cegcc*)
10165      # MinGW DLLs use traditional 'lib' prefix
10166      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10167      ;;
10168    pw32*)
10169      # pw32 DLLs use 'pw' prefix rather than 'lib'
10170      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10171      ;;
10172    esac
10173    ;;
10174
10175  *)
10176    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10177    ;;
10178  esac
10179  dynamic_linker='Win32 ld.exe'
10180  # FIXME: first we should search . and the directory the executable is in
10181  shlibpath_var=PATH
10182  ;;
10183
10184darwin* | rhapsody*)
10185  dynamic_linker="$host_os dyld"
10186  version_type=darwin
10187  need_lib_prefix=no
10188  need_version=no
10189  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10190  soname_spec='${libname}${release}${major}$shared_ext'
10191  shlibpath_overrides_runpath=yes
10192  shlibpath_var=DYLD_LIBRARY_PATH
10193  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10194
10195  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10196  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10197  ;;
10198
10199dgux*)
10200  version_type=linux
10201  need_lib_prefix=no
10202  need_version=no
10203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10204  soname_spec='${libname}${release}${shared_ext}$major'
10205  shlibpath_var=LD_LIBRARY_PATH
10206  ;;
10207
10208freebsd* | dragonfly*)
10209  # DragonFly does not have aout.  When/if they implement a new
10210  # versioning mechanism, adjust this.
10211  if test -x /usr/bin/objformat; then
10212    objformat=`/usr/bin/objformat`
10213  else
10214    case $host_os in
10215    freebsd[23].*) objformat=aout ;;
10216    *) objformat=elf ;;
10217    esac
10218  fi
10219  version_type=freebsd-$objformat
10220  case $version_type in
10221    freebsd-elf*)
10222      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10223      need_version=no
10224      need_lib_prefix=no
10225      ;;
10226    freebsd-*)
10227      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10228      need_version=yes
10229      ;;
10230  esac
10231  shlibpath_var=LD_LIBRARY_PATH
10232  case $host_os in
10233  freebsd2.*)
10234    shlibpath_overrides_runpath=yes
10235    ;;
10236  freebsd3.[01]* | freebsdelf3.[01]*)
10237    shlibpath_overrides_runpath=yes
10238    hardcode_into_libs=yes
10239    ;;
10240  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10241  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10242    shlibpath_overrides_runpath=no
10243    hardcode_into_libs=yes
10244    ;;
10245  *) # from 4.6 on, and DragonFly
10246    shlibpath_overrides_runpath=yes
10247    hardcode_into_libs=yes
10248    ;;
10249  esac
10250  ;;
10251
10252gnu*)
10253  version_type=linux
10254  need_lib_prefix=no
10255  need_version=no
10256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10257  soname_spec='${libname}${release}${shared_ext}$major'
10258  shlibpath_var=LD_LIBRARY_PATH
10259  hardcode_into_libs=yes
10260  ;;
10261
10262haiku*)
10263  version_type=linux
10264  need_lib_prefix=no
10265  need_version=no
10266  dynamic_linker="$host_os runtime_loader"
10267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10268  soname_spec='${libname}${release}${shared_ext}$major'
10269  shlibpath_var=LIBRARY_PATH
10270  shlibpath_overrides_runpath=yes
10271  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10272  hardcode_into_libs=yes
10273  ;;
10274
10275hpux9* | hpux10* | hpux11*)
10276  # Give a soname corresponding to the major version so that dld.sl refuses to
10277  # link against other versions.
10278  version_type=sunos
10279  need_lib_prefix=no
10280  need_version=no
10281  case $host_cpu in
10282  ia64*)
10283    shrext_cmds='.so'
10284    hardcode_into_libs=yes
10285    dynamic_linker="$host_os dld.so"
10286    shlibpath_var=LD_LIBRARY_PATH
10287    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10288    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289    soname_spec='${libname}${release}${shared_ext}$major'
10290    if test "X$HPUX_IA64_MODE" = X32; then
10291      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10292    else
10293      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10294    fi
10295    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10296    ;;
10297  hppa*64*)
10298    shrext_cmds='.sl'
10299    hardcode_into_libs=yes
10300    dynamic_linker="$host_os dld.sl"
10301    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10302    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10303    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304    soname_spec='${libname}${release}${shared_ext}$major'
10305    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10306    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10307    ;;
10308  *)
10309    shrext_cmds='.sl'
10310    dynamic_linker="$host_os dld.sl"
10311    shlibpath_var=SHLIB_PATH
10312    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10313    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314    soname_spec='${libname}${release}${shared_ext}$major'
10315    ;;
10316  esac
10317  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10318  postinstall_cmds='chmod 555 $lib'
10319  # or fails outright, so override atomically:
10320  install_override_mode=555
10321  ;;
10322
10323interix[3-9]*)
10324  version_type=linux
10325  need_lib_prefix=no
10326  need_version=no
10327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10328  soname_spec='${libname}${release}${shared_ext}$major'
10329  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10330  shlibpath_var=LD_LIBRARY_PATH
10331  shlibpath_overrides_runpath=no
10332  hardcode_into_libs=yes
10333  ;;
10334
10335irix5* | irix6* | nonstopux*)
10336  case $host_os in
10337    nonstopux*) version_type=nonstopux ;;
10338    *)
10339	if test "$lt_cv_prog_gnu_ld" = yes; then
10340		version_type=linux
10341	else
10342		version_type=irix
10343	fi ;;
10344  esac
10345  need_lib_prefix=no
10346  need_version=no
10347  soname_spec='${libname}${release}${shared_ext}$major'
10348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10349  case $host_os in
10350  irix5* | nonstopux*)
10351    libsuff= shlibsuff=
10352    ;;
10353  *)
10354    case $LD in # libtool.m4 will add one of these switches to LD
10355    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10356      libsuff= shlibsuff= libmagic=32-bit;;
10357    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10358      libsuff=32 shlibsuff=N32 libmagic=N32;;
10359    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10360      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10361    *) libsuff= shlibsuff= libmagic=never-match;;
10362    esac
10363    ;;
10364  esac
10365  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10366  shlibpath_overrides_runpath=no
10367  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10368  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10369  hardcode_into_libs=yes
10370  ;;
10371
10372# No shared lib support for Linux oldld, aout, or coff.
10373linux*oldld* | linux*aout* | linux*coff*)
10374  dynamic_linker=no
10375  ;;
10376
10377# This must be Linux ELF.
10378linux* | k*bsd*-gnu | kopensolaris*-gnu)
10379  version_type=linux
10380  need_lib_prefix=no
10381  need_version=no
10382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383  soname_spec='${libname}${release}${shared_ext}$major'
10384  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10385  shlibpath_var=LD_LIBRARY_PATH
10386  shlibpath_overrides_runpath=no
10387
10388  # Some binutils ld are patched to set DT_RUNPATH
10389  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10390  $as_echo_n "(cached) " >&6
10391else
10392  lt_cv_shlibpath_overrides_runpath=no
10393    save_LDFLAGS=$LDFLAGS
10394    save_libdir=$libdir
10395    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10396	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10397    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398/* end confdefs.h.  */
10399
10400int
10401main ()
10402{
10403
10404  ;
10405  return 0;
10406}
10407_ACEOF
10408if ac_fn_c_try_link "$LINENO"; then :
10409  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10410  lt_cv_shlibpath_overrides_runpath=yes
10411fi
10412fi
10413rm -f core conftest.err conftest.$ac_objext \
10414    conftest$ac_exeext conftest.$ac_ext
10415    LDFLAGS=$save_LDFLAGS
10416    libdir=$save_libdir
10417
10418fi
10419
10420  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10421
10422  # This implies no fast_install, which is unacceptable.
10423  # Some rework will be needed to allow for fast_install
10424  # before this can be enabled.
10425  hardcode_into_libs=yes
10426
10427  # Append ld.so.conf contents to the search path
10428  if test -f /etc/ld.so.conf; then
10429    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' ' '`
10430    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10431  fi
10432
10433  # We used to test for /lib/ld.so.1 and disable shared libraries on
10434  # powerpc, because MkLinux only supported shared libraries with the
10435  # GNU dynamic linker.  Since this was broken with cross compilers,
10436  # most powerpc-linux boxes support dynamic linking these days and
10437  # people can always --disable-shared, the test was removed, and we
10438  # assume the GNU/Linux dynamic linker is in use.
10439  dynamic_linker='GNU/Linux ld.so'
10440  ;;
10441
10442netbsd*)
10443  version_type=sunos
10444  need_lib_prefix=no
10445  need_version=no
10446  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10448    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10449    dynamic_linker='NetBSD (a.out) ld.so'
10450  else
10451    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10452    soname_spec='${libname}${release}${shared_ext}$major'
10453    dynamic_linker='NetBSD ld.elf_so'
10454  fi
10455  shlibpath_var=LD_LIBRARY_PATH
10456  shlibpath_overrides_runpath=yes
10457  hardcode_into_libs=yes
10458  ;;
10459
10460newsos6)
10461  version_type=linux
10462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463  shlibpath_var=LD_LIBRARY_PATH
10464  shlibpath_overrides_runpath=yes
10465  ;;
10466
10467*nto* | *qnx*)
10468  version_type=qnx
10469  need_lib_prefix=no
10470  need_version=no
10471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472  soname_spec='${libname}${release}${shared_ext}$major'
10473  shlibpath_var=LD_LIBRARY_PATH
10474  shlibpath_overrides_runpath=no
10475  hardcode_into_libs=yes
10476  dynamic_linker='ldqnx.so'
10477  ;;
10478
10479openbsd*)
10480  version_type=sunos
10481  sys_lib_dlsearch_path_spec="/usr/lib"
10482  need_lib_prefix=no
10483  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10484  case $host_os in
10485    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10486    *)				need_version=no  ;;
10487  esac
10488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10489  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10490  shlibpath_var=LD_LIBRARY_PATH
10491  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10492    case $host_os in
10493      openbsd2.[89] | openbsd2.[89].*)
10494	shlibpath_overrides_runpath=no
10495	;;
10496      *)
10497	shlibpath_overrides_runpath=yes
10498	;;
10499      esac
10500  else
10501    shlibpath_overrides_runpath=yes
10502  fi
10503  ;;
10504
10505os2*)
10506  libname_spec='$name'
10507  shrext_cmds=".dll"
10508  need_lib_prefix=no
10509  library_names_spec='$libname${shared_ext} $libname.a'
10510  dynamic_linker='OS/2 ld.exe'
10511  shlibpath_var=LIBPATH
10512  ;;
10513
10514osf3* | osf4* | osf5*)
10515  version_type=osf
10516  need_lib_prefix=no
10517  need_version=no
10518  soname_spec='${libname}${release}${shared_ext}$major'
10519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520  shlibpath_var=LD_LIBRARY_PATH
10521  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10522  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10523  ;;
10524
10525rdos*)
10526  dynamic_linker=no
10527  ;;
10528
10529solaris*)
10530  version_type=linux
10531  need_lib_prefix=no
10532  need_version=no
10533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534  soname_spec='${libname}${release}${shared_ext}$major'
10535  shlibpath_var=LD_LIBRARY_PATH
10536  shlibpath_overrides_runpath=yes
10537  hardcode_into_libs=yes
10538  # ldd complains unless libraries are executable
10539  postinstall_cmds='chmod +x $lib'
10540  ;;
10541
10542sunos4*)
10543  version_type=sunos
10544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10545  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10546  shlibpath_var=LD_LIBRARY_PATH
10547  shlibpath_overrides_runpath=yes
10548  if test "$with_gnu_ld" = yes; then
10549    need_lib_prefix=no
10550  fi
10551  need_version=yes
10552  ;;
10553
10554sysv4 | sysv4.3*)
10555  version_type=linux
10556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557  soname_spec='${libname}${release}${shared_ext}$major'
10558  shlibpath_var=LD_LIBRARY_PATH
10559  case $host_vendor in
10560    sni)
10561      shlibpath_overrides_runpath=no
10562      need_lib_prefix=no
10563      runpath_var=LD_RUN_PATH
10564      ;;
10565    siemens)
10566      need_lib_prefix=no
10567      ;;
10568    motorola)
10569      need_lib_prefix=no
10570      need_version=no
10571      shlibpath_overrides_runpath=no
10572      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10573      ;;
10574  esac
10575  ;;
10576
10577sysv4*MP*)
10578  if test -d /usr/nec ;then
10579    version_type=linux
10580    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10581    soname_spec='$libname${shared_ext}.$major'
10582    shlibpath_var=LD_LIBRARY_PATH
10583  fi
10584  ;;
10585
10586sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10587  version_type=freebsd-elf
10588  need_lib_prefix=no
10589  need_version=no
10590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10591  soname_spec='${libname}${release}${shared_ext}$major'
10592  shlibpath_var=LD_LIBRARY_PATH
10593  shlibpath_overrides_runpath=yes
10594  hardcode_into_libs=yes
10595  if test "$with_gnu_ld" = yes; then
10596    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10597  else
10598    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10599    case $host_os in
10600      sco3.2v5*)
10601        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10602	;;
10603    esac
10604  fi
10605  sys_lib_dlsearch_path_spec='/usr/lib'
10606  ;;
10607
10608tpf*)
10609  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10610  version_type=linux
10611  need_lib_prefix=no
10612  need_version=no
10613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614  shlibpath_var=LD_LIBRARY_PATH
10615  shlibpath_overrides_runpath=no
10616  hardcode_into_libs=yes
10617  ;;
10618
10619uts4*)
10620  version_type=linux
10621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622  soname_spec='${libname}${release}${shared_ext}$major'
10623  shlibpath_var=LD_LIBRARY_PATH
10624  ;;
10625
10626*)
10627  dynamic_linker=no
10628  ;;
10629esac
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10631$as_echo "$dynamic_linker" >&6; }
10632test "$dynamic_linker" = no && can_build_shared=no
10633
10634variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10635if test "$GCC" = yes; then
10636  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10637fi
10638
10639if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10640  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10641fi
10642if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10643  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10644fi
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10738$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10739hardcode_action=
10740if test -n "$hardcode_libdir_flag_spec" ||
10741   test -n "$runpath_var" ||
10742   test "X$hardcode_automatic" = "Xyes" ; then
10743
10744  # We can hardcode non-existent directories.
10745  if test "$hardcode_direct" != no &&
10746     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10747     # have to relink, otherwise we might link with an installed library
10748     # when we should be linking with a yet-to-be-installed one
10749     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10750     test "$hardcode_minus_L" != no; then
10751    # Linking always hardcodes the temporary library directory.
10752    hardcode_action=relink
10753  else
10754    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10755    hardcode_action=immediate
10756  fi
10757else
10758  # We cannot hardcode anything, or else we can only hardcode existing
10759  # directories.
10760  hardcode_action=unsupported
10761fi
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10763$as_echo "$hardcode_action" >&6; }
10764
10765if test "$hardcode_action" = relink ||
10766   test "$inherit_rpath" = yes; then
10767  # Fast installation is not supported
10768  enable_fast_install=no
10769elif test "$shlibpath_overrides_runpath" = yes ||
10770     test "$enable_shared" = no; then
10771  # Fast installation is not necessary
10772  enable_fast_install=needless
10773fi
10774
10775
10776
10777
10778
10779
10780  if test "x$enable_dlopen" != xyes; then
10781  enable_dlopen=unknown
10782  enable_dlopen_self=unknown
10783  enable_dlopen_self_static=unknown
10784else
10785  lt_cv_dlopen=no
10786  lt_cv_dlopen_libs=
10787
10788  case $host_os in
10789  beos*)
10790    lt_cv_dlopen="load_add_on"
10791    lt_cv_dlopen_libs=
10792    lt_cv_dlopen_self=yes
10793    ;;
10794
10795  mingw* | pw32* | cegcc*)
10796    lt_cv_dlopen="LoadLibrary"
10797    lt_cv_dlopen_libs=
10798    ;;
10799
10800  cygwin*)
10801    lt_cv_dlopen="dlopen"
10802    lt_cv_dlopen_libs=
10803    ;;
10804
10805  darwin*)
10806  # if libdl is installed we need to link against it
10807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10808$as_echo_n "checking for dlopen in -ldl... " >&6; }
10809if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10810  $as_echo_n "(cached) " >&6
10811else
10812  ac_check_lib_save_LIBS=$LIBS
10813LIBS="-ldl  $LIBS"
10814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815/* end confdefs.h.  */
10816
10817/* Override any GCC internal prototype to avoid an error.
10818   Use char because int might match the return type of a GCC
10819   builtin and then its argument prototype would still apply.  */
10820#ifdef __cplusplus
10821extern "C"
10822#endif
10823char dlopen ();
10824int
10825main ()
10826{
10827return dlopen ();
10828  ;
10829  return 0;
10830}
10831_ACEOF
10832if ac_fn_c_try_link "$LINENO"; then :
10833  ac_cv_lib_dl_dlopen=yes
10834else
10835  ac_cv_lib_dl_dlopen=no
10836fi
10837rm -f core conftest.err conftest.$ac_objext \
10838    conftest$ac_exeext conftest.$ac_ext
10839LIBS=$ac_check_lib_save_LIBS
10840fi
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10842$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10843if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10844  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10845else
10846
10847    lt_cv_dlopen="dyld"
10848    lt_cv_dlopen_libs=
10849    lt_cv_dlopen_self=yes
10850
10851fi
10852
10853    ;;
10854
10855  *)
10856    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10857if test "x$ac_cv_func_shl_load" = x""yes; then :
10858  lt_cv_dlopen="shl_load"
10859else
10860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10861$as_echo_n "checking for shl_load in -ldld... " >&6; }
10862if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10863  $as_echo_n "(cached) " >&6
10864else
10865  ac_check_lib_save_LIBS=$LIBS
10866LIBS="-ldld  $LIBS"
10867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868/* end confdefs.h.  */
10869
10870/* Override any GCC internal prototype to avoid an error.
10871   Use char because int might match the return type of a GCC
10872   builtin and then its argument prototype would still apply.  */
10873#ifdef __cplusplus
10874extern "C"
10875#endif
10876char shl_load ();
10877int
10878main ()
10879{
10880return shl_load ();
10881  ;
10882  return 0;
10883}
10884_ACEOF
10885if ac_fn_c_try_link "$LINENO"; then :
10886  ac_cv_lib_dld_shl_load=yes
10887else
10888  ac_cv_lib_dld_shl_load=no
10889fi
10890rm -f core conftest.err conftest.$ac_objext \
10891    conftest$ac_exeext conftest.$ac_ext
10892LIBS=$ac_check_lib_save_LIBS
10893fi
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10895$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10896if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10897  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10898else
10899  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10900if test "x$ac_cv_func_dlopen" = x""yes; then :
10901  lt_cv_dlopen="dlopen"
10902else
10903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10904$as_echo_n "checking for dlopen in -ldl... " >&6; }
10905if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10906  $as_echo_n "(cached) " >&6
10907else
10908  ac_check_lib_save_LIBS=$LIBS
10909LIBS="-ldl  $LIBS"
10910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911/* end confdefs.h.  */
10912
10913/* Override any GCC internal prototype to avoid an error.
10914   Use char because int might match the return type of a GCC
10915   builtin and then its argument prototype would still apply.  */
10916#ifdef __cplusplus
10917extern "C"
10918#endif
10919char dlopen ();
10920int
10921main ()
10922{
10923return dlopen ();
10924  ;
10925  return 0;
10926}
10927_ACEOF
10928if ac_fn_c_try_link "$LINENO"; then :
10929  ac_cv_lib_dl_dlopen=yes
10930else
10931  ac_cv_lib_dl_dlopen=no
10932fi
10933rm -f core conftest.err conftest.$ac_objext \
10934    conftest$ac_exeext conftest.$ac_ext
10935LIBS=$ac_check_lib_save_LIBS
10936fi
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10938$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10939if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10940  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10941else
10942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10943$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10944if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10945  $as_echo_n "(cached) " >&6
10946else
10947  ac_check_lib_save_LIBS=$LIBS
10948LIBS="-lsvld  $LIBS"
10949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950/* end confdefs.h.  */
10951
10952/* Override any GCC internal prototype to avoid an error.
10953   Use char because int might match the return type of a GCC
10954   builtin and then its argument prototype would still apply.  */
10955#ifdef __cplusplus
10956extern "C"
10957#endif
10958char dlopen ();
10959int
10960main ()
10961{
10962return dlopen ();
10963  ;
10964  return 0;
10965}
10966_ACEOF
10967if ac_fn_c_try_link "$LINENO"; then :
10968  ac_cv_lib_svld_dlopen=yes
10969else
10970  ac_cv_lib_svld_dlopen=no
10971fi
10972rm -f core conftest.err conftest.$ac_objext \
10973    conftest$ac_exeext conftest.$ac_ext
10974LIBS=$ac_check_lib_save_LIBS
10975fi
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10977$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10978if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10979  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10980else
10981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10982$as_echo_n "checking for dld_link in -ldld... " >&6; }
10983if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10984  $as_echo_n "(cached) " >&6
10985else
10986  ac_check_lib_save_LIBS=$LIBS
10987LIBS="-ldld  $LIBS"
10988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989/* end confdefs.h.  */
10990
10991/* Override any GCC internal prototype to avoid an error.
10992   Use char because int might match the return type of a GCC
10993   builtin and then its argument prototype would still apply.  */
10994#ifdef __cplusplus
10995extern "C"
10996#endif
10997char dld_link ();
10998int
10999main ()
11000{
11001return dld_link ();
11002  ;
11003  return 0;
11004}
11005_ACEOF
11006if ac_fn_c_try_link "$LINENO"; then :
11007  ac_cv_lib_dld_dld_link=yes
11008else
11009  ac_cv_lib_dld_dld_link=no
11010fi
11011rm -f core conftest.err conftest.$ac_objext \
11012    conftest$ac_exeext conftest.$ac_ext
11013LIBS=$ac_check_lib_save_LIBS
11014fi
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11016$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11017if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11018  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11019fi
11020
11021
11022fi
11023
11024
11025fi
11026
11027
11028fi
11029
11030
11031fi
11032
11033
11034fi
11035
11036    ;;
11037  esac
11038
11039  if test "x$lt_cv_dlopen" != xno; then
11040    enable_dlopen=yes
11041  else
11042    enable_dlopen=no
11043  fi
11044
11045  case $lt_cv_dlopen in
11046  dlopen)
11047    save_CPPFLAGS="$CPPFLAGS"
11048    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11049
11050    save_LDFLAGS="$LDFLAGS"
11051    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11052
11053    save_LIBS="$LIBS"
11054    LIBS="$lt_cv_dlopen_libs $LIBS"
11055
11056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11057$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11058if test "${lt_cv_dlopen_self+set}" = set; then :
11059  $as_echo_n "(cached) " >&6
11060else
11061  	  if test "$cross_compiling" = yes; then :
11062  lt_cv_dlopen_self=cross
11063else
11064  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11065  lt_status=$lt_dlunknown
11066  cat > conftest.$ac_ext <<_LT_EOF
11067#line 11067 "configure"
11068#include "confdefs.h"
11069
11070#if HAVE_DLFCN_H
11071#include <dlfcn.h>
11072#endif
11073
11074#include <stdio.h>
11075
11076#ifdef RTLD_GLOBAL
11077#  define LT_DLGLOBAL		RTLD_GLOBAL
11078#else
11079#  ifdef DL_GLOBAL
11080#    define LT_DLGLOBAL		DL_GLOBAL
11081#  else
11082#    define LT_DLGLOBAL		0
11083#  endif
11084#endif
11085
11086/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11087   find out it does not work in some platform. */
11088#ifndef LT_DLLAZY_OR_NOW
11089#  ifdef RTLD_LAZY
11090#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11091#  else
11092#    ifdef DL_LAZY
11093#      define LT_DLLAZY_OR_NOW		DL_LAZY
11094#    else
11095#      ifdef RTLD_NOW
11096#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11097#      else
11098#        ifdef DL_NOW
11099#          define LT_DLLAZY_OR_NOW	DL_NOW
11100#        else
11101#          define LT_DLLAZY_OR_NOW	0
11102#        endif
11103#      endif
11104#    endif
11105#  endif
11106#endif
11107
11108/* When -fvisbility=hidden is used, assume the code has been annotated
11109   correspondingly for the symbols needed.  */
11110#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11111void fnord () __attribute__((visibility("default")));
11112#endif
11113
11114void fnord () { int i=42; }
11115int main ()
11116{
11117  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11118  int status = $lt_dlunknown;
11119
11120  if (self)
11121    {
11122      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11123      else
11124        {
11125	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11126          else puts (dlerror ());
11127	}
11128      /* dlclose (self); */
11129    }
11130  else
11131    puts (dlerror ());
11132
11133  return status;
11134}
11135_LT_EOF
11136  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11137  (eval $ac_link) 2>&5
11138  ac_status=$?
11139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11140  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11141    (./conftest; exit; ) >&5 2>/dev/null
11142    lt_status=$?
11143    case x$lt_status in
11144      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11145      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11146      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11147    esac
11148  else :
11149    # compilation failed
11150    lt_cv_dlopen_self=no
11151  fi
11152fi
11153rm -fr conftest*
11154
11155
11156fi
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11158$as_echo "$lt_cv_dlopen_self" >&6; }
11159
11160    if test "x$lt_cv_dlopen_self" = xyes; then
11161      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11162      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11163$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11164if test "${lt_cv_dlopen_self_static+set}" = set; then :
11165  $as_echo_n "(cached) " >&6
11166else
11167  	  if test "$cross_compiling" = yes; then :
11168  lt_cv_dlopen_self_static=cross
11169else
11170  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11171  lt_status=$lt_dlunknown
11172  cat > conftest.$ac_ext <<_LT_EOF
11173#line 11173 "configure"
11174#include "confdefs.h"
11175
11176#if HAVE_DLFCN_H
11177#include <dlfcn.h>
11178#endif
11179
11180#include <stdio.h>
11181
11182#ifdef RTLD_GLOBAL
11183#  define LT_DLGLOBAL		RTLD_GLOBAL
11184#else
11185#  ifdef DL_GLOBAL
11186#    define LT_DLGLOBAL		DL_GLOBAL
11187#  else
11188#    define LT_DLGLOBAL		0
11189#  endif
11190#endif
11191
11192/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11193   find out it does not work in some platform. */
11194#ifndef LT_DLLAZY_OR_NOW
11195#  ifdef RTLD_LAZY
11196#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11197#  else
11198#    ifdef DL_LAZY
11199#      define LT_DLLAZY_OR_NOW		DL_LAZY
11200#    else
11201#      ifdef RTLD_NOW
11202#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11203#      else
11204#        ifdef DL_NOW
11205#          define LT_DLLAZY_OR_NOW	DL_NOW
11206#        else
11207#          define LT_DLLAZY_OR_NOW	0
11208#        endif
11209#      endif
11210#    endif
11211#  endif
11212#endif
11213
11214/* When -fvisbility=hidden is used, assume the code has been annotated
11215   correspondingly for the symbols needed.  */
11216#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11217void fnord () __attribute__((visibility("default")));
11218#endif
11219
11220void fnord () { int i=42; }
11221int main ()
11222{
11223  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11224  int status = $lt_dlunknown;
11225
11226  if (self)
11227    {
11228      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11229      else
11230        {
11231	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11232          else puts (dlerror ());
11233	}
11234      /* dlclose (self); */
11235    }
11236  else
11237    puts (dlerror ());
11238
11239  return status;
11240}
11241_LT_EOF
11242  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11243  (eval $ac_link) 2>&5
11244  ac_status=$?
11245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11246  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11247    (./conftest; exit; ) >&5 2>/dev/null
11248    lt_status=$?
11249    case x$lt_status in
11250      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11251      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11252      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11253    esac
11254  else :
11255    # compilation failed
11256    lt_cv_dlopen_self_static=no
11257  fi
11258fi
11259rm -fr conftest*
11260
11261
11262fi
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11264$as_echo "$lt_cv_dlopen_self_static" >&6; }
11265    fi
11266
11267    CPPFLAGS="$save_CPPFLAGS"
11268    LDFLAGS="$save_LDFLAGS"
11269    LIBS="$save_LIBS"
11270    ;;
11271  esac
11272
11273  case $lt_cv_dlopen_self in
11274  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11275  *) enable_dlopen_self=unknown ;;
11276  esac
11277
11278  case $lt_cv_dlopen_self_static in
11279  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11280  *) enable_dlopen_self_static=unknown ;;
11281  esac
11282fi
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300striplib=
11301old_striplib=
11302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11303$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11304if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11305  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11306  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11308$as_echo "yes" >&6; }
11309else
11310# FIXME - insert some real tests, host_os isn't really good enough
11311  case $host_os in
11312  darwin*)
11313    if test -n "$STRIP" ; then
11314      striplib="$STRIP -x"
11315      old_striplib="$STRIP -S"
11316      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11317$as_echo "yes" >&6; }
11318    else
11319      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320$as_echo "no" >&6; }
11321    fi
11322    ;;
11323  *)
11324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325$as_echo "no" >&6; }
11326    ;;
11327  esac
11328fi
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341  # Report which library types will actually be built
11342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11343$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11345$as_echo "$can_build_shared" >&6; }
11346
11347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11348$as_echo_n "checking whether to build shared libraries... " >&6; }
11349  test "$can_build_shared" = "no" && enable_shared=no
11350
11351  # On AIX, shared libraries and static libraries use the same namespace, and
11352  # are all built from PIC.
11353  case $host_os in
11354  aix3*)
11355    test "$enable_shared" = yes && enable_static=no
11356    if test -n "$RANLIB"; then
11357      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11358      postinstall_cmds='$RANLIB $lib'
11359    fi
11360    ;;
11361
11362  aix[4-9]*)
11363    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11364      test "$enable_shared" = yes && enable_static=no
11365    fi
11366    ;;
11367  esac
11368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11369$as_echo "$enable_shared" >&6; }
11370
11371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11372$as_echo_n "checking whether to build static libraries... " >&6; }
11373  # Make sure either enable_shared or enable_static is yes.
11374  test "$enable_shared" = yes || enable_static=yes
11375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11376$as_echo "$enable_static" >&6; }
11377
11378
11379
11380
11381fi
11382ac_ext=c
11383ac_cpp='$CPP $CPPFLAGS'
11384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11386ac_compiler_gnu=$ac_cv_c_compiler_gnu
11387
11388CC="$lt_save_CC"
11389
11390      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11391    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11392    (test "X$CXX" != "Xg++"))) ; then
11393  ac_ext=cpp
11394ac_cpp='$CXXCPP $CPPFLAGS'
11395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11399$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11400if test -z "$CXXCPP"; then
11401  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11402  $as_echo_n "(cached) " >&6
11403else
11404      # Double quotes because CXXCPP needs to be expanded
11405    for CXXCPP in "$CXX -E" "/lib/cpp"
11406    do
11407      ac_preproc_ok=false
11408for ac_cxx_preproc_warn_flag in '' yes
11409do
11410  # Use a header file that comes with gcc, so configuring glibc
11411  # with a fresh cross-compiler works.
11412  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11413  # <limits.h> exists even on freestanding compilers.
11414  # On the NeXT, cc -E runs the code through the compiler's parser,
11415  # not just through cpp. "Syntax error" is here to catch this case.
11416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417/* end confdefs.h.  */
11418#ifdef __STDC__
11419# include <limits.h>
11420#else
11421# include <assert.h>
11422#endif
11423		     Syntax error
11424_ACEOF
11425if ac_fn_cxx_try_cpp "$LINENO"; then :
11426
11427else
11428  # Broken: fails on valid input.
11429continue
11430fi
11431rm -f conftest.err conftest.$ac_ext
11432
11433  # OK, works on sane cases.  Now check whether nonexistent headers
11434  # can be detected and how.
11435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436/* end confdefs.h.  */
11437#include <ac_nonexistent.h>
11438_ACEOF
11439if ac_fn_cxx_try_cpp "$LINENO"; then :
11440  # Broken: success on invalid input.
11441continue
11442else
11443  # Passes both tests.
11444ac_preproc_ok=:
11445break
11446fi
11447rm -f conftest.err conftest.$ac_ext
11448
11449done
11450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11451rm -f conftest.err conftest.$ac_ext
11452if $ac_preproc_ok; then :
11453  break
11454fi
11455
11456    done
11457    ac_cv_prog_CXXCPP=$CXXCPP
11458
11459fi
11460  CXXCPP=$ac_cv_prog_CXXCPP
11461else
11462  ac_cv_prog_CXXCPP=$CXXCPP
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11465$as_echo "$CXXCPP" >&6; }
11466ac_preproc_ok=false
11467for ac_cxx_preproc_warn_flag in '' yes
11468do
11469  # Use a header file that comes with gcc, so configuring glibc
11470  # with a fresh cross-compiler works.
11471  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472  # <limits.h> exists even on freestanding compilers.
11473  # On the NeXT, cc -E runs the code through the compiler's parser,
11474  # not just through cpp. "Syntax error" is here to catch this case.
11475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476/* end confdefs.h.  */
11477#ifdef __STDC__
11478# include <limits.h>
11479#else
11480# include <assert.h>
11481#endif
11482		     Syntax error
11483_ACEOF
11484if ac_fn_cxx_try_cpp "$LINENO"; then :
11485
11486else
11487  # Broken: fails on valid input.
11488continue
11489fi
11490rm -f conftest.err conftest.$ac_ext
11491
11492  # OK, works on sane cases.  Now check whether nonexistent headers
11493  # can be detected and how.
11494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495/* end confdefs.h.  */
11496#include <ac_nonexistent.h>
11497_ACEOF
11498if ac_fn_cxx_try_cpp "$LINENO"; then :
11499  # Broken: success on invalid input.
11500continue
11501else
11502  # Passes both tests.
11503ac_preproc_ok=:
11504break
11505fi
11506rm -f conftest.err conftest.$ac_ext
11507
11508done
11509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11510rm -f conftest.err conftest.$ac_ext
11511if $ac_preproc_ok; then :
11512
11513else
11514  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11516as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11517See \`config.log' for more details." "$LINENO" 5; }
11518fi
11519
11520ac_ext=c
11521ac_cpp='$CPP $CPPFLAGS'
11522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11524ac_compiler_gnu=$ac_cv_c_compiler_gnu
11525
11526else
11527  _lt_caught_CXX_error=yes
11528fi
11529
11530ac_ext=cpp
11531ac_cpp='$CXXCPP $CPPFLAGS'
11532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11535
11536archive_cmds_need_lc_CXX=no
11537allow_undefined_flag_CXX=
11538always_export_symbols_CXX=no
11539archive_expsym_cmds_CXX=
11540compiler_needs_object_CXX=no
11541export_dynamic_flag_spec_CXX=
11542hardcode_direct_CXX=no
11543hardcode_direct_absolute_CXX=no
11544hardcode_libdir_flag_spec_CXX=
11545hardcode_libdir_flag_spec_ld_CXX=
11546hardcode_libdir_separator_CXX=
11547hardcode_minus_L_CXX=no
11548hardcode_shlibpath_var_CXX=unsupported
11549hardcode_automatic_CXX=no
11550inherit_rpath_CXX=no
11551module_cmds_CXX=
11552module_expsym_cmds_CXX=
11553link_all_deplibs_CXX=unknown
11554old_archive_cmds_CXX=$old_archive_cmds
11555reload_flag_CXX=$reload_flag
11556reload_cmds_CXX=$reload_cmds
11557no_undefined_flag_CXX=
11558whole_archive_flag_spec_CXX=
11559enable_shared_with_static_runtimes_CXX=no
11560
11561# Source file extension for C++ test sources.
11562ac_ext=cpp
11563
11564# Object file extension for compiled C++ test sources.
11565objext=o
11566objext_CXX=$objext
11567
11568# No sense in running all these tests if we already determined that
11569# the CXX compiler isn't working.  Some variables (like enable_shared)
11570# are currently assumed to apply to all compilers on this platform,
11571# and will be corrupted by setting them based on a non-working compiler.
11572if test "$_lt_caught_CXX_error" != yes; then
11573  # Code to be used in simple compile tests
11574  lt_simple_compile_test_code="int some_variable = 0;"
11575
11576  # Code to be used in simple link tests
11577  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11578
11579  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11580
11581
11582
11583
11584
11585
11586# If no C compiler was specified, use CC.
11587LTCC=${LTCC-"$CC"}
11588
11589# If no C compiler flags were specified, use CFLAGS.
11590LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11591
11592# Allow CC to be a program name with arguments.
11593compiler=$CC
11594
11595
11596  # save warnings/boilerplate of simple test code
11597  ac_outfile=conftest.$ac_objext
11598echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11599eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11600_lt_compiler_boilerplate=`cat conftest.err`
11601$RM conftest*
11602
11603  ac_outfile=conftest.$ac_objext
11604echo "$lt_simple_link_test_code" >conftest.$ac_ext
11605eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11606_lt_linker_boilerplate=`cat conftest.err`
11607$RM -r conftest*
11608
11609
11610  # Allow CC to be a program name with arguments.
11611  lt_save_CC=$CC
11612  lt_save_LD=$LD
11613  lt_save_GCC=$GCC
11614  GCC=$GXX
11615  lt_save_with_gnu_ld=$with_gnu_ld
11616  lt_save_path_LD=$lt_cv_path_LD
11617  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11618    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11619  else
11620    $as_unset lt_cv_prog_gnu_ld
11621  fi
11622  if test -n "${lt_cv_path_LDCXX+set}"; then
11623    lt_cv_path_LD=$lt_cv_path_LDCXX
11624  else
11625    $as_unset lt_cv_path_LD
11626  fi
11627  test -z "${LDCXX+set}" || LD=$LDCXX
11628  CC=${CXX-"c++"}
11629  compiler=$CC
11630  compiler_CXX=$CC
11631  for cc_temp in $compiler""; do
11632  case $cc_temp in
11633    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11634    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11635    \-*) ;;
11636    *) break;;
11637  esac
11638done
11639cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11640
11641
11642  if test -n "$compiler"; then
11643    # We don't want -fno-exception when compiling C++ code, so set the
11644    # no_builtin_flag separately
11645    if test "$GXX" = yes; then
11646      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11647    else
11648      lt_prog_compiler_no_builtin_flag_CXX=
11649    fi
11650
11651    if test "$GXX" = yes; then
11652      # Set up default GNU C++ configuration
11653
11654
11655
11656# Check whether --with-gnu-ld was given.
11657if test "${with_gnu_ld+set}" = set; then :
11658  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11659else
11660  with_gnu_ld=no
11661fi
11662
11663ac_prog=ld
11664if test "$GCC" = yes; then
11665  # Check if gcc -print-prog-name=ld gives a path.
11666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11667$as_echo_n "checking for ld used by $CC... " >&6; }
11668  case $host in
11669  *-*-mingw*)
11670    # gcc leaves a trailing carriage return which upsets mingw
11671    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11672  *)
11673    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11674  esac
11675  case $ac_prog in
11676    # Accept absolute paths.
11677    [\\/]* | ?:[\\/]*)
11678      re_direlt='/[^/][^/]*/\.\./'
11679      # Canonicalize the pathname of ld
11680      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11681      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11682	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11683      done
11684      test -z "$LD" && LD="$ac_prog"
11685      ;;
11686  "")
11687    # If it fails, then pretend we aren't using GCC.
11688    ac_prog=ld
11689    ;;
11690  *)
11691    # If it is relative, then search for the first ld in PATH.
11692    with_gnu_ld=unknown
11693    ;;
11694  esac
11695elif test "$with_gnu_ld" = yes; then
11696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11697$as_echo_n "checking for GNU ld... " >&6; }
11698else
11699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11700$as_echo_n "checking for non-GNU ld... " >&6; }
11701fi
11702if test "${lt_cv_path_LD+set}" = set; then :
11703  $as_echo_n "(cached) " >&6
11704else
11705  if test -z "$LD"; then
11706  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11707  for ac_dir in $PATH; do
11708    IFS="$lt_save_ifs"
11709    test -z "$ac_dir" && ac_dir=.
11710    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11711      lt_cv_path_LD="$ac_dir/$ac_prog"
11712      # Check to see if the program is GNU ld.  I'd rather use --version,
11713      # but apparently some variants of GNU ld only accept -v.
11714      # Break only if it was the GNU/non-GNU ld that we prefer.
11715      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11716      *GNU* | *'with BFD'*)
11717	test "$with_gnu_ld" != no && break
11718	;;
11719      *)
11720	test "$with_gnu_ld" != yes && break
11721	;;
11722      esac
11723    fi
11724  done
11725  IFS="$lt_save_ifs"
11726else
11727  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11728fi
11729fi
11730
11731LD="$lt_cv_path_LD"
11732if test -n "$LD"; then
11733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11734$as_echo "$LD" >&6; }
11735else
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737$as_echo "no" >&6; }
11738fi
11739test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11741$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11742if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11743  $as_echo_n "(cached) " >&6
11744else
11745  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11746case `$LD -v 2>&1 </dev/null` in
11747*GNU* | *'with BFD'*)
11748  lt_cv_prog_gnu_ld=yes
11749  ;;
11750*)
11751  lt_cv_prog_gnu_ld=no
11752  ;;
11753esac
11754fi
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11756$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11757with_gnu_ld=$lt_cv_prog_gnu_ld
11758
11759
11760
11761
11762
11763
11764
11765      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11766      # archiving commands below assume that GNU ld is being used.
11767      if test "$with_gnu_ld" = yes; then
11768        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11769        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'
11770
11771        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11772        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11773
11774        # If archive_cmds runs LD, not CC, wlarc should be empty
11775        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11776        #     investigate it a little bit more. (MM)
11777        wlarc='${wl}'
11778
11779        # ancient GNU ld didn't support --whole-archive et. al.
11780        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11781	  $GREP 'no-whole-archive' > /dev/null; then
11782          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11783        else
11784          whole_archive_flag_spec_CXX=
11785        fi
11786      else
11787        with_gnu_ld=no
11788        wlarc=
11789
11790        # A generic and very simple default shared library creation
11791        # command for GNU C++ for the case where it uses the native
11792        # linker, instead of GNU ld.  If possible, this setting should
11793        # overridden to take advantage of the native linker features on
11794        # the platform it is being used on.
11795        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11796      fi
11797
11798      # Commands to make compiler produce verbose output that lists
11799      # what "hidden" libraries, object files and flags are used when
11800      # linking a shared library.
11801      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11802
11803    else
11804      GXX=no
11805      with_gnu_ld=no
11806      wlarc=
11807    fi
11808
11809    # PORTME: fill in a description of your system's C++ link characteristics
11810    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11811$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11812    ld_shlibs_CXX=yes
11813    case $host_os in
11814      aix3*)
11815        # FIXME: insert proper C++ library support
11816        ld_shlibs_CXX=no
11817        ;;
11818      aix[4-9]*)
11819        if test "$host_cpu" = ia64; then
11820          # On IA64, the linker does run time linking by default, so we don't
11821          # have to do anything special.
11822          aix_use_runtimelinking=no
11823          exp_sym_flag='-Bexport'
11824          no_entry_flag=""
11825        else
11826          aix_use_runtimelinking=no
11827
11828          # Test if we are trying to use run time linking or normal
11829          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11830          # need to do runtime linking.
11831          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11832	    for ld_flag in $LDFLAGS; do
11833	      case $ld_flag in
11834	      *-brtl*)
11835	        aix_use_runtimelinking=yes
11836	        break
11837	        ;;
11838	      esac
11839	    done
11840	    ;;
11841          esac
11842
11843          exp_sym_flag='-bexport'
11844          no_entry_flag='-bnoentry'
11845        fi
11846
11847        # When large executables or shared objects are built, AIX ld can
11848        # have problems creating the table of contents.  If linking a library
11849        # or program results in "error TOC overflow" add -mminimal-toc to
11850        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11851        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11852
11853        archive_cmds_CXX=''
11854        hardcode_direct_CXX=yes
11855        hardcode_direct_absolute_CXX=yes
11856        hardcode_libdir_separator_CXX=':'
11857        link_all_deplibs_CXX=yes
11858        file_list_spec_CXX='${wl}-f,'
11859
11860        if test "$GXX" = yes; then
11861          case $host_os in aix4.[012]|aix4.[012].*)
11862          # We only want to do this on AIX 4.2 and lower, the check
11863          # below for broken collect2 doesn't work under 4.3+
11864	  collect2name=`${CC} -print-prog-name=collect2`
11865	  if test -f "$collect2name" &&
11866	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11867	  then
11868	    # We have reworked collect2
11869	    :
11870	  else
11871	    # We have old collect2
11872	    hardcode_direct_CXX=unsupported
11873	    # It fails to find uninstalled libraries when the uninstalled
11874	    # path is not listed in the libpath.  Setting hardcode_minus_L
11875	    # to unsupported forces relinking
11876	    hardcode_minus_L_CXX=yes
11877	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11878	    hardcode_libdir_separator_CXX=
11879	  fi
11880          esac
11881          shared_flag='-shared'
11882	  if test "$aix_use_runtimelinking" = yes; then
11883	    shared_flag="$shared_flag "'${wl}-G'
11884	  fi
11885        else
11886          # not using gcc
11887          if test "$host_cpu" = ia64; then
11888	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11889	  # chokes on -Wl,-G. The following line is correct:
11890	  shared_flag='-G'
11891          else
11892	    if test "$aix_use_runtimelinking" = yes; then
11893	      shared_flag='${wl}-G'
11894	    else
11895	      shared_flag='${wl}-bM:SRE'
11896	    fi
11897          fi
11898        fi
11899
11900        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11901        # It seems that -bexpall does not export symbols beginning with
11902        # underscore (_), so it is better to generate a list of symbols to
11903	# export.
11904        always_export_symbols_CXX=yes
11905        if test "$aix_use_runtimelinking" = yes; then
11906          # Warning - without using the other runtime loading flags (-brtl),
11907          # -berok will link without error, but may produce a broken library.
11908          allow_undefined_flag_CXX='-berok'
11909          # Determine the default libpath from the value encoded in an empty
11910          # executable.
11911          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912/* end confdefs.h.  */
11913
11914int
11915main ()
11916{
11917
11918  ;
11919  return 0;
11920}
11921_ACEOF
11922if ac_fn_cxx_try_link "$LINENO"; then :
11923
11924lt_aix_libpath_sed='
11925    /Import File Strings/,/^$/ {
11926	/^0/ {
11927	    s/^0  *\(.*\)$/\1/
11928	    p
11929	}
11930    }'
11931aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11932# Check for a 64-bit object if we didn't find anything.
11933if test -z "$aix_libpath"; then
11934  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11935fi
11936fi
11937rm -f core conftest.err conftest.$ac_objext \
11938    conftest$ac_exeext conftest.$ac_ext
11939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11940
11941          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11942
11943          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11944        else
11945          if test "$host_cpu" = ia64; then
11946	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11947	    allow_undefined_flag_CXX="-z nodefs"
11948	    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"
11949          else
11950	    # Determine the default libpath from the value encoded in an
11951	    # empty executable.
11952	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953/* end confdefs.h.  */
11954
11955int
11956main ()
11957{
11958
11959  ;
11960  return 0;
11961}
11962_ACEOF
11963if ac_fn_cxx_try_link "$LINENO"; then :
11964
11965lt_aix_libpath_sed='
11966    /Import File Strings/,/^$/ {
11967	/^0/ {
11968	    s/^0  *\(.*\)$/\1/
11969	    p
11970	}
11971    }'
11972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11973# Check for a 64-bit object if we didn't find anything.
11974if test -z "$aix_libpath"; then
11975  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11976fi
11977fi
11978rm -f core conftest.err conftest.$ac_objext \
11979    conftest$ac_exeext conftest.$ac_ext
11980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11981
11982	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11983	    # Warning - without using the other run time loading flags,
11984	    # -berok will link without error, but may produce a broken library.
11985	    no_undefined_flag_CXX=' ${wl}-bernotok'
11986	    allow_undefined_flag_CXX=' ${wl}-berok'
11987	    if test "$with_gnu_ld" = yes; then
11988	      # We only use this code for GNU lds that support --whole-archive.
11989	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11990	    else
11991	      # Exported symbols can be pulled into shared objects from archives
11992	      whole_archive_flag_spec_CXX='$convenience'
11993	    fi
11994	    archive_cmds_need_lc_CXX=yes
11995	    # This is similar to how AIX traditionally builds its shared
11996	    # libraries.
11997	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11998          fi
11999        fi
12000        ;;
12001
12002      beos*)
12003	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12004	  allow_undefined_flag_CXX=unsupported
12005	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12006	  # support --undefined.  This deserves some investigation.  FIXME
12007	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12008	else
12009	  ld_shlibs_CXX=no
12010	fi
12011	;;
12012
12013      chorus*)
12014        case $cc_basename in
12015          *)
12016	  # FIXME: insert proper C++ library support
12017	  ld_shlibs_CXX=no
12018	  ;;
12019        esac
12020        ;;
12021
12022      cygwin* | mingw* | pw32* | cegcc*)
12023        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12024        # as there is no search path for DLLs.
12025        hardcode_libdir_flag_spec_CXX='-L$libdir'
12026        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12027        allow_undefined_flag_CXX=unsupported
12028        always_export_symbols_CXX=no
12029        enable_shared_with_static_runtimes_CXX=yes
12030
12031        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12032          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'
12033          # If the export-symbols file already is a .def file (1st line
12034          # is EXPORTS), use it as is; otherwise, prepend...
12035          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12036	    cp $export_symbols $output_objdir/$soname.def;
12037          else
12038	    echo EXPORTS > $output_objdir/$soname.def;
12039	    cat $export_symbols >> $output_objdir/$soname.def;
12040          fi~
12041          $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'
12042        else
12043          ld_shlibs_CXX=no
12044        fi
12045        ;;
12046      darwin* | rhapsody*)
12047
12048
12049  archive_cmds_need_lc_CXX=no
12050  hardcode_direct_CXX=no
12051  hardcode_automatic_CXX=yes
12052  hardcode_shlibpath_var_CXX=unsupported
12053  if test "$lt_cv_ld_force_load" = "yes"; then
12054    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\"`'
12055  else
12056    whole_archive_flag_spec_CXX=''
12057  fi
12058  link_all_deplibs_CXX=yes
12059  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12060  case $cc_basename in
12061     ifort*) _lt_dar_can_shared=yes ;;
12062     *) _lt_dar_can_shared=$GCC ;;
12063  esac
12064  if test "$_lt_dar_can_shared" = "yes"; then
12065    output_verbose_link_cmd=func_echo_all
12066    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}"
12067    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12068    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}"
12069    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}"
12070       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12071      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}"
12072      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}"
12073    fi
12074
12075  else
12076  ld_shlibs_CXX=no
12077  fi
12078
12079	;;
12080
12081      dgux*)
12082        case $cc_basename in
12083          ec++*)
12084	    # FIXME: insert proper C++ library support
12085	    ld_shlibs_CXX=no
12086	    ;;
12087          ghcx*)
12088	    # Green Hills C++ Compiler
12089	    # FIXME: insert proper C++ library support
12090	    ld_shlibs_CXX=no
12091	    ;;
12092          *)
12093	    # FIXME: insert proper C++ library support
12094	    ld_shlibs_CXX=no
12095	    ;;
12096        esac
12097        ;;
12098
12099      freebsd2.*)
12100        # C++ shared libraries reported to be fairly broken before
12101	# switch to ELF
12102        ld_shlibs_CXX=no
12103        ;;
12104
12105      freebsd-elf*)
12106        archive_cmds_need_lc_CXX=no
12107        ;;
12108
12109      freebsd* | dragonfly*)
12110        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12111        # conventions
12112        ld_shlibs_CXX=yes
12113        ;;
12114
12115      gnu*)
12116        ;;
12117
12118      haiku*)
12119        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12120        link_all_deplibs_CXX=yes
12121        ;;
12122
12123      hpux9*)
12124        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12125        hardcode_libdir_separator_CXX=:
12126        export_dynamic_flag_spec_CXX='${wl}-E'
12127        hardcode_direct_CXX=yes
12128        hardcode_minus_L_CXX=yes # Not in the search PATH,
12129				             # but as the default
12130				             # location of the library.
12131
12132        case $cc_basename in
12133          CC*)
12134            # FIXME: insert proper C++ library support
12135            ld_shlibs_CXX=no
12136            ;;
12137          aCC*)
12138            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12139            # Commands to make compiler produce verbose output that lists
12140            # what "hidden" libraries, object files and flags are used when
12141            # linking a shared library.
12142            #
12143            # There doesn't appear to be a way to prevent this compiler from
12144            # explicitly linking system object files so we need to strip them
12145            # from the output so that they don't get included in the library
12146            # dependencies.
12147            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"'
12148            ;;
12149          *)
12150            if test "$GXX" = yes; then
12151              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12152            else
12153              # FIXME: insert proper C++ library support
12154              ld_shlibs_CXX=no
12155            fi
12156            ;;
12157        esac
12158        ;;
12159
12160      hpux10*|hpux11*)
12161        if test $with_gnu_ld = no; then
12162	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12163	  hardcode_libdir_separator_CXX=:
12164
12165          case $host_cpu in
12166            hppa*64*|ia64*)
12167              ;;
12168            *)
12169	      export_dynamic_flag_spec_CXX='${wl}-E'
12170              ;;
12171          esac
12172        fi
12173        case $host_cpu in
12174          hppa*64*|ia64*)
12175            hardcode_direct_CXX=no
12176            hardcode_shlibpath_var_CXX=no
12177            ;;
12178          *)
12179            hardcode_direct_CXX=yes
12180            hardcode_direct_absolute_CXX=yes
12181            hardcode_minus_L_CXX=yes # Not in the search PATH,
12182					         # but as the default
12183					         # location of the library.
12184            ;;
12185        esac
12186
12187        case $cc_basename in
12188          CC*)
12189	    # FIXME: insert proper C++ library support
12190	    ld_shlibs_CXX=no
12191	    ;;
12192          aCC*)
12193	    case $host_cpu in
12194	      hppa*64*)
12195	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12196	        ;;
12197	      ia64*)
12198	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12199	        ;;
12200	      *)
12201	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12202	        ;;
12203	    esac
12204	    # Commands to make compiler produce verbose output that lists
12205	    # what "hidden" libraries, object files and flags are used when
12206	    # linking a shared library.
12207	    #
12208	    # There doesn't appear to be a way to prevent this compiler from
12209	    # explicitly linking system object files so we need to strip them
12210	    # from the output so that they don't get included in the library
12211	    # dependencies.
12212	    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"'
12213	    ;;
12214          *)
12215	    if test "$GXX" = yes; then
12216	      if test $with_gnu_ld = no; then
12217	        case $host_cpu in
12218	          hppa*64*)
12219	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12220	            ;;
12221	          ia64*)
12222	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12223	            ;;
12224	          *)
12225	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12226	            ;;
12227	        esac
12228	      fi
12229	    else
12230	      # FIXME: insert proper C++ library support
12231	      ld_shlibs_CXX=no
12232	    fi
12233	    ;;
12234        esac
12235        ;;
12236
12237      interix[3-9]*)
12238	hardcode_direct_CXX=no
12239	hardcode_shlibpath_var_CXX=no
12240	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12241	export_dynamic_flag_spec_CXX='${wl}-E'
12242	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12243	# Instead, shared libraries are loaded at an image base (0x10000000 by
12244	# default) and relocated if they conflict, which is a slow very memory
12245	# consuming and fragmenting process.  To avoid this, we pick a random,
12246	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12247	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12248	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'
12249	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'
12250	;;
12251      irix5* | irix6*)
12252        case $cc_basename in
12253          CC*)
12254	    # SGI C++
12255	    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'
12256
12257	    # Archives containing C++ object files must be created using
12258	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12259	    # necessary to make sure instantiated templates are included
12260	    # in the archive.
12261	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12262	    ;;
12263          *)
12264	    if test "$GXX" = yes; then
12265	      if test "$with_gnu_ld" = no; then
12266	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12267	      else
12268	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12269	      fi
12270	    fi
12271	    link_all_deplibs_CXX=yes
12272	    ;;
12273        esac
12274        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12275        hardcode_libdir_separator_CXX=:
12276        inherit_rpath_CXX=yes
12277        ;;
12278
12279      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12280        case $cc_basename in
12281          KCC*)
12282	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12283
12284	    # KCC will only create a shared library if the output file
12285	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12286	    # to its proper name (with version) after linking.
12287	    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'
12288	    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'
12289	    # Commands to make compiler produce verbose output that lists
12290	    # what "hidden" libraries, object files and flags are used when
12291	    # linking a shared library.
12292	    #
12293	    # There doesn't appear to be a way to prevent this compiler from
12294	    # explicitly linking system object files so we need to strip them
12295	    # from the output so that they don't get included in the library
12296	    # dependencies.
12297	    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"'
12298
12299	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12300	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12301
12302	    # Archives containing C++ object files must be created using
12303	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12304	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12305	    ;;
12306	  icpc* | ecpc* )
12307	    # Intel C++
12308	    with_gnu_ld=yes
12309	    # version 8.0 and above of icpc choke on multiply defined symbols
12310	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12311	    # earlier do not add the objects themselves.
12312	    case `$CC -V 2>&1` in
12313	      *"Version 7."*)
12314	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12315		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'
12316		;;
12317	      *)  # Version 8.0 or newer
12318	        tmp_idyn=
12319	        case $host_cpu in
12320		  ia64*) tmp_idyn=' -i_dynamic';;
12321		esac
12322	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12323		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'
12324		;;
12325	    esac
12326	    archive_cmds_need_lc_CXX=no
12327	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12328	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12329	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12330	    ;;
12331          pgCC* | pgcpp*)
12332            # Portland Group C++ compiler
12333	    case `$CC -V` in
12334	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12335	      prelink_cmds_CXX='tpldir=Template.dir~
12336		rm -rf $tpldir~
12337		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12338		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12339	      old_archive_cmds_CXX='tpldir=Template.dir~
12340		rm -rf $tpldir~
12341		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12342		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12343		$RANLIB $oldlib'
12344	      archive_cmds_CXX='tpldir=Template.dir~
12345		rm -rf $tpldir~
12346		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12347		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12348	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12349		rm -rf $tpldir~
12350		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12351		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12352	      ;;
12353	    *) # Version 6 and above use weak symbols
12354	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12355	      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'
12356	      ;;
12357	    esac
12358
12359	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12360	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12361	    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'
12362            ;;
12363	  cxx*)
12364	    # Compaq C++
12365	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12366	    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'
12367
12368	    runpath_var=LD_RUN_PATH
12369	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12370	    hardcode_libdir_separator_CXX=:
12371
12372	    # Commands to make compiler produce verbose output that lists
12373	    # what "hidden" libraries, object files and flags are used when
12374	    # linking a shared library.
12375	    #
12376	    # There doesn't appear to be a way to prevent this compiler from
12377	    # explicitly linking system object files so we need to strip them
12378	    # from the output so that they don't get included in the library
12379	    # dependencies.
12380	    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'
12381	    ;;
12382	  xl* | mpixl* | bgxl*)
12383	    # IBM XL 8.0 on PPC, with GNU ld
12384	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12385	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12386	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12387	    if test "x$supports_anon_versioning" = xyes; then
12388	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12389		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12390		echo "local: *; };" >> $output_objdir/$libname.ver~
12391		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12392	    fi
12393	    ;;
12394	  *)
12395	    case `$CC -V 2>&1 | sed 5q` in
12396	    *Sun\ C*)
12397	      # Sun C++ 5.9
12398	      no_undefined_flag_CXX=' -zdefs'
12399	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12400	      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'
12401	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12402	      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'
12403	      compiler_needs_object_CXX=yes
12404
12405	      # Not sure whether something based on
12406	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12407	      # would be better.
12408	      output_verbose_link_cmd='func_echo_all'
12409
12410	      # Archives containing C++ object files must be created using
12411	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12412	      # necessary to make sure instantiated templates are included
12413	      # in the archive.
12414	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12415	      ;;
12416	    esac
12417	    ;;
12418	esac
12419	;;
12420
12421      lynxos*)
12422        # FIXME: insert proper C++ library support
12423	ld_shlibs_CXX=no
12424	;;
12425
12426      m88k*)
12427        # FIXME: insert proper C++ library support
12428        ld_shlibs_CXX=no
12429	;;
12430
12431      mvs*)
12432        case $cc_basename in
12433          cxx*)
12434	    # FIXME: insert proper C++ library support
12435	    ld_shlibs_CXX=no
12436	    ;;
12437	  *)
12438	    # FIXME: insert proper C++ library support
12439	    ld_shlibs_CXX=no
12440	    ;;
12441	esac
12442	;;
12443
12444      netbsd*)
12445        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12446	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12447	  wlarc=
12448	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12449	  hardcode_direct_CXX=yes
12450	  hardcode_shlibpath_var_CXX=no
12451	fi
12452	# Workaround some broken pre-1.5 toolchains
12453	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12454	;;
12455
12456      *nto* | *qnx*)
12457        ld_shlibs_CXX=yes
12458	;;
12459
12460      openbsd2*)
12461        # C++ shared libraries are fairly broken
12462	ld_shlibs_CXX=no
12463	;;
12464
12465      openbsd*)
12466	if test -f /usr/libexec/ld.so; then
12467	  hardcode_direct_CXX=yes
12468	  hardcode_shlibpath_var_CXX=no
12469	  hardcode_direct_absolute_CXX=yes
12470	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12471	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12472	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12473	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12474	    export_dynamic_flag_spec_CXX='${wl}-E'
12475	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12476	  fi
12477	  output_verbose_link_cmd=func_echo_all
12478	else
12479	  ld_shlibs_CXX=no
12480	fi
12481	;;
12482
12483      osf3* | osf4* | osf5*)
12484        case $cc_basename in
12485          KCC*)
12486	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12487
12488	    # KCC will only create a shared library if the output file
12489	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12490	    # to its proper name (with version) after linking.
12491	    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'
12492
12493	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12494	    hardcode_libdir_separator_CXX=:
12495
12496	    # Archives containing C++ object files must be created using
12497	    # the KAI C++ compiler.
12498	    case $host in
12499	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12500	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12501	    esac
12502	    ;;
12503          RCC*)
12504	    # Rational C++ 2.4.1
12505	    # FIXME: insert proper C++ library support
12506	    ld_shlibs_CXX=no
12507	    ;;
12508          cxx*)
12509	    case $host in
12510	      osf3*)
12511	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12512	        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'
12513	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12514		;;
12515	      *)
12516	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12517	        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'
12518	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12519	          echo "-hidden">> $lib.exp~
12520	          $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~
12521	          $RM $lib.exp'
12522	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12523		;;
12524	    esac
12525
12526	    hardcode_libdir_separator_CXX=:
12527
12528	    # Commands to make compiler produce verbose output that lists
12529	    # what "hidden" libraries, object files and flags are used when
12530	    # linking a shared library.
12531	    #
12532	    # There doesn't appear to be a way to prevent this compiler from
12533	    # explicitly linking system object files so we need to strip them
12534	    # from the output so that they don't get included in the library
12535	    # dependencies.
12536	    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"'
12537	    ;;
12538	  *)
12539	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12540	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12541	      case $host in
12542	        osf3*)
12543	          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'
12544		  ;;
12545	        *)
12546	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12547		  ;;
12548	      esac
12549
12550	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12551	      hardcode_libdir_separator_CXX=:
12552
12553	      # Commands to make compiler produce verbose output that lists
12554	      # what "hidden" libraries, object files and flags are used when
12555	      # linking a shared library.
12556	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12557
12558	    else
12559	      # FIXME: insert proper C++ library support
12560	      ld_shlibs_CXX=no
12561	    fi
12562	    ;;
12563        esac
12564        ;;
12565
12566      psos*)
12567        # FIXME: insert proper C++ library support
12568        ld_shlibs_CXX=no
12569        ;;
12570
12571      sunos4*)
12572        case $cc_basename in
12573          CC*)
12574	    # Sun C++ 4.x
12575	    # FIXME: insert proper C++ library support
12576	    ld_shlibs_CXX=no
12577	    ;;
12578          lcc*)
12579	    # Lucid
12580	    # FIXME: insert proper C++ library support
12581	    ld_shlibs_CXX=no
12582	    ;;
12583          *)
12584	    # FIXME: insert proper C++ library support
12585	    ld_shlibs_CXX=no
12586	    ;;
12587        esac
12588        ;;
12589
12590      solaris*)
12591        case $cc_basename in
12592          CC*)
12593	    # Sun C++ 4.2, 5.x and Centerline C++
12594            archive_cmds_need_lc_CXX=yes
12595	    no_undefined_flag_CXX=' -zdefs'
12596	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12597	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12598	      $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'
12599
12600	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12601	    hardcode_shlibpath_var_CXX=no
12602	    case $host_os in
12603	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12604	      *)
12605		# The compiler driver will combine and reorder linker options,
12606		# but understands `-z linker_flag'.
12607	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12608		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12609	        ;;
12610	    esac
12611	    link_all_deplibs_CXX=yes
12612
12613	    output_verbose_link_cmd='func_echo_all'
12614
12615	    # Archives containing C++ object files must be created using
12616	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12617	    # necessary to make sure instantiated templates are included
12618	    # in the archive.
12619	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12620	    ;;
12621          gcx*)
12622	    # Green Hills C++ Compiler
12623	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12624
12625	    # The C++ compiler must be used to create the archive.
12626	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12627	    ;;
12628          *)
12629	    # GNU C++ compiler with Solaris linker
12630	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12631	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12632	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12633	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12634	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12635		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12636
12637	        # Commands to make compiler produce verbose output that lists
12638	        # what "hidden" libraries, object files and flags are used when
12639	        # linking a shared library.
12640	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12641	      else
12642	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12643	        # platform.
12644	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12645	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12646		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12647
12648	        # Commands to make compiler produce verbose output that lists
12649	        # what "hidden" libraries, object files and flags are used when
12650	        # linking a shared library.
12651	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12652	      fi
12653
12654	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12655	      case $host_os in
12656		solaris2.[0-5] | solaris2.[0-5].*) ;;
12657		*)
12658		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12659		  ;;
12660	      esac
12661	    fi
12662	    ;;
12663        esac
12664        ;;
12665
12666    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12667      no_undefined_flag_CXX='${wl}-z,text'
12668      archive_cmds_need_lc_CXX=no
12669      hardcode_shlibpath_var_CXX=no
12670      runpath_var='LD_RUN_PATH'
12671
12672      case $cc_basename in
12673        CC*)
12674	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12675	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12676	  ;;
12677	*)
12678	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12679	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12680	  ;;
12681      esac
12682      ;;
12683
12684      sysv5* | sco3.2v5* | sco5v6*)
12685	# Note: We can NOT use -z defs as we might desire, because we do not
12686	# link with -lc, and that would cause any symbols used from libc to
12687	# always be unresolved, which means just about no library would
12688	# ever link correctly.  If we're not using GNU ld we use -z text
12689	# though, which does catch some bad symbols but isn't as heavy-handed
12690	# as -z defs.
12691	no_undefined_flag_CXX='${wl}-z,text'
12692	allow_undefined_flag_CXX='${wl}-z,nodefs'
12693	archive_cmds_need_lc_CXX=no
12694	hardcode_shlibpath_var_CXX=no
12695	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12696	hardcode_libdir_separator_CXX=':'
12697	link_all_deplibs_CXX=yes
12698	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12699	runpath_var='LD_RUN_PATH'
12700
12701	case $cc_basename in
12702          CC*)
12703	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12704	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12705	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12706	      '"$old_archive_cmds_CXX"
12707	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12708	      '"$reload_cmds_CXX"
12709	    ;;
12710	  *)
12711	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12712	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12713	    ;;
12714	esac
12715      ;;
12716
12717      tandem*)
12718        case $cc_basename in
12719          NCC*)
12720	    # NonStop-UX NCC 3.20
12721	    # FIXME: insert proper C++ library support
12722	    ld_shlibs_CXX=no
12723	    ;;
12724          *)
12725	    # FIXME: insert proper C++ library support
12726	    ld_shlibs_CXX=no
12727	    ;;
12728        esac
12729        ;;
12730
12731      vxworks*)
12732        # FIXME: insert proper C++ library support
12733        ld_shlibs_CXX=no
12734        ;;
12735
12736      *)
12737        # FIXME: insert proper C++ library support
12738        ld_shlibs_CXX=no
12739        ;;
12740    esac
12741
12742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12743$as_echo "$ld_shlibs_CXX" >&6; }
12744    test "$ld_shlibs_CXX" = no && can_build_shared=no
12745
12746    GCC_CXX="$GXX"
12747    LD_CXX="$LD"
12748
12749    ## CAVEAT EMPTOR:
12750    ## There is no encapsulation within the following macros, do not change
12751    ## the running order or otherwise move them around unless you know exactly
12752    ## what you are doing...
12753    # Dependencies to place before and after the object being linked:
12754predep_objects_CXX=
12755postdep_objects_CXX=
12756predeps_CXX=
12757postdeps_CXX=
12758compiler_lib_search_path_CXX=
12759
12760cat > conftest.$ac_ext <<_LT_EOF
12761class Foo
12762{
12763public:
12764  Foo (void) { a = 0; }
12765private:
12766  int a;
12767};
12768_LT_EOF
12769
12770if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12771  (eval $ac_compile) 2>&5
12772  ac_status=$?
12773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12774  test $ac_status = 0; }; then
12775  # Parse the compiler output and extract the necessary
12776  # objects, libraries and library flags.
12777
12778  # Sentinel used to keep track of whether or not we are before
12779  # the conftest object file.
12780  pre_test_object_deps_done=no
12781
12782  for p in `eval "$output_verbose_link_cmd"`; do
12783    case $p in
12784
12785    -L* | -R* | -l*)
12786       # Some compilers place space between "-{L,R}" and the path.
12787       # Remove the space.
12788       if test $p = "-L" ||
12789          test $p = "-R"; then
12790	 prev=$p
12791	 continue
12792       else
12793	 prev=
12794       fi
12795
12796       if test "$pre_test_object_deps_done" = no; then
12797	 case $p in
12798	 -L* | -R*)
12799	   # Internal compiler library paths should come after those
12800	   # provided the user.  The postdeps already come after the
12801	   # user supplied libs so there is no need to process them.
12802	   if test -z "$compiler_lib_search_path_CXX"; then
12803	     compiler_lib_search_path_CXX="${prev}${p}"
12804	   else
12805	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12806	   fi
12807	   ;;
12808	 # The "-l" case would never come before the object being
12809	 # linked, so don't bother handling this case.
12810	 esac
12811       else
12812	 if test -z "$postdeps_CXX"; then
12813	   postdeps_CXX="${prev}${p}"
12814	 else
12815	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12816	 fi
12817       fi
12818       ;;
12819
12820    *.$objext)
12821       # This assumes that the test object file only shows up
12822       # once in the compiler output.
12823       if test "$p" = "conftest.$objext"; then
12824	 pre_test_object_deps_done=yes
12825	 continue
12826       fi
12827
12828       if test "$pre_test_object_deps_done" = no; then
12829	 if test -z "$predep_objects_CXX"; then
12830	   predep_objects_CXX="$p"
12831	 else
12832	   predep_objects_CXX="$predep_objects_CXX $p"
12833	 fi
12834       else
12835	 if test -z "$postdep_objects_CXX"; then
12836	   postdep_objects_CXX="$p"
12837	 else
12838	   postdep_objects_CXX="$postdep_objects_CXX $p"
12839	 fi
12840       fi
12841       ;;
12842
12843    *) ;; # Ignore the rest.
12844
12845    esac
12846  done
12847
12848  # Clean up.
12849  rm -f a.out a.exe
12850else
12851  echo "libtool.m4: error: problem compiling CXX test program"
12852fi
12853
12854$RM -f confest.$objext
12855
12856# PORTME: override above test on systems where it is broken
12857case $host_os in
12858interix[3-9]*)
12859  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12860  # hack all around it, let's just trust "g++" to DTRT.
12861  predep_objects_CXX=
12862  postdep_objects_CXX=
12863  postdeps_CXX=
12864  ;;
12865
12866linux*)
12867  case `$CC -V 2>&1 | sed 5q` in
12868  *Sun\ C*)
12869    # Sun C++ 5.9
12870
12871    # The more standards-conforming stlport4 library is
12872    # incompatible with the Cstd library. Avoid specifying
12873    # it if it's in CXXFLAGS. Ignore libCrun as
12874    # -library=stlport4 depends on it.
12875    case " $CXX $CXXFLAGS " in
12876    *" -library=stlport4 "*)
12877      solaris_use_stlport4=yes
12878      ;;
12879    esac
12880
12881    if test "$solaris_use_stlport4" != yes; then
12882      postdeps_CXX='-library=Cstd -library=Crun'
12883    fi
12884    ;;
12885  esac
12886  ;;
12887
12888solaris*)
12889  case $cc_basename in
12890  CC*)
12891    # The more standards-conforming stlport4 library is
12892    # incompatible with the Cstd library. Avoid specifying
12893    # it if it's in CXXFLAGS. Ignore libCrun as
12894    # -library=stlport4 depends on it.
12895    case " $CXX $CXXFLAGS " in
12896    *" -library=stlport4 "*)
12897      solaris_use_stlport4=yes
12898      ;;
12899    esac
12900
12901    # Adding this requires a known-good setup of shared libraries for
12902    # Sun compiler versions before 5.6, else PIC objects from an old
12903    # archive will be linked into the output, leading to subtle bugs.
12904    if test "$solaris_use_stlport4" != yes; then
12905      postdeps_CXX='-library=Cstd -library=Crun'
12906    fi
12907    ;;
12908  esac
12909  ;;
12910esac
12911
12912
12913case " $postdeps_CXX " in
12914*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12915esac
12916 compiler_lib_search_dirs_CXX=
12917if test -n "${compiler_lib_search_path_CXX}"; then
12918 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12919fi
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951    lt_prog_compiler_wl_CXX=
12952lt_prog_compiler_pic_CXX=
12953lt_prog_compiler_static_CXX=
12954
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12956$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12957
12958  # C++ specific cases for pic, static, wl, etc.
12959  if test "$GXX" = yes; then
12960    lt_prog_compiler_wl_CXX='-Wl,'
12961    lt_prog_compiler_static_CXX='-static'
12962
12963    case $host_os in
12964    aix*)
12965      # All AIX code is PIC.
12966      if test "$host_cpu" = ia64; then
12967	# AIX 5 now supports IA64 processor
12968	lt_prog_compiler_static_CXX='-Bstatic'
12969      fi
12970      lt_prog_compiler_pic_CXX='-fPIC'
12971      ;;
12972
12973    amigaos*)
12974      case $host_cpu in
12975      powerpc)
12976            # see comment about AmigaOS4 .so support
12977            lt_prog_compiler_pic_CXX='-fPIC'
12978        ;;
12979      m68k)
12980            # FIXME: we need at least 68020 code to build shared libraries, but
12981            # adding the `-m68020' flag to GCC prevents building anything better,
12982            # like `-m68040'.
12983            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12984        ;;
12985      esac
12986      ;;
12987
12988    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12989      # PIC is the default for these OSes.
12990      ;;
12991    mingw* | cygwin* | os2* | pw32* | cegcc*)
12992      # This hack is so that the source file can tell whether it is being
12993      # built for inclusion in a dll (and should export symbols for example).
12994      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12995      # (--disable-auto-import) libraries
12996      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12997      ;;
12998    darwin* | rhapsody*)
12999      # PIC is the default on this platform
13000      # Common symbols not allowed in MH_DYLIB files
13001      lt_prog_compiler_pic_CXX='-fno-common'
13002      ;;
13003    *djgpp*)
13004      # DJGPP does not support shared libraries at all
13005      lt_prog_compiler_pic_CXX=
13006      ;;
13007    haiku*)
13008      # PIC is the default for Haiku.
13009      # The "-static" flag exists, but is broken.
13010      lt_prog_compiler_static_CXX=
13011      ;;
13012    interix[3-9]*)
13013      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13014      # Instead, we relocate shared libraries at runtime.
13015      ;;
13016    sysv4*MP*)
13017      if test -d /usr/nec; then
13018	lt_prog_compiler_pic_CXX=-Kconform_pic
13019      fi
13020      ;;
13021    hpux*)
13022      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13023      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13024      # sets the default TLS model and affects inlining.
13025      case $host_cpu in
13026      hppa*64*)
13027	;;
13028      *)
13029	lt_prog_compiler_pic_CXX='-fPIC'
13030	;;
13031      esac
13032      ;;
13033    *qnx* | *nto*)
13034      # QNX uses GNU C++, but need to define -shared option too, otherwise
13035      # it will coredump.
13036      lt_prog_compiler_pic_CXX='-fPIC -shared'
13037      ;;
13038    *)
13039      lt_prog_compiler_pic_CXX='-fPIC'
13040      ;;
13041    esac
13042  else
13043    case $host_os in
13044      aix[4-9]*)
13045	# All AIX code is PIC.
13046	if test "$host_cpu" = ia64; then
13047	  # AIX 5 now supports IA64 processor
13048	  lt_prog_compiler_static_CXX='-Bstatic'
13049	else
13050	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13051	fi
13052	;;
13053      chorus*)
13054	case $cc_basename in
13055	cxch68*)
13056	  # Green Hills C++ Compiler
13057	  # _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"
13058	  ;;
13059	esac
13060	;;
13061      dgux*)
13062	case $cc_basename in
13063	  ec++*)
13064	    lt_prog_compiler_pic_CXX='-KPIC'
13065	    ;;
13066	  ghcx*)
13067	    # Green Hills C++ Compiler
13068	    lt_prog_compiler_pic_CXX='-pic'
13069	    ;;
13070	  *)
13071	    ;;
13072	esac
13073	;;
13074      freebsd* | dragonfly*)
13075	# FreeBSD uses GNU C++
13076	;;
13077      hpux9* | hpux10* | hpux11*)
13078	case $cc_basename in
13079	  CC*)
13080	    lt_prog_compiler_wl_CXX='-Wl,'
13081	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13082	    if test "$host_cpu" != ia64; then
13083	      lt_prog_compiler_pic_CXX='+Z'
13084	    fi
13085	    ;;
13086	  aCC*)
13087	    lt_prog_compiler_wl_CXX='-Wl,'
13088	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13089	    case $host_cpu in
13090	    hppa*64*|ia64*)
13091	      # +Z the default
13092	      ;;
13093	    *)
13094	      lt_prog_compiler_pic_CXX='+Z'
13095	      ;;
13096	    esac
13097	    ;;
13098	  *)
13099	    ;;
13100	esac
13101	;;
13102      interix*)
13103	# This is c89, which is MS Visual C++ (no shared libs)
13104	# Anyone wants to do a port?
13105	;;
13106      irix5* | irix6* | nonstopux*)
13107	case $cc_basename in
13108	  CC*)
13109	    lt_prog_compiler_wl_CXX='-Wl,'
13110	    lt_prog_compiler_static_CXX='-non_shared'
13111	    # CC pic flag -KPIC is the default.
13112	    ;;
13113	  *)
13114	    ;;
13115	esac
13116	;;
13117      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13118	case $cc_basename in
13119	  KCC*)
13120	    # KAI C++ Compiler
13121	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13122	    lt_prog_compiler_pic_CXX='-fPIC'
13123	    ;;
13124	  ecpc* )
13125	    # old Intel C++ for x86_64 which still supported -KPIC.
13126	    lt_prog_compiler_wl_CXX='-Wl,'
13127	    lt_prog_compiler_pic_CXX='-KPIC'
13128	    lt_prog_compiler_static_CXX='-static'
13129	    ;;
13130	  icpc* )
13131	    # Intel C++, used to be incompatible with GCC.
13132	    # ICC 10 doesn't accept -KPIC any more.
13133	    lt_prog_compiler_wl_CXX='-Wl,'
13134	    lt_prog_compiler_pic_CXX='-fPIC'
13135	    lt_prog_compiler_static_CXX='-static'
13136	    ;;
13137	  pgCC* | pgcpp*)
13138	    # Portland Group C++ compiler
13139	    lt_prog_compiler_wl_CXX='-Wl,'
13140	    lt_prog_compiler_pic_CXX='-fpic'
13141	    lt_prog_compiler_static_CXX='-Bstatic'
13142	    ;;
13143	  cxx*)
13144	    # Compaq C++
13145	    # Make sure the PIC flag is empty.  It appears that all Alpha
13146	    # Linux and Compaq Tru64 Unix objects are PIC.
13147	    lt_prog_compiler_pic_CXX=
13148	    lt_prog_compiler_static_CXX='-non_shared'
13149	    ;;
13150	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13151	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13152	    lt_prog_compiler_wl_CXX='-Wl,'
13153	    lt_prog_compiler_pic_CXX='-qpic'
13154	    lt_prog_compiler_static_CXX='-qstaticlink'
13155	    ;;
13156	  *)
13157	    case `$CC -V 2>&1 | sed 5q` in
13158	    *Sun\ C*)
13159	      # Sun C++ 5.9
13160	      lt_prog_compiler_pic_CXX='-KPIC'
13161	      lt_prog_compiler_static_CXX='-Bstatic'
13162	      lt_prog_compiler_wl_CXX='-Qoption ld '
13163	      ;;
13164	    esac
13165	    ;;
13166	esac
13167	;;
13168      lynxos*)
13169	;;
13170      m88k*)
13171	;;
13172      mvs*)
13173	case $cc_basename in
13174	  cxx*)
13175	    lt_prog_compiler_pic_CXX='-W c,exportall'
13176	    ;;
13177	  *)
13178	    ;;
13179	esac
13180	;;
13181      netbsd*)
13182	;;
13183      *qnx* | *nto*)
13184        # QNX uses GNU C++, but need to define -shared option too, otherwise
13185        # it will coredump.
13186        lt_prog_compiler_pic_CXX='-fPIC -shared'
13187        ;;
13188      osf3* | osf4* | osf5*)
13189	case $cc_basename in
13190	  KCC*)
13191	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13192	    ;;
13193	  RCC*)
13194	    # Rational C++ 2.4.1
13195	    lt_prog_compiler_pic_CXX='-pic'
13196	    ;;
13197	  cxx*)
13198	    # Digital/Compaq C++
13199	    lt_prog_compiler_wl_CXX='-Wl,'
13200	    # Make sure the PIC flag is empty.  It appears that all Alpha
13201	    # Linux and Compaq Tru64 Unix objects are PIC.
13202	    lt_prog_compiler_pic_CXX=
13203	    lt_prog_compiler_static_CXX='-non_shared'
13204	    ;;
13205	  *)
13206	    ;;
13207	esac
13208	;;
13209      psos*)
13210	;;
13211      solaris*)
13212	case $cc_basename in
13213	  CC*)
13214	    # Sun C++ 4.2, 5.x and Centerline C++
13215	    lt_prog_compiler_pic_CXX='-KPIC'
13216	    lt_prog_compiler_static_CXX='-Bstatic'
13217	    lt_prog_compiler_wl_CXX='-Qoption ld '
13218	    ;;
13219	  gcx*)
13220	    # Green Hills C++ Compiler
13221	    lt_prog_compiler_pic_CXX='-PIC'
13222	    ;;
13223	  *)
13224	    ;;
13225	esac
13226	;;
13227      sunos4*)
13228	case $cc_basename in
13229	  CC*)
13230	    # Sun C++ 4.x
13231	    lt_prog_compiler_pic_CXX='-pic'
13232	    lt_prog_compiler_static_CXX='-Bstatic'
13233	    ;;
13234	  lcc*)
13235	    # Lucid
13236	    lt_prog_compiler_pic_CXX='-pic'
13237	    ;;
13238	  *)
13239	    ;;
13240	esac
13241	;;
13242      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13243	case $cc_basename in
13244	  CC*)
13245	    lt_prog_compiler_wl_CXX='-Wl,'
13246	    lt_prog_compiler_pic_CXX='-KPIC'
13247	    lt_prog_compiler_static_CXX='-Bstatic'
13248	    ;;
13249	esac
13250	;;
13251      tandem*)
13252	case $cc_basename in
13253	  NCC*)
13254	    # NonStop-UX NCC 3.20
13255	    lt_prog_compiler_pic_CXX='-KPIC'
13256	    ;;
13257	  *)
13258	    ;;
13259	esac
13260	;;
13261      vxworks*)
13262	;;
13263      *)
13264	lt_prog_compiler_can_build_shared_CXX=no
13265	;;
13266    esac
13267  fi
13268
13269case $host_os in
13270  # For platforms which do not support PIC, -DPIC is meaningless:
13271  *djgpp*)
13272    lt_prog_compiler_pic_CXX=
13273    ;;
13274  *)
13275    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13276    ;;
13277esac
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13279$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13280
13281
13282
13283#
13284# Check to make sure the PIC flag actually works.
13285#
13286if test -n "$lt_prog_compiler_pic_CXX"; then
13287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13288$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13289if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13290  $as_echo_n "(cached) " >&6
13291else
13292  lt_cv_prog_compiler_pic_works_CXX=no
13293   ac_outfile=conftest.$ac_objext
13294   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13295   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13296   # Insert the option either (1) after the last *FLAGS variable, or
13297   # (2) before a word containing "conftest.", or (3) at the end.
13298   # Note that $ac_compile itself does not contain backslashes and begins
13299   # with a dollar sign (not a hyphen), so the echo should work correctly.
13300   # The option is referenced via a variable to avoid confusing sed.
13301   lt_compile=`echo "$ac_compile" | $SED \
13302   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13303   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13304   -e 's:$: $lt_compiler_flag:'`
13305   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13306   (eval "$lt_compile" 2>conftest.err)
13307   ac_status=$?
13308   cat conftest.err >&5
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   if (exit $ac_status) && test -s "$ac_outfile"; then
13311     # The compiler can only warn and ignore the option if not recognized
13312     # So say no if there are warnings other than the usual output.
13313     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13314     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13315     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13316       lt_cv_prog_compiler_pic_works_CXX=yes
13317     fi
13318   fi
13319   $RM conftest*
13320
13321fi
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13323$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13324
13325if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13326    case $lt_prog_compiler_pic_CXX in
13327     "" | " "*) ;;
13328     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13329     esac
13330else
13331    lt_prog_compiler_pic_CXX=
13332     lt_prog_compiler_can_build_shared_CXX=no
13333fi
13334
13335fi
13336
13337
13338
13339#
13340# Check to make sure the static flag actually works.
13341#
13342wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13344$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13345if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13346  $as_echo_n "(cached) " >&6
13347else
13348  lt_cv_prog_compiler_static_works_CXX=no
13349   save_LDFLAGS="$LDFLAGS"
13350   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13351   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13352   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13353     # The linker can only warn and ignore the option if not recognized
13354     # So say no if there are warnings
13355     if test -s conftest.err; then
13356       # Append any errors to the config.log.
13357       cat conftest.err 1>&5
13358       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13359       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13360       if diff conftest.exp conftest.er2 >/dev/null; then
13361         lt_cv_prog_compiler_static_works_CXX=yes
13362       fi
13363     else
13364       lt_cv_prog_compiler_static_works_CXX=yes
13365     fi
13366   fi
13367   $RM -r conftest*
13368   LDFLAGS="$save_LDFLAGS"
13369
13370fi
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13372$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13373
13374if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13375    :
13376else
13377    lt_prog_compiler_static_CXX=
13378fi
13379
13380
13381
13382
13383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13384$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13385if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13386  $as_echo_n "(cached) " >&6
13387else
13388  lt_cv_prog_compiler_c_o_CXX=no
13389   $RM -r conftest 2>/dev/null
13390   mkdir conftest
13391   cd conftest
13392   mkdir out
13393   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13394
13395   lt_compiler_flag="-o out/conftest2.$ac_objext"
13396   # Insert the option either (1) after the last *FLAGS variable, or
13397   # (2) before a word containing "conftest.", or (3) at the end.
13398   # Note that $ac_compile itself does not contain backslashes and begins
13399   # with a dollar sign (not a hyphen), so the echo should work correctly.
13400   lt_compile=`echo "$ac_compile" | $SED \
13401   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13402   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13403   -e 's:$: $lt_compiler_flag:'`
13404   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13405   (eval "$lt_compile" 2>out/conftest.err)
13406   ac_status=$?
13407   cat out/conftest.err >&5
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13410   then
13411     # The compiler can only warn and ignore the option if not recognized
13412     # So say no if there are warnings
13413     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13414     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13415     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13416       lt_cv_prog_compiler_c_o_CXX=yes
13417     fi
13418   fi
13419   chmod u+w . 2>&5
13420   $RM conftest*
13421   # SGI C++ compiler will create directory out/ii_files/ for
13422   # template instantiation
13423   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13424   $RM out/* && rmdir out
13425   cd ..
13426   $RM -r conftest
13427   $RM conftest*
13428
13429fi
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13431$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13432
13433
13434
13435    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13436$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13437if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13438  $as_echo_n "(cached) " >&6
13439else
13440  lt_cv_prog_compiler_c_o_CXX=no
13441   $RM -r conftest 2>/dev/null
13442   mkdir conftest
13443   cd conftest
13444   mkdir out
13445   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13446
13447   lt_compiler_flag="-o out/conftest2.$ac_objext"
13448   # Insert the option either (1) after the last *FLAGS variable, or
13449   # (2) before a word containing "conftest.", or (3) at the end.
13450   # Note that $ac_compile itself does not contain backslashes and begins
13451   # with a dollar sign (not a hyphen), so the echo should work correctly.
13452   lt_compile=`echo "$ac_compile" | $SED \
13453   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13454   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13455   -e 's:$: $lt_compiler_flag:'`
13456   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13457   (eval "$lt_compile" 2>out/conftest.err)
13458   ac_status=$?
13459   cat out/conftest.err >&5
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13462   then
13463     # The compiler can only warn and ignore the option if not recognized
13464     # So say no if there are warnings
13465     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13466     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13467     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13468       lt_cv_prog_compiler_c_o_CXX=yes
13469     fi
13470   fi
13471   chmod u+w . 2>&5
13472   $RM conftest*
13473   # SGI C++ compiler will create directory out/ii_files/ for
13474   # template instantiation
13475   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13476   $RM out/* && rmdir out
13477   cd ..
13478   $RM -r conftest
13479   $RM conftest*
13480
13481fi
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13483$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13484
13485
13486
13487
13488hard_links="nottested"
13489if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13490  # do not overwrite the value of need_locks provided by the user
13491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13492$as_echo_n "checking if we can lock with hard links... " >&6; }
13493  hard_links=yes
13494  $RM conftest*
13495  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13496  touch conftest.a
13497  ln conftest.a conftest.b 2>&5 || hard_links=no
13498  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13500$as_echo "$hard_links" >&6; }
13501  if test "$hard_links" = no; then
13502    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13503$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13504    need_locks=warn
13505  fi
13506else
13507  need_locks=no
13508fi
13509
13510
13511
13512    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13513$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13514
13515  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13516  case $host_os in
13517  aix[4-9]*)
13518    # If we're using GNU nm, then we don't want the "-C" option.
13519    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13520    # Also, AIX nm treats weak defined symbols like other global defined
13521    # symbols, whereas GNU nm marks them as "W".
13522    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13523      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13524    else
13525      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13526    fi
13527    ;;
13528  pw32*)
13529    export_symbols_cmds_CXX="$ltdll_cmds"
13530  ;;
13531  cygwin* | mingw* | cegcc*)
13532    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13533  ;;
13534  *)
13535    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13536  ;;
13537  esac
13538  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13539
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13541$as_echo "$ld_shlibs_CXX" >&6; }
13542test "$ld_shlibs_CXX" = no && can_build_shared=no
13543
13544with_gnu_ld_CXX=$with_gnu_ld
13545
13546
13547
13548
13549
13550
13551#
13552# Do we need to explicitly link libc?
13553#
13554case "x$archive_cmds_need_lc_CXX" in
13555x|xyes)
13556  # Assume -lc should be added
13557  archive_cmds_need_lc_CXX=yes
13558
13559  if test "$enable_shared" = yes && test "$GCC" = yes; then
13560    case $archive_cmds_CXX in
13561    *'~'*)
13562      # FIXME: we may have to deal with multi-command sequences.
13563      ;;
13564    '$CC '*)
13565      # Test whether the compiler implicitly links with -lc since on some
13566      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13567      # to ld, don't add -lc before -lgcc.
13568      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13569$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13570if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13571  $as_echo_n "(cached) " >&6
13572else
13573  $RM conftest*
13574	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13575
13576	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13577  (eval $ac_compile) 2>&5
13578  ac_status=$?
13579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13580  test $ac_status = 0; } 2>conftest.err; then
13581	  soname=conftest
13582	  lib=conftest
13583	  libobjs=conftest.$ac_objext
13584	  deplibs=
13585	  wl=$lt_prog_compiler_wl_CXX
13586	  pic_flag=$lt_prog_compiler_pic_CXX
13587	  compiler_flags=-v
13588	  linker_flags=-v
13589	  verstring=
13590	  output_objdir=.
13591	  libname=conftest
13592	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13593	  allow_undefined_flag_CXX=
13594	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13595  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13596  ac_status=$?
13597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598  test $ac_status = 0; }
13599	  then
13600	    lt_cv_archive_cmds_need_lc_CXX=no
13601	  else
13602	    lt_cv_archive_cmds_need_lc_CXX=yes
13603	  fi
13604	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13605	else
13606	  cat conftest.err 1>&5
13607	fi
13608	$RM conftest*
13609
13610fi
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13612$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13613      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13614      ;;
13615    esac
13616  fi
13617  ;;
13618esac
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13684$as_echo_n "checking dynamic linker characteristics... " >&6; }
13685
13686library_names_spec=
13687libname_spec='lib$name'
13688soname_spec=
13689shrext_cmds=".so"
13690postinstall_cmds=
13691postuninstall_cmds=
13692finish_cmds=
13693finish_eval=
13694shlibpath_var=
13695shlibpath_overrides_runpath=unknown
13696version_type=none
13697dynamic_linker="$host_os ld.so"
13698sys_lib_dlsearch_path_spec="/lib /usr/lib"
13699need_lib_prefix=unknown
13700hardcode_into_libs=no
13701
13702# when you set need_version to no, make sure it does not cause -set_version
13703# flags to be left without arguments
13704need_version=unknown
13705
13706case $host_os in
13707aix3*)
13708  version_type=linux
13709  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13710  shlibpath_var=LIBPATH
13711
13712  # AIX 3 has no versioning support, so we append a major version to the name.
13713  soname_spec='${libname}${release}${shared_ext}$major'
13714  ;;
13715
13716aix[4-9]*)
13717  version_type=linux
13718  need_lib_prefix=no
13719  need_version=no
13720  hardcode_into_libs=yes
13721  if test "$host_cpu" = ia64; then
13722    # AIX 5 supports IA64
13723    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13724    shlibpath_var=LD_LIBRARY_PATH
13725  else
13726    # With GCC up to 2.95.x, collect2 would create an import file
13727    # for dependence libraries.  The import file would start with
13728    # the line `#! .'.  This would cause the generated library to
13729    # depend on `.', always an invalid library.  This was fixed in
13730    # development snapshots of GCC prior to 3.0.
13731    case $host_os in
13732      aix4 | aix4.[01] | aix4.[01].*)
13733      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13734	   echo ' yes '
13735	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13736	:
13737      else
13738	can_build_shared=no
13739      fi
13740      ;;
13741    esac
13742    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13743    # soname into executable. Probably we can add versioning support to
13744    # collect2, so additional links can be useful in future.
13745    if test "$aix_use_runtimelinking" = yes; then
13746      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13747      # instead of lib<name>.a to let people know that these are not
13748      # typical AIX shared libraries.
13749      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750    else
13751      # We preserve .a as extension for shared libraries through AIX4.2
13752      # and later when we are not doing run time linking.
13753      library_names_spec='${libname}${release}.a $libname.a'
13754      soname_spec='${libname}${release}${shared_ext}$major'
13755    fi
13756    shlibpath_var=LIBPATH
13757  fi
13758  ;;
13759
13760amigaos*)
13761  case $host_cpu in
13762  powerpc)
13763    # Since July 2007 AmigaOS4 officially supports .so libraries.
13764    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13765    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13766    ;;
13767  m68k)
13768    library_names_spec='$libname.ixlibrary $libname.a'
13769    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13770    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13771    ;;
13772  esac
13773  ;;
13774
13775beos*)
13776  library_names_spec='${libname}${shared_ext}'
13777  dynamic_linker="$host_os ld.so"
13778  shlibpath_var=LIBRARY_PATH
13779  ;;
13780
13781bsdi[45]*)
13782  version_type=linux
13783  need_version=no
13784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785  soname_spec='${libname}${release}${shared_ext}$major'
13786  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13787  shlibpath_var=LD_LIBRARY_PATH
13788  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13789  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13790  # the default ld.so.conf also contains /usr/contrib/lib and
13791  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13792  # libtool to hard-code these into programs
13793  ;;
13794
13795cygwin* | mingw* | pw32* | cegcc*)
13796  version_type=windows
13797  shrext_cmds=".dll"
13798  need_version=no
13799  need_lib_prefix=no
13800
13801  case $GCC,$host_os in
13802  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13803    library_names_spec='$libname.dll.a'
13804    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13805    postinstall_cmds='base_file=`basename \${file}`~
13806      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13807      dldir=$destdir/`dirname \$dlpath`~
13808      test -d \$dldir || mkdir -p \$dldir~
13809      $install_prog $dir/$dlname \$dldir/$dlname~
13810      chmod a+x \$dldir/$dlname~
13811      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13812        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13813      fi'
13814    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13815      dlpath=$dir/\$dldll~
13816       $RM \$dlpath'
13817    shlibpath_overrides_runpath=yes
13818
13819    case $host_os in
13820    cygwin*)
13821      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13822      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13823
13824      ;;
13825    mingw* | cegcc*)
13826      # MinGW DLLs use traditional 'lib' prefix
13827      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13828      ;;
13829    pw32*)
13830      # pw32 DLLs use 'pw' prefix rather than 'lib'
13831      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13832      ;;
13833    esac
13834    ;;
13835
13836  *)
13837    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13838    ;;
13839  esac
13840  dynamic_linker='Win32 ld.exe'
13841  # FIXME: first we should search . and the directory the executable is in
13842  shlibpath_var=PATH
13843  ;;
13844
13845darwin* | rhapsody*)
13846  dynamic_linker="$host_os dyld"
13847  version_type=darwin
13848  need_lib_prefix=no
13849  need_version=no
13850  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13851  soname_spec='${libname}${release}${major}$shared_ext'
13852  shlibpath_overrides_runpath=yes
13853  shlibpath_var=DYLD_LIBRARY_PATH
13854  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13855
13856  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13857  ;;
13858
13859dgux*)
13860  version_type=linux
13861  need_lib_prefix=no
13862  need_version=no
13863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13864  soname_spec='${libname}${release}${shared_ext}$major'
13865  shlibpath_var=LD_LIBRARY_PATH
13866  ;;
13867
13868freebsd* | dragonfly*)
13869  # DragonFly does not have aout.  When/if they implement a new
13870  # versioning mechanism, adjust this.
13871  if test -x /usr/bin/objformat; then
13872    objformat=`/usr/bin/objformat`
13873  else
13874    case $host_os in
13875    freebsd[23].*) objformat=aout ;;
13876    *) objformat=elf ;;
13877    esac
13878  fi
13879  version_type=freebsd-$objformat
13880  case $version_type in
13881    freebsd-elf*)
13882      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13883      need_version=no
13884      need_lib_prefix=no
13885      ;;
13886    freebsd-*)
13887      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13888      need_version=yes
13889      ;;
13890  esac
13891  shlibpath_var=LD_LIBRARY_PATH
13892  case $host_os in
13893  freebsd2.*)
13894    shlibpath_overrides_runpath=yes
13895    ;;
13896  freebsd3.[01]* | freebsdelf3.[01]*)
13897    shlibpath_overrides_runpath=yes
13898    hardcode_into_libs=yes
13899    ;;
13900  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13901  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13902    shlibpath_overrides_runpath=no
13903    hardcode_into_libs=yes
13904    ;;
13905  *) # from 4.6 on, and DragonFly
13906    shlibpath_overrides_runpath=yes
13907    hardcode_into_libs=yes
13908    ;;
13909  esac
13910  ;;
13911
13912gnu*)
13913  version_type=linux
13914  need_lib_prefix=no
13915  need_version=no
13916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13917  soname_spec='${libname}${release}${shared_ext}$major'
13918  shlibpath_var=LD_LIBRARY_PATH
13919  hardcode_into_libs=yes
13920  ;;
13921
13922haiku*)
13923  version_type=linux
13924  need_lib_prefix=no
13925  need_version=no
13926  dynamic_linker="$host_os runtime_loader"
13927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13928  soname_spec='${libname}${release}${shared_ext}$major'
13929  shlibpath_var=LIBRARY_PATH
13930  shlibpath_overrides_runpath=yes
13931  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13932  hardcode_into_libs=yes
13933  ;;
13934
13935hpux9* | hpux10* | hpux11*)
13936  # Give a soname corresponding to the major version so that dld.sl refuses to
13937  # link against other versions.
13938  version_type=sunos
13939  need_lib_prefix=no
13940  need_version=no
13941  case $host_cpu in
13942  ia64*)
13943    shrext_cmds='.so'
13944    hardcode_into_libs=yes
13945    dynamic_linker="$host_os dld.so"
13946    shlibpath_var=LD_LIBRARY_PATH
13947    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13948    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949    soname_spec='${libname}${release}${shared_ext}$major'
13950    if test "X$HPUX_IA64_MODE" = X32; then
13951      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13952    else
13953      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13954    fi
13955    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13956    ;;
13957  hppa*64*)
13958    shrext_cmds='.sl'
13959    hardcode_into_libs=yes
13960    dynamic_linker="$host_os dld.sl"
13961    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13962    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13963    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964    soname_spec='${libname}${release}${shared_ext}$major'
13965    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13966    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13967    ;;
13968  *)
13969    shrext_cmds='.sl'
13970    dynamic_linker="$host_os dld.sl"
13971    shlibpath_var=SHLIB_PATH
13972    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13973    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13974    soname_spec='${libname}${release}${shared_ext}$major'
13975    ;;
13976  esac
13977  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13978  postinstall_cmds='chmod 555 $lib'
13979  # or fails outright, so override atomically:
13980  install_override_mode=555
13981  ;;
13982
13983interix[3-9]*)
13984  version_type=linux
13985  need_lib_prefix=no
13986  need_version=no
13987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13988  soname_spec='${libname}${release}${shared_ext}$major'
13989  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13990  shlibpath_var=LD_LIBRARY_PATH
13991  shlibpath_overrides_runpath=no
13992  hardcode_into_libs=yes
13993  ;;
13994
13995irix5* | irix6* | nonstopux*)
13996  case $host_os in
13997    nonstopux*) version_type=nonstopux ;;
13998    *)
13999	if test "$lt_cv_prog_gnu_ld" = yes; then
14000		version_type=linux
14001	else
14002		version_type=irix
14003	fi ;;
14004  esac
14005  need_lib_prefix=no
14006  need_version=no
14007  soname_spec='${libname}${release}${shared_ext}$major'
14008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14009  case $host_os in
14010  irix5* | nonstopux*)
14011    libsuff= shlibsuff=
14012    ;;
14013  *)
14014    case $LD in # libtool.m4 will add one of these switches to LD
14015    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14016      libsuff= shlibsuff= libmagic=32-bit;;
14017    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14018      libsuff=32 shlibsuff=N32 libmagic=N32;;
14019    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14020      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14021    *) libsuff= shlibsuff= libmagic=never-match;;
14022    esac
14023    ;;
14024  esac
14025  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14026  shlibpath_overrides_runpath=no
14027  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14028  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14029  hardcode_into_libs=yes
14030  ;;
14031
14032# No shared lib support for Linux oldld, aout, or coff.
14033linux*oldld* | linux*aout* | linux*coff*)
14034  dynamic_linker=no
14035  ;;
14036
14037# This must be Linux ELF.
14038linux* | k*bsd*-gnu | kopensolaris*-gnu)
14039  version_type=linux
14040  need_lib_prefix=no
14041  need_version=no
14042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14043  soname_spec='${libname}${release}${shared_ext}$major'
14044  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14045  shlibpath_var=LD_LIBRARY_PATH
14046  shlibpath_overrides_runpath=no
14047
14048  # Some binutils ld are patched to set DT_RUNPATH
14049  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14050  $as_echo_n "(cached) " >&6
14051else
14052  lt_cv_shlibpath_overrides_runpath=no
14053    save_LDFLAGS=$LDFLAGS
14054    save_libdir=$libdir
14055    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14056	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14057    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058/* end confdefs.h.  */
14059
14060int
14061main ()
14062{
14063
14064  ;
14065  return 0;
14066}
14067_ACEOF
14068if ac_fn_cxx_try_link "$LINENO"; then :
14069  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14070  lt_cv_shlibpath_overrides_runpath=yes
14071fi
14072fi
14073rm -f core conftest.err conftest.$ac_objext \
14074    conftest$ac_exeext conftest.$ac_ext
14075    LDFLAGS=$save_LDFLAGS
14076    libdir=$save_libdir
14077
14078fi
14079
14080  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14081
14082  # This implies no fast_install, which is unacceptable.
14083  # Some rework will be needed to allow for fast_install
14084  # before this can be enabled.
14085  hardcode_into_libs=yes
14086
14087  # Append ld.so.conf contents to the search path
14088  if test -f /etc/ld.so.conf; then
14089    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' ' '`
14090    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14091  fi
14092
14093  # We used to test for /lib/ld.so.1 and disable shared libraries on
14094  # powerpc, because MkLinux only supported shared libraries with the
14095  # GNU dynamic linker.  Since this was broken with cross compilers,
14096  # most powerpc-linux boxes support dynamic linking these days and
14097  # people can always --disable-shared, the test was removed, and we
14098  # assume the GNU/Linux dynamic linker is in use.
14099  dynamic_linker='GNU/Linux ld.so'
14100  ;;
14101
14102netbsd*)
14103  version_type=sunos
14104  need_lib_prefix=no
14105  need_version=no
14106  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14107    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14108    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14109    dynamic_linker='NetBSD (a.out) ld.so'
14110  else
14111    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14112    soname_spec='${libname}${release}${shared_ext}$major'
14113    dynamic_linker='NetBSD ld.elf_so'
14114  fi
14115  shlibpath_var=LD_LIBRARY_PATH
14116  shlibpath_overrides_runpath=yes
14117  hardcode_into_libs=yes
14118  ;;
14119
14120newsos6)
14121  version_type=linux
14122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123  shlibpath_var=LD_LIBRARY_PATH
14124  shlibpath_overrides_runpath=yes
14125  ;;
14126
14127*nto* | *qnx*)
14128  version_type=qnx
14129  need_lib_prefix=no
14130  need_version=no
14131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132  soname_spec='${libname}${release}${shared_ext}$major'
14133  shlibpath_var=LD_LIBRARY_PATH
14134  shlibpath_overrides_runpath=no
14135  hardcode_into_libs=yes
14136  dynamic_linker='ldqnx.so'
14137  ;;
14138
14139openbsd*)
14140  version_type=sunos
14141  sys_lib_dlsearch_path_spec="/usr/lib"
14142  need_lib_prefix=no
14143  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14144  case $host_os in
14145    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14146    *)				need_version=no  ;;
14147  esac
14148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14149  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14150  shlibpath_var=LD_LIBRARY_PATH
14151  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14152    case $host_os in
14153      openbsd2.[89] | openbsd2.[89].*)
14154	shlibpath_overrides_runpath=no
14155	;;
14156      *)
14157	shlibpath_overrides_runpath=yes
14158	;;
14159      esac
14160  else
14161    shlibpath_overrides_runpath=yes
14162  fi
14163  ;;
14164
14165os2*)
14166  libname_spec='$name'
14167  shrext_cmds=".dll"
14168  need_lib_prefix=no
14169  library_names_spec='$libname${shared_ext} $libname.a'
14170  dynamic_linker='OS/2 ld.exe'
14171  shlibpath_var=LIBPATH
14172  ;;
14173
14174osf3* | osf4* | osf5*)
14175  version_type=osf
14176  need_lib_prefix=no
14177  need_version=no
14178  soname_spec='${libname}${release}${shared_ext}$major'
14179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180  shlibpath_var=LD_LIBRARY_PATH
14181  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14182  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14183  ;;
14184
14185rdos*)
14186  dynamic_linker=no
14187  ;;
14188
14189solaris*)
14190  version_type=linux
14191  need_lib_prefix=no
14192  need_version=no
14193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14194  soname_spec='${libname}${release}${shared_ext}$major'
14195  shlibpath_var=LD_LIBRARY_PATH
14196  shlibpath_overrides_runpath=yes
14197  hardcode_into_libs=yes
14198  # ldd complains unless libraries are executable
14199  postinstall_cmds='chmod +x $lib'
14200  ;;
14201
14202sunos4*)
14203  version_type=sunos
14204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14205  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14206  shlibpath_var=LD_LIBRARY_PATH
14207  shlibpath_overrides_runpath=yes
14208  if test "$with_gnu_ld" = yes; then
14209    need_lib_prefix=no
14210  fi
14211  need_version=yes
14212  ;;
14213
14214sysv4 | sysv4.3*)
14215  version_type=linux
14216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14217  soname_spec='${libname}${release}${shared_ext}$major'
14218  shlibpath_var=LD_LIBRARY_PATH
14219  case $host_vendor in
14220    sni)
14221      shlibpath_overrides_runpath=no
14222      need_lib_prefix=no
14223      runpath_var=LD_RUN_PATH
14224      ;;
14225    siemens)
14226      need_lib_prefix=no
14227      ;;
14228    motorola)
14229      need_lib_prefix=no
14230      need_version=no
14231      shlibpath_overrides_runpath=no
14232      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14233      ;;
14234  esac
14235  ;;
14236
14237sysv4*MP*)
14238  if test -d /usr/nec ;then
14239    version_type=linux
14240    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14241    soname_spec='$libname${shared_ext}.$major'
14242    shlibpath_var=LD_LIBRARY_PATH
14243  fi
14244  ;;
14245
14246sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14247  version_type=freebsd-elf
14248  need_lib_prefix=no
14249  need_version=no
14250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14251  soname_spec='${libname}${release}${shared_ext}$major'
14252  shlibpath_var=LD_LIBRARY_PATH
14253  shlibpath_overrides_runpath=yes
14254  hardcode_into_libs=yes
14255  if test "$with_gnu_ld" = yes; then
14256    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14257  else
14258    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14259    case $host_os in
14260      sco3.2v5*)
14261        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14262	;;
14263    esac
14264  fi
14265  sys_lib_dlsearch_path_spec='/usr/lib'
14266  ;;
14267
14268tpf*)
14269  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14270  version_type=linux
14271  need_lib_prefix=no
14272  need_version=no
14273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14274  shlibpath_var=LD_LIBRARY_PATH
14275  shlibpath_overrides_runpath=no
14276  hardcode_into_libs=yes
14277  ;;
14278
14279uts4*)
14280  version_type=linux
14281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14282  soname_spec='${libname}${release}${shared_ext}$major'
14283  shlibpath_var=LD_LIBRARY_PATH
14284  ;;
14285
14286*)
14287  dynamic_linker=no
14288  ;;
14289esac
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14291$as_echo "$dynamic_linker" >&6; }
14292test "$dynamic_linker" = no && can_build_shared=no
14293
14294variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14295if test "$GCC" = yes; then
14296  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14297fi
14298
14299if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14300  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14301fi
14302if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14303  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14304fi
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14344$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14345hardcode_action_CXX=
14346if test -n "$hardcode_libdir_flag_spec_CXX" ||
14347   test -n "$runpath_var_CXX" ||
14348   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14349
14350  # We can hardcode non-existent directories.
14351  if test "$hardcode_direct_CXX" != no &&
14352     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14353     # have to relink, otherwise we might link with an installed library
14354     # when we should be linking with a yet-to-be-installed one
14355     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14356     test "$hardcode_minus_L_CXX" != no; then
14357    # Linking always hardcodes the temporary library directory.
14358    hardcode_action_CXX=relink
14359  else
14360    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14361    hardcode_action_CXX=immediate
14362  fi
14363else
14364  # We cannot hardcode anything, or else we can only hardcode existing
14365  # directories.
14366  hardcode_action_CXX=unsupported
14367fi
14368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14369$as_echo "$hardcode_action_CXX" >&6; }
14370
14371if test "$hardcode_action_CXX" = relink ||
14372   test "$inherit_rpath_CXX" = yes; then
14373  # Fast installation is not supported
14374  enable_fast_install=no
14375elif test "$shlibpath_overrides_runpath" = yes ||
14376     test "$enable_shared" = no; then
14377  # Fast installation is not necessary
14378  enable_fast_install=needless
14379fi
14380
14381
14382
14383
14384
14385
14386
14387  fi # test -n "$compiler"
14388
14389  CC=$lt_save_CC
14390  LDCXX=$LD
14391  LD=$lt_save_LD
14392  GCC=$lt_save_GCC
14393  with_gnu_ld=$lt_save_with_gnu_ld
14394  lt_cv_path_LDCXX=$lt_cv_path_LD
14395  lt_cv_path_LD=$lt_save_path_LD
14396  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14397  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14398fi # test "$_lt_caught_CXX_error" != yes
14399
14400ac_ext=c
14401ac_cpp='$CPP $CPPFLAGS'
14402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14404ac_compiler_gnu=$ac_cv_c_compiler_gnu
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418        ac_config_commands="$ac_config_commands libtool"
14419
14420
14421
14422
14423# Only expand once:
14424
14425
14426
14427
14428
14429
14430
14431# Check to see if -pthread or -lpthread is needed.  Prefer the former.
14432# Note that the CILK_SELF_SPEC in gcc.c may force -pthread.
14433# In case the pthread.h system header is not found, this test will fail.
14434XCFLAGS=""
14435XLDFLAGS=""
14436CFLAGS="$CFLAGS -pthread"
14437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438/* end confdefs.h.  */
14439#include <pthread.h>
14440   void *g(void *d) { return NULL; }
14441int
14442main ()
14443{
14444pthread_t t; pthread_create(&t,NULL,g,NULL);
14445  ;
14446  return 0;
14447}
14448_ACEOF
14449if ac_fn_c_try_link "$LINENO"; then :
14450  XCFLAGS=" -Wc,-pthread"
14451else
14452  CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454/* end confdefs.h.  */
14455#include <pthread.h>
14456     void *g(void *d) { return NULL; }
14457int
14458main ()
14459{
14460pthread_t t; pthread_create(&t,NULL,g,NULL);
14461  ;
14462  return 0;
14463}
14464_ACEOF
14465if ac_fn_c_try_link "$LINENO"; then :
14466
14467else
14468  as_fn_error "Pthreads are required to build libcilkrts" "$LINENO" 5
14469fi
14470rm -f core conftest.err conftest.$ac_objext \
14471    conftest$ac_exeext conftest.$ac_ext
14472fi
14473rm -f core conftest.err conftest.$ac_objext \
14474    conftest$ac_exeext conftest.$ac_ext
14475
14476# Check for pthread_{,attr_}[sg]etaffinity_np.
14477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478/* end confdefs.h.  */
14479#define _GNU_SOURCE
14480   #include <pthread.h>
14481int
14482main ()
14483{
14484cpu_set_t cpuset;
14485   pthread_attr_t attr;
14486   pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
14487   if (CPU_ISSET (0, &cpuset))
14488     CPU_SET (1, &cpuset);
14489   else
14490     CPU_ZERO (&cpuset);
14491   pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
14492   pthread_attr_init (&attr);
14493   pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
14494   pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
14495  ;
14496  return 0;
14497}
14498_ACEOF
14499if ac_fn_c_try_link "$LINENO"; then :
14500
14501$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
14502
14503fi
14504rm -f core conftest.err conftest.$ac_objext \
14505    conftest$ac_exeext conftest.$ac_ext
14506
14507# Every c++ lib is linking by default with -nostdlib, which leads to the
14508# fact, that proper pthread library will not be given at link time. We have
14509# to hard-code that.
14510case "${target}" in
14511
14512  *android*)
14513    XLDFLAGS="$XLDFLAGS -lc"
14514     ;;
14515  *)
14516    XLDFLAGS="$XLDFLAGS -lpthread"
14517    ;;
14518
14519esac
14520
14521
14522
14523
14524CFLAGS="$save_CFLAGS"
14525
14526if test $enable_shared = yes; then
14527  link_cilkrts="-lcilkrts %{static: $LIBS}"
14528else
14529  link_cilkrts="-lcilkrts $LIBS"
14530fi
14531
14532
14533
14534# Must be last
14535cat >confcache <<\_ACEOF
14536# This file is a shell script that caches the results of configure
14537# tests run on this system so they can be shared between configure
14538# scripts and configure runs, see configure's option --config-cache.
14539# It is not useful on other systems.  If it contains results you don't
14540# want to keep, you may remove or edit it.
14541#
14542# config.status only pays attention to the cache file if you give it
14543# the --recheck option to rerun configure.
14544#
14545# `ac_cv_env_foo' variables (set or unset) will be overridden when
14546# loading this file, other *unset* `ac_cv_foo' will be assigned the
14547# following values.
14548
14549_ACEOF
14550
14551# The following way of writing the cache mishandles newlines in values,
14552# but we know of no workaround that is simple, portable, and efficient.
14553# So, we kill variables containing newlines.
14554# Ultrix sh set writes to stderr and can't be redirected directly,
14555# and sets the high bit in the cache file unless we assign to the vars.
14556(
14557  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14558    eval ac_val=\$$ac_var
14559    case $ac_val in #(
14560    *${as_nl}*)
14561      case $ac_var in #(
14562      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14563$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14564      esac
14565      case $ac_var in #(
14566      _ | IFS | as_nl) ;; #(
14567      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14568      *) { eval $ac_var=; unset $ac_var;} ;;
14569      esac ;;
14570    esac
14571  done
14572
14573  (set) 2>&1 |
14574    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14575    *${as_nl}ac_space=\ *)
14576      # `set' does not quote correctly, so add quotes: double-quote
14577      # substitution turns \\\\ into \\, and sed turns \\ into \.
14578      sed -n \
14579	"s/'/'\\\\''/g;
14580	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14581      ;; #(
14582    *)
14583      # `set' quotes correctly as required by POSIX, so do not add quotes.
14584      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14585      ;;
14586    esac |
14587    sort
14588) |
14589  sed '
14590     /^ac_cv_env_/b end
14591     t clear
14592     :clear
14593     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14594     t end
14595     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14596     :end' >>confcache
14597if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14598  if test -w "$cache_file"; then
14599    test "x$cache_file" != "x/dev/null" &&
14600      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14601$as_echo "$as_me: updating cache $cache_file" >&6;}
14602    cat confcache >$cache_file
14603  else
14604    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14605$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14606  fi
14607fi
14608rm -f confcache
14609
14610test "x$prefix" = xNONE && prefix=$ac_default_prefix
14611# Let make expand exec_prefix.
14612test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14613
14614# Transform confdefs.h into DEFS.
14615# Protect against shell expansion while executing Makefile rules.
14616# Protect against Makefile macro expansion.
14617#
14618# If the first sed substitution is executed (which looks for macros that
14619# take arguments), then branch to the quote section.  Otherwise,
14620# look for a macro that doesn't take arguments.
14621ac_script='
14622:mline
14623/\\$/{
14624 N
14625 s,\\\n,,
14626 b mline
14627}
14628t clear
14629:clear
14630s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
14631t quote
14632s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
14633t quote
14634b any
14635:quote
14636s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14637s/\[/\\&/g
14638s/\]/\\&/g
14639s/\$/$$/g
14640H
14641:any
14642${
14643	g
14644	s/^\n//
14645	s/\n/ /g
14646	p
14647}
14648'
14649DEFS=`sed -n "$ac_script" confdefs.h`
14650
14651
14652ac_libobjs=
14653ac_ltlibobjs=
14654for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14655  # 1. Remove the extension, and $U if already installed.
14656  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14657  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14658  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14659  #    will be set to the directory where LIBOBJS objects are built.
14660  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14661  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14662done
14663LIBOBJS=$ac_libobjs
14664
14665LTLIBOBJS=$ac_ltlibobjs
14666
14667
14668 if test -n "$EXEEXT"; then
14669  am__EXEEXT_TRUE=
14670  am__EXEEXT_FALSE='#'
14671else
14672  am__EXEEXT_TRUE='#'
14673  am__EXEEXT_FALSE=
14674fi
14675
14676if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14677  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14678Usually this means the macro was only invoked conditionally." "$LINENO" 5
14679fi
14680if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14681  as_fn_error "conditional \"AMDEP\" was never defined.
14682Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683fi
14684if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14685  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14686Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687fi
14688if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14689  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14690Usually this means the macro was only invoked conditionally." "$LINENO" 5
14691fi
14692if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
14693  as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
14694Usually this means the macro was only invoked conditionally." "$LINENO" 5
14695fi
14696if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
14697  as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined.
14698Usually this means the macro was only invoked conditionally." "$LINENO" 5
14699fi
14700
14701: ${CONFIG_STATUS=./config.status}
14702ac_write_fail=0
14703ac_clean_files_save=$ac_clean_files
14704ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14705{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14706$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14707as_write_fail=0
14708cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14709#! $SHELL
14710# Generated by $as_me.
14711# Run this file to recreate the current configuration.
14712# Compiler output produced by configure, useful for debugging
14713# configure, is in config.log if it exists.
14714
14715debug=false
14716ac_cs_recheck=false
14717ac_cs_silent=false
14718
14719SHELL=\${CONFIG_SHELL-$SHELL}
14720export SHELL
14721_ASEOF
14722cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14723## -------------------- ##
14724## M4sh Initialization. ##
14725## -------------------- ##
14726
14727# Be more Bourne compatible
14728DUALCASE=1; export DUALCASE # for MKS sh
14729if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14730  emulate sh
14731  NULLCMD=:
14732  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14733  # is contrary to our usage.  Disable this feature.
14734  alias -g '${1+"$@"}'='"$@"'
14735  setopt NO_GLOB_SUBST
14736else
14737  case `(set -o) 2>/dev/null` in #(
14738  *posix*) :
14739    set -o posix ;; #(
14740  *) :
14741     ;;
14742esac
14743fi
14744
14745
14746as_nl='
14747'
14748export as_nl
14749# Printing a long string crashes Solaris 7 /usr/bin/printf.
14750as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14751as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14752as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14753# Prefer a ksh shell builtin over an external printf program on Solaris,
14754# but without wasting forks for bash or zsh.
14755if test -z "$BASH_VERSION$ZSH_VERSION" \
14756    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14757  as_echo='print -r --'
14758  as_echo_n='print -rn --'
14759elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14760  as_echo='printf %s\n'
14761  as_echo_n='printf %s'
14762else
14763  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14764    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14765    as_echo_n='/usr/ucb/echo -n'
14766  else
14767    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14768    as_echo_n_body='eval
14769      arg=$1;
14770      case $arg in #(
14771      *"$as_nl"*)
14772	expr "X$arg" : "X\\(.*\\)$as_nl";
14773	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14774      esac;
14775      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14776    '
14777    export as_echo_n_body
14778    as_echo_n='sh -c $as_echo_n_body as_echo'
14779  fi
14780  export as_echo_body
14781  as_echo='sh -c $as_echo_body as_echo'
14782fi
14783
14784# The user is always right.
14785if test "${PATH_SEPARATOR+set}" != set; then
14786  PATH_SEPARATOR=:
14787  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14788    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14789      PATH_SEPARATOR=';'
14790  }
14791fi
14792
14793
14794# IFS
14795# We need space, tab and new line, in precisely that order.  Quoting is
14796# there to prevent editors from complaining about space-tab.
14797# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14798# splitting by setting IFS to empty value.)
14799IFS=" ""	$as_nl"
14800
14801# Find who we are.  Look in the path if we contain no directory separator.
14802case $0 in #((
14803  *[\\/]* ) as_myself=$0 ;;
14804  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805for as_dir in $PATH
14806do
14807  IFS=$as_save_IFS
14808  test -z "$as_dir" && as_dir=.
14809    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14810  done
14811IFS=$as_save_IFS
14812
14813     ;;
14814esac
14815# We did not find ourselves, most probably we were run as `sh COMMAND'
14816# in which case we are not to be found in the path.
14817if test "x$as_myself" = x; then
14818  as_myself=$0
14819fi
14820if test ! -f "$as_myself"; then
14821  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14822  exit 1
14823fi
14824
14825# Unset variables that we do not need and which cause bugs (e.g. in
14826# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14827# suppresses any "Segmentation fault" message there.  '((' could
14828# trigger a bug in pdksh 5.2.14.
14829for as_var in BASH_ENV ENV MAIL MAILPATH
14830do eval test x\${$as_var+set} = xset \
14831  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14832done
14833PS1='$ '
14834PS2='> '
14835PS4='+ '
14836
14837# NLS nuisances.
14838LC_ALL=C
14839export LC_ALL
14840LANGUAGE=C
14841export LANGUAGE
14842
14843# CDPATH.
14844(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14845
14846
14847# as_fn_error ERROR [LINENO LOG_FD]
14848# ---------------------------------
14849# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14850# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14851# script with status $?, using 1 if that was 0.
14852as_fn_error ()
14853{
14854  as_status=$?; test $as_status -eq 0 && as_status=1
14855  if test "$3"; then
14856    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14857    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14858  fi
14859  $as_echo "$as_me: error: $1" >&2
14860  as_fn_exit $as_status
14861} # as_fn_error
14862
14863
14864# as_fn_set_status STATUS
14865# -----------------------
14866# Set $? to STATUS, without forking.
14867as_fn_set_status ()
14868{
14869  return $1
14870} # as_fn_set_status
14871
14872# as_fn_exit STATUS
14873# -----------------
14874# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14875as_fn_exit ()
14876{
14877  set +e
14878  as_fn_set_status $1
14879  exit $1
14880} # as_fn_exit
14881
14882# as_fn_unset VAR
14883# ---------------
14884# Portably unset VAR.
14885as_fn_unset ()
14886{
14887  { eval $1=; unset $1;}
14888}
14889as_unset=as_fn_unset
14890# as_fn_append VAR VALUE
14891# ----------------------
14892# Append the text in VALUE to the end of the definition contained in VAR. Take
14893# advantage of any shell optimizations that allow amortized linear growth over
14894# repeated appends, instead of the typical quadratic growth present in naive
14895# implementations.
14896if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14897  eval 'as_fn_append ()
14898  {
14899    eval $1+=\$2
14900  }'
14901else
14902  as_fn_append ()
14903  {
14904    eval $1=\$$1\$2
14905  }
14906fi # as_fn_append
14907
14908# as_fn_arith ARG...
14909# ------------------
14910# Perform arithmetic evaluation on the ARGs, and store the result in the
14911# global $as_val. Take advantage of shells that can avoid forks. The arguments
14912# must be portable across $(()) and expr.
14913if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14914  eval 'as_fn_arith ()
14915  {
14916    as_val=$(( $* ))
14917  }'
14918else
14919  as_fn_arith ()
14920  {
14921    as_val=`expr "$@" || test $? -eq 1`
14922  }
14923fi # as_fn_arith
14924
14925
14926if expr a : '\(a\)' >/dev/null 2>&1 &&
14927   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14928  as_expr=expr
14929else
14930  as_expr=false
14931fi
14932
14933if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14934  as_basename=basename
14935else
14936  as_basename=false
14937fi
14938
14939if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14940  as_dirname=dirname
14941else
14942  as_dirname=false
14943fi
14944
14945as_me=`$as_basename -- "$0" ||
14946$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14947	 X"$0" : 'X\(//\)$' \| \
14948	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14949$as_echo X/"$0" |
14950    sed '/^.*\/\([^/][^/]*\)\/*$/{
14951	    s//\1/
14952	    q
14953	  }
14954	  /^X\/\(\/\/\)$/{
14955	    s//\1/
14956	    q
14957	  }
14958	  /^X\/\(\/\).*/{
14959	    s//\1/
14960	    q
14961	  }
14962	  s/.*/./; q'`
14963
14964# Avoid depending upon Character Ranges.
14965as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14966as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14967as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14968as_cr_digits='0123456789'
14969as_cr_alnum=$as_cr_Letters$as_cr_digits
14970
14971ECHO_C= ECHO_N= ECHO_T=
14972case `echo -n x` in #(((((
14973-n*)
14974  case `echo 'xy\c'` in
14975  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14976  xy)  ECHO_C='\c';;
14977  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14978       ECHO_T='	';;
14979  esac;;
14980*)
14981  ECHO_N='-n';;
14982esac
14983
14984rm -f conf$$ conf$$.exe conf$$.file
14985if test -d conf$$.dir; then
14986  rm -f conf$$.dir/conf$$.file
14987else
14988  rm -f conf$$.dir
14989  mkdir conf$$.dir 2>/dev/null
14990fi
14991if (echo >conf$$.file) 2>/dev/null; then
14992  if ln -s conf$$.file conf$$ 2>/dev/null; then
14993    as_ln_s='ln -s'
14994    # ... but there are two gotchas:
14995    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14996    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14997    # In both cases, we have to default to `cp -p'.
14998    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14999      as_ln_s='cp -p'
15000  elif ln conf$$.file conf$$ 2>/dev/null; then
15001    as_ln_s=ln
15002  else
15003    as_ln_s='cp -p'
15004  fi
15005else
15006  as_ln_s='cp -p'
15007fi
15008rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15009rmdir conf$$.dir 2>/dev/null
15010
15011
15012# as_fn_mkdir_p
15013# -------------
15014# Create "$as_dir" as a directory, including parents if necessary.
15015as_fn_mkdir_p ()
15016{
15017
15018  case $as_dir in #(
15019  -*) as_dir=./$as_dir;;
15020  esac
15021  test -d "$as_dir" || eval $as_mkdir_p || {
15022    as_dirs=
15023    while :; do
15024      case $as_dir in #(
15025      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15026      *) as_qdir=$as_dir;;
15027      esac
15028      as_dirs="'$as_qdir' $as_dirs"
15029      as_dir=`$as_dirname -- "$as_dir" ||
15030$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15031	 X"$as_dir" : 'X\(//\)[^/]' \| \
15032	 X"$as_dir" : 'X\(//\)$' \| \
15033	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15034$as_echo X"$as_dir" |
15035    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15036	    s//\1/
15037	    q
15038	  }
15039	  /^X\(\/\/\)[^/].*/{
15040	    s//\1/
15041	    q
15042	  }
15043	  /^X\(\/\/\)$/{
15044	    s//\1/
15045	    q
15046	  }
15047	  /^X\(\/\).*/{
15048	    s//\1/
15049	    q
15050	  }
15051	  s/.*/./; q'`
15052      test -d "$as_dir" && break
15053    done
15054    test -z "$as_dirs" || eval "mkdir $as_dirs"
15055  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15056
15057
15058} # as_fn_mkdir_p
15059if mkdir -p . 2>/dev/null; then
15060  as_mkdir_p='mkdir -p "$as_dir"'
15061else
15062  test -d ./-p && rmdir ./-p
15063  as_mkdir_p=false
15064fi
15065
15066if test -x / >/dev/null 2>&1; then
15067  as_test_x='test -x'
15068else
15069  if ls -dL / >/dev/null 2>&1; then
15070    as_ls_L_option=L
15071  else
15072    as_ls_L_option=
15073  fi
15074  as_test_x='
15075    eval sh -c '\''
15076      if test -d "$1"; then
15077	test -d "$1/.";
15078      else
15079	case $1 in #(
15080	-*)set "./$1";;
15081	esac;
15082	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15083	???[sx]*):;;*)false;;esac;fi
15084    '\'' sh
15085  '
15086fi
15087as_executable_p=$as_test_x
15088
15089# Sed expression to map a string onto a valid CPP name.
15090as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15091
15092# Sed expression to map a string onto a valid variable name.
15093as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15094
15095
15096exec 6>&1
15097## ----------------------------------- ##
15098## Main body of $CONFIG_STATUS script. ##
15099## ----------------------------------- ##
15100_ASEOF
15101test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15102
15103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15104# Save the log message, to keep $0 and so on meaningful, and to
15105# report actual input values of CONFIG_FILES etc. instead of their
15106# values after options handling.
15107ac_log="
15108This file was extended by Cilk Runtime Library $as_me 2.0, which was
15109generated by GNU Autoconf 2.64.  Invocation command line was
15110
15111  CONFIG_FILES    = $CONFIG_FILES
15112  CONFIG_HEADERS  = $CONFIG_HEADERS
15113  CONFIG_LINKS    = $CONFIG_LINKS
15114  CONFIG_COMMANDS = $CONFIG_COMMANDS
15115  $ $0 $@
15116
15117on `(hostname || uname -n) 2>/dev/null | sed 1q`
15118"
15119
15120_ACEOF
15121
15122case $ac_config_files in *"
15123"*) set x $ac_config_files; shift; ac_config_files=$*;;
15124esac
15125
15126
15127
15128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15129# Files that config.status was made for.
15130config_files="$ac_config_files"
15131config_commands="$ac_config_commands"
15132
15133_ACEOF
15134
15135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15136ac_cs_usage="\
15137\`$as_me' instantiates files and other configuration actions
15138from templates according to the current configuration.  Unless the files
15139and actions are specified as TAGs, all are instantiated by default.
15140
15141Usage: $0 [OPTION]... [TAG]...
15142
15143  -h, --help       print this help, then exit
15144  -V, --version    print version number and configuration settings, then exit
15145  -q, --quiet, --silent
15146                   do not print progress messages
15147  -d, --debug      don't remove temporary files
15148      --recheck    update $as_me by reconfiguring in the same conditions
15149      --file=FILE[:TEMPLATE]
15150                   instantiate the configuration file FILE
15151
15152Configuration files:
15153$config_files
15154
15155Configuration commands:
15156$config_commands
15157
15158Report bugs to <cilk@intel.com>."
15159
15160_ACEOF
15161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15162ac_cs_version="\\
15163Cilk Runtime Library config.status 2.0
15164configured by $0, generated by GNU Autoconf 2.64,
15165  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15166
15167Copyright (C) 2009 Free Software Foundation, Inc.
15168This config.status script is free software; the Free Software Foundation
15169gives unlimited permission to copy, distribute and modify it."
15170
15171ac_pwd='$ac_pwd'
15172srcdir='$srcdir'
15173INSTALL='$INSTALL'
15174MKDIR_P='$MKDIR_P'
15175AWK='$AWK'
15176test -n "\$AWK" || AWK=awk
15177_ACEOF
15178
15179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15180# The default lists apply if the user does not specify any file.
15181ac_need_defaults=:
15182while test $# != 0
15183do
15184  case $1 in
15185  --*=*)
15186    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15187    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15188    ac_shift=:
15189    ;;
15190  *)
15191    ac_option=$1
15192    ac_optarg=$2
15193    ac_shift=shift
15194    ;;
15195  esac
15196
15197  case $ac_option in
15198  # Handling of the options.
15199  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15200    ac_cs_recheck=: ;;
15201  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15202    $as_echo "$ac_cs_version"; exit ;;
15203  --debug | --debu | --deb | --de | --d | -d )
15204    debug=: ;;
15205  --file | --fil | --fi | --f )
15206    $ac_shift
15207    case $ac_optarg in
15208    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15209    esac
15210    as_fn_append CONFIG_FILES " '$ac_optarg'"
15211    ac_need_defaults=false;;
15212  --he | --h |  --help | --hel | -h )
15213    $as_echo "$ac_cs_usage"; exit ;;
15214  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15215  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15216    ac_cs_silent=: ;;
15217
15218  # This is an error.
15219  -*) as_fn_error "unrecognized option: \`$1'
15220Try \`$0 --help' for more information." ;;
15221
15222  *) as_fn_append ac_config_targets " $1"
15223     ac_need_defaults=false ;;
15224
15225  esac
15226  shift
15227done
15228
15229ac_configure_extra_args=
15230
15231if $ac_cs_silent; then
15232  exec 6>/dev/null
15233  ac_configure_extra_args="$ac_configure_extra_args --silent"
15234fi
15235
15236_ACEOF
15237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15238if \$ac_cs_recheck; then
15239  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15240  shift
15241  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15242  CONFIG_SHELL='$SHELL'
15243  export CONFIG_SHELL
15244  exec "\$@"
15245fi
15246
15247_ACEOF
15248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15249exec 5>>config.log
15250{
15251  echo
15252  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15253## Running $as_me. ##
15254_ASBOX
15255  $as_echo "$ac_log"
15256} >&5
15257
15258_ACEOF
15259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15260#
15261# INIT-COMMANDS
15262#
15263
15264srcdir="$srcdir"
15265host="$host"
15266target="$target"
15267with_multisubdir="$with_multisubdir"
15268with_multisrctop="$with_multisrctop"
15269with_target_subdir="$with_target_subdir"
15270ac_configure_args="${multilib_arg} ${ac_configure_args}"
15271multi_basedir="$multi_basedir"
15272CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15273CC="$CC"
15274CXX="$CXX"
15275GFORTRAN="$GFORTRAN"
15276GCJ="$GCJ"
15277AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15278
15279
15280# The HP-UX ksh and POSIX shell print the target directory to stdout
15281# if CDPATH is set.
15282(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15283
15284sed_quote_subst='$sed_quote_subst'
15285double_quote_subst='$double_quote_subst'
15286delay_variable_subst='$delay_variable_subst'
15287macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15288macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15289enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15290enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15291pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15292enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15293SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15294ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15295host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15296host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15297host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15298build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15299build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15300build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15301SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15302Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15303GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15304EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15305FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15306LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15307NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15308LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15309max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15310ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15311exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15312lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15313lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15314lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15315reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15316reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15317OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15318deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15319file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15320AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15321AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15322STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15323RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15324old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15325old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15326old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15327lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15328CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15329CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15330compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15331GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15332lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15333lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15334lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15335lt_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"`'
15336objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15337MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15338lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15339lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15340lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15341lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15342lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15343need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15344DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15345NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15346LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15347OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15348OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15349libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15350shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15351extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15352archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15353enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15354export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15355whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15356compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15357old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15358old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15359archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15360archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15361module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15362module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15363with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15364allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15365no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15366hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15367hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15368hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15369hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15370hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15371hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15372hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15373hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15374inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15375link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15376fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15377always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15378export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15379exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15380include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15381prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15382file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15383variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15384need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15385need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15386version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15387runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15388shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15389shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15390libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15391library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15392soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15393install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15394postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15395postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15396finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15397finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15398hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15399sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15400sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15401hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15402enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15403enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15404enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15405old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15406striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15407compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15408predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15409postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15410predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15411postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15412compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15413LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15414reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15415reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15416old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15417compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15418GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15419lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15420lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15421lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15422lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15423lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15424archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15425enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15426export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15427whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15428compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15429old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15430old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15431archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15432archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15433module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15434module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15435with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15436allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15437no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15438hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15439hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15440hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15441hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15442hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15443hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15444hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15445hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15446inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15447link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15448fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15449always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15450export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15451exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15452include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15453prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15454file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15455hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15456compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15457predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15458postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15459predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15460postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15461compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15462
15463LTCC='$LTCC'
15464LTCFLAGS='$LTCFLAGS'
15465compiler='$compiler_DEFAULT'
15466
15467# A function that is used when there is no print builtin or printf.
15468func_fallback_echo ()
15469{
15470  eval 'cat <<_LTECHO_EOF
15471\$1
15472_LTECHO_EOF'
15473}
15474
15475# Quote evaled strings.
15476for var in SHELL \
15477ECHO \
15478SED \
15479GREP \
15480EGREP \
15481FGREP \
15482LD \
15483NM \
15484LN_S \
15485lt_SP2NL \
15486lt_NL2SP \
15487reload_flag \
15488OBJDUMP \
15489deplibs_check_method \
15490file_magic_cmd \
15491AR \
15492AR_FLAGS \
15493STRIP \
15494RANLIB \
15495CC \
15496CFLAGS \
15497compiler \
15498lt_cv_sys_global_symbol_pipe \
15499lt_cv_sys_global_symbol_to_cdecl \
15500lt_cv_sys_global_symbol_to_c_name_address \
15501lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15502lt_prog_compiler_no_builtin_flag \
15503lt_prog_compiler_wl \
15504lt_prog_compiler_pic \
15505lt_prog_compiler_static \
15506lt_cv_prog_compiler_c_o \
15507need_locks \
15508DSYMUTIL \
15509NMEDIT \
15510LIPO \
15511OTOOL \
15512OTOOL64 \
15513shrext_cmds \
15514export_dynamic_flag_spec \
15515whole_archive_flag_spec \
15516compiler_needs_object \
15517with_gnu_ld \
15518allow_undefined_flag \
15519no_undefined_flag \
15520hardcode_libdir_flag_spec \
15521hardcode_libdir_flag_spec_ld \
15522hardcode_libdir_separator \
15523fix_srcfile_path \
15524exclude_expsyms \
15525include_expsyms \
15526file_list_spec \
15527variables_saved_for_relink \
15528libname_spec \
15529library_names_spec \
15530soname_spec \
15531install_override_mode \
15532finish_eval \
15533old_striplib \
15534striplib \
15535compiler_lib_search_dirs \
15536predep_objects \
15537postdep_objects \
15538predeps \
15539postdeps \
15540compiler_lib_search_path \
15541LD_CXX \
15542reload_flag_CXX \
15543compiler_CXX \
15544lt_prog_compiler_no_builtin_flag_CXX \
15545lt_prog_compiler_wl_CXX \
15546lt_prog_compiler_pic_CXX \
15547lt_prog_compiler_static_CXX \
15548lt_cv_prog_compiler_c_o_CXX \
15549export_dynamic_flag_spec_CXX \
15550whole_archive_flag_spec_CXX \
15551compiler_needs_object_CXX \
15552with_gnu_ld_CXX \
15553allow_undefined_flag_CXX \
15554no_undefined_flag_CXX \
15555hardcode_libdir_flag_spec_CXX \
15556hardcode_libdir_flag_spec_ld_CXX \
15557hardcode_libdir_separator_CXX \
15558fix_srcfile_path_CXX \
15559exclude_expsyms_CXX \
15560include_expsyms_CXX \
15561file_list_spec_CXX \
15562compiler_lib_search_dirs_CXX \
15563predep_objects_CXX \
15564postdep_objects_CXX \
15565predeps_CXX \
15566postdeps_CXX \
15567compiler_lib_search_path_CXX; do
15568    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15569    *[\\\\\\\`\\"\\\$]*)
15570      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15571      ;;
15572    *)
15573      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15574      ;;
15575    esac
15576done
15577
15578# Double-quote double-evaled strings.
15579for var in reload_cmds \
15580old_postinstall_cmds \
15581old_postuninstall_cmds \
15582old_archive_cmds \
15583extract_expsyms_cmds \
15584old_archive_from_new_cmds \
15585old_archive_from_expsyms_cmds \
15586archive_cmds \
15587archive_expsym_cmds \
15588module_cmds \
15589module_expsym_cmds \
15590export_symbols_cmds \
15591prelink_cmds \
15592postinstall_cmds \
15593postuninstall_cmds \
15594finish_cmds \
15595sys_lib_search_path_spec \
15596sys_lib_dlsearch_path_spec \
15597reload_cmds_CXX \
15598old_archive_cmds_CXX \
15599old_archive_from_new_cmds_CXX \
15600old_archive_from_expsyms_cmds_CXX \
15601archive_cmds_CXX \
15602archive_expsym_cmds_CXX \
15603module_cmds_CXX \
15604module_expsym_cmds_CXX \
15605export_symbols_cmds_CXX \
15606prelink_cmds_CXX; do
15607    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15608    *[\\\\\\\`\\"\\\$]*)
15609      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15610      ;;
15611    *)
15612      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15613      ;;
15614    esac
15615done
15616
15617ac_aux_dir='$ac_aux_dir'
15618xsi_shell='$xsi_shell'
15619lt_shell_append='$lt_shell_append'
15620
15621# See if we are running on zsh, and set the options which allow our
15622# commands through without removal of \ escapes INIT.
15623if test -n "\${ZSH_VERSION+set}" ; then
15624   setopt NO_GLOB_SUBST
15625fi
15626
15627
15628    PACKAGE='$PACKAGE'
15629    VERSION='$VERSION'
15630    TIMESTAMP='$TIMESTAMP'
15631    RM='$RM'
15632    ofile='$ofile'
15633
15634
15635
15636
15637
15638
15639_ACEOF
15640
15641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15642
15643# Handling of arguments.
15644for ac_config_target in $ac_config_targets
15645do
15646  case $ac_config_target in
15647    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15648    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15649    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15650    "libcilkrts.spec") CONFIG_FILES="$CONFIG_FILES libcilkrts.spec" ;;
15651    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15652
15653  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15654  esac
15655done
15656
15657
15658# If the user did not use the arguments to specify the items to instantiate,
15659# then the envvar interface is used.  Set only those that are not.
15660# We use the long form for the default assignment because of an extremely
15661# bizarre bug on SunOS 4.1.3.
15662if $ac_need_defaults; then
15663  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15664  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15665fi
15666
15667# Have a temporary directory for convenience.  Make it in the build tree
15668# simply because there is no reason against having it here, and in addition,
15669# creating and moving files from /tmp can sometimes cause problems.
15670# Hook for its removal unless debugging.
15671# Note that there is a small window in which the directory will not be cleaned:
15672# after its creation but before its name has been assigned to `$tmp'.
15673$debug ||
15674{
15675  tmp=
15676  trap 'exit_status=$?
15677  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15678' 0
15679  trap 'as_fn_exit 1' 1 2 13 15
15680}
15681# Create a (secure) tmp directory for tmp files.
15682
15683{
15684  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15685  test -n "$tmp" && test -d "$tmp"
15686}  ||
15687{
15688  tmp=./conf$$-$RANDOM
15689  (umask 077 && mkdir "$tmp")
15690} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15691
15692# Set up the scripts for CONFIG_FILES section.
15693# No need to generate them if there are no CONFIG_FILES.
15694# This happens for instance with `./config.status config.h'.
15695if test -n "$CONFIG_FILES"; then
15696
15697
15698ac_cr=`echo X | tr X '\015'`
15699# On cygwin, bash can eat \r inside `` if the user requested igncr.
15700# But we know of no other shell where ac_cr would be empty at this
15701# point, so we can use a bashism as a fallback.
15702if test "x$ac_cr" = x; then
15703  eval ac_cr=\$\'\\r\'
15704fi
15705ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15706if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15707  ac_cs_awk_cr='\r'
15708else
15709  ac_cs_awk_cr=$ac_cr
15710fi
15711
15712echo 'BEGIN {' >"$tmp/subs1.awk" &&
15713_ACEOF
15714
15715
15716{
15717  echo "cat >conf$$subs.awk <<_ACEOF" &&
15718  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15719  echo "_ACEOF"
15720} >conf$$subs.sh ||
15721  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15722ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15723ac_delim='%!_!# '
15724for ac_last_try in false false false false false :; do
15725  . ./conf$$subs.sh ||
15726    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15727
15728  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15729  if test $ac_delim_n = $ac_delim_num; then
15730    break
15731  elif $ac_last_try; then
15732    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15733  else
15734    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15735  fi
15736done
15737rm -f conf$$subs.sh
15738
15739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15740cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15741_ACEOF
15742sed -n '
15743h
15744s/^/S["/; s/!.*/"]=/
15745p
15746g
15747s/^[^!]*!//
15748:repl
15749t repl
15750s/'"$ac_delim"'$//
15751t delim
15752:nl
15753h
15754s/\(.\{148\}\).*/\1/
15755t more1
15756s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15757p
15758n
15759b repl
15760:more1
15761s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15762p
15763g
15764s/.\{148\}//
15765t nl
15766:delim
15767h
15768s/\(.\{148\}\).*/\1/
15769t more2
15770s/["\\]/\\&/g; s/^/"/; s/$/"/
15771p
15772b
15773:more2
15774s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15775p
15776g
15777s/.\{148\}//
15778t delim
15779' <conf$$subs.awk | sed '
15780/^[^""]/{
15781  N
15782  s/\n//
15783}
15784' >>$CONFIG_STATUS || ac_write_fail=1
15785rm -f conf$$subs.awk
15786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15787_ACAWK
15788cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15789  for (key in S) S_is_set[key] = 1
15790  FS = ""
15791
15792}
15793{
15794  line = $ 0
15795  nfields = split(line, field, "@")
15796  substed = 0
15797  len = length(field[1])
15798  for (i = 2; i < nfields; i++) {
15799    key = field[i]
15800    keylen = length(key)
15801    if (S_is_set[key]) {
15802      value = S[key]
15803      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15804      len += length(value) + length(field[++i])
15805      substed = 1
15806    } else
15807      len += 1 + keylen
15808  }
15809
15810  print line
15811}
15812
15813_ACAWK
15814_ACEOF
15815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15816if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15817  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15818else
15819  cat
15820fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15821  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15822_ACEOF
15823
15824# VPATH may cause trouble with some makes, so we remove $(srcdir),
15825# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15826# trailing colons and then remove the whole line if VPATH becomes empty
15827# (actually we leave an empty line to preserve line numbers).
15828if test "x$srcdir" = x.; then
15829  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15830s/:*\$(srcdir):*/:/
15831s/:*\${srcdir}:*/:/
15832s/:*@srcdir@:*/:/
15833s/^\([^=]*=[	 ]*\):*/\1/
15834s/:*$//
15835s/^[^=]*=[	 ]*$//
15836}'
15837fi
15838
15839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15840fi # test -n "$CONFIG_FILES"
15841
15842
15843eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15844shift
15845for ac_tag
15846do
15847  case $ac_tag in
15848  :[FHLC]) ac_mode=$ac_tag; continue;;
15849  esac
15850  case $ac_mode$ac_tag in
15851  :[FHL]*:*);;
15852  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15853  :[FH]-) ac_tag=-:-;;
15854  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15855  esac
15856  ac_save_IFS=$IFS
15857  IFS=:
15858  set x $ac_tag
15859  IFS=$ac_save_IFS
15860  shift
15861  ac_file=$1
15862  shift
15863
15864  case $ac_mode in
15865  :L) ac_source=$1;;
15866  :[FH])
15867    ac_file_inputs=
15868    for ac_f
15869    do
15870      case $ac_f in
15871      -) ac_f="$tmp/stdin";;
15872      *) # Look for the file first in the build tree, then in the source tree
15873	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15874	 # because $ac_f cannot contain `:'.
15875	 test -f "$ac_f" ||
15876	   case $ac_f in
15877	   [\\/$]*) false;;
15878	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15879	   esac ||
15880	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15881      esac
15882      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15883      as_fn_append ac_file_inputs " '$ac_f'"
15884    done
15885
15886    # Let's still pretend it is `configure' which instantiates (i.e., don't
15887    # use $as_me), people would be surprised to read:
15888    #    /* config.h.  Generated by config.status.  */
15889    configure_input='Generated from '`
15890	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15891	`' by configure.'
15892    if test x"$ac_file" != x-; then
15893      configure_input="$ac_file.  $configure_input"
15894      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15895$as_echo "$as_me: creating $ac_file" >&6;}
15896    fi
15897    # Neutralize special characters interpreted by sed in replacement strings.
15898    case $configure_input in #(
15899    *\&* | *\|* | *\\* )
15900       ac_sed_conf_input=`$as_echo "$configure_input" |
15901       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15902    *) ac_sed_conf_input=$configure_input;;
15903    esac
15904
15905    case $ac_tag in
15906    *:-:* | *:-) cat >"$tmp/stdin" \
15907      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15908    esac
15909    ;;
15910  esac
15911
15912  ac_dir=`$as_dirname -- "$ac_file" ||
15913$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15914	 X"$ac_file" : 'X\(//\)[^/]' \| \
15915	 X"$ac_file" : 'X\(//\)$' \| \
15916	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15917$as_echo X"$ac_file" |
15918    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15919	    s//\1/
15920	    q
15921	  }
15922	  /^X\(\/\/\)[^/].*/{
15923	    s//\1/
15924	    q
15925	  }
15926	  /^X\(\/\/\)$/{
15927	    s//\1/
15928	    q
15929	  }
15930	  /^X\(\/\).*/{
15931	    s//\1/
15932	    q
15933	  }
15934	  s/.*/./; q'`
15935  as_dir="$ac_dir"; as_fn_mkdir_p
15936  ac_builddir=.
15937
15938case "$ac_dir" in
15939.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15940*)
15941  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15942  # A ".." for each directory in $ac_dir_suffix.
15943  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15944  case $ac_top_builddir_sub in
15945  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15946  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15947  esac ;;
15948esac
15949ac_abs_top_builddir=$ac_pwd
15950ac_abs_builddir=$ac_pwd$ac_dir_suffix
15951# for backward compatibility:
15952ac_top_builddir=$ac_top_build_prefix
15953
15954case $srcdir in
15955  .)  # We are building in place.
15956    ac_srcdir=.
15957    ac_top_srcdir=$ac_top_builddir_sub
15958    ac_abs_top_srcdir=$ac_pwd ;;
15959  [\\/]* | ?:[\\/]* )  # Absolute name.
15960    ac_srcdir=$srcdir$ac_dir_suffix;
15961    ac_top_srcdir=$srcdir
15962    ac_abs_top_srcdir=$srcdir ;;
15963  *) # Relative name.
15964    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15965    ac_top_srcdir=$ac_top_build_prefix$srcdir
15966    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15967esac
15968ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15969
15970
15971  case $ac_mode in
15972  :F)
15973  #
15974  # CONFIG_FILE
15975  #
15976
15977  case $INSTALL in
15978  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15979  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15980  esac
15981  ac_MKDIR_P=$MKDIR_P
15982  case $MKDIR_P in
15983  [\\/$]* | ?:[\\/]* ) ;;
15984  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15985  esac
15986_ACEOF
15987
15988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15989# If the template does not know about datarootdir, expand it.
15990# FIXME: This hack should be removed a few years after 2.60.
15991ac_datarootdir_hack=; ac_datarootdir_seen=
15992ac_sed_dataroot='
15993/datarootdir/ {
15994  p
15995  q
15996}
15997/@datadir@/p
15998/@docdir@/p
15999/@infodir@/p
16000/@localedir@/p
16001/@mandir@/p'
16002case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16003*datarootdir*) ac_datarootdir_seen=yes;;
16004*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16005  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16006$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16007_ACEOF
16008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16009  ac_datarootdir_hack='
16010  s&@datadir@&$datadir&g
16011  s&@docdir@&$docdir&g
16012  s&@infodir@&$infodir&g
16013  s&@localedir@&$localedir&g
16014  s&@mandir@&$mandir&g
16015  s&\\\${datarootdir}&$datarootdir&g' ;;
16016esac
16017_ACEOF
16018
16019# Neutralize VPATH when `$srcdir' = `.'.
16020# Shell code in configure.ac might set extrasub.
16021# FIXME: do we really want to maintain this feature?
16022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16023ac_sed_extra="$ac_vpsub
16024$extrasub
16025_ACEOF
16026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16027:t
16028/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16029s|@configure_input@|$ac_sed_conf_input|;t t
16030s&@top_builddir@&$ac_top_builddir_sub&;t t
16031s&@top_build_prefix@&$ac_top_build_prefix&;t t
16032s&@srcdir@&$ac_srcdir&;t t
16033s&@abs_srcdir@&$ac_abs_srcdir&;t t
16034s&@top_srcdir@&$ac_top_srcdir&;t t
16035s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16036s&@builddir@&$ac_builddir&;t t
16037s&@abs_builddir@&$ac_abs_builddir&;t t
16038s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16039s&@INSTALL@&$ac_INSTALL&;t t
16040s&@MKDIR_P@&$ac_MKDIR_P&;t t
16041$ac_datarootdir_hack
16042"
16043eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16044  || as_fn_error "could not create $ac_file" "$LINENO" 5
16045
16046test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16047  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16048  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16049  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16050which seems to be undefined.  Please make sure it is defined." >&5
16051$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16052which seems to be undefined.  Please make sure it is defined." >&2;}
16053
16054  rm -f "$tmp/stdin"
16055  case $ac_file in
16056  -) cat "$tmp/out" && rm -f "$tmp/out";;
16057  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16058  esac \
16059  || as_fn_error "could not create $ac_file" "$LINENO" 5
16060 ;;
16061
16062
16063  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16064$as_echo "$as_me: executing $ac_file commands" >&6;}
16065 ;;
16066  esac
16067
16068
16069  case $ac_file$ac_mode in
16070    "default-1":C)
16071# Only add multilib support code if we just rebuilt the top-level
16072# Makefile.
16073case " $CONFIG_FILES " in
16074 *" Makefile "*)
16075   ac_file=Makefile . ${multi_basedir}/config-ml.in
16076   ;;
16077esac ;;
16078    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16079  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16080  # are listed without --file.  Let's play safe and only enable the eval
16081  # if we detect the quoting.
16082  case $CONFIG_FILES in
16083  *\'*) eval set x "$CONFIG_FILES" ;;
16084  *)   set x $CONFIG_FILES ;;
16085  esac
16086  shift
16087  for mf
16088  do
16089    # Strip MF so we end up with the name of the file.
16090    mf=`echo "$mf" | sed -e 's/:.*$//'`
16091    # Check whether this is an Automake generated Makefile or not.
16092    # We used to match only the files named `Makefile.in', but
16093    # some people rename them; so instead we look at the file content.
16094    # Grep'ing the first line is not enough: some people post-process
16095    # each Makefile.in and add a new line on top of each file to say so.
16096    # Grep'ing the whole file is not good either: AIX grep has a line
16097    # limit of 2048, but all sed's we know have understand at least 4000.
16098    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16099      dirpart=`$as_dirname -- "$mf" ||
16100$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16101	 X"$mf" : 'X\(//\)[^/]' \| \
16102	 X"$mf" : 'X\(//\)$' \| \
16103	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16104$as_echo X"$mf" |
16105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16106	    s//\1/
16107	    q
16108	  }
16109	  /^X\(\/\/\)[^/].*/{
16110	    s//\1/
16111	    q
16112	  }
16113	  /^X\(\/\/\)$/{
16114	    s//\1/
16115	    q
16116	  }
16117	  /^X\(\/\).*/{
16118	    s//\1/
16119	    q
16120	  }
16121	  s/.*/./; q'`
16122    else
16123      continue
16124    fi
16125    # Extract the definition of DEPDIR, am__include, and am__quote
16126    # from the Makefile without running `make'.
16127    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16128    test -z "$DEPDIR" && continue
16129    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16130    test -z "am__include" && continue
16131    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16132    # When using ansi2knr, U may be empty or an underscore; expand it
16133    U=`sed -n 's/^U = //p' < "$mf"`
16134    # Find all dependency output files, they are included files with
16135    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16136    # simplest approach to changing $(DEPDIR) to its actual value in the
16137    # expansion.
16138    for file in `sed -n "
16139      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16140	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16141      # Make sure the directory exists.
16142      test -f "$dirpart/$file" && continue
16143      fdir=`$as_dirname -- "$file" ||
16144$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16145	 X"$file" : 'X\(//\)[^/]' \| \
16146	 X"$file" : 'X\(//\)$' \| \
16147	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16148$as_echo X"$file" |
16149    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16150	    s//\1/
16151	    q
16152	  }
16153	  /^X\(\/\/\)[^/].*/{
16154	    s//\1/
16155	    q
16156	  }
16157	  /^X\(\/\/\)$/{
16158	    s//\1/
16159	    q
16160	  }
16161	  /^X\(\/\).*/{
16162	    s//\1/
16163	    q
16164	  }
16165	  s/.*/./; q'`
16166      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16167      # echo "creating $dirpart/$file"
16168      echo '# dummy' > "$dirpart/$file"
16169    done
16170  done
16171}
16172 ;;
16173    "libtool":C)
16174
16175    # See if we are running on zsh, and set the options which allow our
16176    # commands through without removal of \ escapes.
16177    if test -n "${ZSH_VERSION+set}" ; then
16178      setopt NO_GLOB_SUBST
16179    fi
16180
16181    cfgfile="${ofile}T"
16182    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16183    $RM "$cfgfile"
16184
16185    cat <<_LT_EOF >> "$cfgfile"
16186#! $SHELL
16187
16188# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16189# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16190# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16191# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16192#
16193#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16194#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16195#   Written by Gordon Matzigkeit, 1996
16196#
16197#   This file is part of GNU Libtool.
16198#
16199# GNU Libtool is free software; you can redistribute it and/or
16200# modify it under the terms of the GNU General Public License as
16201# published by the Free Software Foundation; either version 2 of
16202# the License, or (at your option) any later version.
16203#
16204# As a special exception to the GNU General Public License,
16205# if you distribute this file as part of a program or library that
16206# is built using GNU Libtool, you may include this file under the
16207# same distribution terms that you use for the rest of that program.
16208#
16209# GNU Libtool is distributed in the hope that it will be useful,
16210# but WITHOUT ANY WARRANTY; without even the implied warranty of
16211# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16212# GNU General Public License for more details.
16213#
16214# You should have received a copy of the GNU General Public License
16215# along with GNU Libtool; see the file COPYING.  If not, a copy
16216# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16217# obtained by writing to the Free Software Foundation, Inc.,
16218# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16219
16220
16221# The names of the tagged configurations supported by this script.
16222available_tags="CXX "
16223
16224# ### BEGIN LIBTOOL CONFIG
16225
16226# Which release of libtool.m4 was used?
16227macro_version=$macro_version
16228macro_revision=$macro_revision
16229
16230# Whether or not to build shared libraries.
16231build_libtool_libs=$enable_shared
16232
16233# Whether or not to build static libraries.
16234build_old_libs=$enable_static
16235
16236# What type of objects to build.
16237pic_mode=$pic_mode
16238
16239# Whether or not to optimize for fast installation.
16240fast_install=$enable_fast_install
16241
16242# Shell to use when invoking shell scripts.
16243SHELL=$lt_SHELL
16244
16245# An echo program that protects backslashes.
16246ECHO=$lt_ECHO
16247
16248# The host system.
16249host_alias=$host_alias
16250host=$host
16251host_os=$host_os
16252
16253# The build system.
16254build_alias=$build_alias
16255build=$build
16256build_os=$build_os
16257
16258# A sed program that does not truncate output.
16259SED=$lt_SED
16260
16261# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16262Xsed="\$SED -e 1s/^X//"
16263
16264# A grep program that handles long lines.
16265GREP=$lt_GREP
16266
16267# An ERE matcher.
16268EGREP=$lt_EGREP
16269
16270# A literal string matcher.
16271FGREP=$lt_FGREP
16272
16273# A BSD- or MS-compatible name lister.
16274NM=$lt_NM
16275
16276# Whether we need soft or hard links.
16277LN_S=$lt_LN_S
16278
16279# What is the maximum length of a command?
16280max_cmd_len=$max_cmd_len
16281
16282# Object file suffix (normally "o").
16283objext=$ac_objext
16284
16285# Executable file suffix (normally "").
16286exeext=$exeext
16287
16288# whether the shell understands "unset".
16289lt_unset=$lt_unset
16290
16291# turn spaces into newlines.
16292SP2NL=$lt_lt_SP2NL
16293
16294# turn newlines into spaces.
16295NL2SP=$lt_lt_NL2SP
16296
16297# An object symbol dumper.
16298OBJDUMP=$lt_OBJDUMP
16299
16300# Method to check whether dependent libraries are shared objects.
16301deplibs_check_method=$lt_deplibs_check_method
16302
16303# Command to use when deplibs_check_method == "file_magic".
16304file_magic_cmd=$lt_file_magic_cmd
16305
16306# The archiver.
16307AR=$lt_AR
16308AR_FLAGS=$lt_AR_FLAGS
16309
16310# A symbol stripping program.
16311STRIP=$lt_STRIP
16312
16313# Commands used to install an old-style archive.
16314RANLIB=$lt_RANLIB
16315old_postinstall_cmds=$lt_old_postinstall_cmds
16316old_postuninstall_cmds=$lt_old_postuninstall_cmds
16317
16318# Whether to use a lock for old archive extraction.
16319lock_old_archive_extraction=$lock_old_archive_extraction
16320
16321# A C compiler.
16322LTCC=$lt_CC
16323
16324# LTCC compiler flags.
16325LTCFLAGS=$lt_CFLAGS
16326
16327# Take the output of nm and produce a listing of raw symbols and C names.
16328global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16329
16330# Transform the output of nm in a proper C declaration.
16331global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16332
16333# Transform the output of nm in a C name address pair.
16334global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16335
16336# Transform the output of nm in a C name address pair when lib prefix is needed.
16337global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16338
16339# The name of the directory that contains temporary libtool files.
16340objdir=$objdir
16341
16342# Used to examine libraries when file_magic_cmd begins with "file".
16343MAGIC_CMD=$MAGIC_CMD
16344
16345# Must we lock files when doing compilation?
16346need_locks=$lt_need_locks
16347
16348# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16349DSYMUTIL=$lt_DSYMUTIL
16350
16351# Tool to change global to local symbols on Mac OS X.
16352NMEDIT=$lt_NMEDIT
16353
16354# Tool to manipulate fat objects and archives on Mac OS X.
16355LIPO=$lt_LIPO
16356
16357# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16358OTOOL=$lt_OTOOL
16359
16360# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16361OTOOL64=$lt_OTOOL64
16362
16363# Old archive suffix (normally "a").
16364libext=$libext
16365
16366# Shared library suffix (normally ".so").
16367shrext_cmds=$lt_shrext_cmds
16368
16369# The commands to extract the exported symbol list from a shared archive.
16370extract_expsyms_cmds=$lt_extract_expsyms_cmds
16371
16372# Variables whose values should be saved in libtool wrapper scripts and
16373# restored at link time.
16374variables_saved_for_relink=$lt_variables_saved_for_relink
16375
16376# Do we need the "lib" prefix for modules?
16377need_lib_prefix=$need_lib_prefix
16378
16379# Do we need a version for libraries?
16380need_version=$need_version
16381
16382# Library versioning type.
16383version_type=$version_type
16384
16385# Shared library runtime path variable.
16386runpath_var=$runpath_var
16387
16388# Shared library path variable.
16389shlibpath_var=$shlibpath_var
16390
16391# Is shlibpath searched before the hard-coded library search path?
16392shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16393
16394# Format of library name prefix.
16395libname_spec=$lt_libname_spec
16396
16397# List of archive names.  First name is the real one, the rest are links.
16398# The last name is the one that the linker finds with -lNAME
16399library_names_spec=$lt_library_names_spec
16400
16401# The coded name of the library, if different from the real name.
16402soname_spec=$lt_soname_spec
16403
16404# Permission mode override for installation of shared libraries.
16405install_override_mode=$lt_install_override_mode
16406
16407# Command to use after installation of a shared archive.
16408postinstall_cmds=$lt_postinstall_cmds
16409
16410# Command to use after uninstallation of a shared archive.
16411postuninstall_cmds=$lt_postuninstall_cmds
16412
16413# Commands used to finish a libtool library installation in a directory.
16414finish_cmds=$lt_finish_cmds
16415
16416# As "finish_cmds", except a single script fragment to be evaled but
16417# not shown.
16418finish_eval=$lt_finish_eval
16419
16420# Whether we should hardcode library paths into libraries.
16421hardcode_into_libs=$hardcode_into_libs
16422
16423# Compile-time system search path for libraries.
16424sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16425
16426# Run-time system search path for libraries.
16427sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16428
16429# Whether dlopen is supported.
16430dlopen_support=$enable_dlopen
16431
16432# Whether dlopen of programs is supported.
16433dlopen_self=$enable_dlopen_self
16434
16435# Whether dlopen of statically linked programs is supported.
16436dlopen_self_static=$enable_dlopen_self_static
16437
16438# Commands to strip libraries.
16439old_striplib=$lt_old_striplib
16440striplib=$lt_striplib
16441
16442
16443# The linker used to build libraries.
16444LD=$lt_LD
16445
16446# How to create reloadable object files.
16447reload_flag=$lt_reload_flag
16448reload_cmds=$lt_reload_cmds
16449
16450# Commands used to build an old-style archive.
16451old_archive_cmds=$lt_old_archive_cmds
16452
16453# A language specific compiler.
16454CC=$lt_compiler
16455
16456# Is the compiler the GNU compiler?
16457with_gcc=$GCC
16458
16459# Compiler flag to turn off builtin functions.
16460no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16461
16462# How to pass a linker flag through the compiler.
16463wl=$lt_lt_prog_compiler_wl
16464
16465# Additional compiler flags for building library objects.
16466pic_flag=$lt_lt_prog_compiler_pic
16467
16468# Compiler flag to prevent dynamic linking.
16469link_static_flag=$lt_lt_prog_compiler_static
16470
16471# Does compiler simultaneously support -c and -o options?
16472compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16473
16474# Whether or not to add -lc for building shared libraries.
16475build_libtool_need_lc=$archive_cmds_need_lc
16476
16477# Whether or not to disallow shared libs when runtime libs are static.
16478allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16479
16480# Compiler flag to allow reflexive dlopens.
16481export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16482
16483# Compiler flag to generate shared objects directly from archives.
16484whole_archive_flag_spec=$lt_whole_archive_flag_spec
16485
16486# Whether the compiler copes with passing no objects directly.
16487compiler_needs_object=$lt_compiler_needs_object
16488
16489# Create an old-style archive from a shared archive.
16490old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16491
16492# Create a temporary old-style archive to link instead of a shared archive.
16493old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16494
16495# Commands used to build a shared archive.
16496archive_cmds=$lt_archive_cmds
16497archive_expsym_cmds=$lt_archive_expsym_cmds
16498
16499# Commands used to build a loadable module if different from building
16500# a shared archive.
16501module_cmds=$lt_module_cmds
16502module_expsym_cmds=$lt_module_expsym_cmds
16503
16504# Whether we are building with GNU ld or not.
16505with_gnu_ld=$lt_with_gnu_ld
16506
16507# Flag that allows shared libraries with undefined symbols to be built.
16508allow_undefined_flag=$lt_allow_undefined_flag
16509
16510# Flag that enforces no undefined symbols.
16511no_undefined_flag=$lt_no_undefined_flag
16512
16513# Flag to hardcode \$libdir into a binary during linking.
16514# This must work even if \$libdir does not exist
16515hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16516
16517# If ld is used when linking, flag to hardcode \$libdir into a binary
16518# during linking.  This must work even if \$libdir does not exist.
16519hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16520
16521# Whether we need a single "-rpath" flag with a separated argument.
16522hardcode_libdir_separator=$lt_hardcode_libdir_separator
16523
16524# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16525# DIR into the resulting binary.
16526hardcode_direct=$hardcode_direct
16527
16528# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16529# DIR into the resulting binary and the resulting library dependency is
16530# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16531# library is relocated.
16532hardcode_direct_absolute=$hardcode_direct_absolute
16533
16534# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16535# into the resulting binary.
16536hardcode_minus_L=$hardcode_minus_L
16537
16538# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16539# into the resulting binary.
16540hardcode_shlibpath_var=$hardcode_shlibpath_var
16541
16542# Set to "yes" if building a shared library automatically hardcodes DIR
16543# into the library and all subsequent libraries and executables linked
16544# against it.
16545hardcode_automatic=$hardcode_automatic
16546
16547# Set to yes if linker adds runtime paths of dependent libraries
16548# to runtime path list.
16549inherit_rpath=$inherit_rpath
16550
16551# Whether libtool must link a program against all its dependency libraries.
16552link_all_deplibs=$link_all_deplibs
16553
16554# Fix the shell variable \$srcfile for the compiler.
16555fix_srcfile_path=$lt_fix_srcfile_path
16556
16557# Set to "yes" if exported symbols are required.
16558always_export_symbols=$always_export_symbols
16559
16560# The commands to list exported symbols.
16561export_symbols_cmds=$lt_export_symbols_cmds
16562
16563# Symbols that should not be listed in the preloaded symbols.
16564exclude_expsyms=$lt_exclude_expsyms
16565
16566# Symbols that must always be exported.
16567include_expsyms=$lt_include_expsyms
16568
16569# Commands necessary for linking programs (against libraries) with templates.
16570prelink_cmds=$lt_prelink_cmds
16571
16572# Specify filename containing input files.
16573file_list_spec=$lt_file_list_spec
16574
16575# How to hardcode a shared library path into an executable.
16576hardcode_action=$hardcode_action
16577
16578# The directories searched by this compiler when creating a shared library.
16579compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16580
16581# Dependencies to place before and after the objects being linked to
16582# create a shared library.
16583predep_objects=$lt_predep_objects
16584postdep_objects=$lt_postdep_objects
16585predeps=$lt_predeps
16586postdeps=$lt_postdeps
16587
16588# The library search path used internally by the compiler when linking
16589# a shared library.
16590compiler_lib_search_path=$lt_compiler_lib_search_path
16591
16592# ### END LIBTOOL CONFIG
16593
16594_LT_EOF
16595
16596  case $host_os in
16597  aix3*)
16598    cat <<\_LT_EOF >> "$cfgfile"
16599# AIX sometimes has problems with the GCC collect2 program.  For some
16600# reason, if we set the COLLECT_NAMES environment variable, the problems
16601# vanish in a puff of smoke.
16602if test "X${COLLECT_NAMES+set}" != Xset; then
16603  COLLECT_NAMES=
16604  export COLLECT_NAMES
16605fi
16606_LT_EOF
16607    ;;
16608  esac
16609
16610
16611ltmain="$ac_aux_dir/ltmain.sh"
16612
16613
16614  # We use sed instead of cat because bash on DJGPP gets confused if
16615  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16616  # text mode, it properly converts lines to CR/LF.  This bash problem
16617  # is reportedly fixed, but why not run on old versions too?
16618  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16619    || (rm -f "$cfgfile"; exit 1)
16620
16621  case $xsi_shell in
16622  yes)
16623    cat << \_LT_EOF >> "$cfgfile"
16624
16625# func_dirname file append nondir_replacement
16626# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16627# otherwise set result to NONDIR_REPLACEMENT.
16628func_dirname ()
16629{
16630  case ${1} in
16631    */*) func_dirname_result="${1%/*}${2}" ;;
16632    *  ) func_dirname_result="${3}" ;;
16633  esac
16634}
16635
16636# func_basename file
16637func_basename ()
16638{
16639  func_basename_result="${1##*/}"
16640}
16641
16642# func_dirname_and_basename file append nondir_replacement
16643# perform func_basename and func_dirname in a single function
16644# call:
16645#   dirname:  Compute the dirname of FILE.  If nonempty,
16646#             add APPEND to the result, otherwise set result
16647#             to NONDIR_REPLACEMENT.
16648#             value returned in "$func_dirname_result"
16649#   basename: Compute filename of FILE.
16650#             value retuned in "$func_basename_result"
16651# Implementation must be kept synchronized with func_dirname
16652# and func_basename. For efficiency, we do not delegate to
16653# those functions but instead duplicate the functionality here.
16654func_dirname_and_basename ()
16655{
16656  case ${1} in
16657    */*) func_dirname_result="${1%/*}${2}" ;;
16658    *  ) func_dirname_result="${3}" ;;
16659  esac
16660  func_basename_result="${1##*/}"
16661}
16662
16663# func_stripname prefix suffix name
16664# strip PREFIX and SUFFIX off of NAME.
16665# PREFIX and SUFFIX must not contain globbing or regex special
16666# characters, hashes, percent signs, but SUFFIX may contain a leading
16667# dot (in which case that matches only a dot).
16668func_stripname ()
16669{
16670  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16671  # positional parameters, so assign one to ordinary parameter first.
16672  func_stripname_result=${3}
16673  func_stripname_result=${func_stripname_result#"${1}"}
16674  func_stripname_result=${func_stripname_result%"${2}"}
16675}
16676
16677# func_opt_split
16678func_opt_split ()
16679{
16680  func_opt_split_opt=${1%%=*}
16681  func_opt_split_arg=${1#*=}
16682}
16683
16684# func_lo2o object
16685func_lo2o ()
16686{
16687  case ${1} in
16688    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16689    *)    func_lo2o_result=${1} ;;
16690  esac
16691}
16692
16693# func_xform libobj-or-source
16694func_xform ()
16695{
16696  func_xform_result=${1%.*}.lo
16697}
16698
16699# func_arith arithmetic-term...
16700func_arith ()
16701{
16702  func_arith_result=$(( $* ))
16703}
16704
16705# func_len string
16706# STRING may not start with a hyphen.
16707func_len ()
16708{
16709  func_len_result=${#1}
16710}
16711
16712_LT_EOF
16713    ;;
16714  *) # Bourne compatible functions.
16715    cat << \_LT_EOF >> "$cfgfile"
16716
16717# func_dirname file append nondir_replacement
16718# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16719# otherwise set result to NONDIR_REPLACEMENT.
16720func_dirname ()
16721{
16722  # Extract subdirectory from the argument.
16723  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16724  if test "X$func_dirname_result" = "X${1}"; then
16725    func_dirname_result="${3}"
16726  else
16727    func_dirname_result="$func_dirname_result${2}"
16728  fi
16729}
16730
16731# func_basename file
16732func_basename ()
16733{
16734  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16735}
16736
16737
16738# func_stripname prefix suffix name
16739# strip PREFIX and SUFFIX off of NAME.
16740# PREFIX and SUFFIX must not contain globbing or regex special
16741# characters, hashes, percent signs, but SUFFIX may contain a leading
16742# dot (in which case that matches only a dot).
16743# func_strip_suffix prefix name
16744func_stripname ()
16745{
16746  case ${2} in
16747    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16748    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16749  esac
16750}
16751
16752# sed scripts:
16753my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16754my_sed_long_arg='1s/^-[^=]*=//'
16755
16756# func_opt_split
16757func_opt_split ()
16758{
16759  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16760  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16761}
16762
16763# func_lo2o object
16764func_lo2o ()
16765{
16766  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16767}
16768
16769# func_xform libobj-or-source
16770func_xform ()
16771{
16772  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16773}
16774
16775# func_arith arithmetic-term...
16776func_arith ()
16777{
16778  func_arith_result=`expr "$@"`
16779}
16780
16781# func_len string
16782# STRING may not start with a hyphen.
16783func_len ()
16784{
16785  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16786}
16787
16788_LT_EOF
16789esac
16790
16791case $lt_shell_append in
16792  yes)
16793    cat << \_LT_EOF >> "$cfgfile"
16794
16795# func_append var value
16796# Append VALUE to the end of shell variable VAR.
16797func_append ()
16798{
16799  eval "$1+=\$2"
16800}
16801_LT_EOF
16802    ;;
16803  *)
16804    cat << \_LT_EOF >> "$cfgfile"
16805
16806# func_append var value
16807# Append VALUE to the end of shell variable VAR.
16808func_append ()
16809{
16810  eval "$1=\$$1\$2"
16811}
16812
16813_LT_EOF
16814    ;;
16815  esac
16816
16817
16818  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16819    || (rm -f "$cfgfile"; exit 1)
16820
16821  mv -f "$cfgfile" "$ofile" ||
16822    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16823  chmod +x "$ofile"
16824
16825
16826    cat <<_LT_EOF >> "$ofile"
16827
16828# ### BEGIN LIBTOOL TAG CONFIG: CXX
16829
16830# The linker used to build libraries.
16831LD=$lt_LD_CXX
16832
16833# How to create reloadable object files.
16834reload_flag=$lt_reload_flag_CXX
16835reload_cmds=$lt_reload_cmds_CXX
16836
16837# Commands used to build an old-style archive.
16838old_archive_cmds=$lt_old_archive_cmds_CXX
16839
16840# A language specific compiler.
16841CC=$lt_compiler_CXX
16842
16843# Is the compiler the GNU compiler?
16844with_gcc=$GCC_CXX
16845
16846# Compiler flag to turn off builtin functions.
16847no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16848
16849# How to pass a linker flag through the compiler.
16850wl=$lt_lt_prog_compiler_wl_CXX
16851
16852# Additional compiler flags for building library objects.
16853pic_flag=$lt_lt_prog_compiler_pic_CXX
16854
16855# Compiler flag to prevent dynamic linking.
16856link_static_flag=$lt_lt_prog_compiler_static_CXX
16857
16858# Does compiler simultaneously support -c and -o options?
16859compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16860
16861# Whether or not to add -lc for building shared libraries.
16862build_libtool_need_lc=$archive_cmds_need_lc_CXX
16863
16864# Whether or not to disallow shared libs when runtime libs are static.
16865allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16866
16867# Compiler flag to allow reflexive dlopens.
16868export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16869
16870# Compiler flag to generate shared objects directly from archives.
16871whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16872
16873# Whether the compiler copes with passing no objects directly.
16874compiler_needs_object=$lt_compiler_needs_object_CXX
16875
16876# Create an old-style archive from a shared archive.
16877old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16878
16879# Create a temporary old-style archive to link instead of a shared archive.
16880old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16881
16882# Commands used to build a shared archive.
16883archive_cmds=$lt_archive_cmds_CXX
16884archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16885
16886# Commands used to build a loadable module if different from building
16887# a shared archive.
16888module_cmds=$lt_module_cmds_CXX
16889module_expsym_cmds=$lt_module_expsym_cmds_CXX
16890
16891# Whether we are building with GNU ld or not.
16892with_gnu_ld=$lt_with_gnu_ld_CXX
16893
16894# Flag that allows shared libraries with undefined symbols to be built.
16895allow_undefined_flag=$lt_allow_undefined_flag_CXX
16896
16897# Flag that enforces no undefined symbols.
16898no_undefined_flag=$lt_no_undefined_flag_CXX
16899
16900# Flag to hardcode \$libdir into a binary during linking.
16901# This must work even if \$libdir does not exist
16902hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16903
16904# If ld is used when linking, flag to hardcode \$libdir into a binary
16905# during linking.  This must work even if \$libdir does not exist.
16906hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16907
16908# Whether we need a single "-rpath" flag with a separated argument.
16909hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16910
16911# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16912# DIR into the resulting binary.
16913hardcode_direct=$hardcode_direct_CXX
16914
16915# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16916# DIR into the resulting binary and the resulting library dependency is
16917# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16918# library is relocated.
16919hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16920
16921# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16922# into the resulting binary.
16923hardcode_minus_L=$hardcode_minus_L_CXX
16924
16925# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16926# into the resulting binary.
16927hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16928
16929# Set to "yes" if building a shared library automatically hardcodes DIR
16930# into the library and all subsequent libraries and executables linked
16931# against it.
16932hardcode_automatic=$hardcode_automatic_CXX
16933
16934# Set to yes if linker adds runtime paths of dependent libraries
16935# to runtime path list.
16936inherit_rpath=$inherit_rpath_CXX
16937
16938# Whether libtool must link a program against all its dependency libraries.
16939link_all_deplibs=$link_all_deplibs_CXX
16940
16941# Fix the shell variable \$srcfile for the compiler.
16942fix_srcfile_path=$lt_fix_srcfile_path_CXX
16943
16944# Set to "yes" if exported symbols are required.
16945always_export_symbols=$always_export_symbols_CXX
16946
16947# The commands to list exported symbols.
16948export_symbols_cmds=$lt_export_symbols_cmds_CXX
16949
16950# Symbols that should not be listed in the preloaded symbols.
16951exclude_expsyms=$lt_exclude_expsyms_CXX
16952
16953# Symbols that must always be exported.
16954include_expsyms=$lt_include_expsyms_CXX
16955
16956# Commands necessary for linking programs (against libraries) with templates.
16957prelink_cmds=$lt_prelink_cmds_CXX
16958
16959# Specify filename containing input files.
16960file_list_spec=$lt_file_list_spec_CXX
16961
16962# How to hardcode a shared library path into an executable.
16963hardcode_action=$hardcode_action_CXX
16964
16965# The directories searched by this compiler when creating a shared library.
16966compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16967
16968# Dependencies to place before and after the objects being linked to
16969# create a shared library.
16970predep_objects=$lt_predep_objects_CXX
16971postdep_objects=$lt_postdep_objects_CXX
16972predeps=$lt_predeps_CXX
16973postdeps=$lt_postdeps_CXX
16974
16975# The library search path used internally by the compiler when linking
16976# a shared library.
16977compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16978
16979# ### END LIBTOOL TAG CONFIG: CXX
16980_LT_EOF
16981
16982 ;;
16983
16984  esac
16985done # for ac_tag
16986
16987
16988as_fn_exit 0
16989_ACEOF
16990ac_clean_files=$ac_clean_files_save
16991
16992test $ac_write_fail = 0 ||
16993  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16994
16995
16996# configure is writing to config.log, and then calls config.status.
16997# config.status does its own redirection, appending to config.log.
16998# Unfortunately, on DOS this fails, as config.log is still kept open
16999# by configure, so config.status won't be able to write to it; its
17000# output is simply discarded.  So we exec the FD to /dev/null,
17001# effectively closing config.log, so it can be properly (re)opened and
17002# appended to by config.status.  When coming back to configure, we
17003# need to make the FD available again.
17004if test "$no_create" != yes; then
17005  ac_cs_success=:
17006  ac_config_status_args=
17007  test "$silent" = yes &&
17008    ac_config_status_args="$ac_config_status_args --quiet"
17009  exec 5>/dev/null
17010  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17011  exec 5>>config.log
17012  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17013  # would make configure fail if this is the last instruction.
17014  $ac_cs_success || as_fn_exit $?
17015fi
17016if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17017  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17018$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17019fi
17020
17021